Any wayland experienced developers can help out diagnose a crash in libwayland-client?
clone https://github.com/falkTX/wayland-audio-plugin-test
make && ./test-crash
(needs quite a few deps because its a test repo, should be obvious to any developer)
valgrind reports in the attached picture.
I suspect the load, unload and load again to be the issue.
@falktx maybe add a few tags for visibility?
@dvzrv I think I solved the issue now, but doing some stress testing first...
seems we need to clear the GL context before destroying it. if not the next GL context creation fails badly.
Well nevermind, fixed it in https://github.com/falkTX/wayland-audio-plugin-test/commit/ff9bdd884cfaeea95dd7402199a7741c39b7a727
(with some other little cleanup too)
basically I need to call "eglMakeCurrent(display, NULL, NULL, NULL);" to invalidate the GL context before deleting it.
everything works fine if this is the last thing the app does. crash happens if we create a new context after we delete one without "clearing" it first.