machinekit / QtQuickVcp

A Virtual Control Panel for Machinekit written in Qt/C++/QML
Other
130 stars 75 forks source link

Segfault on preview tab selection in Cetus - post fix of issues #11 and #12 #22

Closed ArcEye closed 9 years ago

ArcEye commented 9 years ago

Pulled MK, QtQuickVcp and Cetus at approx 1430 GMT 02122014

Rebuilt all

Launched Cetus via the same mkwrapper script as previously

**** 1

Cetus loads and finds current MK instance

F1 F2 and Home OK

Open preview window and Cetus crashes with segfault as below

[12918.530013] QSGRenderThread[18143]: segfault at 170 ip 00007fd325e853de sp 00007fd3284b1910 error 4 in libmachinekitpathviewplugin.so[7fd325e46000+94000]

rebooted

****** 2

Thereafter whilst starting up mk crashes and Cetus just sits waiting for an instance

Somehow appears state from time of crash is persisting?

:0: Realtime threads started task pid=4006 done emcTaskInit: using builtin interpreter python: emc/rs274ngc/previewmodule.cc:67: void publish_istat(pb::InterpreterStateType): Assertion `retval == 0' failed. /usr/src/machinekit/scripts/linuxcnc: line 777: 4007 Aborted $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS Shutting down and cleaning up LinuxCNC... :0: Realtime threads stopped :0: Realtime module 'or2' unloaded rc=0 :0: Realtime module 'comp' unloaded rc=0 :0: Realtime module 'hypot' unloaded rc=0 :0: Realtime module 'ddt' unloaded rc=0 :0: Realtime module 'motmod' unloaded rc=0 :0: Realtime module 'trivkins' unloaded rc=0 Traceback (most recent call last): File "/usr/src/machinekit/bin/hal_manualtoolchange", line 66, in nf.start(app); nf.makecommand(app, "_", _) File "/usr/src/machinekit/lib/python/nf.py", line 119, in start source_lib_tcl(r, "support.tcl") File "/usr/src/machinekit/lib/python/nf.py", line 111, in source_lib_tcl r.tk.call("source", os.path.join(tcl_libdir, f)) KeyboardInterrupt Cleanup done LinuxCNC terminated with an error. You can find more information in the log: /root/linuxcnc_debug.txt and /root/linuxcnc_print.txt as well as in the output of the shell command 'dmesg' and in the terminal file:///media/sdc/sdc2/opt/x86_amd64/Qt/5.3/gcc_64/qml/Machinekit/Controls/TouchButton.qml:36:20: QML Image: Binding loop detected for property "sourceSize" file:///media/sdc/sdc2/opt/x86_amd64/Qt/5.3/gcc_64/qml/Machinekit/Controls/TouchButton.qml:36:20: QML Image: Binding loop detected for property "sourceSize" file:///media/sdc/sdc2/opt/x86_amd64/Qt/5.3/gcc_64/qml/Machinekit/Controls/TouchButton.qml:36:20: QML Image: Binding loop detected for property "sourceSize" file:///media/sdc/sdc2/opt/x86_amd64/Qt/5.3/gcc_64/qml/Machinekit/Controls/TouchButton.qml:36:20: QML Image: Binding loop detected for property "sourceSize" file:///media/sdc/sdc2/opt/x86_amd64/Qt/5.3/gcc_64/qml/Machinekit/Controls/TouchButton.qml:36:20: QML Image: Binding loop detected for property "sourceSize" file:///media/sdc/sdc2/opt/x86_amd64/Qt/5.3/gcc_64/qml/Machinekit/Controls/TouchButton.qml:36:20: QML Image: Binding loop detected for property "sourceSize" file:///media/sdc/sdc2/opt/x86_amd64/Qt/5.3/gcc_64/qml/Machinekit/Controls/TouchButton.qml:36:20: QML Image: Binding loop detected for property "sourceSize" qml: Source changed: qrc:///Cetus/Cetus.qml true qml: Window Cetus loaded stopping configserver... done stopping realtime... done ****************************************************\* 3 Rebuilding QtQuickVcp and Cetus seems to reset the above problem Now just have the same segfault when the preview tab is clicked [ 1481.875237] QSGRenderThread[5636]: segfault at 170 ip 00007f2fb7be23de sp 00007f2fba20e910 error 4 in libmachinekitpathviewplugin.so[7f2fb7ba3000+94000] Re-starting no longer produces error as at ************2 Don't know what that was about !
machinekoder commented 9 years ago

Can you try to checkout the HEAD at this commit https://github.com/strahlex/QtQuickVcp/commit/33df8dc7cf99d5ea7acf33fcd2c88ba7ec30181f at the moment git checkout HEAD~3

ArcEye commented 9 years ago

That results in a working preview, no segfault. Albeit it does not show preview beyond first 2 moves again on same test file as per #11

machinekoder commented 9 years ago

This commit should fix the problem https://github.com/strahlex/QtQuickVcp/commit/57470a7e7c363fb796ec14fc3c0fd19225f62fa6

ArcEye commented 9 years ago

Preview no longer crashes Cetus when opened with segfault.