qtDragon sim does not work anymore

More
4 years 5 months ago #244067 by cmorley

ikkuh post=244047 userid=22931 
And this is what happens if I dare to make configuration and want to use the tool probe mode of qtDragon. I am having problems for a while now on my production machine (m6 remap does not work anymore) and it looks like the problems show up in qtDragon as if there is something wrong with LinuxCNC.

Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./core_sim.hal
Found file(lib): /usr/share/linuxcnc/hallib/simulated_home.hal
initialize: module '/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py' init failed:
Traceback (most recent call last):
File "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py", line 17, in <module>
import remap
File "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/remap.py", line 17, in <module>
from stdglue import *
ModuleNotFoundError: No module named 'stdglue'
Interp ctor: can't instantiate Python plugin
initialize: module '/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py' init failed:
Traceback (most recent call last):
File "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py", line 17, in <module>
import remap
File "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/remap.py", line 17, in <module>
from stdglue import *
ModuleNotFoundError: No module named 'stdglue'
Python plugin configure() failed, status = -11
Python plugin required for prolog=, but not available: 69:REMAP = M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_probe_tool epilog=change_epilog
NGC file not found: ngc=qt_auto_probe_tool - 69:REMAP = M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_probe_tool epilog=change_epilog
Python plugin required for epilog=, but not available: 69:REMAP = M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_probe_tool epilog=change_epilog
emc/task/emctask.cc 69: interp_error: File not open
File not open
emc/task/emctaskmain.cc 3081: can't initialize interpreter
[QTvcp][INFO] Logging to "/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/qtdragon.log" (logger.py:102)
 

 

File Attachment:

File Name: qtdragon.l...5-28.txt
File Size:3.13 KB
 

File Attachment:

File Name: linuxcnc_d...robe.txt
File Size:6.46 KB


It's saying it can't find stdglue.py, which in a sim config is a relatively linked file.
If you have moved the config (or linuxcnc's picker did) the link is probably not valid anymore.
The qt_auto_probe_tool.ngc is a linked file too.

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #244105 by ikkuh

It's saying it can't find stdglue.py, which in a sim config is a relatively linked file.
If you have moved the config (or linuxcnc's picker did) the link is probably not valid anymore.
The qt_auto_probe_tool.ngc is a linked file too.

It's a new machine, fresh Debian 11, fresh LinuxCNC from the official repo (not buildbot). Since I am having trouble getting the nice things to work on my production machine I installed LinuxCNC on my personal computer. I hoped things would work right out of the box.
There is nothing special about this machine, it should be able to run the simulations easily. 
I have gmoccapy running (in simulation) on this machine, including tool length measurement and manual toolchange (M6 remap). Everything works in Norbert's gui.
I hope to get qtDragon running soon on both of my machines. I have two Mesa cards with loads of inputs and I want to use them :)

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #244106 by ikkuh

It's saying it can't find stdglue.py, which in a sim config is a relatively linked file.
If you have moved the config (or linuxcnc's picker did) the link is probably not valid anymore.
The qt_auto_probe_tool.ngc is a linked file too.







 
Ok, fresh install once again. After installing LinuxCNC from the repo I did a sudo updatedb.

Now for the files and locations:

The manual says:[RS274NGC]

# adjust this paths to point to folders with stdglu.py and qt_auto_tool_probe.ngc
# or similarly coded custom remap files
SUBROUTINE_PATH = ~/linuxcnc/nc_files/remap-subroutines:~/linuxcnc/nc_files/remap_lib
Checking the directories shows:

@ls -la ~/linuxcnc/nc_files/remap-subroutines
ls: kan geen toegang krijgen tot '/home/xxx/linuxcnc/nc_files/remap-subroutines~': Bestand of map bestaat niet
File does not exist

@ls -la ~/linuxcnc/nc_files/remap_lib
lrwxrwxrwx 1 ton ton 37 28 mei 11:01 /home/ton/linuxcnc/nc_files/remap_lib -> /usr/share/linuxcnc/ncfiles/remap_lib
OK

locate qt_auto_tool_probe.ngc
nothing found

locate qt_auto_probe_tool.ngc
/home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/qt_auto_probe_tool.ngc
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/qt_auto_probe_tool.ngc
/usr/share/linuxcnc/ncfiles/remap-subroutines/qt_auto_probe_tool.ngc
Three versions found, notice the different name)

ls -la /home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/qt_auto_probe_tool.ngc
lrwxrwxrwx 1 ton ton 58 28 mei 10:49 /home/xxx/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/qt_auto_probe_tool.ngc -> ../../../nc_files/remap-subroutines/qt_auto_probe_tool.ngc
it's a broken link ( I am doing all this from the directory where LinuxCNC put the simulation in: ~/linuxcnc/configs/sim.qtvcp_screens.qtdragon )

ls -la /usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/qt_auto_probe_tool.ngc
lrwxrwxrwx 1 root root 58  6 apr 16:23 /usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/qt_auto_probe_tool.ngc -> ../../../nc_files/remap-subroutines/qt_auto_probe_tool.ngc
This one looks ok

ls -la /usr/share/linuxcnc/ncfiles/remap-subroutines/qt_auto_probe_tool.ngc
-rw-r--r-- 1 root root 2359  6 apr 16:23 /usr/share/linuxcnc/ncfiles/remap-subroutines/qt_auto_probe_tool.ngc
Yes, it's there

The manual:# The remap code for Qtvcp's versaprobe's automatic tool probe of Z
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=qt_auto_tool_probe epilog=change_epilog

Notice the spelling of the ngc routine.

locate stdglue.py
/home/ton/linuxcnc/configs/sim.gmoccapy/python/stdglue.py
/home/ton/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/stdglue.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/gmoccapy/python/stdglue.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/stdglue.py
/usr/share/linuxcnc/ncfiles/remap_lib/python-stdglue/stdglue.py

locate remap.py
/home/ton/linuxcnc/configs/sim.gmoccapy/python/remap.py
/home/ton/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/lathe-fanucy/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/orphans/iocontrol-removed/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/orphans/pysubs/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/cycle/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/extend-builtins/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/getting-started/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/manual-toolchange-with-tool-length-switch/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/rack-toolchange/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/stop-lookahead/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/vismach/VMC_toolchange/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/gmoccapy/python/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/gscreen/industrial_lathe_wear/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/industrial_lathe_wear/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtaxis_lathe/remap.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/remap.py

locate toplevel.py
/home/ton/linuxcnc/configs/sim.gmoccapy/python/toplevel.py
/home/ton/linuxcnc/configs/sim.qtvcp_screens.qtdragon/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/lathe-fanucy/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/orphans/iocontrol-removed/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/cycle/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/extend-builtins/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/getting-started/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/manual-toolchange-with-tool-length-switch/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/rack-toolchange/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/remap/stop-lookahead/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis/vismach/VMC_toolchange/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/gmoccapy/python/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/gscreen/industrial_lathe_wear/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/industrial_lathe_wear/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtaxis_lathe/toplevel.py
/usr/share/doc/linuxcnc/examples/sample-configs/sim/qtvcp_screens/qtdragon/python/toplevel.py

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #244113 by ikkuh
same error in woodpecker btw.

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #244131 by cmorley
Thanks for the detailed info.
To confirm, there is no folder named as such?:
/home/xxx/linuxcnc/nc_files/remap-subroutines

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago - 4 years 5 months ago #244189 by ikkuh

Thanks for the detailed info.
To confirm, there is no folder named as such?:
/home/xxx/linuxcnc/nc_files/remap-subroutines

 
Yes, I can confirm that.
The only directory with remap-subroutines is
/usr/share/linuxcnc/ncfiles/remap-subroutines





I did a
~/linuxcnc/nc_files$ ln -s /usr/share/linuxcnc/ncfiles/remap-subroutines .
and now the ngc errors are gone, but qtDragon will not start because of the earlier errors (the painting stuff)

QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
[QTvcp][CRITICAL] Aborted from Error Dialog
Qtvcp encountered an error. The following information may be useful in troubleshooting:
LinuxCNC Version : 2.9.0~pre0

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/qtvcp/widgets/simple_widgets.py", line 556, in paintEvent
self.paintIndicator()
File "/usr/lib/python3/dist-packages/qtvcp/widgets/simple_widgets.py", line 598, in paintIndicator
p.drawEllipse(x, y, self._diameter - 1, self._diameter - 1)
TypeError: arguments did not match any overloaded call:
drawEllipse(self, QRectF): argument 1 has unexpected type 'float'
drawEllipse(self, QRect): argument 1 has unexpected type 'float'
drawEllipse(self, int, int, int, int): argument 1 has unexpected type 'float'
drawEllipse(self, Union[QPointF, QPoint], float, float): argument 1 has unexpected type 'float'
drawEllipse(self, QPoint, int, int): argument 1 has unexpected type 'float'

(qtvcp:482)
QPaintDevice: Cannot destroy paint device that is being painted
/usr/bin/linuxcnc: regel 963: 8835 Segmentatiefout $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
Shutting down and cleaning up LinuxCNC...
task: 1033 cycles, min=0.000008, max=0.014083, avg=0.009744, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:



 
Last edit: 4 years 5 months ago by ikkuh. Reason: this forum editor is ridiculous!

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.142 seconds
Powered by Kunena Forum