Awesome, thanks! <3 The only problem is that it doesn't work :D ArchLinux, Linux 4.14.5, Mesa 17,3.0, Radeon RX 470, PulseAudio 11.1. App starts, opens the window, but then freezes (and somewhat randomly shows whatever I had or screen before, or shows a bit messed-up first frame). One of the threads is using 100% of a CPU core, this is the backtrace when I stop it (I had to recompile SDL to get debug symbols):
#0 SDL_AtomicLock_REAL (lock=0x7f84dc5546a4 <lock>) at /home/lew21/sdl/src/SDL2-2.0.7/src/atomic/SDL_spinlock.c:123
123 while (!SDL_AtomicTryLock(lock)) {
(gdb) bt
#0 0x00007f84dc26414c in SDL_AtomicLock_REAL (lock=0x7f84dc5546a4 <lock>) at /home/lew21/sdl/src/SDL2-2.0.7/src/atomic/SDL_spinlock.c:123
#1 0x00007f84dc26e163 in SDL_InitDynamicAPI () at /home/lew21/sdl/src/SDL2-2.0.7/src/dynapi/SDL_dynapi.c:310
#2 0x00007f84dc2741b8 in SDL_WasInit_DEFAULT (a=16) at /home/lew21/sdl/src/SDL2-2.0.7/src/dynapi/SDL_dynapi_procs.h:88
#3 0x00007f84dc6830c7 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#4 0x00007f84dc683459 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#5 0x00007f84dc666ffd in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#6 0x00007f84dc62c838 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#7 0x00007f84dc62cdc1 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#8 0x00007f84dc62d6e2 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#9 0x00007f84dc5e9979 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#10 0x00007f84dc5eb0d1 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#11 0x00007f84dc632b21 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#12 0x00007f850c2d308a in start_thread () at /usr/lib/libpthread.so.0
#13 0x00007f850b51842f in clone () at /usr/lib/libc.so.6
(gdb) f 1
#1 0x00007f84dc26e163 in SDL_InitDynamicAPI () at /home/lew21/sdl/src/SDL2-2.0.7/src/dynapi/SDL_dynapi.c:310
310 SDL_AtomicLock_REAL(&lock);
(gdb) info locals
already_initialized = SDL_TRUE
lock = 1
Sometimes the backtrace doesn't contain the first 2 frames:
#0 SDL_WasInit_DEFAULT (a=16) at /home/lew21/sdl/src/SDL2-2.0.7/src/dynapi/SDL_dynapi_procs.h:88
88 SDL_DYNAPI_PROC(Uint32,SDL_WasInit,(Uint32 a),(a),return)
(gdb) bt
#0 0x00007f84dc2741b0 in SDL_WasInit_DEFAULT (a=16) at /home/lew21/sdl/src/SDL2-2.0.7/src/dynapi/SDL_dynapi_procs.h:88
#1 0x00007f84dc6830c7 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#2 0x00007f84dc683459 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#3 0x00007f84dc666ffd in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#4 0x00007f84dc62c838 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#5 0x00007f84dc62cdc1 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#6 0x00007f84dc62d6e2 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#7 0x00007f84dc5e9979 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#8 0x00007f84dc5eb0d1 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#9 0x00007f84dc632b21 in () at /opt/steam/steamapps/common/Pillars of Eternity II - Public Beta/PillarsOfEternity2_Data/Plugins/x86_64/libAkSoundEngine.so
#10 0x00007f850c2d308a in start_thread () at /usr/lib/libpthread.so.0
#11 0x00007f850b51842f in clone () at /usr/lib/libc.so.6