Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
Share Thread:
Reddit Facebook Twitter
[fixed] Crashed when import a glb file.
01-05-2019, 06:25 AM (This post was last modified: 01-06-2019 04:14 PM by micheus.)
Post: #1
[fixed] Crashed when import a glb file.
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
Reply
01-06-2019, 04:13 PM (This post was last modified: 01-07-2019 01:44 PM by micheus.)
Post: #2
RE: Crashed when import a glb file.
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.

@MicheusVieira MicheusVieira Micheuss micheus4wings3d
* Wings3D Team stands for: Björn and Dan
Reply
01-07-2019, 10:20 AM (This post was last modified: 01-07-2019 10:22 AM by tkbd.)
Post: #3
RE: [fixed] Crashed when import a glb file.
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.)
Reply
01-07-2019, 11:39 AM (This post was last modified: 01-07-2019 11:42 AM by tkbd.)
Post: #4
RE: [fixed] Crashed when import a glb file.
Umm... newer wpc_gltf.beam is broken.
I replaced it, but glTF item was not displayed in the import / export menu.Undecided
(both of Wings3D v2.2.1 and v2.1.7)
Should I send the sample file first?
Reply
01-07-2019, 01:49 PM
Post: #5
RE: [fixed] Crashed when import a glb file.
Sorry about that. The file was updated and tested out of my dev environment this time. Smile

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.

@MicheusVieira MicheusVieira Micheuss micheus4wings3d
* Wings3D Team stands for: Björn and Dan
Reply


Forum Jump:


User(s) browsing this thread: 1 Guest(s)