Exporting object instance data to JSON in Memory Viewer causes segfault
Steps to reproduce:
- Start object memory (and ArMemCore)
- Open Memory Viewer
- Click an entity in Object/Instance/
- Right click on data on the right
- Choose "Copy data to clipboard as JSON"
- Gui segfaults
Log:
[27599][11:17:44.650][ArmarXGui-1642155458452][PluginCache::loadFromCache(...)]: Loading widget ArMem.MemoryViewer from cache
[27599][11:17:44.650][ArmarXGui-1642155458452][PluginCache::loadPlugin(...)]: Loading plugin /home/rkartmann/code/armarx/RobotAPI/build/lib/libArMemMemoryViewerGuiPlugin.so.0.10.0
[27599][11:17:45.446][ArmarXGui-1642155458452][ArmarXGUI]: Waiting for widget initialization ArMem.MemoryViewer
[27599][11:17:45.446][ArmarXGui-1642155458452][ArmarXGUI]: Widget initialization done for ArMem.MemoryViewer
[27836][11:17:45.447][ArmarXGui-1642155458452][ObjectScheduler]: All dependencies of 'ArMem.MemoryViewer-BA0F74BF-4371-45A4-81EB-2F3F4826EBCF' resolved!
Segmentation fault - Backtrace:
/home/rkartmann/code/armarx/ArmarXCore/build/lib/libArmarXCore.so.0(_ZN6armarx11Application12HandlerFaultEi+0x4a9)[0x7f2d35106679]
/lib/x86_64-linux-gnu/libc.so.6(+0x3f040)[0x7f2d33770040]
/home/rkartmann/code/armarx/RobotAPI/build/lib/libaron.so.0(_ZNK6armarx4aron4Path17getRootIdentifierB5cxx11Ev+0x12)[0x7f2cb75fa062]
/home/rkartmann/code/armarx/RobotAPI/build/lib/libaron.so.0(_ZN6armarx4aron4PathC1ERKS1_+0x25)[0x7f2cb75fa4c5]
/home/rkartmann/code/armarx/RobotAPI/build/lib/libarmem_gui.so.0(_ZN6armarx5armem3gui8instance22TreeTypedJSONConverter18visitObjectOnEnterERKSt10shared_ptrINS_4aron4data7VariantEERKS4_INS5_4type7VariantEE+0x54)[0x7f2cc12f8ec4]
/home/rkartmann/code/armarx/RobotAPI/build/lib/libarmem_gui.so.0(_ZN6armarx4aron4data14visitRecursiveINS_5armem3gui8instance22TreeTypedJSONConverterEEEvRT_RNS7_9DataInputERNS7_9TypeInputE+0xa4f)[0x7f2cc12d57af]
/home/rkartmann/code/armarx/RobotAPI/build/lib/libarmem_gui.so.0(_ZN6armarx4aron4data14visitRecursiveINS_5armem3gui8instance22TreeTypedJSONConverterEEEvRT_RNS7_9DataInputERNS7_9TypeInputE+0xc51)[0x7f2cc12d59b1]
/home/rkartmann/code/armarx/RobotAPI/build/lib/libarmem_gui.so.0(_ZN6armarx4aron4data14visitRecursiveINS_5armem3gui8instance22TreeTypedJSONConverterEEEvRT_RNS7_9DataInputERNS7_9TypeInputE+0xc51)[0x7f2cc12d59b1]
/home/rkartmann/code/armarx/RobotAPI/build/lib/libarmem_gui.so.0(+0x9588c)[0x7f2cc12ce88c]
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x97f)[0x7f2d356e063f]
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN7QAction9triggeredEb+0x42)[0x7f2d30d5a122]
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN7QAction8activateENS_11ActionEventE+0xcc)[0x7f2d30d5c80c]
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2cd05c)[0x7f2d30ed905c]
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2d450b)[0x7f2d30ee050b]
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN5QMenu17mouseReleaseEventEP11QMouseEvent+0x1b3)[0x7f2d30ee1333]
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN7QWidget5eventEP6QEvent+0x1f8)[0x7f2d30d9f038]
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN5QMenu5eventEP6QEvent+0xbb)[0x7f2d30ee365b]
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x9c)[0x7f2d30d6083c]
/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x7ff)[0x7f2d30d6865f]
/home/rkartmann/code/armarx/ArmarXGui/build/lib/libArmarXGui.so.0(_ZN6armarx18ArmarXQApplication6notifyEP7QObjectP6QEvent+0x2e)[0x7f2d35bbb3fe]