[LinuxCNC/linuxcnc Issue#627] Shutdown Error 2.8 Debian 10

未分类 bolang 5个月前 (10-15) 32次浏览

Issue #627 | 状态: 已关闭 | 作者: jethornton | 创建时间: 2019-07-25

标签: affects master affects 2.8


Fresh install of 2.8 on Debian 10 and every time I shut down the Axis simulator I get the LinuxCNC Errors screen.

Print file information:
RUNINPLACE=no
LINUXCNC_DIR=
LINUXCNCBINDIR=/usr/bin
LINUXCNCTCLDIR=/usr/lib/tcltk/linuxcnc
LINUXCNCSCRIPTDIR=
LINUXCNCRTLIBDIR=/usr/lib/linuxcnc/modules
LINUXCNCCONFIGDIR=
LINUXCNCLANGDIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC – 2.8.0~pre1
Machine configuration directory is ‘/home/john/linuxcnc/configs/sim.axis’
Machine configuration file is ‘axis.ini’
INIFILE=/home/john/linuxcnc/configs/sim.axis/axis.ini
VERSION=1.1
PARAMETER_FILE=sim.var
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z
KINEMATICS=trivkins
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
Found file(lib): /usr/share/linuxcnc/hallib/core_sim.hal
Found file(lib): /usr/share/linuxcnc/hallib/simspindleencoder.hal
Found file(lib): /usr/share/linuxcnc/hallib/axis_manualtoolchange.hal
Found file(lib): /usr/share/linuxcnc/hallib/simulated_home.hal
Found file(lib): /usr/share/linuxcnc/hallib/checkxyzconstraints.hal
Starting TASK program: milltask
Starting DISPLAY program: axis
Shutting down and cleaning up LinuxCNC…
task: 4973 cycles, min=0.000007, max=0.003897, avg=0.001060, 0 latency excursions (> 10x expected cycle time of 0.001000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
note: MAXV max: 5.000 units/sec 300.000 units/min
note: LJOG max: 5.000 units/sec 300.000 units/min
note: LJOG default: 0.250 units/sec 15.000 units/min
note: jog_order=’XYZ’
note: jog_invert=set([])
python2: emc/rs274ngc/interpsetup.cc:189: setup::~setup(): Assertion `!pythis || PyIsInitialized()’ failed.
/usr/bin/linuxcnc: line 896: 1793 Aborted $EMCDISPLAY -ini “$INIFILE” $EMCDISPLAYARGS $EXTRA_ARGS
1742
1789
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

Kernel message information:
/usr/lib/tcltk/linuxcnc/show_errors.tcl:
dmesg: read kernel buffer failed: Operation not permitted

dmesg requires root privilege on this system
Description: Debian GNU/Linux 10 (buster)
Use a terminal to issue the command: sudo dmesg


评论 (3)

#1 – robEllenberg 于 2019-07-25

I think this is due to my recently-merged test branch. Among other things, the gcodemodule interpreter is now managed by a unique_ptr, so it will destroyed on shutdown. Before this, I don’t think that interpreter’s destructor was ever called (pinterp is never deleted in gcodemodule except during init).

Does anyone know why PyIsInitialized() is asserted in the setupstruct destructor? If it has to be there, then a simple fix is just to revert 7b28d7d3b40.


#2 – phillc54 于 2019-07-30

There have been reports of this on the forum as well. I see the same on Debian 9.


#3 – c-morley 于 2019-08-05

Did this get fixed? If it did can you please close the issue.


原始Issue: https://github.com/LinuxCNC/linuxcnc/issues/627

喜欢 (0)