Wings 3D Development Forum
File Merge and Saved View - crash - 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: File Merge and Saved View - crash (/showthread.php?tid=860)



File Merge and Saved View - crash - VladD - 08-24-2014

Hi,

I noticed that a crash happens each time that I try to merge a wing file when the current file/scene has saved views. as an experiment, when I tried to merge the very same files the other way (ie: the file with saved view "imported" via the merge command into a file without saved views) and it didn't crash.

here's the crash dump
Quote:Dump written 2014-8-24_19-57
Version: 1.5.3
Window: geom
Reason: badarg

Short stack trace:
[]

Long stack trace:
[{erlang,list_to_tuple,
[[{{view,
{27.0245103656042,11.771498090413044,16.57994622104512},
66.9941271252342,-79.20000000000017,-16.30000000000006,
-11.288186937960122,-16.17273043039406,none,45.0,0.01,1.0e4},
"From +X towards +X distance 66.99"},
{{view,
{5.936306279063364,-0.42992882342334937,15.238131448241806},
78.44460820207873,0.0,90.0,0.0,0.0,y,45.0,0.01,1.0e4},
"From +Y along +Y distance 78.44"}|
{{{view,
{-2.6899647889593714,-2.1782627493388627,2.2000000010955483},
85.32829048783472,-153.90000000000003,30.8,-0.20494424671037725,
0.4676807556092346,none,45.0,0.01,1.0e4},
"current_view"},
[]}]],
[]},
{wings_view,import_views,2,[{file,"wings_view.erl"},{line,1428}]},
{wings_ff_wings,import_props,2,[{file,"wings_ff_wings.erl"},{line,208}]},
{wings_ff_wings,import_vsn2,5,[{file,"wings_ff_wings.erl"},{line,72}]},
{wings_ff_wings,import,2,[{file,"wings_ff_wings.erl"},{line,28}]},
{wings_file,'-merge/2-fun-0-',3,[{file,"wings_file.erl"},{line,378}]},
{wings_develop,time_command,2,[{file,"wings_develop.erl"},{line,81}]},
{wings,raw_command,4,[{file,"wings.erl"},{line,589}]}]
Which kinda seems to confirm that there's an issue with view imports, from what pitiful erlang knowledge that I have at least.

Yep, when I delete all saved views, then I can import/merge without crashing.


RE: File Merge and Saved View - crash - micheus - 08-24-2014

I think I noticed that these days when I was merging the same project file. I thought it was caused by views with the same name, so I didn't care about that at this moment and I took note of it to check further.
I'll check it better. Thanks for report it VladD


RE: File Merge and Saved View - crash - micheus - 09-02-2014

Here is the file wings_view.beam for replacement.

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


RE: File Merge and Saved View - crash - VladD - 09-03-2014

many thanks, Micheus! Smile
I'm gonna install that right away!