davidson16807 / tectonics.js

3d plate tectonics in your web browser
http://davidson16807.github.io/tectonics.js/
Creative Commons Attribution 4.0 International
200 stars 28 forks source link

Uncaught TypeError #31

Open redferret opened 6 years ago

redferret commented 6 years ago

Uncaught TypeError: Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'. at loadFile ((index):505) at HTMLBodyElement. ((index):582) at HTMLBodyElement.dispatch (jquery-1.10.2.min.js:5) at HTMLBodyElement.v.handle (jquery-1.10.2.min.js:5)

Reproducing this takes time, Usually when I'm poking at it about 4.0 - 4.4 billion year mark it throws this error and the simulation stops working. I'm going to keep exploring the issue and will continue adding to this issue as I make more notes to how I interact with the UI. Usually that's when the error occurs, I switch to Elevation display and it breaks, it happened twice now when switching from a display to Elevation.

davidson16807 commented 5 years ago

You know, looking at this error I see it occurs in the loadFIle() function. That only ever gets fired when the user tries to upload something, either by using the "Load" button or by dragging/dropping something onto the window. Could something have been dragged onto the window while you were trying to rotate the planet?

I would like to see this issue close out. I'm thinking we can add some sort of check to see whether the dragged content is a valid .sim file. Should be a sure fire way to prevent this from happening again, regardless what caused it.