libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.08k stars 1.81k forks source link

Retroarch menu unpredictably freezes and crashes on Ubuntu Gnome 16.04 #5151

Open ceridwen opened 7 years ago

ceridwen commented 7 years ago

Description

After starting Retroarch from the command line, while navigating the menu, Retroarch will freeze within a couple of seconds to a few minutes after starting.

Expected behavior

The menu not to crash or freeze.

Actual behavior

The GUI may freeze or the window may go black. Sometimes after the GUI freezes or goes black, it will still respond to keyboard input because I can terminate it with Esc. Other times, neither Esc nor anything else does anything. Log output from a typical run with --verbose below. Sometimes it will leave behind a black window I have to kill with xkill after killing the retroarch process. The retroarch process doesn't always respond to SIGTERM.

I haven't been able to find a particular trigger. This happens without any cores installed and seems independent of cores or games. It happens with glui, xmb, and rgui.

RetroArch [INFO] :: Available menu drivers are:
RetroArch [INFO] ::     glui
RetroArch [INFO] ::     xmb
RetroArch [INFO] ::     rgui
RetroArch [INFO] ::     null
RetroArch [WARN] :: Going to default to first menu driver...
RetroArch [INFO] :: Environ SET_PIXEL_FORMAT: RGB565.
RetroArch [INFO] :: Version of libretro API: 1
RetroArch [INFO] :: Compiled against API: 1
RetroArch [INFO] :: [Audio]: Set audio input rate to: 29970.03 Hz.
RetroArch [INFO] :: [Video]: Video @ 960x720
RetroArch [ERROR] :: [Wayland]: Failed to connect to Wayland server.
RetroArch [INFO] :: [GLX]: GLX_OML_sync_control and GLX_MESA_swap_control supported, using better swap control method...
RetroArch [INFO] :: [GL]: Found GL context: x
RetroArch [INFO] :: [GL]: Detecting screen resolution 2560x1440.
RetroArch [INFO] :: [GLX]: X = 0, Y = 0, W = 960, H = 720.
RetroArch [INFO] :: [GLX]: Found swap function: glXSwapIntervalMESA.
RetroArch [INFO] :: [GLX]: glXSwapInterval(1)
RetroArch [INFO] :: [GL]: Vendor: Intel Open Source Technology Center, Renderer: Mesa DRI Intel(R) Sandybridge Desktop .
RetroArch [INFO] :: [GL]: Version: 3.0 Mesa 12.0.6.
RetroArch [INFO] :: [GL]: Using resolution 960x720
RetroArch [INFO] :: [GL]: Default shader backend found: glsl.
RetroArch [INFO] :: [Shader driver]: Using GLSL shader backend.
RetroArch [INFO] :: [GLSL]: Checking GLSL shader support ...
RetroArch [WARN] :: [GL]: Stock GLSL shaders will be used.
RetroArch [INFO] :: [GLSL]: Found GLSL vertex shader.
RetroArch [INFO] :: [GLSL]: Found GLSL fragment shader.
RetroArch [INFO] :: [GLSL]: Linking GLSL program.
RetroArch [INFO] :: [GLSL]: Found GLSL vertex shader.
RetroArch [INFO] :: [GLSL]: Found GLSL fragment shader.
RetroArch [INFO] :: [GLSL]: Linking GLSL program.
RetroArch [INFO] :: [GLSL]: Found GLSL vertex shader.
RetroArch [INFO] :: [GLSL]: Found GLSL fragment shader.
RetroArch [INFO] :: [GLSL]: Linking GLSL program.
RetroArch [INFO] :: [GLSL]: Found GLSL vertex shader.
RetroArch [INFO] :: [GLSL]: Found GLSL fragment shader.
RetroArch [INFO] :: [GLSL]: Linking GLSL program.
RetroArch [INFO] :: [GLSL]: Found GLSL vertex shader.
RetroArch [INFO] :: [GLSL]: Found GLSL fragment shader.
RetroArch [INFO] :: [GLSL]: Linking GLSL program.
RetroArch [INFO] :: [GLSL]: Found GLSL vertex shader.
RetroArch [INFO] :: [GLSL]: Found GLSL fragment shader.
RetroArch [INFO] :: [GLSL]: Linking GLSL program.
RetroArch [INFO] :: [GLSL]: Found GLSL vertex shader.
RetroArch [INFO] :: [GLSL]: Found GLSL fragment shader.
RetroArch [INFO] :: [GLSL]: Linking GLSL program.
RetroArch [INFO] :: [GLSL]: Found GLSL vertex shader.
RetroArch [INFO] :: [GLSL]: Found GLSL fragment shader.
RetroArch [INFO] :: [GLSL]: Linking GLSL program.
RetroArch [INFO] :: [GL]: Using 4 textures.
RetroArch [INFO] :: [GL]: Loaded 1 program(s).
RetroArch [INFO] :: [GL]: Using GL_RGB565 for texture uploads.
RetroArch [INFO] :: [udev]: Plugged pad: Microsoft Microsoft® Nano Transceiver v2.1 (1118:1957) on port #0.
RetroArch [INFO] :: [udev]: Pad #0 (/dev/input/event12) supports 0 force feedback effects.
RetroArch [INFO] :: [Autoconf]: 0 profiles found.
RetroArch [INFO] :: [Autoconf]: no profiles found for Microsoft Microsoft® Nano Transceiver v2.1 (1118/1957).
RetroArch [INFO] :: [Joypad]: Found joypad driver: "udev".
RetroArch [INFO] :: [Font]: Using font rendering backend: freetype.
RetroArch [INFO] :: [DBus]: Suspended screensaver via DBus.
RetroArch [INFO] :: [PulseAudio]: Requested 24576 bytes buffer, got 33792.
RetroArch [INFO] :: [Menu]: Found menu display driver: "menu_display_gl".
RetroArch [INFO] :: [Font]: Using font rendering backend: freetype.
RetroArch [INFO] :: [Font]: Using font rendering backend: freetype.
RetroArch [INFO] :: SRAM will not be saved.
RetroArch [INFO] :: Loading history file: [/home/user/.config/retroarch/content_history.lpl].
RetroArch [INFO] :: Loading history file: [/home/user/.config/retroarch/content_music_history.lpl].
RetroArch [INFO] :: Loading history file: [/home/user/.config/retroarch/content_video_history.lpl].
RetroArch [INFO] :: Loading history file: [/home/user/.config/retroarch/content_image_history.lpl].
RetroArch [INFO] :: [GL]: VSync => on
RetroArch [INFO] :: [GLX]: glXSwapInterval(1)
RetroArch [INFO] :: [PulseAudio]: Unpausing.
RetroArch [INFO] :: [GL]: VSync => on
RetroArch [INFO] :: [GLX]: glXSwapInterval(1)
RetroArch [INFO] :: [PulseAudio]: Pausing.
RetroArch [INFO] :: [PulseAudio]: Unpausing.
RetroArch [INFO] :: [PulseAudio]: Unpausing.
RetroArch [INFO] :: [Config]: Saved new config to "/home/user/.config/retroarch/retroarch.cfg".
RetroArch [INFO] :: [PulseAudio]: Pausing.
RetroArch [INFO] :: [XINERAMA]: Xinerama version: 1.1.
RetroArch [INFO] :: [XINERAMA]: Xinerama screens: 1.
RetroArch [INFO] :: [XINERAMA]: Saved monitor #0.
RetroArch [INFO] :: [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.
RetroArch [INFO] :: [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.

Steps to reproduce the bug

  1. Start retroarch.
  2. Wait for menu to freeze.

Bisect Results

This is the first time I've installed retroarch. If I find an older version that doesn't have the issue, I'll try to bisect.

Version/Commit

RetroArch: Frontend for libretro -- v1.6.1 -- 95495cb -- Compiler: GCC (5.4.0) 64-bitBuilt: Jul 3 2017

This is the version from the Ubuntu testing PPA as of when I'm making the report.

Environment information

Ubuntu GNOME 16.04: Linux 4.4.0-78-generic #99-Ubuntu SMP Thu Apr 27 15:29:09 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

ghost commented 7 years ago

@hunterk - this must be a similar issue i talked to you about that retroarch freezes when started, either menu does nothing or just black screen. but that was when i still used ubuntu-based, i have not been using ubuntu/debian about a month now.

RobLoach commented 7 years ago

If you resize the window, does it refresh the video?

ceridwen commented 7 years ago

Before the crash/freeze occurs, yes. Afterwards, if the window hasn't already gone black, resizing it will cause it to go black.

gouchi commented 1 month ago

@ceridwen Is still an issue ? You may try to make some test with Appimage package.

Otherwise, please this issue. Thank you.