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 crash....Java crash after an amount of time #2305

Open itsnotlevel1 opened 1 year ago

itsnotlevel1 commented 1 year ago

Version

2.0.20

Hardware / Firmware

FluidNC

What happened

I have been using UGS on my linux box to control my machine for a short amount of time but have recently switched to my macmini that I moved to the shop. After a while, what seems like a few min to an hour??? UGS crashes ORRR java is crashing. I have yet to have java crash on anything or ugs crash on my linux box. Not sure if its UGS or Java. Just posting here to see if its me or something else. thanks!

How to reproduce

Run UGS normally and it will eventually crash or its java crashing.

Operating System

Ventura 13.5.1 (22G90)

Anything else

Mac Mini 2023 M2 chip

Not where to find the java log file.

itsnotlevel1 commented 1 year ago

Just got another java crash report..... its long so I put it in a text file. JavaCrashReport.txt

breiler commented 1 year ago

I don't own a Apple M2 device so it is hard for me to debug this. So any help with this would be appreciated.

itsnotlevel1 commented 1 year ago

YES YES! :-) Ill help any way I can....just tell me what you need.

breiler commented 1 year ago

The first thing I would try is replace the Java runtime with another variant.

Start with downloading the "All platforms" edition of UGS: https://github.com/winder/Universal-G-Code-Sender#downloads

This does not contain a Java runtime environment, so that needs to be downloaded and unzipped separately from here: https://adoptium.net/temurin/releases/?os=mac&arch=aarch64&version=11

Then you need to edit the ugsplatform/etc/ugsplatform.conf and change the config parameter: jdkhome="jdk/jdk-13.0.1+9-jre" to point to the your JDK directory.

Then start UGS with the script ugsplatform/bin/ugsplatform

itsnotlevel1 commented 1 year ago

Thank you I'll try all this tonight!

Paul

-------- Original Message -------- On Sep 3, 2023, 2:41 PM, Joacim Breiler wrote:

The first thing I would try is replace the Java runtime with another variant.

Start with downloading the "All platforms" edition of UGS: https://github.com/winder/Universal-G-Code-Sender#downloads

This does not contain a Java runtime environment, so that needs to be downloaded and unzipped separately from here: https://adoptium.net/temurin/releases/?os=mac&arch=aarch64&version=11

Then you need to edit the ugsplatform/etc/ugsplatform.conf and change the config parameter: jdkhome="jdk/jdk-13.0.1+9-jre" to point to the your JDK directory.

Then start UGS with the script ugsplatform/bin/ugsplatform

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

itsnotlevel1 commented 1 year ago

Ok, Not sure but I think I did everything correctly but now im getting a terminal opening up before UGS opens with this:

Last login: Mon Sep 4 12:01:39 on ttys000 /Users/paulwilson/Downloads/ugsplatform/bin/ugsplatform ; exit; paulwilson@MINIMACDRAWING ~ % /Users/paulwilson/Downloads/ugsplatform/bin/ugsplatform ; exit; WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/Users/paulwilson/Downloads/ugsplatform/platform/lib/boot.jar) to field java.net.URL.handler WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release

but this never happened before, and I havent run UGS long enough today for it or java to crash. I am running now so I will post.

breiler commented 1 year ago

The terminal showing errors are normal when running from the start script. If this works I will try and package a new UGS variant for MacOSX for Aarch64 architecture. Thanks for testing this!

itsnotlevel1 commented 1 year ago

No problem! Im happy to help. Oh and one thing....my xbox controller for my machine was working amazingly and now with whatever im doing now.....no buttons show in the settings window and it no longer moves my machine. ??? Could it be how its currently running? Instead of being installed in the application folder per usual? Not a huge deal I assume it will work when i go back to the regular install and usage.....

breiler commented 1 year ago

You are now running Java for an architecture which might not be supported by the library we are using for accessing the gamepad. But as I don't have access to a machine with that architecture I have no way of verifying this.

Post your log from ~/Library/Application Support/ugsplatform/var/log/messages.log after your job is done and we can see if it gives any clues.

itsnotlevel1 commented 1 year ago

Most of the day on Monday after your recommendations and about 3 hours tonight with no crashes. I will continue to run the machine and leave UGS running until tomorrow and the same for tomorrow evening after I get off work and will leave UGS open but not connected until then. Just as a point of reference, even if I wasnt using the machine but had ugs open and connected, it would still crash. As of now, it seems to have stopped. I am running the java free version of 2.0.20 of UGS and OpenJDK11U-jre_aarch64_mac_hotspot_11.0.20.1_1 version of java, just so you know.

itsnotlevel1 commented 1 year ago

BTW.... there is no such file or folder for UGS.... ~/Library/Application Support/ugsplatform/var/log/messages.log

itsnotlevel1 commented 1 year ago

Third day, no crashes....still running. Just an update.

breiler commented 12 months ago

Thanks, I'll try and create a new packaging for MacOSX aarch64.

itsnotlevel1 commented 11 months ago

Hej! Joacim.... :-) Any progress on a new build for MacOSX? I can help if you would like. Anything I can do I am happy to. Thanks!

itsnotlevel1 commented 11 months ago

Hey again Joacim! I pulled the new Pre-release down and used it for a while today. It crashed twice both times I wasnt using it but I was using it for about 2 hours before that. It seems like it crashes when Im NOT using it.... :( Everything else seems to be working....Im really enjoying having my controller back. Below is the crash info:

21prereleasemaccrash.pdf

itsnotlevel1 commented 10 months ago

So for the last week I have downloaded a nightly build and the program opens then just sits there with my spinning apple balloon and doesnt actually start but its half way open trying...???? to load?

Screenshot 2023-10-26 at 1 03 28 PM

Video.... https://drive.google.com/file/d/1g4HyJt0IfCMmWyH-CazLMBzMiLFz_X8i/view?usp=drive_link

itsnotlevel1 commented 10 months ago

Maybe some cache I need to delete and start over?

breiler commented 10 months ago

That version should contain the feature that clears the cache on startup. Did you download the MacOSX ARM64 package?

If not or if you are unsure, there is a release candidate that you can try here: https://github.com/winder/Universal-G-Code-Sender/releases/tag/v2.1.0

breiler commented 10 months ago

If that still doesn't work I would appreciate the log file from ~/Library/Application Support/ugsplatform/var/log/messages.log

itsnotlevel1 commented 10 months ago

I deleted some files in macos pertaining to UGS....they were pretty hidden but now seem to be working......I seriously tried to open it up several times in the last few days and it would just hang. I cleared those files.....I can look to see what they were....and now it opens. Ill continue to use it as normal....thanks for all your attention and hard work!!

itsnotlevel1 commented 10 months ago

Here are the logs anyway..... and the files I hunted down and deleted.

messages.log Archive.zip