Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UGS crash....Java crash after an amount of time #2305

Open
itsnotlevel1 opened this issue Sep 2, 2023 · 21 comments
Open

UGS crash....Java crash after an amount of time #2305

itsnotlevel1 opened this issue Sep 2, 2023 · 21 comments

Comments

@itsnotlevel1
Copy link

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
Copy link
Author

itsnotlevel1 commented Sep 2, 2023

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

@breiler
Copy link
Collaborator

breiler commented Sep 3, 2023

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
Copy link
Author

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

@breiler
Copy link
Collaborator

breiler commented Sep 3, 2023

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
Copy link
Author

itsnotlevel1 commented Sep 3, 2023 via email

@itsnotlevel1
Copy link
Author

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
Copy link
Collaborator

breiler commented Sep 4, 2023

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
Copy link
Author

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
Copy link
Collaborator

breiler commented Sep 4, 2023

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
Copy link
Author

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
Copy link
Author

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

@itsnotlevel1
Copy link
Author

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

@breiler
Copy link
Collaborator

breiler commented Sep 8, 2023

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

@itsnotlevel1
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

Maybe some cache I need to delete and start over?

@breiler
Copy link
Collaborator

breiler commented Oct 26, 2023

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
Copy link
Collaborator

breiler commented Oct 26, 2023

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

@itsnotlevel1
Copy link
Author

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
Copy link
Author

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

messages.log
Archive.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants