Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SegFault when pulling a node on drawing area #37

Closed
maxlein opened this issue May 25, 2019 · 0 comments
Closed

SegFault when pulling a node on drawing area #37

maxlein opened this issue May 25, 2019 · 0 comments

Comments

@maxlein
Copy link

maxlein commented May 25, 2019

Just wanted to try Groot out for a test drive, but immediately segfaults :(
I am opening editor and want to pull a node on the drawing area.

Also happening with monitoring, unusable on my system.
Can't be normal behavior. Maybe my system is somehow not supported?

Qt Creator 4.9.0 based on Qt 5.12.2
Kubuntu 18.04
4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64

This errors come from current master branch, just tested the 1.0 release and these errors are gone.

==4561== Invalid read of size 8
==4561==    at 0x21A6F0: GraphicContainer::view() (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x2128AE: MainWindow::saveCurrentState() (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x212A9E: MainWindow::onPushUndo() (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x23383D: QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (MainWindow::*)()>::call(void (MainWindow::*)(), MainWindow*, void**) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x23052D: void QtPrivate::FunctionPointer<void (MainWindow::*)()>::call<QtPrivate::List<>, void>(void (MainWindow::*)(), MainWindow*, void**) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x22B78C: QtPrivate::QSlotObject<void (MainWindow::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x692177E: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.9.5)
==4561==    by 0x287C5A: GraphicContainer::undoableChange() (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x2555BE: GraphicContainer::onNodeCreated(QtNodes::Node&) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x25EBC6: QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<QtNodes::Node&>, void, void (GraphicContainer::*)(QtNodes::Node&)>::call(void (GraphicContainer::*)(QtNodes::Node&), GraphicContainer*, void**) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x25DCE5: void QtPrivate::FunctionPointer<void (GraphicContainer::*)(QtNodes::Node&)>::call<QtPrivate::List<QtNodes::Node&>, void>(void (GraphicContainer::*)(QtNodes::Node&), GraphicContainer*, void**) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x25C5FC: QtPrivate::QSlotObject<void (GraphicContainer::*)(QtNodes::Node&), QtPrivate::List<QtNodes::Node&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==  Address 0x18 is not stack'd, malloc'd or (recently) free'd
==4561== 
==4561== 
==4561== Process terminating with default action of signal 11 (SIGSEGV)
==4561==  Access not within mapped region at address 0x18
==4561==    at 0x21A6F0: GraphicContainer::view() (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x2128AE: MainWindow::saveCurrentState() (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x212A9E: MainWindow::onPushUndo() (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x23383D: QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (MainWindow::*)()>::call(void (MainWindow::*)(), MainWindow*, void**) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x23052D: void QtPrivate::FunctionPointer<void (MainWindow::*)()>::call<QtPrivate::List<>, void>(void (MainWindow::*)(), MainWindow*, void**) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x22B78C: QtPrivate::QSlotObject<void (MainWindow::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x692177E: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.9.5)
==4561==    by 0x287C5A: GraphicContainer::undoableChange() (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x2555BE: GraphicContainer::onNodeCreated(QtNodes::Node&) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x25EBC6: QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<QtNodes::Node&>, void, void (GraphicContainer::*)(QtNodes::Node&)>::call(void (GraphicContainer::*)(QtNodes::Node&), GraphicContainer*, void**) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x25DCE5: void QtPrivate::FunctionPointer<void (GraphicContainer::*)(QtNodes::Node&)>::call<QtPrivate::List<QtNodes::Node&>, void>(void (GraphicContainer::*)(QtNodes::Node&), GraphicContainer*, void**) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==    by 0x25C5FC: QtPrivate::QSlotObject<void (GraphicContainer::*)(QtNodes::Node&), QtPrivate::List<QtNodes::Node&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (in /home/kin/ros_ws/src/Groot/build/Groot)
==4561==  If you believe this happened as a result of a stack
==4561==  overflow in your program's main thread (unlikely but
==4561==  possible), you can try to increase the size of the
==4561==  main thread stack using the --main-stacksize= flag.
==4561==  The main thread stack size used in this run was 8388608.
==4561== 
==4561== HEAP SUMMARY:
==4561==     in use at exit: 5,901,606 bytes in 43,091 blocks
==4561==   total heap usage: 203,038 allocs, 159,947 frees, 52,491,400 bytes allocated
==4561== 
==4561== LEAK SUMMARY:
==4561==    definitely lost: 256 bytes in 1 blocks
==4561==    indirectly lost: 32 bytes in 1 blocks
==4561==      possibly lost: 28,131 bytes in 437 blocks
==4561==    still reachable: 5,873,187 bytes in 42,652 blocks
==4561==                       of which reachable via heuristic:
==4561==                         newarray           : 856 bytes in 22 blocks
==4561==                         multipleinheritance: 65,104 bytes in 86 blocks
==4561==         suppressed: 0 bytes in 0 blocks
==4561== Rerun with --leak-check=full to see details of leaked memory
==4561== 
==4561== For counts of detected and suppressed errors, rerun with: -v
==4561== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)

@maxlein maxlein closed this as completed Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant