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.85k stars 758 forks source link

More connection Issues ... #2455

Closed spock64 closed 5 months ago

spock64 commented 5 months ago

Version

2.1.5

Hardware / Firmware

GRBL 1.1

What happened

Trying to use UGS on a MacBook Pro / Ventura 12.7.3 with a CNC that works with cncjs ...

On connecting, I see a modal dialogue box stating: "There was a problem setting one or more controller features"

Here's a screenshot:

image

There are no messages in the console window.

The message log shows something interesting - an exception is thrown after the fourth connection attempt:

INFO [com.willwinder.universalgcodesender.model.GUIBackend]: Connecting to GRBL on port tty.usbserial-1450
INFO [com.willwinder.universalgcodesender.model.GUIBackend]: Applying settings.
INFO [com.willwinder.universalgcodesender.utils.KeepAwakeUtils]: Moving the mouse location slightly to keep the computer awake.
INFO [com.willwinder.ugs.nbp.core.actions.ConnectDisconnectAction]: openclose button, connection open: false
INFO [com.willwinder.universalgcodesender.model.GUIBackend]: Connecting to GRBL on port tty.usbserial-1450
INFO [com.willwinder.universalgcodesender.model.GUIBackend]: Applying settings.
INFO [com.willwinder.universalgcodesender.utils.KeepAwakeUtils]: Moving the mouse location slightly to keep the computer awake.
INFO [com.willwinder.ugs.nbp.core.actions.ConnectDisconnectAction]: openclose button, connection open: false
INFO [com.willwinder.universalgcodesender.model.GUIBackend]: Connecting to GRBL on port tty.usbserial-1450
INFO [com.willwinder.universalgcodesender.model.GUIBackend]: Applying settings.
INFO [com.willwinder.ugs.nbp.core.actions.ConnectDisconnectAction]: openclose button, connection open: false
INFO [com.willwinder.universalgcodesender.model.GUIBackend]: Connecting to GRBL on port tty.usbserial-1450
INFO [com.willwinder.universalgcodesender.model.GUIBackend]: Applying settings.
com.willwinder.universalgcodesender.firmware.FirmwareSettingsException: Couldn't find setting with key: $22
    at com.willwinder.universalgcodesender.firmware.grbl.GrblFirmwareSettings.lambda$getValueAsBoolean$6(GrblFirmwareSettings.java:467)
    at java.base/java.util.Optional.orElseThrow(Unknown Source)
    at com.willwinder.universalgcodesender.firmware.grbl.GrblFirmwareSettings.getValueAsBoolean(GrblFirmwareSettings.java:467)

Any ideas as to how to fix?

How to reproduce

This happens each time a connection is made after loading UGS.

Operating System

MACOS Ventura 12.7.3

Anything else

No response

breiler commented 5 months ago

I suspect that you have turned off status reporting which is causing this error message. I will probably remove that option in the future since status reporting is required for the communication to work nowdays.

image

Same issue as https://github.com/winder/Universal-G-Code-Sender/discussions/2453, fixed in https://github.com/winder/Universal-G-Code-Sender/pull/2454 which is available in the nightly build and in the next release 2.1.6.

spock64 commented 5 months ago

Thanks - that was indeed the issue!