glTF-Sample-Viewer icon indicating copy to clipboard operation
glTF-Sample-Viewer copied to clipboard

web app fails to load a simple glTF file

Open guillaumechereau opened this issue 4 years ago • 10 comments

Not sure if I made an error somewhere. But this simple attached glTF model of a cube created with blender doesn't seem to load. Other viewers I tried open it fine.

On the screen I can see this error:

Message: TypeError: i[0] is null - URL: http://localhost:8000/GltfSVApp.umd.js - Line: 21860 - Column: 57793 - Error object: {} untitled.zip

guillaumechereau avatar Aug 10 '22 10:08 guillaumechereau

WE will have a llok at it

UX3D-nopper avatar Aug 10 '22 10:08 UX3D-nopper

Unfortunately I'm unable to reproduce the issue. When going to https://github.khronos.org/glTF-Sample-Viewer-Release and dragging your glTF file into the viewport, it renders without an Error. Maybe you can provide more details? grafik

UX3D-kanzler avatar Aug 10 '22 10:08 UX3D-kanzler

This was running on Firefox on ubuntu 22.04. Unfortunately I don't have access to my computer at the moment so I cannot try again. What I found strange is that some other models I tried worked, only the ones exported from blender didn't.

I'll check again once I get my computer.

guillaumechereau avatar Aug 11 '22 07:08 guillaumechereau

I am back to my office so I could try again. I tried with both Firefox and Chromium, running on Ubuntu 22.04.

With Firefox, in the debug console I get this message:

Uncaught TypeError: i[0] is null
_onDrop simple-dropzone.module.js:1

With Chromium, I get this one:

Uncaught TypeError: Cannot read properties of null (reading 'name')
    at t._onDrop (simple-dropzone.module.js:1:57510)

guillaumechereau avatar Oct 26 '22 14:10 guillaumechereau

Can you please post which versions of node, npm, and Firefox/Chrome you are using?

Does the same error happen when you drop the file at https://github.khronos.org/glTF-Sample-Viewer-Release/?

ghost avatar Oct 27 '22 09:10 ghost

nodejs v18.7.0 npm 8.18.0 firefox 106.0.2

Yes it fails both when I run locally, or in the released online version.

guillaumechereau avatar Oct 28 '22 10:10 guillaumechereau

Unfortunatly, I still cannot reproduce the bug. Could you checkout fix/dropzone and verify if the bug is still present?

ghost avatar Oct 28 '22 14:10 ghost

Yes the bug is still present on the fix/dropzone branch.

guillaumechereau avatar Oct 31 '22 09:10 guillaumechereau

Finally, I had the chance to test your file on Ubuntu (22.10, Wayland) with Firefox 108.0 (Snap). But I'm unable to reproduce your issue here as well. Have you checked access rights of your specific file?

UX3D-kanzler avatar Dec 20 '22 15:12 UX3D-kanzler

Yes, I tried many things, short of reinstalling my OS. Feel free to close this issue, since it seems likely that the problem comes from my side.

guillaumechereau avatar Jan 02 '23 06:01 guillaumechereau