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

"GL ERROR 65539: Invalid key -1" Suppression #4

Open
BunCat09 opened this issue May 27, 2024 · 9 comments
Open

"GL ERROR 65539: Invalid key -1" Suppression #4

BunCat09 opened this issue May 27, 2024 · 9 comments

Comments

@BunCat09
Copy link

I get this error:

[14:15:07] [Render thread/ERROR]: ########## GL ERROR ##########
[14:15:07] [Render thread/ERROR]: @ Render
[14:15:07] [Render thread/ERROR]: 65539: Invalid key -1

latest.log

Is it possible for you to suppress this too?
I couldn't find much info to fix the error myself but the game runs fine until the log gets too long/big and then it starts stuttering.

If no, you could point me in the right direction to suppress it. Then I would be happy to try and do it myself.

@AdamRaichu
Copy link
Owner

Could you run this again, but with stack trace enabled? I want to figure out which part of the game's code this is coming from.

Also, could you give me your options.txt?

@BunCat09
Copy link
Author

Here they are:
options.txt
latest.log with "No Error Context" option disabled. I forgot I had it checked. I hope That enabled the stack trace, if not I have no idea how to enable it.

@AdamRaichu
Copy link
Owner

Kind of a weird question, but how many buttons does your mouse have? Your keybindings say you have toggle perspective to mouse.4 and spyglass-improvements.use to mouse.5.

If you only have the normal three buttons (left, right, and middle), change those settings by manually editing options.txt and then starting MC.

https://gist.github.com/berkkrkc09/512f54757267c0ecab32fc370fb3c172#file-options-txt-for-gl-error-L108

https://gist.github.com/berkkrkc09/512f54757267c0ecab32fc370fb3c172#file-options-txt-for-gl-error-L191

@BunCat09
Copy link
Author

BunCat09 commented May 27, 2024

My mouse has 8 buttons. 3 standard, 2 additional on top side, 3 on the left side. I did bind them, in Minecraft, myself. Are they causing issues?

@AdamRaichu
Copy link
Owner

My mouse has 8 buttons. 3 standard, 2 additional on top side, 3 on the left side. I did bind them, in Minecraft, myself. Are they causing issues?

Probably not since those buttons actually exist, but funnily enough, the GLFW error with the same id has to do with nonexistent keys apparently. (Searching minecraft 65539 on Google shows this as the top result, so I just wanted to make sure that wasn't the problem lol.)

I will take a peek in the source code to see if I can find where this error is coming from, because stack trace didn't end up being helpful.

@BunCat09
Copy link
Author

Actually, I did see that while looking for a fix for the error. There is usually more information about gl errors. I'm very surprised that there is nothing about this particular one.

@BunCat09
Copy link
Author

Hey, I noticed that the error appears in the log just as I click "a key"/"any key" on my keyboard. It doesn't happen with the mouse though. I left the console open just to see when it was logged, and the error happens while doing anything(moving, in inventory, etc.) Each line of those errors in the log corresponds to a single key click. I don't know what to make out of this but I hope it helps.

@AdamRaichu
Copy link
Owner

I found the method that the errors are being logged from. This is from net.minecraft.client.util.Window (fabric 1.20.4 build).

    public void logGlError(int error, long description) {
        RenderSystem.assertOnRenderThread();
        String string = MemoryUtil.memUTF8(description);
        LOGGER.error("########## GL ERROR ##########");
        LOGGER.error("@ {}", (Object)this.phase);
        LOGGER.error("{}: {}", (Object)error, (Object)string);
    }

This should be relatively easy to mute.

@BunCat09
Copy link
Author

BunCat09 commented Jun 2, 2024

Oh, this is great news. Thank you for dedicating your time to this. I don't know if you want this issue closed now or later so you can close it if you want. \^o^/

CelestialAbyss added a commit to Project-Vyre/Finality-Genesis that referenced this issue Jun 15, 2024
- I could not stop laughing after discovering this oh my god.
- See AdamRaichu/suppress-OpenGL-1280#4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants