mojira.dev

Roescoe Wild

Assigned

No issues.

Reported

No issues.

Comments

Yeah the workaround is the only way to deal with it and it will remain that way for modded minecraft since they use particular versions. So I think we're stuck with it since Mojang doesn't care about Linux, enough to fix a basic playable feature.

Not bad, 17w47b was only 3 years, 3 1/2 months ago.  Seriously it will be nice though not to have to add the workaround jvm arguments to each new profile.

@Alan Klas
There are a few methods which seem to work for some people. None of them are fixes, they are workarounds, besides the one which updates lwjgl.

This fix requires you have set the parameters in your "launch options" tab in the launcher for the specific 1.13+ version to point to the path where the updated version is. Here is my JVM arguments which I use for 1.16.1:

-XX:+UseG1GC -Xmx4G -Xms3G -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -XX:-UseAdaptiveSizePolicy -Dorg.lwjgl.librarypath="/home/[user]/myLibrary"

The folder myLibrary in my case has the files:

libglfw.conf (this file just has the path of the folder which is "home/[user]/myLibrary" you can create a file like this in a text editor such as "Sublime" or "Text Editor" on ubuntu)

libglfw.so (this file is downloaded here: https://i.selic.re/libglfw.so )

I did not give any new information not already in this post, so please do take the time to read through it and thank the people who put it together.

I have had the opposite experience. It was working in later versions in windowed, and now they all seem broken. I'm getting the same issue even in 1.12.2 which used to be smooth. I'm wondering if it's a library that got updated or some deal which actually affects all versions of MC.

Correct that's what this bug is about.

@RedCMD even more simply have an option that says "Linux compatibility mode" and it just uses the fix which breaks MacOS.

I prefer windowed as well. And yeah it's not a "solution" merely I am forced to play that way if I am to use a newer version of minecraft. Do none of the developers use linux to test or develop on? What kinda place is Mojang?

@John McGinness Fullscreen mode seems to make it work silky smooth. disabling raw input makes it a tiny bit smoother but still awful in windowed.

 

For me I can't even play in windowed it's so bad that every time I move the camera slightly It gives me 1 fps (though not shown in F3 at all) for a good 5 secs.

Is this in any way related to? https://bugs.mojang.com/browse/MC-122421 

 

Can confirm it still happens in 1.14.2 and 1.14.3 if I don't launch it with the script.

@Florent Yeah Ctrl V works for me with deleting the trailing v. It is very interesting that CTRL+C works for you. I wonder why that's inconsistent.

@Selicre: Thanks, that shift+home does appear to work, though the copying seems to require ctrl c (which is identical to ctrl x) and pasting is shift+insert.

 

I guess that's basically saying go to home while I hold shift. I'm glad to have it documented here for others who are confused. Not sure if there's any hope for this bug to be fixed. Sadly it is still present in the latest snapshot.

I found a major problem with the work around, which I didn't realize was related. When attempting to select all (ctrl a) it deletes all the text and does not copy it, it also adds an "a". Since there is no other way to select text, text is unselectable with this workaround. Please give us a real fix Mojang.

I am having this issue currently, where I can't set the startupWMClass in the .desktop file for the launcher, and thus it opens a new window not connected to the launcher icon on the sidebar (Ubuntu 18.04). Is this related? 

Oh huh, but I could theoretically set it globally, (I assume this is where the issues would come up) I wondered if it would come to scripts though.

It was hard for me to find the current launcher as it isn't in the .minecraft folder (the old one is though). For others wondering the path I found was "/opt/minecraft-launcher/launcher" (you all can add that to your list of places to search)

And YES! it works. Thanks many times over Selicre.

@hyper, where does this line go? I see references to XMODIFIERS on some help forums but it doesn't seem clear to me where to place this line. Thanks for the help. (I'd be curious what input issues it can cause as well.)

So if I could be of any assistance would it be by making a patch to GLFW because it doesn't have some component? Or is the minecraft code to read key-presses just wrong for linux?

1.13.1 also has this issue. Is this just a problem of the library not being updated to the latest on Linux? Or is this directly to do with the Linux version of Minecraft?

For me this issue only occurs on my external keyboard in 1.13 My laptop keyboard seems to be able to send the multiple keypresses at the same time. And no it's not the keyboard, the keyboard works fine in 1.12.2