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

rr doesn't work with SDL2 #2432

Closed
sefeng211 opened this issue Jan 22, 2020 · 5 comments
Closed

rr doesn't work with SDL2 #2432

sefeng211 opened this issue Jan 22, 2020 · 5 comments

Comments

@sefeng211
Copy link

➜  build rr ./emueGBA ../rom/Dr_mario.gb
rr: Saving execution to trace directory `/home/saber/.local/share/rr/emueGBA-3'.
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  101
  Current serial number in output stream:  102

I aware #1578, however I don't get the first error. Not sure what I should do to move it forward, thanks :)

@rocallahan
Copy link
Collaborator

We disable direct rendering. I guess something's falling back to GLX, which your system doesn't support. Is there some way to force SDL2 to use a pure CPU, non-GLX renderer?

@sefeng211
Copy link
Author

Not sure about that, I probably need to compile SDL2 myself....
Anyways, since it's a not a bug in rr, I am closing this off. Thanks for the help.

@rocallahan
Copy link
Collaborator

It kind of is a bug in rr, since if we knew how to force CPU-only non-GLX rendering in SDL2 via an environment variable or some other easy way, we could add that to rr.

@sefeng211
Copy link
Author

ah I see...okay, Let me look that around, reopening :)

@sefeng211 sefeng211 reopened this Jan 22, 2020
@sefeng211
Copy link
Author

According to https://discourse.libsdl.org/t/force-cpu-only-non-glx-rendering-on-linux/27099/2, SDL_RENDER_DRIVER=software is the environment variable that we can use.

I've tested it and it works for me.

sidkshatriya pushed a commit to sidkshatriya/fork.rr that referenced this issue Dec 11, 2020
Resolves rr-debugger#2432

(cherry picked from commit 806f9ae)
bkin pushed a commit to bkin/rr that referenced this issue May 20, 2021
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

No branches or pull requests

2 participants