Wings 3D Development Forum
[fixed] This one is for Dan G ... it has his name in the 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: [fixed] This one is for Dan G ... it has his name in the dump. (/showthread.php?tid=1667)

Pages: 1 2


[fixed] This one is for Dan G ... it has his name in the dump. - ggaliens - 04-10-2016

This one is for Dan G ... it has his name in the dump.

It seems like in course of executing a hot key bound to a function ... a spurious bug (hit or miss) happens. This is the dump. The message to the user is "internal error - log written to ..." I only get this like 10% or 5% of times hot key is used. Very spurious bug.


Code:
Reason: {badarg,[{unicode,characters_to_binary,
                          [[[[69,120,101,99,117,116,105,110,103,32,116,104,
                              101,32,99,111,109,109,97,110,100,32,34,86,101,
                              114,116,101,120,124,67,111,110,110,101,99,116,
                              32,67,117,116,115,34,10,98,111,117,110,100,32,
                              116,111,32,116,104,101,32,104,111,116,107,101,
                              121,32,
                              {bindkey,vertex,120},
                              32,99,97,117,115,101,100,32,97,110,32,101,114,
                              114,111,114,46]],
                            0]],
                          []},
                 {wxStaticText,new,4,
                               [{file,"gen/wxStaticText.erl"},{line,105}]},
                 {wings_dialog,build,5,
                               [{file,"c:/Users/uabdgud/src/wings/src/wings_dialog.erl"},
                                {line,873}]},
                 {lists,foldl,3,[{file,"lists.erl"},{line,1262}]},
                 {wings_dialog,build_box,7,
                               [{file,"c:/Users/uabdgud/src/wings/src/wings_dialog.erl"},
                                {line,1266}]},
                 {wings_dialog,build,5,
                               [{file,"c:/Users/uabdgud/src/wings/src/wings_dialog.erl"},
                                {line,814}]},
                 {wings_dialog,build,4,
                               [{file,"c:/Users/uabdgud/src/wings/src/wings_dialog.erl"},
                                {line,766}]},
                 {wings_dialog,'-build_dialog/3-fun-0-',3,
                               [{file,"c:/Users/uabdgud/src/wings/src/wings_dialog.erl"},
                                {line,725}]}]}

Short stack trace:
[]

Long stack trace:
[{wx,batch,1,[{file,"wx.erl"},{line,182}]},
{wings_dialog,dialog_1,5,
               [{file,"c:/Users/uabdgud/src/wings/src/wings_dialog.erl"},
                {line,262}]},
{wings,execute_command,3,
        [{file,"c:/Users/uabdgud/src/wings/src/wings.erl"},{line,668}]},
{wings_develop,time_command,2,
                [{file,"c:/Users/uabdgud/src/wings/src/wings_develop.erl"},
                 {line,81}]},
{wings,raw_command,4,
        [{file,"c:/Users/uabdgud/src/wings/src/wings.erl"},{line,638}]},
{wings_wm,handle_event,3,
           [{file,"c:/Users/uabdgud/src/wings/src/wings_wm.erl"},{line,932}]},
{wings_wm,send_event,2,
           [{file,"c:/Users/uabdgud/src/wings/src/wings_wm.erl"},{line,903}]},
{wings_wm,do_dispatch,2,
           [{file,"c:/Users/uabdgud/src/wings/src/wings_wm.erl"},{line,768}]}]



RE: This one is for Dan G ... it has his name in the dump. - micheus - 04-11-2016

I'm sure you are know how to use the Erlang console for that, but anyway here is what that list of chars means:
[Image: hot-key-error_zps2490d09a.png]


RE: This one is for Dan G ... it has his name in the dump. - ggaliens - 04-11-2016

Yep. I was aware of that. Did that.

It looks like you cheated and put in extra quotes. Why would you do that ? The missing quotes in my mind may very well be "A BUG".


RE: This one is for Dan G ... it has his name in the dump. - micheus - 04-11-2016

(04-11-2016, 03:21 PM)ggaliens Wrote: It looks like you cheated and put in extra quotes. Why would you do that ?
Teach me an other way to get a readable text for that list and I start using it from now on.

I just needed to confirm it's a hotkey message. Nothing else. I hope dgud can check it.


RE: This one is for Dan G ... it has his name in the dump. - ggaliens - 04-11-2016

Right ... but if the error is from there ... maybe part of the error is the no quotes in the first place ? I just don't know. I think this is a problem related ... but not the same as what I have had early yesterday. And I did mention ... that somehow ... I manged to forge ahead and get past my hotkeys problem.

I wish I could better "contain" a bug. Capture it as real and actionable. Sometimes you have to swim around a bug like a shark and just take a nibble and then you don't get another bite.


RE: This one is for Dan G ... it has his name in the dump. - micheus - 04-11-2016

(04-11-2016, 04:15 PM)ggaliens Wrote: Right ... but if the error is from there ... maybe part of the error is the no quotes in the first place ?
No.

I can take a look for the problem only if I have the same preferences file as you. But, if you want to look around, start checking that the text is formatted by the wings_hotkey:handle_error/2, that is why
Quote:%%%
%%% Error handling.
%%%
handle_error(Ev, Cmd) ->
Key = bindkey(Ev, Cmd),
KeyName = format_hotkey(Key, pretty),
CmdStr = wings_utilConfusedtringify(Cmd),
Msg1 = "Executing the command \"" ++ CmdStr ++ "\"\nbound to the hotkey " ++
KeyName ++ " caused an error.",

...



RE: This one is for Dan G ... it has his name in the dump. - ggaliens - 04-11-2016

So ... probably there are two errors. One with the original command which was hotkeyed ... and another creating a proper debug or error trace after the hot keyed command fails.

Yes ... maybe the bug is in Stringify.


RE: This one is for Dan G ... it has his name in the dump. - micheus - 04-11-2016

(04-11-2016, 06:30 PM)ggaliens Wrote: Yes ... maybe the bug is in Stringify.
I couldn't affirm that. In that case the crash should occurs in the previous assignment line: CmdStr = wings_utilConfusedtringify(Cmd),
not in the dialog building.

Anyway, without be able to reproduce, it's just speculation.

If you will try to fix this bug, please let know. It uses to be my task do that.
All this talking, speculation, are not helping.

We probably will need someone else to experience the problem and finally share his preference file.


RE: This one is for Dan G ... it has his name in the dump. - micheus - 04-11-2016

Nevermind. I found it.


RE: This one is for Dan G ... it has his name in the dump. - ggaliens - 04-11-2016

I was trying to fix it. Please tell me about it. I would like to retest stuff with the fix applied when you get time to share.