RetroArch freezes on startup -[Resolved]

I’m running Ubuntu 16.04 and whenever I run Retroarch, it freezes. I can’t close the window without the task manager. When I minimize or maximize the window, it becomes black. I am sure I installed it correctly and my drivers are up to date, I believe. I can run it with wine, but none of the icons load, so I would prefer to run the linux version.

1 Like

Where did you get it/install from? Self-compiled? PPA (stable or testing)? flatpak/appimage/snappy?

1 Like

Thanks for the quick response. I’m pretty sure I used the stable PPA.

1 Like

Ok, try using the testing PPA. The stable one gets a little stale.

If the testing PPA isn’t any better, you can try the snap package (sudo snap install retroarch).

Okay. So I tried to install RA via the testing ppa and it said version 1.7.0 . Am I doing something wrong here?

No, that’s fine. Testing builds from the latest git code every day, so even though it’s still the 1.7.0 version, it’s more up-to-date than 1.7.0 stable.

Is it still doing the same thing?

Yeah. Still freezing/not responding.

Ok, I guess we’ll need a log to know what’s going on.

Where would I find one?

launch from a command line with --verbose. It’ll print everything to stdout. You can add --log-file /path/to/log.txt and it’ll print to a file.

[INFO] RetroArch 1.7.0 (Git 6f73bdf)
[INFO] === Build =======================================
[INFO] Version: 1.7.0
[INFO] Git: 6f73bdf
[INFO] =================================================
[INFO] [Config]: Loading default config.
[INFO] [Config]: loading config from: (null).
[INFO] Looking for config in: "/home/chrx/.config/retroarch/retroarch.cfg".
[INFO] Environ SET_PIXEL_FORMAT: RGB565.
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 29970.03 Hz.
[INFO] [Video]: Video @ 960x720
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [GLX]: GLX_OML_sync_control and GLX_MESA_swap_control supported, using better swap control method...
[INFO] [GL]: Found GL context: x
[INFO] [GL]: Detecting screen resolution 1920x1080.
[INFO] [GLX]: X = 0, Y = 0, W = 960, H = 720.
[INFO] [GLX]: Found swap function: glXSwapIntervalMESA.
[INFO] [GLX]: glXSwapInterval(1)
[INFO] [GL]: Vendor: Intel Open Source Technology Center, Renderer: Mesa DRI Intel(R) HD Graphics 400 (Braswell) .
[INFO] [GL]: Version: 3.0 Mesa 17.2.4.
[INFO] [GL]: Using resolution 960x720
[INFO] [GL]: Default shader backend found: glsl.
[INFO] [Shader driver]: Using GLSL shader backend.
[INFO] [GLSL]: Checking GLSL shader support ...
[WARN] [GL]: Stock GLSL shaders will be used.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] Shader log: 0:3(311): warning: `atime' used uninitialized

[INFO] [GLSL]: Linking GLSL program.
[INFO] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 1 program(s).
[INFO] [GL]: Using GL_RGB565 for texture uploads.
[INFO] [Joypad]: Found joypad driver: "udev".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [X11]: Suspending screensaver (X11, xdg-screensaver).
[INFO] [Video]: Found display server: x11
[INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432.
[INFO] [Menu]: Found menu display driver: "menu_display_gl".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [LED]: LED driver = 'null' 0x77d1c0
[INFO] SRAM will not be saved.
[INFO] Loading history file: [/home/chrx/.config/retroarch/content_history.lpl].
[INFO] Loading history file: [/home/chrx/.config/retroarch/content_favorites.lpl].
[INFO] Loading history file: [/home/chrx/.config/retroarch/content_music_history.lpl].
[INFO] Loading history file: [/home/chrx/.config/retroarch/content_video_history.lpl].
[INFO] Loading history file: [/home/chrx/.config/retroarch/content_image_history.lpl].
[INFO] [GL]: VSync => on
[INFO] [GLX]: glXSwapInterval(1)
[INFO] [PulseAudio]: Unpausing.
[INFO] [GL]: VSync => on
[INFO] [GLX]: glXSwapInterval(1)
[INFO] [PulseAudio]: Pausing.

I don’t see anything unusual in there. If you try to load a game directly from CLI, do you hear any audio?

Nope. Just a blank white screen.

[INFO] RetroArch 1.7.0 (Git 6f73bdf)
[INFO] Redirecting save file to "/home/chrx/Downloads/Roms/PokemonEmerald.srm".
[INFO] Redirecting savestate to "/home/chrx/Downloads/Roms/PokemonEmerald.state".
[INFO] === Build =======================================
[INFO] Version: 1.7.0
[INFO] Git: 6f73bdf
[INFO] =================================================
[INFO] [Config]: Loading default config.
[INFO] [Config]: loading config from: (null).
[INFO] Looking for config in: "/home/chrx/.config/retroarch/retroarch.cfg".
[INFO] Loading dynamic libretro core from: "/home/chrx/libretro-super/libretro-mgba/mgba_libretro.so"
[INFO] [overrides] no core-specific overrides found at /home/chrx/.config/retroarch/config/mGBA/mGBA.cfg.
[INFO] [overrides] no game-specific overrides found at /home/chrx/.config/retroarch/config/mGBA/PokemonEmerald.cfg.
[INFO] Shaders: preset directory: /home/chrx/.config/retroarch/shaders/presets
[INFO] Shaders: no game-specific preset found at /home/chrx/.config/retroarch/shaders/presets/mGBA/PokemonEmerald.cgp.
[INFO] Shaders: no game-specific preset found at /home/chrx/.config/retroarch/shaders/presets/mGBA/PokemonEmerald.glslp.
[INFO] Shaders: no core-specific preset found at /home/chrx/.config/retroarch/shaders/presets/mGBA/mGBA.cgp.
[INFO] Shaders: no core-specific preset found at /home/chrx/.config/retroarch/shaders/presets/mGBA/mGBA.glslp.
[INFO] Environ SET_VARIABLES.
[INFO] Remaps: remap directory: /home/chrx/.config/retroarch/config/remaps
[INFO] Remaps: no game-specific remap found at /home/chrx/.config/retroarch/config/remaps/mGBA/PokemonEmerald.rmp.
[INFO] Remaps: no core-specific remap found at /home/chrx/.config/retroarch/config/remaps/mGBA/mGBA.rmp.
[INFO] Redirecting save file to "/home/chrx/Downloads/Roms/PokemonEmerald.srm".
[INFO] Redirecting savestate to "/home/chrx/Downloads/Roms/PokemonEmerald.state".
[INFO] Environ SET_PIXEL_FORMAT: RGB565.
[INFO] Environ SET_INPUT_DESCRIPTORS:
[INFO] 	RetroPad, User 1, Button "B (bottom)" => "B"
[INFO] 	RetroPad, User 1, Button "Y (left)" => "Turbo B"
[INFO] 	RetroPad, User 1, Button "Select" => "Select"
[INFO] 	RetroPad, User 1, Button "Start" => "Start"
[INFO] 	RetroPad, User 1, Button "D-Pad Up" => "Up"
[INFO] 	RetroPad, User 1, Button "D-Pad Down" => "Down"
[INFO] 	RetroPad, User 1, Button "D-Pad Left" => "Left"
[INFO] 	RetroPad, User 1, Button "D-Pad Right" => "Right"
[INFO] 	RetroPad, User 1, Button "A (right)" => "A"
[INFO] 	RetroPad, User 1, Button "X (up)" => "Turbo A"
[INFO] 	RetroPad, User 1, Button "L" => "L"
[INFO] 	RetroPad, User 1, Button "R" => "R"
[INFO] 	RetroPad, User 1, Button "L2" => "Turbo L"
[INFO] 	RetroPad, User 1, Button "R2" => "Turbo R"
[INFO] 	RetroPad, User 1, Button "L3" => "Darken Solar Sensor"
[INFO] 	RetroPad, User 1, Button "R3" => "Brighten Solar Sensor"
[INFO] Environ GET_RUMBLE_INTERFACE.
[INFO] Environ GET_LOG_INTERFACE.
[INFO] Loading content file: /tmp/Pokemon - Emerald Version (U).gba.
[INFO] Did not find a valid content patch.
[INFO] CRC32: 0x1f1c08fb .
[INFO] Environ GET_VARIABLE mgba_use_bios:
[INFO] 	ON
[INFO] Environ GET_VARIABLE mgba_skip_bios:
[INFO] 	OFF
[INFO] Environ GET_VARIABLE mgba_idle_optimization:
[INFO] 	Remove Known
[INFO] Environ GET_VARIABLE mgba_frameskip:
[INFO] 	0
[WARN] SYSTEM DIR is empty, assume CONTENT DIR /home/chrx/Downloads/Roms/PokemonEmerald.zip
[INFO] Environ SYSTEM_DIRECTORY: "/home/chrx/Downloads/Roms/".
[INFO] Environ SET_MEMORY_MAPS.
[INFO]    ndx flags  ptr              offset   start    select   disconn  len      addrspace
[INFO]    001 M1A1bc 0x7fa66aa12000 00000000 03000000 FF000000 00000000 00008000 
[INFO]    002 M1A1bc 0x7fa650ac4000 00000000 02000000 FF000000 00000000 00040000 
[INFO]    003 M1A1bc 0x7fa650b04000 00000000 0E000000 FFFE0000 00000000 00020000 
[INFO]    004 M1A1bC 0x7fa650b24000 00000000 08000000 FF000000 00000000 01000000 
[INFO]    005 M1A1bC 0x7fa650b24000 00000000 0A000000 FF000000 00000000 01000000 
[INFO]    006 M1A1bC 0x7fa650b24000 00000000 0C000000 FF000000 00000000 01000000 
[INFO]    007 M1A1bC 0x7fa651bf3960 00000000 00000000 FFFFC000 00000000 00004000 
[INFO]    008 M1A1bc 0x7fa650aac000 00000000 06000000 FF000000 00000000 00018000 
[INFO]    009 M1A1bc 0x7fa66aa1aac4 00000000 05000000 FF000000 00000000 00000400 
[INFO]    010 M1A1bc 0x7fa66aa1aed0 00000000 07000000 FF000000 00000000 00000400 
[INFO]    011 M1A1bc 0x7fa66aa1a040 00000000 04000000 FFFFFC00 00000000 00000400 
[INFO] Environ SET_SUPPORT_ACHIEVEMENTS: yes.
[INFO] Skipping SRAM load..
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 32884.61 Hz.
[INFO] [CHEEVOS]: system RAM: 0x7fa650ac4000 262144
[INFO] [CHEEVOS]: save RAM:   0x7fa650b04000 131072
[INFO] [CHEEVOS]: video RAM:  0x7fa650aac000 98304
[INFO] [CHEEVOS]: RTC:        (nil) 0
[INFO] [Video]: Video @ 720x480
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [GLX]: GLX_OML_sync_control and GLX_MESA_swap_control supported, using better swap control method...
[INFO] [GL]: Found GL context: x
[INFO] [GL]: Detecting screen resolution 1920x1080.
[INFO] [GLX]: X = 0, Y = 0, W = 720, H = 480.
[INFO] [GLX]: Found swap function: glXSwapIntervalMESA.
[INFO] [GLX]: glXSwapInterval(1)
[INFO] [GL]: Vendor: Intel Open Source Technology Center, Renderer: Mesa DRI Intel(R) HD Graphics 400 (Braswell) .
[INFO] [GL]: Version: 3.0 Mesa 17.2.4.
[INFO] [GL]: Using resolution 720x480
[INFO] [GL]: Default shader backend found: glsl.
[INFO] [Shader driver]: Using GLSL shader backend.
[INFO] [GLSL]: Checking GLSL shader support ...
[WARN] [GL]: Stock GLSL shaders will be used.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] Shader log: 0:3(311): warning: `atime' used uninitialized

[INFO] [GLSL]: Linking GLSL program.
[INFO] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 1 program(s).
[INFO] [GL]: Using GL_RGB565 for texture uploads.
[INFO] [Joypad]: Found joypad driver: "udev".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [X11]: Suspending screensaver (X11, xdg-screensaver).
[INFO] [Video]: Found display server: x11
[INFO] [PulseAudio]: Requested 24576 bytes buffer, got 33792.
[INFO] [Menu]: Found menu display driver: "menu_display_gl".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [LED]: LED driver = 'null' 0x77d1c0
[INFO] Loading history file: [/home/chrx/.config/retroarch/content_history.lpl].
[INFO] Loading history file: [/home/chrx/.config/retroarch/content_favorites.lpl].
[INFO] Loading history file: [/home/chrx/.config/retroarch/content_music_history.lpl].
[INFO] Loading history file: [/home/chrx/.config/retroarch/content_video_history.lpl].
[INFO] Loading history file: [/home/chrx/.config/retroarch/content_image_history.lpl].
[INFO] [GL]: VSync => on
[INFO] [GLX]: glXSwapInterval(1)
[INFO] [PulseAudio]: Unpausing.

@hunterk ubuntu? probably similar case to when im using linux mint. probably need to play with 20-intel.conf DRI option…

Also try to “reset” your configuration file to start from fresh configuration file and relaunch RA

rm  ~/.config/retroarch/retroarch.cfg 
retroarch

After doing that, if I launch to the menu, it shows in yellow text:

[Config]: Saved new config to "/home/chrx/.confi

But it still is frozen and will not respond. Also, what about 20-intel.conf?

Update: Reading around, I decided to try and change my menu and video drivers to rgui and sdl2 respectively. Doesn’t look as nice, but sorta works. The games load and I get audio. I have OpenGL 4.5. This makes it seem like its because I am using gl as my video driver. Anyway to fix this?

Okay. It’s been a week and it still doesn’t work. I looked up 20-intel.conf but couldn’t find it where it was supposed to be. Just to be sure I read this right here is the output of glxinfo

server glx version string: 1.4 client glx version string: 1.4 GLX version: 1.4 Max core profile version: 4.5 Max compat profile version: 3.0 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.1 OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.2.4 OpenGL core profile shading language version string: 4.50 OpenGL version string: 3.0 Mesa 17.2.4 OpenGL shading language version string: 1.30 OpenGL ES profile version string: OpenGL ES 3.1 Mesa 17.2.4 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

I read here that my OpenGL version is the core profile, 4.5.

try to edit retroarch.cfg setting

menu_driver = “rgui”

or

menu_shader_pipeline = “0”

Okay. I just tried this. If I try to set the menu shader pipeline to 0, it is brighter, but still frozen. If I set the menu driver to rgui, I have to set the video driver to sdl2. Otherwise, I get a black screen, with yellow text on the bottom. If i try and interact with this black menu the text stacks. See below. I have downloaded citra and it worked well enough, signifying that I do indeed have at least OpenGL 3.3.

anyone using ubuntu/mint with intel gpu there can help/guide/ or confirm a working config? sadly im not using those distros anymore but i remember having to set up 20-intel.conf (/etc/X11/x.org.conf/ i think) and setting DRI “3” before since retroarch causes issues similar to stated without those.

if you want to set this yourself, heres a guide, but for Arch, on how to set 20-intel.conf. this should still work with ubuntu/mint. just verify where your x.org.conf/ folder is.

my 20-intel.conf contains this

Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"
 Option "TearFree" "true"
 Option "DRI" "3"
EndSection

Option “DRI” “3” <==== this is the important setting i was talking about. setting this 3 fixes my issue.

1 Like