Wings 3D Development Forum
Normalize Sizes crash dump - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12)
+--- Thread: Normalize Sizes crash dump (/showthread.php?tid=2136)



Normalize Sizes crash dump - Hank - 09-05-2016

Hello all W3D users,

Currently I'm working with quite complicated object and now when I want to UV map it I got W3D crash dump like this:

Dump written 2016-9-5_21-7
Version: 1.5.4
Window: {autouv,4}
Reason: badarith

Short stack trace:
[]

Long stack trace:
[{wpc_autouv,'-handle_command_1/2-fun-4-',3,
[{file,"wpc_autouv.erl"},{line,874}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1262}]},
{wpc_autouv,handle_command_1,2,[{file,"wpc_autouv.erl"},{line,883}]},
{wpc_autouv,handle_command,2,[{file,"wpc_autouv.erl"},{line,830}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,825}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,797}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,698}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,612}]}]

All objects are combined to one and separately had UV mapping. When I select whole object and go to scale -> normalize sizes the error shows up.

What cause it?
Did I miss some UV or some vertices are too close each other?

could you analyse it with attached crash dump?

BR, Hank


RE: Normalize Sizes crash dump - dgud - 09-05-2016

badarith indicates a division by zero och sqrt of a negativ number, so to small faces/face regions
could probably cause that.


RE: Normalize Sizes crash dump - Hank - 09-07-2016

True.
I did not notice it before but some UV's were deformed during creation. I extruded the faces once again and delete the vertices. Now it's OK.

See the print-screen for the root cause:
[Image: UV%20crash_zpsbsbihwae.png]
Thanks for the help!

BR, Hank.