-
-
Notifications
You must be signed in to change notification settings - Fork 884
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
LWJGL 2 is unmaintained and new builds are needed #2669
Comments
For some reason you are running Minecraft on the Internal GPU. Du you have the required drivers installed? |
Yes, I recently I installed nvidia drivers. putting this in .xprofile, to run on start fixed the issue. |
I found something. This resolves the issue. But can you tell me why it works? |
Somehow LWJGL is not able to get your current primary resolution (it gets an empty list and then tries to access the first value). That also explains why you solution works. Whatever bugs on your default resolution and causes that crash does not happen on the other resolution. |
What do you mean by disabling full screen? I found something, in version 1.14.1 the game starts normally, version 1.12 have problems even without mods or forge. |
The newer versions of minecraft (1.13+) use a wildly different version of LWJGL that does not have this issue. The old version does a dirty hack that does (for some reason) not work on your system. |
This is the output of
This is the log with the debug flag |
I have fixed the issue. private static final Pattern SCREEN_MODELINE_PATTERN = Pattern.compile("^(\\d+)x(\\d+)$");
...
...
Matcher m = SCREEN_MODELINE_PATTERN.matcher(sa[0]);
// where sa[0] will be the first split of the line
// 1920x1080_60.00 59.96*
// which is 1920x1080_60.00 to find the mode's width and height. I got the mode I'm using now from Arch wiki by using
The above mode does not match the regex, thus it was not discovered by The solution is just to edit I tried to edit |
That sounds bad. The LWJGL version is probably not maintained anymore and implementing a fix in MultiMC would be a horrible hack... |
Cool. LWJGL 2 is basically unmaintained at this point, so it may be necessary to fork it and fix it. |
Minecraft uses a nightly built 2.9.4.xxxxxx, I don't know who is contributing to it because legacy LWJGL lastest version is 2.9.3 If we made a repo for LWJGL I think it's best if we can get the code of the nightly build. |
The commits are there, it's just that they were never put in an actual release. |
We now know how to solve this issue, even though the solution is not applicable now as of stopping support to LWJGL2. should we close this issue? |
CC: LWJGL/lwjgl#147 I managed to get LWJGL 2 to compile on Linux Mint here. The new build of the non-native lwjgl jar fixed a bug I was having with sneak and hotbar controls. I am not sure what other bugs it has fixed. To use a version of LWJGL locally for a MultiMC instance, I needed to:
Edit 2020-05-30: I found that only replacing the cross-platform JAR was necessary to get the fixes I needed. |
I'm also having a problem with 1.12.2 crashing during startup. It does not seem to be related to video stuff though. My error appears to be caused by something trying to cast an object to an incompatible object type. Following is the console output for my 1.12.2, Forge 14.23.5.2847 instance, with no mods. I get a different error when I try to run 1.12.2 vanilla, which I will post in a separate message.
|
Here's my error log for 1.12.2 vanilla, in case it helps:
|
your issue is unrelated to LWJGL. dont use java 17 on versions below 1.17. And not, we dont need to change lwjgl either. All working as intended. |
I tried with Java 11 as well (on both of those). I'm not sure why MultiMC5 was defaulting to 17 in the first place. I'm pretty sure when I set it up in the beginning, I told it to default to Java 11. Should I open a new report for this then? Or is crashing what is intended running 1.12.2 with Java 11 as well? |
yes you should. either way, we dont need to spam the issue tracker, if you have an issues, contact us on discord or make another issue, but dont append to issues that arent connected to yoru issue. your issue is, that you are using the wrong java, use java 8. if you need help setting up, you know where to find us |
I wasn't sure if it was related, and I didn't want to duplicate an issue. Sorry. I'll try Java 8. (I should be able to handle setting it up, assuming Debian still has Java 8 on its repos...) Anyhow, thanks. If that doesn't fix it, I'll open a new issue. |
System Information
MultiMC version: 0.6.5-custom
Operating System: Antergos Linux x86_64
Kernel: 5.1.4-arch1-1-ARCH
Summary of the issue or suggestion:
When opening a modded minecraft (maybe forge is the issue) the game crashes in OneSix launcher.
Tried with PO3 and Enigmatica2 Expert.
Maybe as other similar issues suggest. it is because of forge.
In here I'm using java openjdk 8.
I think this problem happened after I made nvidia my primary graphics driver.
What should happen:
The game should start normally, as if there is no forge.
Steps to reproduce the issue (Add more if needed):
Suspected cause:
Nvidia and openGL problems with forge
Logs/Screenshots:
This is the log of the run:
https://paste.ee/p/Y89Gn
Additional Info:
The text was updated successfully, but these errors were encountered: