Py3 - Probe Basic Config Conversion Doc Lcnc 2.9+

More
2 years 10 months ago #287480 by Unlogic
Thanks you, that was very quick.

I got Probe Basic up and running now but as soon I do any movement of the machine I get this error (the servos still move however).

[qtpyvcp.app.launcher][CRITICAL]  Unhandled exception in vtk_backplot.py line 598 (launcher.py:37)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qtpyvcp/widgets/display_widgets/vtk_backplot/vtk_backplot.py", line 598, in update_position
    active_wcs_offset = self._datasource.getWcsOffsets()[self._datasource.getActiveWcsIndex()]
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: -1

I don't know if it's related but I also get this error on startup in the log.

[qtpyvcp.widgets.display_widgets.vtk_backplot.linuxcnc_datasource][WARNING] 


KeyError: Likely means no program loaded. (linuxcnc_datasource.py:176)

Any idea what could be causing this?
 

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

More
2 years 10 months ago #287493 by dpslwk
a fix to qtpyvcp has just been pushed, apt update, apt upgrade should clear that up
The following user(s) said Thank You: Lcvette, Unlogic

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

More
2 years 10 months ago #287500 by Lcvette
Thanks dpslwk!

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

More
2 years 10 months ago #287507 by Unlogic

a fix to qtpyvcp has just been pushed, apt update, apt upgrade should clear that up
 
I installed the updated qtpycp package but I'm still getting the same error as soon as I do any movement of the machine:

qtpyvcp.app.launcher][CRITICAL]  Unhandled exception in vtk_backplot.py line 598 (launcher.py:37)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qtpyvcp/widgets/display_widgets/vtk_backplot/vtk_backplot.py", line 598, in update_position
    active_wcs_offset = self._datasource.getWcsOffsets()[self._datasource.getActiveWcsIndex()]
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: -1

The warning in the log during startup is also still there:

[qtpyvcp.widgets.display_widgets.vtk_backplot.linuxcnc_datasource][WARNING] 


KeyError: Likely means no program loaded. (linuxcnc_datasource.py:176)

If I home the machine and select an offset like G55 the error goes away. Could it be that it always expects an offset to be set?

However when I get past the error and start moving the machine I instead get a segmentation fault, but that may be related to the graphics card in this machine so I'm gonna try this on another machine now.

linuxcnc console output:

/usr/bin/linuxcnc: line 977:  3641 Segmentation fault      $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
Shutting down and cleaning up LinuxCNC...
task: 4371 cycles, min=0.000013, max=0.055746, avg=0.010063, 1 latency excursions (> 10x expected cycle time of 0.010000s)
hm2_eth: in hm2_eth_reset
hm2_eth: HostMot2 ethernet driver unloaded
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/cnc/linuxcnc_debug.txt
and
    /home/cnc/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal


dmesg outout:

[  892.129212] probe_basic[3324]: segfault at 0 ip 0000000000000000 sp 00007ffd69873828 error 14 in python3.11[400000+1f000] likely on CPU 1 (core 1, socket 0)
[  892.129231] Code: Unable to access opcode bytes at 0xffffffffffffffd6.

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

More
2 years 10 months ago #287520 by dpslwk
hmm

| Could it be that it always expects an offset to be set?

well yes, seem it does expect be have an active wco g54-g59.3,
but I did not eve think it was possible to not have one set!
and most have G54 in there [RS274NGC]RS274NGC_STARTUP_CODE its in the recommended INI changes at the start of this guide for pb.



perhaps future posts on this should be moved to there own thread
The following user(s) said Thank You: Unlogic

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

More
2 years 10 months ago #287521 by Unlogic
Thanks again for a quick reply.

The segfault was as I suspected the caused by the graphics card, tried another machine and it solved that problem.

I'll start a separate thread regarding the offset problem.

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

Moderators: KCJ, Lcvette
Time to create page: 0.170 seconds
Powered by Kunena Forum