elmerfem icon indicating copy to clipboard operation
elmerfem copied to clipboard

Crash loading STL file

Open Timmmm opened this issue 1 year ago • 4 comments

Using the Windows binary download from Sourceforge, compiled on Feb 7 2024, I opened this STL file:

bar.zip

Elmer then crashes.

By the way the UX of loading meshes is not great:

  1. There's File->Open and File->Load Mesh. Apparently to load a mesh you use File->Open, not File->Load Mesh?? And for some reason File->Open opens a file and File->Load Mesh opens a directory... Very confusing.
  2. Neither option lists the file formats that it supports. Fair enough for File->Load Mesh, but File->Open definitely should!
  3. I initially tried to load bar.STL (Solidworks' default extension), and very luckily I noticed the message in the status bar saying "make sure the file extension is lowercase", but I very easily could have missed that, and why do I even need to do that anyway? Just lowercase it yourself if you need to! At the very least you can detect if it isn't lowercase and throw up a modal error.

Timmmm avatar Sep 09 '24 20:09 Timmmm

Possibly the same as #182 though that says it has been fixed...

Timmmm avatar Sep 09 '24 20:09 Timmmm

Thank you for your report.

Do you still see this issue when you test with a nightly build that you could download from https://www.nic.funet.fi/pub/sci/physics/elmer/bin/windows/ ?

mmuetzel avatar Sep 10 '24 07:09 mmuetzel

Yep.

Timmmm avatar Sep 10 '24 19:09 Timmmm

PR #618 addresses most of the above issues. ToLower was added, so the file suffix can be either upper or lower case.

The binary stl file from Issue #566, bar.stl, now loads and is read, such as reading the proper number of facets, but then ElmerGui crashes during the meshing operation. The binary stl file from Issue #182, 02-cores.stl, loads and is read, and then is successfully meshed and displayed.

In other words, both binary files now load okay, but nglib has a problem meshing bar.stl and has no problem meshing 02-core.stl.

richb2k avatar Jan 08 '25 16:01 richb2k