winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.88k stars 761 forks source link

UGS stops sending and becomes unresponsive after javax.swing.text.StateInvariantError: document lock failure #2347

Closed treyd3 closed 7 months ago

treyd3 commented 10 months ago

Version

2.0.21

Hardware / Firmware

GRBL 1.1

What happened

Loaded and started gcode file prepared with Kiri Moto. Job starts fine, no issues. After some minutes UGS becomes unresponsive and toolhead stops moving but spindle stays on (status remains "RUN" and action buttons are not responsive), presumably because controller stops receiving instructions. At this point the toolhead must be moved manually away from the stock and the controller restarted

How to reproduce

I have attached the .ugsplatform directory and the gcode program zipped. I couldn't find this issue reported even though I experienced it in 2.0.15 as well. Hopefully it's some issue with my settings/env and easily remedied. UGSconfigs_and_gcode.zip

Operating System

Linux 5.15.76-v7l+ #1597 SMP Fri Nov 4 12:14:58 GMT 2022 armv7l GNU/Linux Running on rPi 400 with 4GB ram and 64GB SD

Anything else

This has happened a few times now including the last 2 times I tried to run the included gcode. It doesn't happen at the same point in the gcode program so I don't think that's the issue - especially since UGS throws an exception. That said, when running the attached program, the issue occurred during the 1st Trace routine, once in the middle and once it made it to the M0 at the end where I change tools.

breiler commented 10 months ago

Thanks for the detailed report!

Never seen this error so I can't event guess what the problem may be. I have made a new packaging with a newer Java which would be interesting if it would work better.

You can find it under nightly builds here (Linux ARM): https://github.com/winder/Universal-G-Code-Sender#downloads

cah-98 commented 10 months ago

I think i might be having the same issue. I never get an error however. Whenever i try to run a job it gets a few minutes in, different every time and then it just stops and keeps the spindle on. Still it reports the "Run" state while continuing to count the time in the Send Status counter. All controls are disabled and i have to restart the controller and reconnect to it to get it started again. For me this happens with all jobs i have tried so far. I have tried both in the nightly and 2.0.21 with GRBL 1.1f.

Here is the latest gcode i tried. x-axis-brackets_1-Pocket.zip

breiler commented 10 months ago

@cah-98 are you running on Linux and on a Raspberry Pi? In that case try the latest packaging with a new Java version: https://github.com/winder/Universal-G-Code-Sender/releases/tag/v2.1.0

If not, I'd need your log files to figure out if this is the same problem: https://github.com/winder/Universal-G-Code-Sender/wiki/Configuration#log-files

cah-98 commented 10 months ago

I am running windows and it connects to a Genmitsu 3020-pro max.

Here is my log file: messages.log

breiler commented 10 months ago

Based on the log, it is not the same problem as described in this issue. Please create a new discussion or a issue.

breiler commented 7 months ago

Closing as we got no further response from user