开源改变世界!!

启动文件流时出错:null #223

推推 grbl 1年前 (2023-01-26) 119次浏览
关闭
dhughes 打开了这个问题 2015 年 2 月 9 日 · 4条评论
关闭

启动文件流时出错:null#223

dhughes 打开了这个问题 2015 年 2 月 9 日 · 4条评论

注释

启动文件流时出错:null #223

我一直在尝试每晚使用 1.0.7 到 1.0.8 版本(截至 2015 年 2 月 7 日)。在所有这些版本中,但不是在 1.0.6 中,当我试图将工作发送到我的 Shapeoko 2 时,我经常收到错误提示“启动文件流时出错:空”。除了“频繁地”。发生此错误后,我有时可以重置我的工作并重试,问题不会发生。

这个问题通常很早就出现了,通常在发送的 gcode 不到 100 行之内。但是,我记得看到它在很久以后至少发生过一次。在某些情况下,机器将继续正常运行。在其他情况下,它会完全停止。

这是错误和 UI 的屏幕截图:

启动文件流时出错:null #223

这是带有堆栈跟踪的控制台输出:

iDontKnow:UniversalGcodeSender doug$ ./start.sh
[Boot] INFO:  myJarPath=file:/Applications/UniversalGcodeSender/UniversalGcodeSender.jar
[JarClassLoader] INFO:  setProperties(com.simontuffs.onejar.JarClassLoader@7440e464)
[JarClassLoader] INFO:  oneJarPath=file:/Applications/UniversalGcodeSender/UniversalGcodeSender.jar
[Boot] INFO:  using JarClassLoader: com.simontuffs.onejar.JarClassLoader
[JarClassLoader] INFO:  oneJarPath=file:/Applications/UniversalGcodeSender/UniversalGcodeSender.jar
[JarClassLoader] INFO:  resources/build.properties in main/Universal G-Code Sender.jar is hidden by / (with different bytes)
[JarClassLoader] INFO:  findResource() found: "com/willwinder/universalgcodesender/Version.class" for caller null in codebase main/Universal G-Code Sender.jar
[JarClassLoader] INFO:  findResource(): unable to locate "resources/MessagesBundle_en.properties"
Feb 08, 2015 1:37:22 PM com.willwinder.universalgcodesender.SettingsFactory loadSettings
INFO: Loading settings.
Feb 08, 2015 1:37:22 PM com.willwinder.universalgcodesender.SettingsFactory loadSettings
INFO: Settings file location: /Users/doug/Library/Preferences/UniversalGcodeSender.json
Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
java.lang.NullPointerException
    at com.willwinder.universalgcodesender.GrblCommunicator.streamCommands(GrblCommunicator.java:145)
    at com.willwinder.universalgcodesender.AbstractController.sendStringToComm(AbstractController.java:447)
    at com.willwinder.universalgcodesender.AbstractController.queueCommandForComm(AbstractController.java:436)
    at com.willwinder.universalgcodesender.AbstractController.beginStreaming(AbstractController.java:537)
    at com.willwinder.universalgcodesender.MainWindow.sendButtonActionPerformed(MainWindow.java:1677)
    at com.willwinder.universalgcodesender.MainWindow.sendButtonActionPerformed(MainWindow.java:1688)
    at com.willwinder.universalgcodesender.MainWindow.access$200(MainWindow.java:73)
    at com.willwinder.universalgcodesender.MainWindow$3.actionPerformed(MainWindow.java:286)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
    at java.awt.Component.processMouseEvent(Component.java:6525)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
    at java.awt.Component.processEvent(Component.java:6290)
    at java.awt.Container.processEvent(Container.java:2234)
    at java.awt.Component.dispatchEventImpl(Component.java:4881)
    at java.awt.Container.dispatchEventImpl(Container.java:2292)
    at java.awt.Component.dispatchEvent(Component.java:4703)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
    at java.awt.Container.dispatchEventImpl(Container.java:2278)
    at java.awt.Window.dispatchEventImpl(Window.java:2739)
    at java.awt.Component.dispatchEvent(Component.java:4703)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
    at java.awt.EventQueue.access$400(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:697)
    at java.awt.EventQueue$3.run(EventQueue.java:691)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:719)
    at java.awt.EventQueue$4.run(EventQueue.java:717)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
java.lang.NullPointerException
    at com.willwinder.universalgcodesender.GrblCommunicator.streamCommands(GrblCommunicator.java:145)
    at com.willwinder.universalgcodesender.AbstractController.sendStringToComm(AbstractController.java:447)
    at com.willwinder.universalgcodesender.AbstractController.queueCommandForComm(AbstractController.java:436)
    at com.willwinder.universalgcodesender.AbstractController.beginStreaming(AbstractController.java:537)
    at com.willwinder.universalgcodesender.MainWindow.sendButtonActionPerformed(MainWindow.java:1677)
    at com.willwinder.universalgcodesender.MainWindow.sendButtonActionPerformed(MainWindow.java:1688)
    at com.willwinder.universalgcodesender.MainWindow.access$200(MainWindow.java:73)
    at com.willwinder.universalgcodesender.MainWindow$3.actionPerformed(MainWindow.java:286)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
    at java.awt.Component.processMouseEvent(Component.java:6525)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
    at java.awt.Component.processEvent(Component.java:6290)
    at java.awt.Container.processEvent(Container.java:2234)
    at java.awt.Component.dispatchEventImpl(Component.java:4881)
    at java.awt.Container.dispatchEventImpl(Container.java:2292)
    at java.awt.Component.dispatchEvent(Component.java:4703)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
    at java.awt.Container.dispatchEventImpl(Container.java:2278)
    at java.awt.Window.dispatchEventImpl(Window.java:2739)
    at java.awt.Component.dispatchEvent(Component.java:4703)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
    at java.awt.EventQueue.access$400(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:697)
    at java.awt.EventQueue$3.run(EventQueue.java:691)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.awt.EventQueue$4.run(EventQueue.java:719)
    at java.awt.EventQueue$4.run(EventQueue.java:717)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

这是应用程序自己的控制台中的输出:

**** Connected to /dev/cu.usbmodem1451 @ 115200 baud ****

