开源改变世界!!

g2core:“软重置”上的 JsonNull #1266

推推 grbl 1年前 (2023-01-28) 130次浏览
关闭
norru 打开了这个问题 2019 年 9 月 2 日 · 5 条评论
关闭

g2core:“软重置”上的 JsonNull#1266

norru 打开了这个问题 2019 年 9 月 2 日 · 5 条评论

注释

g2core:“软重置”上的 JsonNull #1266

固件:g2core 101.03 边缘
控制器:Arduino Due
Shield:自定义

产品版本:通用Gcode平台20190827
Java:1.8.0_212;OpenJDK 64-Bit Server VM 25.212-b03
Runtime: OpenJDK Runtime Environment 1.8.0_212-8u212-b03-2-b03
System: Linux version 4.19.0-5-amd64 running on amd64; UTF-8;en_US (ugsplatform)
用户目录:/home/nico/.ugsplatform/2.0-SNAPSHOT/dev
缓存目录:/home/nico/.ugsplatform/2.0-SNAPSHOT/dev/var/cache

操作系统:Debian/Devuan Ceres

重现

  • 启动UGS平台
  • 连接到端口 /dev/ttyACM0 上的控制器
  • 点击“软重置”

结果:

  • 报告了以下异常
  • 连接和终端变得无响应,直到断开连接

预期结果:

  • 执行软复位操作
  • 连接没有挂起
java.lang.UnsupportedOperationException: JsonNull
	at com.google.gson.JsonElement.getAsString(JsonElement.java:191)
	at com.willwinder.universalgcodesender.TinyGUtils.hasNumericField(TinyGUtils.java:393)
	at com.willwinder.universalgcodesender.TinyGUtils.updateControllerStatus(TinyGUtils.java:197)
	at com.willwinder.universalgcodesender.TinyGController.updateControllerStatus(TinyGController.java:241)
	at com.willwinder.universalgcodesender.TinyGController.rawResponseHandler(TinyGController.java:211)
	at com.willwinder.universalgcodesender.AbstractController.rawResponseListener(AbstractController.java:851)
	at com.willwinder.universalgcodesender.AbstractCommunicator.sendEventToListeners(AbstractCommunicator.java:222)
[catch] at com.willwinder.universalgcodesender.AbstractCommunicator.lambda$new$0(AbstractCommunicator.java:244)
	at java.lang.Thread.run(Thread.java:748)
g2core:“软重置”上的 JsonNull #1266
合作者

g2core 的 101.03 版有一个错误,导致开发板在等待它变为空闲时无响应:
synthetos/g2#367

我从来没有收到你的错误信息,如果你有机会,请尝试版本:g2core 100.26。

g2core:“软重置”上的 JsonNull #1266
作者

无法使用 100.26。我不记得它缺少哪个功能,但它只在最新的 Edge 中可用。

g2core:“软重置”上的 JsonNull #1266
合作者

不幸的是,g2core 错误已修复,但仍在等待新版本。

g2core:“软重置”上的 JsonNull #1266
作者
诺鲁 评论了 2019 年 9 月 2 日  

不,修复不成功:(

我刚刚构建并刷新了 g2core 边缘分支的最新更新,它没有任何改变。

commit 117c4b18e9b86a20ad8d303898d9e9e8b83ef278 (HEAD -> edge, origin/edge, origin/HEAD)
Merge: 2c4c88ac 71e29cde
Author: Justin Clift <justin@postgresql.org>
Date:   Sun Aug 4 19:06:11 2019 +1000

    Merge pull request #402 from MitchBradley/statefix
    
    Fix #367 - Status report with wrong stat

我建议您尝试做同样的事情。这是我为 Arduino Due 构建的“备忘单”。

git clone --recursive https://github.com/synthetos/g2.git
cd g2/g2core
BOARD=gShield make
sudo apt install bossa-cli
stty -F /dev/ttyACM0 1200 hup #clears flash
stty -F /dev/ttyACM0 9600 # prevents further clear
bossac  --port=ttyACM0  -U true -e -w -v -i -b -R ./bin/gShield/g2core.bin
g2core:“软重置”上的 JsonNull #1266 breiler 自己分配了这个 2019 年 10 月 19 日
g2core:“软重置”上的 JsonNull #1266 布雷勒 补充说 漏洞 标签 2019 年 10 月 19 日
g2core:“软重置”上的 JsonNull #1266 breiler 通过以下方式将此 添加到g2core 中的Todo自动化 2019 年 10 月 19 日
g2core:“软重置”上的 JsonNull #1266 breiler 将其从Todo 移至g2core 中的Backlog 2019 年 10 月 19 日
g2core:“软重置”上的 JsonNull #1266 breiler 将其从Backlog 移至g2core 中的Todo 2019 年 10 月 19 日
g2core:“软重置”上的 JsonNull #1266
合作者

我已经安装并测试了最新的 g2core 源代码并得到了同样的错误。应用的补丁应该可以解决该问题。