runelite icon indicating copy to clipboard operation
runelite copied to clipboard

Java 22 crashes on linux

Open prxsto opened this issue 1 year ago • 4 comments

Type

Crash or hang

Operating System

Linux

OS Version

Arch Linux

Bug description

Client occasionally crashes when hovering a player lookup hiscore, such as kc or skill xp. Only appears to occur after I've been logged in and playing for >30 minutes. Launched using Bolt Launcher. Crash has happened with all plugins disabled, but could not find how to launch in safe mode on Linux to confirm.

Screenshots or videos

No response

RuneLite version

RuneLite v1.10.32.1 Launcher v2.7.1

Logs

client.log launcher.log jvm_crash_pid_30109_r.log

prxsto avatar Jun 21 '24 22:06 prxsto

Java 22 has shown to be unstable on Linux. I don't think anyone has looked into why, it might be a Java bug. If you do have steps to reproduce it that might be useful for someone looking at this later. We do not actually support 22 or really even try to make RuneLite work on it. I recommend downgrading to either 17 or 11.

Adam- avatar Jun 21 '24 22:06 Adam-

thanks for the info. is it possible to set a launch flag for runelite to use 11/17 and keep 22 installed alongside?

prxsto avatar Jun 21 '24 22:06 prxsto

sudo archlinux-java set java-17-openjdk

abextm avatar Jun 21 '24 22:06 abextm

I had this issue occur shortly after this issue was posted, so thanks for reporting it and for the feedback on how to remedy the crashing issue.

As far as something actionable to prevent this from happening to people in the future, could we have Runelite display a warning if we're using a version of Java which is unsupported by Runelite? @Adam-

avahe-kellenberger avatar Jun 22 '24 20:06 avahe-kellenberger

We haven't seen this happen in awhile and also Java 22 is EOL now anyway.

Adam- avatar Jun 17 '25 15:06 Adam-