Netgen-mesher error when export mesh

Hi, I have netgen-mesher (dnf install netgen-mesher).
When import my stl file and create mesh and export to new stl or new mesh -> I have error:

/usr/include/c++/10/bits/shared_ptr_base.h:1007: std::__shared_ptr_access<_Tp, _Lp, <anonymous>, <anonymous> >::element_type& std::__shared_ptr_access<_Tp, _Lp, <anonymous>, <anonymous> >::operator*() const [with _Tp = netgen::CSGeometry; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic; bool <anonymous> = false; bool <anonymous> = false; std::__shared_ptr_access<_Tp, _Lp, <anonymous>, <anonymous> >::element_type = netgen::CSGeometry]: Assertion '_M_get() != nullptr' failed.
Caught SIGABRT: usually caused by abort() or assert()

Does anyone know how to fix this problem?

1 Like

Hello @userfedory, welcome to Fedora! Please take a minute to go through the introductory posts in the #start-here category if you’ve not had a chance to do so yet.

We’ll need more information to be able to diagnose the issue. Your error message is a pretty generic C++ error. Could you tell us:

  • the version of netgen-mesher
  • a minimal file that causes the bug?

It may be quicker to file a bug so that the Fedora maintainer for netgen-mesher can take a look. They’re likely to know more about the tool. You can file a bug using the FAS account you use for this site. More information here:

1 Like

Fedora 32, full update
install netgen-mesher
start netgen-mesher
open menu and ‘load geometry’ -> simply stl file from blender
next click ‘Generate Mesh’
next menu->export->stl or mesh and … error.

simple stl file:

    solid Exported from Blender-2.83.5
    facet normal 0.000000 0.000000 1.000000
    outer loop
    vertex -1000.000000 1000.000000 1000.000000
    vertex 1000.000000 -1000.000000 1000.000000
    vertex 1000.000000 1000.000000 1000.000000
    endloop
    endfacet
    facet normal 0.000000 -1.000000 0.000000
    outer loop
    vertex 1000.000000 -1000.000000 1000.000000
    vertex -1000.000000 -1000.000000 -1000.000000
    vertex 1000.000000 -1000.000000 -1000.000000
    endloop
    endfacet
    facet normal -1.000000 0.000000 0.000000
    outer loop
    vertex -1000.000000 -1000.000000 1000.000000
    vertex -1000.000000 1000.000000 -1000.000000
    vertex -1000.000000 -1000.000000 -1000.000000
    endloop
    endfacet
    facet normal 0.000000 0.000000 -1.000000
    outer loop
    vertex 1000.000000 1000.000000 -1000.000000
    vertex -1000.000000 -1000.000000 -1000.000000
    vertex -1000.000000 1000.000000 -1000.000000
    endloop
    endfacet
    facet normal 1.000000 0.000000 0.000000
    outer loop
    vertex 1000.000000 1000.000000 1000.000000
    vertex 1000.000000 -1000.000000 -1000.000000
    vertex 1000.000000 1000.000000 -1000.000000
    endloop
    endfacet
    facet normal 0.000000 1.000000 0.000000
    outer loop
    vertex -1000.000000 1000.000000 1000.000000
    vertex 1000.000000 1000.000000 -1000.000000
    vertex -1000.000000 1000.000000 -1000.000000
    endloop
    endfacet
    facet normal 0.000000 0.000000 1.000000
    outer loop
    vertex -1000.000000 1000.000000 1000.000000
    vertex -1000.000000 -1000.000000 1000.000000
    vertex 1000.000000 -1000.000000 1000.000000
    endloop
    endfacet
    facet normal 0.000000 -1.000000 0.000000
    outer loop
    vertex 1000.000000 -1000.000000 1000.000000
    vertex -1000.000000 -1000.000000 1000.000000
    vertex -1000.000000 -1000.000000 -1000.000000
    endloop
    endfacet
    facet normal -1.000000 0.000000 0.000000
    outer loop
    vertex -1000.000000 -1000.000000 1000.000000
    vertex -1000.000000 1000.000000 1000.000000
    vertex -1000.000000 1000.000000 -1000.000000
    endloop
    endfacet
    facet normal 0.000000 0.000000 -1.000000
    outer loop
    vertex 1000.000000 1000.000000 -1000.000000
    vertex 1000.000000 -1000.000000 -1000.000000
    vertex -1000.000000 -1000.000000 -1000.000000
    endloop
    endfacet
    facet normal 1.000000 0.000000 0.000000
    outer loop
    vertex 1000.000000 1000.000000 1000.000000
    vertex 1000.000000 -1000.000000 1000.000000
    vertex 1000.000000 -1000.000000 -1000.000000
    endloop
    endfacet
    facet normal 0.000000 1.000000 0.000000
    outer loop
    vertex -1000.000000 1000.000000 1000.000000
    vertex 1000.000000 1000.000000 1000.000000
    vertex 1000.000000 1000.000000 -1000.000000
    endloop
    endfacet
    endsolid Exported from Blender-2.83.5
1 Like

Trying to reproduce this on F33 (pre-beta)… I can’t even start netgen-mesher.

$ netgen-mesher

terminate called after throwing an instance of 'std::invalid_argument'

  what():  stoi

Aborted (core dumped)
2 Likes

Same here. There are no bugs filed for netgen-mesher, though, so best to file these so that the maintainer can look into them

@userfedory File a new bug in the “netgen-mesher” component of the “Fedora” product

2 Likes