Wings 3D Development Forum
Crash on .stl import from VeriCAD - 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: Crash on .stl import from VeriCAD (/showthread.php?tid=461)



Crash on .stl import from VeriCAD - rickyspero - 11-07-2013

Hi folks--

I'm new to Wings. Great to see this project supporting the Mac.

I'm trying to import an .stl created by VeriCAD. I've had success loading these types of images into the online services like Shapeways, and into 3D printer software. But Wings fails on import and produces a crash.dump (below). Any help would be appreciated! Best,

--R

Dump written 2013-11-7_9-34
Version: 1.5.1
Window: geom
Reason: function_clause

Short stack trace:
[]

Long stack trace:
[{wings,command_1,
[{'EXIT',
{{badmatch,<<"\nendsolid\r\n">>},
[{wpc_stl,read_raw_triangles,1,[{file,"wpc_stl.erl"},{line,152}]},
{wpc_stl,read_raw_triangles,1,[{file,"wpc_stl.erl"},{line,153}]},
{wpc_stl,read_stl,1,[{file,"wpc_stl.erl"},{line,135}]},
{wpc_stl,import,1,[{file,"wpc_stl.erl"},{line,126}]},
{wpa,do_import,3,[{file,"wpa.erl"},{line,121}]},
{wpa,'-import/3-fun-0-',3,[{file,"wpa.erl"},{line,110}]},
{wings_file,'-import_filename_1/2-fun-0-',3,
[{file,"wings_file.erl"},{line,61}]},
{wings_develop,time_command,2,
[{file,"wings_develop.erl"},{line,81}]}]}},
{st,{0,nil},
face,true,[],
{0,nil},
none,
{1,
{default,
[{maps,[]},
{opengl,
[{ambient,
{0.7898538076923077,0.8133333333333334,
0.6940444444444445,1.0}},
{diffuse,
{0.7898538076923077,0.8133333333333334,
0.6940444444444445,1.0}},
{emission,{0.0,0.0,0.0,1.0}},
{shininess,0.0},
{specular,{0.0,0.0,0.0,1.0}},
{vertex_colors,set}]}],
nil,nil}},
[],undefined,true,1,none,none,
{0,{}},
{1,{wings_shape,{no_folder,[]},nil,nil}},
ignore,none,none,
{ignore,ignore},
{'EXIT',
{{badmatch,<<"\nendsolid\r\n">>},
[{wpc_stl,read_raw_triangles,1,
[{file,"wpc_stl.erl"},{line,152}]},
{wpc_stl,read_raw_triangles,1,
[{file,"wpc_stl.erl"},{line,153}]},
{wpc_stl,read_stl,1,[{file,"wpc_stl.erl"},{line,135}]},
{wpc_stl,import,1,[{file,"wpc_stl.erl"},{line,126}]},
{wpa,do_import,3,[{file,"wpa.erl"},{line,121}]},
{wpa,'-import/3-fun-0-',3,[{file,"wpa.erl"},{line,110}]},
{wings_file,'-import_filename_1/2-fun-0-',3,
[{file,"wings_file.erl"},{line,61}]},
{wings_develop,time_command,2,
[{file,"wings_develop.erl"},{line,81}]}]}},
{[],[]},
true,[]}],
[{file,"wings.erl"},{line,680}]},
{wings_develop,time_command,2,[{file,"wings_develop.erl"},{line,81}]},
{wings,raw_command,4,[{file,"wings.erl"},{line,566}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,825}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,796}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,698}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,612}]},
{wings,init,1,[{file,"wings.erl"},{line,148}]}]


RE: Crash on .stl import from VeriCAD - micheus - 11-07-2013

It seems the file exported has a header greater than that is expected, since it found a text instead of numbers for the triangles as the call to read_raw_triangles suggest us.

Is there some option when you are exporting that could ensure compatibility? If so, maybe you could try.

Anyway, is it possible to make available an small/simple file with this issue in order to try work on a compatibility/workaround for it in the future?


RE: Crash on .stl import from VeriCAD - rickyspero - 11-07-2013

(11-07-2013, 07:04 PM)micheus Wrote: Anyway, is it possible to make available an small/simple file with this issue in order to try work on a compatibility/workaround for it in the future?

Sure -- I tried to attach the .stl (it's only 250Kb) but the forum rejected it. Where's the best place to send it?

Thanks!
--R


RE: Crash on .stl import from VeriCAD - micheus - 11-07-2013

If you have a google account you can use your Drive they provide.
If you have a microsoft account you can use your SkyDrive they provide.
of you can try dropbox (2GB for free) Smile