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

SDL3:The call to the CreateRender function failed, causing the x server to report an error when enabling the event #12503

Open
PulpFiction98 opened this issue Mar 10, 2025 · 6 comments

Comments

@PulpFiction98
Copy link

PulpFiction98 commented Mar 10, 2025

#12221

This question is a continuation of the previous one.

On Linux arm64, on deepin, SDL3 was used to create a form using X11 handle. After using CreateRender (window, NULL), a pointer to render was returned. However, an error occurred regarding the X server when enabling the event. If no Render is created after creating the window, there are no errors when enabling events, and event reception is normal.

I found 4 renderers in SDL3:
opengles2 CreateRender return null
vulkan CreateRender return render (poll_event error x server,Unable to render and cannot reset window size)
gpu CreateRender return null
software CreateRender return null
And in SDL2, I found three renderers
OpenGL Create Render return render (rendering everything is normal except that there are no errors when calling poll_ivent, indicating that the mouse event cannot be received)
opengles2 CreateRender return null
software CreateRender return null

Image

Image

@PulpFiction98
Copy link
Author

PulpFiction98 commented Mar 10, 2025

Why did SDL2 and SDL3 find different renderers on the same computer, and was OpenGL abandoned in SDL3?

@PulpFiction98 PulpFiction98 changed the title The call to the CreateRender function failed, causing the x server to report an error when enabling the event SDL3:The call to the CreateRender function failed, causing the x server to report an error when enabling the event Mar 10, 2025
@PulpFiction98
Copy link
Author

PulpFiction98 commented Mar 10, 2025

This problem has not been reproduced on other computers, so it is not easy to modify it, but please at least tell me one idea~
@slouken
I really hope to fix it.

@slouken
Copy link
Collaborator

slouken commented Mar 10, 2025

Sorry, don't have any ideas.

@slouken
Copy link
Collaborator

slouken commented Mar 10, 2025

OpenGL is still available in SDL3, for some reason when you built it the development libraries weren't enabled.

Did you install all the dependencies listed here when you built it?
https://github.com/libsdl-org/SDL/blob/main/docs/README-linux.md

@PulpFiction98
Copy link
Author

OpenGL is still available in SDL3, for some reason when you built it the development libraries weren't enabled.

Did you install all the dependencies listed here when you built it? https://github.com/libsdl-org/SDL/blob/main/docs/README-linux.md

emmm, I will check it today.

@PulpFiction98
Copy link
Author

sorry, I am a fool. I didn't install the OpenGL development library before. After installation, it returned to normal. I'm very sorry for taking up your time.
There is only one small issue left now. There is no Vulkan on my computer. Before installing OpenGL, although the 'create render Vulkan' failed, it returned a pointer normally.This may be a small issue
@slouken

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