Wings 3D Development Forum
Internal Error loading an STL - 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: Internal Error loading an STL (/showthread.php?tid=510)



Internal Error loading an STL - Supagoat - 12-11-2013

I tried to load (using import->stl) the toothpaste squeezer stl from here: http://www.thingiverse.com/thing:83871 and I got an internal error and the following wings.dump file:

Dump written 2013-12-10_22-18
Version: 1.5.1
Window: geom
Reason: function_clause

Short stack trace:
[]

Long stack trace:
[{wings,command_1,
[{'EXIT',
{{badmatch,<<"id\n">>},
[{wpc_stl,read_raw_triangles,1,
[{file,
"c:/Users/uabdgud/src/wings/PLUGIN~1/IMPORT~1/wpc_stl.erl"},
{line,152}]},
{wpc_stl,read_raw_triangles,1,
[{file,
"c:/Users/uabdgud/src/wings/PLUGIN~1/IMPORT~1/wpc_stl.erl"},
{line,153}]},
{wpc_stl,read_stl,1,
[{file,
"c:/Users/uabdgud/src/wings/PLUGIN~1/IMPORT~1/wpc_stl.erl"},
{line,135}]},
{wpc_stl,import,1,
[{file,
"c:/Users/uabdgud/src/wings/PLUGIN~1/IMPORT~1/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}]},
{wp8_file,file_dialog_event,1,
[{file,
"c:/Users/uabdgud/src/wings/PLUGIN~1/WIN32_~1/wp8_file.erl"},
{line,78}]}]}},
{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,<<"id\n">>},
[{wpc_stl,read_raw_triangles,1,
[{file,
"c:/Users/uabdgud/src/wings/PLUGIN~1/IMPORT~1/wpc_stl.erl"},
{line,152}]},
{wpc_stl,read_raw_triangles,1,
[{file,
"c:/Users/uabdgud/src/wings/PLUGIN~1/IMPORT~1/wpc_stl.erl"},
{line,153}]},
{wpc_stl,read_stl,1,
[{file,
"c:/Users/uabdgud/src/wings/PLUGIN~1/IMPORT~1/wpc_stl.erl"},
{line,135}]},
{wpc_stl,import,1,
[{file,
"c:/Users/uabdgud/src/wings/PLUGIN~1/IMPORT~1/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}]},
{wp8_file,file_dialog_event,1,
[{file,
"c:/Users/uabdgud/src/wings/PLUGIN~1/WIN32_~1/wp8_file.erl"},
{line,78}]}]}},
{[],[]},
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}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1323}]},
{wings_wm,'-redraw_all/0-fun-1-',1,[{file,"wings_wm.erl"},{line,713}]}]


RE: Internal Error loading an STL - Stem - 12-11-2013

Wings will import .stl binary files, the "Toothpaste squeezer".stl is in text format.


RE: Internal Error loading an STL - cuongtl - 12-11-2013

thanks for your advice, i have get the same erro