Wings 3D Development Forum

Full Version: [fixed] Wings3D crash in AutoUV edit.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I got some crash logs with AutoUV edit operation.
It happend on UV remapping.
Quote:Dump written 2021-11-3_19-50
Version: 2.2.7
Window: {autouv,1}
Reason: badarith

Stack trace:
[{auv_mapping,calc_scale,6,[{file,"auv_mapping.erl"},{line,1195}]},
{auv_mapping,stretch_setup,3,[{file,"auv_mapping.erl"},{line,1046}]},
{auv_mapping,stretch_opt,2,[{file,"auv_mapping.erl"},{line,1024}]},
{wpc_autouv,'-remap/2-fun-3-',6,[{file,"wpc_autouv.erl"},{line,1901}]},
{wings_sel,mapfold_1,6,[{file,"wings_sel.erl"},{line,636}]},
{wings_sel,mapfold,3,[{file,"wings_sel.erl"},{line,289}]},
{wpc_autouv,remap,2,[{file,"wpc_autouv.erl"},{line,1903}]},
{wpc_autouv,handle_command_1,2,[{file,"wpc_autouv.erl"},{line,862}]},
{wpc_autouv,handle_command,2,[{file,"wpc_autouv.erl"},{line,850}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,1031}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,998}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,890}]},
{wings_wm,dispatch_event,1,[{file,"wings_wm.erl"},{line,799}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,685}]},
{wings,init_part2,3,[{file,"wings.erl"},{line,108}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]

OS: macOS Mojave Version 10.14.6 (Build 18G9323)
GPU: Intel Inc. | Intel Iris OpenGL Engine


Another crash happend on uniform UV scale to max
Quote:Dump written 2021-11-3_22-7
Version: 2.2.7
Window: {autouv,1}
Reason: badarith

Stack trace:
[{wpc_autouv,stretch,2,[{file,"wpc_autouv.erl"},{line,1832}]},
{wings_sel,map_1,5,[{file,"wings_sel.erl"},{line,589}]},
{wings_sel,map,2,[{file,"wings_sel.erl"},{line,125}]},
{wpc_autouv,handle_command_1,2,[{file,"wpc_autouv.erl"},{line,875}]},
{wpc_autouv,handle_command,2,[{file,"wpc_autouv.erl"},{line,850}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,1031}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,998}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,890}]},
{wings_wm,dispatch_event,1,[{file,"wings_wm.erl"},{line,799}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,685}]},
{wings,init_part2,3,[{file,"wings.erl"},{line,108}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]

OS: macOS Mojave Version 10.14.6 (Build 18G9323)
GPU: Intel Inc. | Intel Iris OpenGL Engine


Last one of crash, I have been forgot the details.
Perhaps the drag occurred trying to select a window....
Quote:Dump written 2021-11-14_21-11
Version: 2.2.7
Window: [wings_geom_win,<0.103.0>]
Reason: {case_clause,command_list_begin_drag}

Stack trace:
[{wings_geom_win,handle_event,2,[{file,"wings_geom_win.erl"},{line,507}]},
{wx_object,handle_msg,5,[{file,"wx_object.erl"},{line,500}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]


Best Regard!
tkbd, do you remember (and have) the model you were working when got these two initial report.

By looking at the code it seems there were some mesh inconsistence since it generated a division by zero - which an area should not be zero size.
Hi! micheus.
Thanks for remembering this thread!
The bug still occurs.
So,I sent to you a wings file.
Best regards!

FYI: I found two patterns of crash log error occur.
Apply Max Uniform to the all of UVcharts
Apply RemapUV to the all of UVcharts

In both of cases that caused by trying to edit for very small size UV charts.


Code:
Dump written 2023-6-6_18-49
Version: 2.2.9
Window: [wings,wings,<0.88.0>]
Reason: {{badarg,"This"},{wxGLCanvas,swapBuffers,1}}

Stack trace:
[{wxe_util,rec,1,[{file,"wxe_util.erl"},{line,110}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
{wings_wm,redraw_all,0,[{file,"wings_wm.erl"},{line,913}]},
{wings,init_part2,3,[{file,"wings.erl"},{line,108}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]


Code:
Dump written 2023-6-6_19-9
Version: 2.2.9
Window: {autouv,6}
Reason: badarith

Stack trace:
[{auv_mapping,calc_scale,6,[{file,"auv_mapping.erl"},{line,1195}]},
{auv_mapping,stretch_setup,3,[{file,"auv_mapping.erl"},{line,1046}]},
{auv_mapping,stretch_opt,2,[{file,"auv_mapping.erl"},{line,1024}]},
{wpc_autouv,'-remap/2-fun-3-',6,[{file,"wpc_autouv.erl"},{line,1975}]},
{wings_sel,mapfold_1,6,[{file,"wings_sel.erl"},{line,636}]},
{wings_sel,mapfold,3,[{file,"wings_sel.erl"},{line,289}]},
{wpc_autouv,remap,2,[{file,"wpc_autouv.erl"},{line,1977}]},
{wpc_autouv,handle_command_1,2,[{file,"wpc_autouv.erl"},{line,864}]},
{wpc_autouv,handle_command,2,[{file,"wpc_autouv.erl"},{line,852}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,1038}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,1005}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,897}]},
{wings_wm,dispatch_event,1,[{file,"wings_wm.erl"},{line,806}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,692}]},
{wings,init_part2,3,[{file,"wings.erl"},{line,108}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]

OS: macOS Mojave Version 10.14.6 (Build 18G9323)
GPU: Intel Inc. | Intel Iris OpenGL Engine
Fixed.

The patch is available in Patches/Fixes for Wings3D for v2.2.9 (auv_fix.tar)

Thanks.
Thank you for the fix and the mail reply Smile
I used to have troubled this bug, so it will helps me.