Grbl 0.9g ['$' for help]
>>> G21 G91 G0  X-10
ok
>>> G91 G0  X-10
ok
>>> G91 G0  X-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y10
ok
>>> G91 G0  Y10
ok
>>> G91 G0  Y10
ok
>>> G91 G0  Y10
ok
>>> G91 G0  Y10
ok
>>> G91 G0  Y10
ok
>>> G91 G0  Y10
ok
>>> G91 G0  Y10
ok
>>> G91 G0  Y10
ok
>>> G91 G0  Y10
ok
>>> G91 G0  Y10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-10
ok
>>> G91 G0  Y-1
ok
>>> G91 G0  Y-1
ok
>>> G91 G0  Y-1
ok
>>> G91 G0  Y-1
ok
>>> G91 G0  Y-1
ok
>>> G91 G0  Y-1
ok
>>> G91 G0  Y-1
ok
>>> G91 G0  Y-1
ok
>>> G91 G0  Y-1
ok
>>> G91 G0  X-1
ok
>>> G91 G0  X-1
ok
>>> G91 G0  X-1
ok
>>> G91 G0  X-1
ok
>>> G91 G0  X-1
ok
>>> G91 G0  X-1
ok
>>> G91 G0  X-1
ok
>>> G91 G0  Z-1
ok
>>> G91 G0  Z-1
ok
>>> G91 G0  Z-1
ok
>>> G91 G0  Z-1
ok
>>> G91 G0  Z-1
ok
>>> G10 P0 L20 X0 Y0 Z0
ok
>>> G91 G0  Z10
ok
>>> G90
>>> T1M6
>>> G90
ok
>>> G17
>>> G0Z10.000
>>> G0X0.000Y0.000S12000M3
>>> G0X53.221Y78.853Z3.000
>>> G1Z-0.100F600.0
>>> G1X53.678Y79.023F18000.0
error: Unsupported command
>>> X53.217Y79.261
ok
ok
ok
>>> X53.239Y79.181
ok
>>> X53.250Y79.099
ok
>>> X53.251Y79.016
>>> X53.241Y78.933
ok
>>> X53.221Y78.853
ok
>>> G0Z3.000
>>> G0X71.751Y75.501
ok
>>> G1Z-0.100F600.0
ok
ok
>>> G1X70.921Y74.820F18000.0
ok
>>> X70.068Y74.175
ok
>>> X69.195Y73.569
ok
>>> X68.303Y73.002
ok
>>> X67.394Y72.474
ok
>>> X66.469Y71.988
ok
>>> X65.531Y71.543
ok
>>> X64.581Y71.141
>>> X63.621Y70.782
ok
>>> X62.653Y70.468
ok
>>> X61.679Y70.200
ok
>>> X60.700Y69.978
ok
>>> X59.718Y69.804
ok
>>> X58.736Y69.679
ok
>>> X57.754Y69.603
ok
>>> X56.776Y69.577
ok
>>> X55.678Y69.608
ok
>>> X54.640Y69.699
ok
>>> X53.662Y69.851
ok
>>> X52.749Y70.061
ok
>>> X51.903Y70.330
ok
>>> X51.507Y70.486
ok
>>> X51.128Y70.656
ok
>>> X50.768Y70.841
ok
>>> X50.426Y71.039
ok
>>> X50.104Y71.252
ok
>>> X49.801Y71.478
ok
>>> X49.361Y71.866
ok
>>> X48.974Y72.286
ok
>>> X48.643Y72.733
ok
>>> X48.369Y73.205
ok
>>> X48.153Y73.699
ok
>>> X47.997Y74.213
ok
>>> X47.902Y74.742
ok
>>> X47.870Y75.285
ok
>>> X47.885Y75.653
ok
>>> X47.930Y76.019
ok
>>> X48.005Y76.381
ok
>>> X48.108Y76.735
ok
>>> X48.238Y77.078
ok
>>> X48.397Y77.408
ok
>>> X48.582Y77.720
ok
>>> X48.793Y78.013
ok
>>> X49.029Y78.283
ok
>>> X49.291Y78.527
ok
>>> X49.577Y78.742
ok
>>> X49.886Y78.924
ok
>>> X50.218Y79.071
ok
>>> X50.573Y79.181
ok
>>> X50.950Y79.248
ok
>>> X51.347Y79.271
ok
>>> X51.656Y79.258
ok
>>> X51.967Y79.216
ok
>>> X52.282Y79.147
ok
>>> X52.600Y79.051
ok
>>> X52.064Y78.780
ok
>>> X51.607Y78.495
ok
>>> X51.229Y78.196
ok
>>> X50.930Y77.885
ok
>>> X50.711Y77.560
ok
>>> X50.571Y77.223
ok
>>> X50.531Y77.049
ok
>>> X50.511Y76.873
ok
>>> X50.531Y76.510
ok
>>> X50.626Y76.162
ok
>>> X50.790Y75.831
ok
>>> X51.016Y75.519
ok
>>> X51.300Y75.226
ok
>>> X51.633Y74.953
ok
>>> X52.010Y74.700
ok
>>> X52.424Y74.469
ok
>>> X52.870Y74.259
ok
>>> X53.339Y74.071
ok
>>> X53.827Y73.906
ok
>>> X54.326Y73.765
ok
>>> X54.831Y73.648
ok
>>> X55.335Y73.556
ok
>>> X55.831Y73.490
ok
>>> X56.313Y73.449
ok
>>> X56.776Y73.436
ok
>>> X57.186Y73.448
ok
>>> X57.615Y73.485
ok
>>> X58.062Y73.547
ok
>>> X58.525Y73.635
ok
>>> X59.000Y73.748
ok
>>> X59.486Y73.887
ok
>>> X59.982Y74.053
ok
>>> X60.484Y74.245
ok
>>> X60.990Y74.464
ok
>>> X61.499Y74.710
ok
>>> X62.009Y74.984
ok
>>> X62.516Y75.286
ok
>>> X63.020Y75.616
ok
>>> X63.517Y75.974
ok
>>> X64.007Y76.362
ok
>>> X64.486Y76.778
ok
>>> X64.952Y77.224
ok
>>> X65.404Y77.699
ok
>>> X65.839Y78.205
ok
>>> X66.255Y78.741
ok
>>> X66.650Y79.308
ok
>>> X67.022Y79.906
ok
>>> X67.369Y80.535
ok
>>> X67.688Y81.196
ok
>>> X67.978Y81.888
ok
>>> X68.236Y82.613
ok
>>> X68.460Y83.371
ok
>>> X68.648Y84.161
ok
>>> X68.798Y84.985
ok
>>> X68.908Y85.842
ok
>>> X68.976Y86.733
ok
>>> X68.999Y87.658
ok
>>> X68.986Y88.929
ok
>>> X68.947Y90.164
ok
>>> X68.877Y91.368
ok
>>> X68.774Y92.545
ok
>>> X69.532Y90.399
ok
>>> X69.886Y89.319
ok
>>> X70.220Y88.235
ok
>>> X70.532Y87.149
ok
>>> X70.818Y86.064
ok
>>> X71.077Y84.979
ok
>>> X71.306Y83.897
ok
>>> X71.502Y82.819
ok
>>> X71.664Y81.746
ok
>>> X71.787Y80.680
ok
>>> X71.870Y79.622
ok
>>> X71.911Y78.573
ok
>>> X71.906Y77.536
ok
>>> X71.853Y76.511
ok
>>> X71.751Y75.501
ok
>>> X71.913Y75.484
ok
>>> X71.908Y75.459
ok
>>> X71.900Y75.435
ok
>>> X71.888Y75.412
ok
>>> X71.872Y75.392
ok
>>> X71.854Y75.375
ok
>>> X71.022Y74.692
ok
>>> X70.164Y74.043
ok
>>> X69.285Y73.434
ok
>>> X68.388Y72.863
ok
>>> X67.473Y72.332
ok
>>> X66.542Y71.842
ok
>>> X65.598Y71.394
ok
>>> X64.641Y70.989
ok
>>> X63.675Y70.628
ok
>>> X62.700Y70.312
ok
>>> X61.718Y70.042
ok
>>> X60.732Y69.818
ok
>>> X59.743Y69.643
ok
>>> X58.753Y69.517
ok
>>> X57.763Y69.440
ok
>>> X56.777Y69.414
ok
>>> X55.669Y69.445
ok
>>> X54.620Y69.537
ok
>>> X53.631Y69.690
ok
>>> X52.706Y69.904
ok
>>> X51.847Y70.177
ok
>>> X51.443Y70.336
ok
>>> X51.057Y70.509
ok
>>> X50.690Y70.697
ok
>>> X50.341Y70.900
ok
>>> X50.010Y71.118
ok
>>> X49.699Y71.351
ok
>>> X49.247Y71.750
ok
>>> X48.850Y72.180
ok
>>> X48.507Y72.643
ok
>>> X48.223Y73.131
ok
>>> X48.000Y73.643
ok
>>> X47.838Y74.175
ok
>>> X47.740Y74.723
ok
>>> X47.707Y75.286
ok
>>> X47.723Y75.666
ok
>>> X47.770Y76.046
ok
>>> X47.846Y76.420
ok
>>> X47.953Y76.787
ok
>>> X48.089Y77.142
ok
>>> X48.253Y77.484
ok
>>> X48.445Y77.810
ok
>>> X48.665Y78.115
ok
>>> X48.912Y78.397
ok
>>> X49.186Y78.652
ok
>>> X49.486Y78.877
ok
>>> X49.811Y79.069
ok
>>> X50.161Y79.224
ok
>>> X50.535Y79.339
ok
>>> X50.930Y79.410
ok
>>> X51.346Y79.435
ok
>>> X51.670Y79.420
ok
>>> X51.995Y79.377
ok
>>> X52.323Y79.305
ok
>>> X52.647Y79.207
ok
>>> X52.665Y79.200
ok
>>> X52.684Y79.190
ok
>>> X52.703Y79.177
ok
>>> X52.720Y79.161
ok
>>> X52.736Y79.141
ok
>>> X52.748Y79.118
ok
>>> X52.757Y79.092
ok
>>> X52.762Y79.065
ok
>>> X52.762Y79.038
ok
>>> X52.758Y79.011
ok
>>> X52.749Y78.986
ok
>>> X52.737Y78.964
ok
>>> X52.723Y78.944
ok
>>> X52.707Y78.928
ok
>>> X52.690Y78.915
ok
>>> X52.673Y78.906
ok
>>> X52.144Y78.637
ok
>>> X51.701Y78.361
ok
>>> X51.337Y78.073
ok
>>> X51.057Y77.782
ok
>>> X50.854Y77.482
ok
>>> X50.728Y77.177
ok
>>> X50.674Y76.863
ok
>>> X50.692Y76.536
ok
>>> X50.778Y76.220
ok
>>> X50.927Y75.919
ok
>>> X51.142Y75.624
ok
>>> X51.410Y75.346
ok
>>> X51.730Y75.084
ok
>>> X52.095Y74.839
ok
>>> X52.499Y74.614
ok
>>> X52.935Y74.408
ok
>>> X53.396Y74.224
ok
>>> X53.875Y74.062
ok
>>> X54.367Y73.923
ok
>>> X54.864Y73.808
ok
>>> X55.360Y73.717
ok
>>> X55.849Y73.652
ok
>>> X56.323Y73.612
ok
>>> X56.775Y73.599
ok
>>> X57.176Y73.611
ok
>>> X57.597Y73.647
ok
>>> X58.036Y73.708
ok
>>> X58.491Y73.794
ok
>>> X58.959Y73.906
ok
>>> X59.438Y74.043
ok
>>> X59.927Y74.206
ok
>>> X60.422Y74.396
ok
>>> X60.922Y74.612
ok
>>> X61.425Y74.855
ok
>>> X61.928Y75.126
ok
>>> X62.430Y75.424
ok
>>> X62.927Y75.750
ok
>>> X63.419Y76.104
ok
>>> X63.902Y76.487
ok
>>> X64.376Y76.898
ok
>>> X64.837Y77.339
ok
>>> X65.283Y77.809
ok
>>> X65.713Y78.308
ok
>>> X66.124Y78.838
ok
>>> X66.514Y79.398
ok
>>> X66.882Y79.988
ok
>>> X67.224Y80.610
ok
>>> X67.539Y81.263
ok
>>> X67.826Y81.947
ok
>>> X68.081Y82.664
ok
>>> X68.302Y83.413
ok
>>> X68.489Y84.195
ok
>>> X68.637Y85.010
ok
>>> X68.746Y85.859
ok
>>> X68.813Y86.741
喜欢 (0)