Segmentation fault when loading QtVCP
- schlemihl
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
18 Mar 2025 07:51 #324175
by schlemihl
Segmentation fault when loading QtVCP was created by schlemihl
Hey all,
I ran in the following problem:
cnc@raspberrypi:~ $ designer -qt=5
Qtvcp python plugin found: /home/cnc/.designer/plugins/python/qtvcp_plugin.py
[DEFAULT][INFO] Logging to: /home/cnc/default.log (logger.py:106)
tool_mmap_user(): tool mmap not available
poll(): continuing without tool mmap data
[DEFAULT.QTVCP.LIB.SYS_NOTIFY][WARNING] Desktop Notify not available:: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files (sys_notify.py:71)
link (updating variable file): No such file or directory
link (updating variable file): No such file or directory
Segmentation fault
I've followed the QtVCP installation progress and linked the qtvcp_plugin.py but I get this error when starting the designer.
The designer loads without any problems when the qtvcp_plugin is not linked.
Did this occur to anyone before me? Or does anyone has an idea how to resolve this?
I ran in the following problem:
cnc@raspberrypi:~ $ designer -qt=5
Qtvcp python plugin found: /home/cnc/.designer/plugins/python/qtvcp_plugin.py
[DEFAULT][INFO] Logging to: /home/cnc/default.log (logger.py:106)
tool_mmap_user(): tool mmap not available
poll(): continuing without tool mmap data
[DEFAULT.QTVCP.LIB.SYS_NOTIFY][WARNING] Desktop Notify not available:: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files (sys_notify.py:71)
link (updating variable file): No such file or directory
link (updating variable file): No such file or directory
Segmentation fault
I've followed the QtVCP installation progress and linked the qtvcp_plugin.py but I get this error when starting the designer.
The designer loads without any problems when the qtvcp_plugin is not linked.
Did this occur to anyone before me? Or does anyone has an idea how to resolve this?
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7863
- Thank you received: 2121
18 Mar 2025 12:46 #324195
by cmorley
Replied by cmorley on topic Segmentation fault when loading QtVCP
Does one of the QtVCP sim screens (QtDragon) load in linuxcnc?
Chris
Chris
Please Log in or Create an account to join the conversation.
- schlemihl
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
18 Mar 2025 12:53 #324196
by schlemihl
Replied by schlemihl on topic Segmentation fault when loading QtVCP
Yes, I'm currently not home, so I dont know the specific name; but I tried the qtvcp_demo0 or something similar and it worked without problems.
Please Log in or Create an account to join the conversation.
- schlemihl
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
19 Mar 2025 20:28 #324315
by schlemihl
Replied by schlemihl on topic Segmentation fault when loading QtVCP
Nevermind, I just tried to run QtDragon and got the following error:
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.2
Machine configuration directory is '/home/cnc/linuxcnc/configs/sim.qtdragon.qtdragon_xyz'
Machine configuration file is 'qtdragon_metric.ini'
INIFILE=/home/cnc/linuxcnc/configs/sim.qtdragon.qtdragon_xyz/qtdragon_metric.ini
VERSION=1.1
PARAMETER_FILE=qtdragon.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=qtvcp qtdragon
COORDINATES=XYZ
KINEMATICS=trivkins coordinates=XYZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(lib): /usr/share/linuxcnc/hallib/core_sim.hal
Found file(lib): /usr/share/linuxcnc/hallib/simulated_home.hal
Starting TASK program: milltask
Starting DISPLAY program: qtvcp
Unexpected realtime delay on task 0 with period 100000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Shutting down and cleaning up LinuxCNC...
task: 1466 cycles, min=0.000018, max=0.017806, avg=0.010056, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
Unexpected realtime delay on task 0 with period 100000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
link (updating variable file): No such file or directory
QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0770 instead of 0700
[QTvcp.QTVCP.LIB.SYS_NOTIFY][[33mWARNING[0m] Desktop Notify not available:: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files (sys_notify.py:71)
[QTvcp.QTVCP.LIB.QT_NGCGUI.NGCGUI][[33mWARNING[0m] The ngc_sub path does not exist: /home/cnc/nc_files/ngcgui_lib/slot.ngc (ngcgui.py:508)
[QTvcp.QTVCP.LIB.QT_NGCGUI.NGCGUI][[33mWARNING[0m] The ngc_sub path does not exist: /home/cnc/nc_files/ngcgui_lib/qpocket.ngc (ngcgui.py:508)
/usr/bin/linuxcnc: line 977: 9651 Segmentation fault $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
9611
9647
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.2
Machine configuration directory is '/home/cnc/linuxcnc/configs/sim.qtdragon.qtdragon_xyz'
Machine configuration file is 'qtdragon_metric.ini'
INIFILE=/home/cnc/linuxcnc/configs/sim.qtdragon.qtdragon_xyz/qtdragon_metric.ini
VERSION=1.1
PARAMETER_FILE=qtdragon.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=qtvcp qtdragon
COORDINATES=XYZ
KINEMATICS=trivkins coordinates=XYZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(lib): /usr/share/linuxcnc/hallib/core_sim.hal
Found file(lib): /usr/share/linuxcnc/hallib/simulated_home.hal
Starting TASK program: milltask
Starting DISPLAY program: qtvcp
Unexpected realtime delay on task 0 with period 100000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Shutting down and cleaning up LinuxCNC...
task: 1466 cycles, min=0.000018, max=0.017806, avg=0.010056, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
Unexpected realtime delay on task 0 with period 100000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
link (updating variable file): No such file or directory
QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0770 instead of 0700
[QTvcp.QTVCP.LIB.SYS_NOTIFY][[33mWARNING[0m] Desktop Notify not available:: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files (sys_notify.py:71)
[QTvcp.QTVCP.LIB.QT_NGCGUI.NGCGUI][[33mWARNING[0m] The ngc_sub path does not exist: /home/cnc/nc_files/ngcgui_lib/slot.ngc (ngcgui.py:508)
[QTvcp.QTVCP.LIB.QT_NGCGUI.NGCGUI][[33mWARNING[0m] The ngc_sub path does not exist: /home/cnc/nc_files/ngcgui_lib/qpocket.ngc (ngcgui.py:508)
/usr/bin/linuxcnc: line 977: 9651 Segmentation fault $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
9611
9647
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Elite Member
-
Less
More
- Posts: 263
- Thank you received: 89
19 Mar 2025 20:38 #324317
by unknown
Replied by unknown on topic Segmentation fault when loading QtVCP
Probably not related to your issue, but may cause issues later on, you may want to implement the zswap changes mention in the RPi sticky. One user had issues when using gmoccapy after being idle. The last couple of posts on that thread discuss the issue and there is a link to the modifications. Sorry about that I really would like to put up new images, but there has been a little push back in that regard.
Cheers
Rob
Cheers
Rob
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.056 seconds