Wings 3D Development Forum

Full Version: (v2.2.8) Wings3D crashed when combine two objects that has differnt material.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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}]}]
tkbd, thanks for report it.

I tried your steps on Windows 10 and I have no problem.
Seems like something else crashes earlier and kills the window,
since the gui calls indicates that the gui is gone.