From 07b3918129bba1051198d06d183e3a90b5ab0d8f Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 19 Dec 2017 13:55:36 +0100 Subject: [PATCH] Do not call SDL_Quit() It may crash in i965_dri.so when calling SDL_Quit (probably a driver bug). To avoid a segmentation fault, do not call SDL_Quit(). --- app/src/screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/screen.c b/app/src/screen.c index 7a834f57..0047bcb7 100644 --- a/app/src/screen.c +++ b/app/src/screen.c @@ -297,7 +297,9 @@ SDL_bool show_screen(const char *serial, Uint16 local_port) { ret = SDL_FALSE; goto screen_finally_stop_decoder; } - atexit(SDL_Quit); + // FIXME it may crash in SDL_Quit in i965_dri.so + // As a workaround, do not call SDL_Quit() (we are exiting anyway). + // atexit(SDL_Quit); // Bilinear resizing if (!SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1")) {