关闭 snowgoer540 打开了这个问题 2022 年 10 月 14 日 · 1 条评论 · 由#2100修复 关闭 通过 G 代码调用的 Python 代码中的错误导致 Boost Python 崩溃 (linux boost::python::error_already_set)#2092 snowgoer540 打开了这个问题 2022 年 10 月 14 日 · 1 条评论 · 由#2100修复 注释 贡献者 下雪人540 评论了 2022 年 10 月 14 日 • 杰普勒编辑 `## 以下是我重现问题所遵循的步骤: 使用以下两行(有意错误(逗号后的空格))创建一个 .ngc 文件: ;py, print(2*3) m30 这是我期望发生的事情: 在提交ac779c4之前,弹出窗口中会显示以下错误: “在 /home/plasma/linuxcnc/nc_files/pytest.ngc 的第 2 行附近: py_execute(print(23)): IndentationError: (‘unexpected indent’, (”, 1, 1, ‘print(23)\n’ ))” 这是发生了什么: Linuxcnc 崩溃并出现以下错误: “在抛出 ‘boost::python::error_already_set’ /home/plasma/linuxcnc-dev/scripts/linuxcnc: line 930: 29799 Aborted $EMCDISPLAY -ini “$INIFILE” $EMCDISPLAYARGS $EXTRA_ARGS 实例后终止调用 在此之前它工作正常: commit 1efe486是 commit ac779c4 之前的提交,当 commit 1efe486 被签出时它可以正常工作。 有关我的硬件和软件的信息: 我正在使用这个 Linux 发行版和版本(通常显示为lsb_release -a):master 我正在使用这个内核版本(显示为uname -a):“Linux mx 4.19.0-21-rt-amd64使用 Tcl_SetResult 和 Tcl_GetStringResult #1 SMP PREEMPT RT Debian 4.19.249-2 (2022-06-30) x86_64 GNU/Linux` 我在跑步 … [x] 编译就地运行版本 我正在使用这个 LinuxCNC 版本(显示在包管理器中,或者对于 git 版本,scripts/get-version-from-git):v2.9.0-pre0-8016-gb7f86c2022 我正在使用此用户界面 (GUI)(例如 AXIS、Touchy、gmoccapy 等):Axis I am using this interface hardware vendor and chipset (eg, parallel port, ethernet port, FPGA card):发生在BM或VM硬件上。 重新创建的步骤,在ac779c4提交的评论部分中提到: 使用以下两行(有意错误(逗号后的空格))创建一个 .ngc 文件: ;py, print(2*3) m30 签出提交1efe486 打扫干净 制作 编译完成后,运行 linuxcnc 并选择轴模拟 导航到在步骤 1 中创建的 .ngc 文件并加载它。 Axis 将抛出一个带有以下错误的弹出窗口(linuxcnc 不会崩溃): Near line 2 of /home/plasma/linuxcnc/nc_files/pytest.ngc: py_execute( print(23)): IndentationError: (‘unexpected indent’, ( ”, 1, 1, ‘打印(23)\n’)) 关闭 linuxcnc 并签出提交ac779c4 打扫干净 制作 编译完成后,运行 linuxcnc 并选择轴模拟 导航到在步骤 1 中创建的 .ngc 文件并加载它。 13 linuxcnc 将因以下错误而崩溃: 抛出 ‘boost::python::error_already_set’ 实例后调用终止 /home/plasma/linuxcnc-dev/scripts/linuxcnc: line 930: 29799 Aborted $EMCDISPLAY -ini “$INIFILE ” $EMCDISPLAYARGS $EXTRA_ARGS snowgoer540 引用了这个问题 2022 年 10 月 14 日 Merge pull request #1226 from LinuxCNC/jepler/modernize-autoconf-boos… …… 已验证 ac779c4 c-morley 指定 jepler 2022 年 10 月 16 日 合作者 c-莫利 评论了 2022 年 10 月 16 日 只是为了让 Jeff 下次在场时注意到它。 ?1个snowgoer540 用竖起大拇指表情符号回应 jepler 添加了一个提交到 jepler/linuxcnc 引用了这个问题 2022 年 10 月 16 日 Must normalize exception …… 已验证 d3498c9 jepler 提到了这个问题 2022 年 10 月 16 日 修复 ;py 中的异常,评论 #2100 合并 snowgoer540 在 #2100 中完成后 关闭了它 2022 年 10 月 16 日 喜欢 (0) 为 Richael 翻译 Machine.h #1212 为 LaZoR 翻译 Machine.h #1213 v1.3.8-EDGE 重启后键盘快捷键消失 #427 关闭 无法在 gsender 1.2.0 中打开 .gcode 文件 #367 RaspberryPi 运行 gsender 时出现问题 #89 向 fluidnc 发送 $$ 会导致 gsender 崩溃 #473 v1.3.8-EDGE 重启后键盘快捷键消失 #427 关闭无法在 gsender 1.2.0 中打开 .gcode 文件 #367RaspberryPi 运行 gsender 时出现问题 #89向 fluidnc 发送 $$ 会导致 gsender 崩溃 #473功能请求:抑制发送到机器的 gcode 中的 gcode 注释。 #444 关闭通过网络连接进行连接 #171操纵杆运动的剩余问题 #204 关闭新版本认为我的机器一直处于锁定状态 #474 关闭
`## 以下是我重现问题所遵循的步骤:
;py, print(2*3)
m30
这是我期望发生的事情:
在提交ac779c4之前,弹出窗口中会显示以下错误:
“在 /home/plasma/linuxcnc/nc_files/pytest.ngc 的第 2 行附近:
py_execute(print(23)):
IndentationError: (‘unexpected indent’, (”, 1, 1, ‘print(23)\n’ ))”
这是发生了什么:
Linuxcnc 崩溃并出现以下错误:
“在抛出 ‘boost::python::error_already_set’
/home/plasma/linuxcnc-dev/scripts/linuxcnc: line 930: 29799 Aborted $EMCDISPLAY -ini “$INIFILE” $EMCDISPLAYARGS $EXTRA_ARGS 实例后终止调用
在此之前它工作正常:
commit 1efe486是 commit ac779c4 之前的提交,当 commit 1efe486 被签出时它可以正常工作。
有关我的硬件和软件的信息:
lsb_release -a
):masteruname -a
):“Linux mx 4.19.0-21-rt-amd64使用 Tcl_SetResult 和 Tcl_GetStringResult #1 SMP PREEMPT RT Debian 4.19.249-2 (2022-06-30) x86_64 GNU/Linux`scripts/get-version-from-git
):v2.9.0-pre0-8016-gb7f86c2022重新创建的步骤,在ac779c4提交的评论部分中提到:
使用以下两行(有意错误(逗号后的空格))创建一个 .ngc 文件:
;py, print(2*3)
m30
签出提交1efe486
打扫干净
制作
编译完成后,运行 linuxcnc 并选择轴模拟
导航到在步骤 1 中创建的 .ngc 文件并加载它。
Axis 将抛出一个带有以下错误的弹出窗口(linuxcnc 不会崩溃):
Near line 2 of /home/plasma/linuxcnc/nc_files/pytest.ngc:
py_execute( print(23)):
IndentationError: (‘unexpected indent’, ( ”, 1, 1, ‘打印(23)\n’))
关闭 linuxcnc 并签出提交ac779c4
打扫干净
制作
编译完成后,运行 linuxcnc 并选择轴模拟
导航到在步骤 1 中创建的 .ngc 文件并加载它。
13 linuxcnc 将因以下错误而崩溃:
抛出 ‘boost::python::error_already_set’ 实例后调用终止
/home/plasma/linuxcnc-dev/scripts/linuxcnc: line 930: 29799 Aborted $EMCDISPLAY -ini “$INIFILE ” $EMCDISPLAYARGS $EXTRA_ARGS