Wings 3D Development Forum
[Fixed] Crash Wings3D when click or rename folder item. - 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: [Fixed] Crash Wings3D when click or rename folder item. (/showthread.php?tid=2267)



[Fixed] Crash Wings3D when click or rename folder item. - tkbd - 11-30-2016

Wings3D crashed while treated for folder/item in Geometry Graph.
I don't know in detail what kind of condition it will occur because sometimes it happens Sad
The error logs are here.
In either case, the Geometry Graph window closes unexpectedly.

When rename folder.
Code:
Dump written 2016-11-30_19-4
Version: 2.1.3
Window: <0.80.0>
Reason: {badmatch,false}

Short stack trace:
[]

Long stack trace:
[{wings_geom_win,'-update_folders/2-fun-1-',3,
                 [{file,"wings_geom_win.erl"},{line,641}]},
{wx,batch,1,[{file,"wx.erl"},{line,184}]},
{wings_geom_win,handle_cast,2,[{file,"wings_geom_win.erl"},{line,578}]},
{wx_object,handle_msg,5,[{file,"wx_object.erl"},{line,450}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]

When click folder item
Code:
Dump written 2016-11-30_19-47
Version: 2.1.3
Window: <0.83.0>
Reason: {badmatch,false}

Short stack trace:
[]

Long stack trace:
[{wings_geom_win,handle_event,2,[{file,"wings_geom_win.erl"},{line,476}]},
{wx_object,handle_msg,5,[{file,"wx_object.erl"},{line,450}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]


MacOSX 10.11.6
Wings3D 2.1.3


RE: Crash Wings3D when click or rename folder item. - micheus - 11-30-2016

It's hard to reproduce - I couldn't. So, what I did was most a workaround than a fix.

We should not get a window crash, but the situation that would cause it will be sent to the Log window. If you get any strange behavior doing what you did when got the crash (I'm not sure that will happen) please take a look at the Log window. The text must start with: "Unexpected folder error."

The file for replacement: wings_geom_win.beam


RE: [Fixed] Crash Wings3D when click or rename folder item. - tkbd - 12-01-2016

Well. I installed new wings_geom_win.beam, but crashed on Wings 3D launch.
I kept working on,it will have search out what condition that bug will occur on.

Error log is here
Code:
Dump written 2016-12-1_17-41
Version: 2.1.3
Window: "<Unknown Window Name>"
Reason: {function_clause,
            [{wings_wm,new,
                 [{object,geom},
                  {error,
                      {undef,
                          [{wings_wm,get_value,[system_font_wx],[]},
                           {wings_geom_win,init,1,
                               [{file,
                                    "f:/unixlike/src/wings/src/wings_geom_win.erl"},
                                {line,398}]},
                           {wx_object,init_it,6,
                               [{file,"wx_object.erl"},{line,355}]},
                           {proc_lib,init_p_do_apply,3,
                               [{file,"proc_lib.erl"},{line,247}]}]}},
                  {push,#Fun<wings_geom_win.10.47742952>}],
                 [{file,"wings_wm.erl"},{line,126}]},
             {wings_wm,toplevel,4,[{file,"wings_wm.erl"},{line,1325}]},
             {wings_geom_win,window,5,
                 [{file,"f:/unixlike/src/wings/src/wings_geom_win.erl"},
                  {line,55}]},
             {wings_frame,imp_layout,4,[{file,"wings_frame.erl"},{line,215}]},
             {wings_frame,imp_layout,4,[{file,"wings_frame.erl"},{line,204}]},
             {wings_frame,import_layout,2,
                 [{file,"wings_frame.erl"},{line,152}]},
             {wings,init,1,[{file,"wings.erl"},{line,142}]}]}



RE: [Fixed] Crash Wings3D when click or rename folder item. - micheus - 12-01-2016

Undecided
Well, this seems to be a different one. Dan had found another point in the code to fix - after I have did mine. Hopeful it's was causing this one you reported now.

Anyway, don't forget to check the Log window if you get the one I worked. That can help us to understand in which situation it happens.

Thanks for your help.


RE: [Fixed] Crash Wings3D when click or rename folder item. - tkbd - 12-01-2016

Sorry for the delay in writing.

This bug fix added in Wings3D v2.1.4,isn't it?
Perhaps,it have crashed because I install it into 2.1.3.
I download and checked launch of v 2.1.4 now. no crashing Smile
Thank you!


RE: [Fixed] Crash Wings3D when click or rename folder item. - micheus - 12-01-2016

Thanks for the feedback.


RE: [Fixed] Crash Wings3D when click or rename folder item. - tkbd - 12-01-2016

I remembered that I used emoji for make images.

At that time I could not readily enter emoji and clicked on the text area as well many times.
Drag & Drop forced an Emoji from outside the Wings window to text input area and it crashed.

(I don't know if this error log is useful...)
Code:
wings_wm:821: Dropped Event autosaver: redraw
Using GPU shaders.
Internal Error
Version: 2.1.4.1
Window: <0.79.0>
Reason: {badmatch,false}

Stack trace:
[{wings_geom_win,handle_event,2,[{file,"wings_geom_win.erl"},{line,504}]},
{wx_object,handle_msg,5,[{file,"wx_object.erl"},{line,450}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]

Already you fixed bug that about "Folder By that name already exist."
So the probability of occurrence of this problem is also decreasing.Wink
I think that this case can be almost ignored.
Such tricky usage is a rare case.

Thank you for various measures and fixes,again.


RE: [Fixed] Crash Wings3D when click or rename folder item. - micheus - 12-02-2016

(12-01-2016, 01:13 PM)tkbd Wrote: I remembered that I used emoji for make images.

At that time I could not readily enter emoji and clicked on the text area as well many times.
Drag & Drop forced an Emoji from outside the Wings window to text input area and it crashed.
Are you able to repeat the process and get the crash?
Sorry, but I couldn't understand what steps I need to reproduce it. Eventually, a video would be good. Smile