Wings 3D Development Forum
(v2.2.8) Wings3D crashed when combine two objects that has differnt material. - 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)
+---- Forum: Wings3D for Mac OS - bug reports (https://www.wings3d.com/forum/forumdisplay.php?fid=20)
+---- Thread: (v2.2.8) Wings3D crashed when combine two objects that has differnt material. (/showthread.php?tid=3058)



(v2.2.8) Wings3D crashed when combine two objects that has differnt material. - tkbd - 01-22-2022

This time, I test only it in OSX,so I don't know it happend in Windows.
How to recreate the crash?
1) Create an object with Material A.
2) Create an object with Material B (+ UV).
3) Select both objects(A&B),and BODY>Combine
4) Wings3D app crash.
I got these logs.

For the time being,If you want avoid the crash,Apply same Material to the objects before combine.


Code:
Dump written 2022-1-22_10-32
Version: 2.2.8
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 2022-1-22_12-7
Version: 2.2.8
Window: [wings_geom_win,<0.104.0>]
Reason: {{badarg,"This"},{wxListCtrl,insertItem,4}}

Stack trace:
[{wxe_util,rec,1,[{file,"wxe_util.erl"},{line,110}]},
{wings_geom_win,'-update_shapes/4-fun-0-',7,
                 [{file,"wings_geom_win.erl"},{line,741}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
{wx,foldl,3,[{file,"wx.erl"},{line,240}]},
{wings_geom_win,update_shapes,4,[{file,"wings_geom_win.erl"},{line,752}]},
{wings_geom_win,handle_cast,2,[{file,"wings_geom_win.erl"},{line,653}]},
{wx_object,handle_msg,5,[{file,"wx_object.erl"},{line,500}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]



RE: (v2.2.8) Wings3D crashed when combine two objects that has differnt material. - micheus - 01-22-2022

tkbd, thanks for report it.

I tried your steps on Windows 10 and I have no problem.


RE: (v2.2.8) Wings3D crashed when combine two objects that has differnt material. - dgud - 01-22-2022

Seems like something else crashes earlier and kills the window,
since the gui calls indicates that the gui is gone.