~MeshObjectSelectionPlugin() crash
This script crashes on exit (run without -b):
core.loadObject("some.obj");
core.exitApplication();
I assume the object doesn't matter, attaching just in case.
Backtrace:
Trying a backtrace to show what happened last:
Stack frames: 10
0: OpenFlipper :: backtrace() (+0x26) [0x558fe6cc53f6]
1: OpenFlipper :: segfaultHandling(int) (+0x16a) [0x558fe6cc5e8a]
2: /lib/x86_64-linux-gnu/libc.so.6 :: (+0x33040) [0x7f008d560040]
3: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 :: QWidget::~QWidget() (+0x47f) [0x7f008f5e9cef]
4: /home/mxn/src/OpenFlipper-Free/build-reldebug/Build/lib/plugins/libPlugin-SelectionMeshObject.so :: MeshObjectSelectionPlugin::~MeshObjectSelectionPlugin() (+0x1fd) [0x7effa051572d]
5: /home/mxn/src/OpenFlipper-Free/build-reldebug/Build/lib/plugins/libPlugin-SelectionMeshObject.so :: MeshObjectSelectionPlugin::~MeshObjectSelectionPlugin() (+0x9) [0x7effa05159f9]
6: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 :: (+0x273839) [0x7f008ecb8839]
7: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 :: (+0x274fcf) [0x7f008ecb9fcf]
8: /lib/x86_64-linux-gnu/libc.so.6 :: __cxa_finalize (+0x8f) [0x7f008d562c8f]
9: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 :: (+0x7ed43) [0x7f008eac3d43]
Backtrace completed, trying to abort now ...
Trying to get additional information (This might fail if the memory is corrupted).
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
[1] 5551 abort (core dumped) OpenFlipper -c crash.ofs
Not entirely sure what the problem is - especially as it does not occur when manually exiting OF instead of using core.exitApplication.