Examples segfault when run through virtual terminal #74
-
Running any of the examples through a virtual terminal causes a crash. I'm on arch linux using an intel iGPU (i7-1260P). This happens in both the precompiled binaries, and binaries compiled on the latest commit (e16c711) with the release type set to debug and debug mode enabled. I was able to get a stack trace from a core dump, which I have attached. The compositor seems to mostly work when run through cage with the wayland EGL backend. Log:
Trace:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Hi, thanks for reporting this. It could be an SRM bug, but it's odd that it crashes when calling This line also suspicious:
Are you sure you're launching them from a free TTY and not within another Wayland compositor? To launch them, you need to:
|
Beta Was this translation helpful? Give feedback.
-
Also, if you're building it manually, make sure to complete the meson install step, as assets and backends need to be properly installed and located on your system. You might be running a compiled example from the build directory, which could be linking to lib/backends installed by your package manager. |
Beta Was this translation helpful? Give feedback.
I believe I've found the cause of the bug. It seems that your implementation of
eglGetDisplay()
is returning a WaylandEGLDisplay
instead of GBM, even when a GBM handle is passed. I replaced the call witheglGetPlatformDisplay()
, which allows explicitly specifying a GBM display handle. I've added this change to the egl_fix branch of SRM. Could you check if this fixes it? It's still working fine for me.