[fixed] Crashed when import a glb file. - tkbd - 01-05-2019
This time,Progress bar indicated almost 99% for importing process.
And Texture and Material items were already set in Outliner window too.
But it seems that import was interupted before mesh display.
Test Environment :
Wings3D v2.2.1(Windows10),and I intalled an newest gltf-patch to it.
I got a crash log a following.
Code: Dump written 2019-1-4_21-17
Version: 2.2.1
OS: Windows 8 (build 9200), 64-bit edition
GPU: Intel | Intel(R) HD Graphics 400
Window: geom
Reason: {function_clause,
[{wings_gl,set_uloc,
[1,{1,1,1,1}],
[{file,"c:/Users/familjen/src/wings/src/wings_gl.erl"},
{line,308}]},
{wings_shaders,set_uloc,3,
[{file,"c:/Users/familjen/src/wings/src/wings_shaders.erl"},
{line,91}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{wings_material,apply_material_2,3,
[{file,"c:/Users/familjen/src/wings/src/wings_material.erl"},
{line,453}]},
{wings_draw,'-do_draw_mat_faces/4-fun-0-',4,
[{file,"c:/Users/familjen/src/wings/src/wings_draw.erl"},
{line,929}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{wings_draw,'-draw_mat_faces/4-fun-0-',6,
[{file,"c:/Users/familjen/src/wings/src/wings_draw.erl"},
{line,915}]},
{wings_dl,call,2,
[{file,"c:/Users/familjen/src/wings/src/wings_dl.erl"},
{line,178}]},
{wings_render,render_work_objects_1,3,
[{file,"c:/Users/familjen/src/wings/src/wings_render.erl"},
{line,215}]},
{wings_render,render_work_objects,4,
[{file,"c:/Users/familjen/src/wings/src/wings_render.erl"},
{line,198}]},
{wings_render,render_objects,4,
[{file,"c:/Users/familjen/src/wings/src/wings_render.erl"},
{line,162}]},
{wings_render,render,1,
[{file,"c:/Users/familjen/src/wings/src/wings_render.erl"},
{line,55}]},
{wings,'-redraw/2-fun-0-',2,
[{file,"c:/Users/familjen/src/wings/src/wings.erl"},
{line,269}]},
{wx,batch,1,[{file,"wx.erl"},{line,184}]},
{wings,handle_event_3,2,
[{file,"c:/Users/familjen/src/wings/src/wings.erl"},
{line,424}]},
{wings_wm,handle_event,3,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},
{line,981}]},
{wings_wm,send_event,2,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},
{line,948}]},
{wings_wm,do_dispatch,2,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},
{line,849}]},
{wings_wm,redraw_win,1,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},
{line,890}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1338}]},
{wings_wm,redraw_all,0,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},
{line,865}]},
{wings,init_part2,2,
[{file,"c:/Users/familjen/src/wings/src/wings.erl"},
{line,106}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}
Stack trace:
[{wx,batch,1,[{file,"wx.erl"},{line,186}]},
{wings,handle_event_3,2,
[{file,"c:/Users/familjen/src/wings/src/wings.erl"},{line,424}]},
{wings_wm,handle_event,3,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},{line,981}]},
{wings_wm,send_event,2,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},{line,948}]},
{wings_wm,do_dispatch,2,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},{line,849}]},
{wings_wm,redraw_win,1,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},{line,890}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1338}]},
{wings_wm,redraw_all,0,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},{line,865}]},
{wings,init_part2,2,
[{file,"c:/Users/familjen/src/wings/src/wings.erl"},{line,106}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]
Best Regards
RE: Crashed when import a glb file. - micheus - 01-06-2019
Thanks tkbd. I updated the wpc_gltf.beam file.
I believe I fixed the problem, but can you please check it it's OK now?
Otherwise, please send me the .gbl file you are using for test.
RE: [fixed] Crashed when import a glb file. - tkbd - 01-07-2019
micheus Wrote:Thanks tkbd. I updated the wpc_gltf.beam file.
I believe I fixed the problem, but can you please check it it's OK now?
Otherwise, please send me the .gbl file you are using for test. OK,I'm going to test updated file and send you details and sample by e-mail.
(In addition,That file size is 10MB over.)
RE: [fixed] Crashed when import a glb file. - tkbd - 01-07-2019
Umm... newer wpc_gltf.beam is broken.
I replaced it, but glTF item was not displayed in the import / export menu.
(both of Wings3D v2.2.1 and v2.1.7)
Should I send the sample file first?
RE: [fixed] Crashed when import a glb file. - micheus - 01-07-2019
Sorry about that. The file was updated and tested out of my dev environment this time.
This was one of those cases in which to use the newest version of Erlang compiler can bring us a problem with the updates. I used the older one now.
|