Wings 3D Development Forum
Hiding axis crashes Wings3D - 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: Hiding axis crashes Wings3D (/showthread.php?tid=1011)



Hiding axis crashes Wings3D - micheus - 12-20-2014

Can someone else check if disabling/hiding axis is causing the crash?
If so, please report the video card you are using.
Do the test without any project opened (mainly without save it first Wink )

I started notice that recently. I'm not sure if the recent drive update was the cause. I'm using a AMD Radeon R9

The dump file should look like this:
Quote:Dump written 2014-12-20_9-42
Version: 1.5.2
Window: geom
Reason: {badmatch,[0,23,1061,595,0,0,0,0,0,0,0,0,0,0,0,0]}

Short stack trace:
[]

Long stack trace:
[{wings_render,dummy_axis_letter,0,[{file,"wings_render.erl"},{line,464}]},
{wings_render,render,1,[{file,"wings_render.erl"},{line,55}]},
{wings,'-redraw/2-fun-0-',2,[{file,"wings.erl"},{line,233}]},
{wings,handle_event_3,2,[{file,"wings.erl"},{line,396}]},
{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}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1323}]}]

That badmatch says that for some strange reason we are getting a list of values greater than four items - as the OpenGL function glGet(GL_VIEWPORT) should return to the code.


RE: Hiding axis crashes Wings3D - Hank - 12-20-2014

I requested this issue here: http://www.wings3d.com/forum/showthread.php?tid=983&page=4
and thought it's only my problem.
The error appears only when in preferences/misc 'Wings crashes if axes are turned off' is ticked.
Tested with Intel HD and Nvidia GTX 620 TI.
My error log:

Dump written 2014-12-20_17-15
Version: 1.5.3
Window: geom
Reason: {badmatch,[2,-11,1664,939,0,0,0,0,0,0,0,0,0,0,0,0]}

Short stack trace:
[]

Long stack trace:
[{wings_render,dummy_axis_letter,0,[{file,"wings_render.erl"},{line,466}]},
{wings_render,render,1,[{file,"wings_render.erl"},{line,55}]},
{wings,'-redraw/2-fun-0-',2,[{file,"wings.erl"},{line,243}]},
{wings,handle_event_3,2,[{file,"wings.erl"},{line,413}]},
{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}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1336}]}]



RE: Hiding axis crashes Wings3D - micheus - 12-20-2014

Thanks Hank.
I remembered about that. Indeed it has one or two more reports about this.

I would like to try check if it is related to any video card brand, but there are exceptions - that is the main problem. In another PC with on-board IntelĀ® HD Graphics (Core i5) I don't have this problem and as I told before, I just noticed this problem in my own PC recently.

But it's good I got it. Now I can try apply a fix for that. Wink


RE: Hiding axis crashes Wings3D - micheus - 12-20-2014

(12-20-2014, 04:22 PM)Hank Wrote: I requested this issue here: http://www.wings3d.com/forum/showthread.php?tid=983&page=4
and thought it's only my problem.
Hank, in order to avoid this crash got to the Preferences dialog -> Misc and uncheck "Wings crashes if axes are turned off" in the Workarounds group box.

This will avoid the code with the problem be called and then you don't get the crash. When I have a fix for that I'll post in the the proper session.
Thanks


RE: Hiding axis crashes Wings3D - micheus - 12-20-2014

That is the file for replacement for 1.5.3 version: wings_render.beam

It should replace the file into ebin folder (like this C:\Program Files\wings3d_1.5.3\lib\wings-1.5.3\ebin)


RE: Hiding axis crashes Wings3D - ggaliens - 12-20-2014

Interesting.

I think I was trying to hack myself and mlab free from a bug like this by messing with wings_render.beam.

Hank complained. Rightly so I think. I reverted. I'll live with whatever was happing to me.


RE: Hiding axis crashes Wings3D - Hank - 12-22-2014

(12-20-2014, 08:56 PM)micheus Wrote: That is the file for replacement for 1.5.3 version: wings_render.beam

It should replace the file into ebin folder (like this C:\Program Files\wings3d_1.5.3\lib\wings-1.5.3\ebin)

Working fine. Thanks