MosaicManufacturing / canvas-issues

Bug reports and feature requests for Canvas
https://canvas3d.io
8 stars 6 forks source link

Importing a bad STL will freeze the browser page and break the entire project #240

Open darylmm opened 2 years ago

darylmm commented 2 years ago

Describe the bug I imported a bad STL file, one that generated this error: "Provided transforms.translate '[null,null.null]' is not a valid translation list (400 param_invalid)". The page went unresponsive and Chrome presented a "Wait / Exit Page" dialog. And due to the auto-saving nature of Canvas, the project is now broken. As long as the bad geometry is still in the project, the page will go unresponsive on any attempt to open the project. This has happened on three occasions.

To Reproduce Steps to reproduce the behavior: Drag in a bad STL file to a new or existing project. In this case an STL that generates "(400 param_invalid)" I've included an ASCII STL file that should do the trick (with a .txt extension so GitHub will accept it) FF7_Meteor4xcfaasdasd.stl.txt

Expected behavior After the error message, I would expect the offending geometry to be removed from the project thus allowing me to continue working without issue.

Screenshots CanvasError

Operating System (please complete the following information):

Additional context My STL exports don't always work, and generate an STL with no geometry. No error is generated, so sometimes I accidentally drag a failed STL file into Canvas. I'm sure the projects aren't ruined, they're just inaccessible until the error is dealt with in a friendlier way.