Trying to enable openGL on melonds causes the core to segfault. The software renderer runs fine.
[ERROR] GL: Invalid enum.
[ERROR] [Video]: Cannot open video driver ... Exiting ...
[ERROR] Fatal error received in: "init_video()"
[ERROR] failed_to_start_audio_driver
I have tried to debug where "invalid enum" is set but unfortunately I cannot seem to build the khronos libraries with debug support so I cannot apply any breakpoints.
I am using Fedora 29 with an Nvidia GTX 1070 on the 430.40 propriatory driver. All other cores and games run fine with openGL on my machine. Further backtrace and full log attached.
#0 0x00007ffff31ff106 in __memmove_avx_unaligned_erms () at /lib64/libc.so.6
#1 0x00007fffe9e9bb3a in copy_screen(ScreenLayoutData*, unsigned int*, unsigned int) () at /mnt/games/native_emulators/retroarch/cores/melonds_libretro.so
#2 0x00007fffe9e9c014 in retro_run ()
at /mnt/games/native_emulators/retroarch/cores/melonds_libretro.so
#3 0x0000000000484ee2 in core_run () at retroarch.c:26367
#4 0x0000000000481a0a in runloop_iterate () at retroarch.c:24992
#5 0x000000000045c4f7 in rarch_main (argc=1, argv=0x7fffffffdc58, data=0x0)
at retroarch.c:6100
#6 0x00000000005da5b5 in main(int, char**) (argc=1, argv=0x7fffffffdc58)
at ui/drivers/qt/ui_qt_application.cpp:150
[INFO] RetroArch 1.7.8 (Git 7ebeb6b572)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
[INFO] Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 SSE4.2 AVX AVX2 AES
[INFO] Built: Aug 26 2019
[INFO] Version: 1.7.8
[INFO] Git: 7ebeb6b572
[INFO] =================================================
[INFO] Environ SET_PIXEL_FORMAT: RGB565.
[INFO] Redirecting save file to "/home/toxicshadow/.config/retroarch/saves/.srm".
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 30000.00 Hz.
[INFO] [Video]: Video @ 960x720
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [GLX]: GLX_EXT_swap_control_tear supported.
[INFO] [GL]: Found GL context: x
[INFO] [GL]: Detecting screen resolution 3840x1880.
[INFO] [GLX]: Window manager is KWin.
[INFO] [GLX]: X = 0, Y = 0, W = 960, H = 720.
[INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
[INFO] [GLX]: glXSwapIntervalEXT(1)
[INFO] [GL]: Vendor: NVIDIA Corporation, Renderer: GeForce GTX 1070/PCIe/SSE2.
[INFO] [GL]: Version: 4.6.0 NVIDIA 430.40.
[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] Setting up menu pipeline shaders for XMB ...
[INFO] [GLSL]: Compiling ribbon shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling simple ribbon shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling snow shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling modern snow shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling bokeh shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling snowflake shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[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: "sdl2".
[INFO] [Font]: Using font rendering backend: bitmap.
[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: "gl".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Menu]: Found menu display driver: "gl".
[CDROM] Could not open /dev/sg4, please check permissions.
[CDROM] Could not open /dev/sg3, please check permissions.
[CDROM] Could not open /dev/sg2, please check permissions.
[CDROM] Could not open /dev/sg1, please check permissions.
[CDROM] Could not open /dev/sg0, please check permissions.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[WARN] [XMB] Asset missing: /home/toxicshadow/.config/retroarch/assets/xmb/monochrome/png/disc.png
[INFO] [LED]: LED driver = 'null' 0x113e400
[INFO] [MIDI]: Initializing ...
[INFO] [MIDI]: Input disabled.
[INFO] [MIDI]: Output disabled.
[INFO] [MIDI]: Initialized "alsa" driver.
[INFO] Disconnecting device from port 2.
[INFO] Disconnecting device from port 3.
[INFO] Disconnecting device from port 4.
[INFO] SRAM will not be saved.
[INFO] Loading history file: [/home/toxicshadow/.config/retroarch/content_history.lpl].
[INFO] Loading history file: [/home/toxicshadow/.config/retroarch/content_music_history.lpl].
[INFO] Loading history file: [/home/toxicshadow/.config/retroarch/content_video_history.lpl].
[INFO] Loading history file: [/home/toxicshadow/.config/retroarch/content_image_history.lpl].
[INFO] Loading favorites file: [/home/toxicshadow/.config/retroarch/content_favorites.lpl].
[INFO] [GL]: VSync => on
[INFO] [GLX]: glXSwapIntervalEXT(1)
[INFO] [GL]: VSync => on
[INFO] [GLX]: glXSwapIntervalEXT(1)
[INFO] [PulseAudio]: Pausing.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] This core is compatible with the current video driver.
[INFO] Using content: /mnt/nas_games/emulators/roms/nds/super_mario_64_ds_u.nds.
[INFO] arg #0: retroarch
[INFO] arg #1: /mnt/nas_games/emulators/roms/nds/super_mario_64_ds_u.nds
[INFO] arg #2: -s
[INFO] arg #3: /home/toxicshadow/.config/retroarch/saves
[INFO] arg #4: -c
[INFO] arg #5: /home/toxicshadow/.config/retroarch/retroarch.cfg
[INFO] arg #6: -L
[INFO] arg #7: /mnt/games/native_emulators/retroarch/cores/melonds_libretro.so
[INFO] arg #8: -v
[INFO] Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] Unloading game..
[INFO] Unloading core..
[INFO] Unloading core symbols..
[INFO] [XINERAMA]: Xinerama version: 1.1.
[INFO] [XINERAMA]: Xinerama screens: 3.
[INFO] [XINERAMA]: Saved monitor #0.
[INFO] [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.
[INFO] Set config file to : /home/toxicshadow/.config/retroarch/retroarch.cfg
[INFO] RetroArch 1.7.8 (Git 7ebeb6b572)
[INFO] Redirecting save file to "/home/toxicshadow/.config/retroarch/saves/super_mario_64_ds_u.srm".
[INFO] Redirecting savestate to "/mnt/nas_games/emulators/roms/nds/super_mario_64_ds_u.state".
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
[INFO] Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 SSE4.2 AVX AVX2 AES
[INFO] Built: Aug 26 2019
[INFO] Version: 1.7.8
[INFO] Git: 7ebeb6b572
[INFO] =================================================
[INFO] Loading dynamic libretro core from: "/mnt/games/native_emulators/retroarch/cores/melonds_libretro.so"
[INFO] [Overrides] no core-specific overrides found at /home/toxicshadow/.config/retroarch/config/melonDS/melonDS.cfg.
[INFO] [Overrides] no content-dir-specific overrides found at /home/toxicshadow/.config/retroarch/config/melonDS/nds.cfg.
[INFO] [Overrides] no game-specific overrides found at /home/toxicshadow/.config/retroarch/config/melonDS/super_mario_64_ds_u.cfg.
[INFO] Environ SET_VARIABLES.
[INFO] Environ GET_LOG_INTERFACE.
[INFO] Environ SET_CONTROLLER_INFO.
[INFO] Core requested VFS version >= v1, providing v3
[INFO] [Remaps]: remap directory: /home/toxicshadow/.config/retroarch/config/remaps
[INFO] Redirecting save file to "/home/toxicshadow/.config/retroarch/saves/super_mario_64_ds_u.srm".
[INFO] Redirecting savestate to "/mnt/nas_games/emulators/roms/nds/super_mario_64_ds_u.state".
[INFO] Environ SYSTEM_DIRECTORY: "/home/toxicshadow/.config/retroarch/system".
[INFO] Content loading skipped. Implementation will load it on its own.
[INFO] Environ SET_INPUT_DESCRIPTORS:
[INFO] Environ SET_PIXEL_FORMAT: XRGB8888.
[INFO] Environ SET_HW_RENDER.
[INFO] Requesting OpenGL context.
ARM9 BIOS loaded
ARM7 BIOS loaded
MAC: 00:09:BF:8C:9E:FD
FW: WIFI CRC16 = GOOD
FW: AP1 CRC16 = GOOD
FW: AP2 CRC16 = GOOD
FW: AP3 CRC16 = GOOD
FW: USER0 CRC16 = GOOD
FW: USER1 CRC16 = GOOD
Game code: ASME
ROM CRC32: E6321562
chk_size=3387, key=4A4B4A43, wanted=454D5341, offset=00000000
chk_size=1693, key=45545041, wanted=454D5341, offset=00000000
chk_size=846, key=45454359, wanted=454D5341, offset=00000000
chk_size=423, key=454D4343, wanted=454D5341, offset=000034E0
chk_size=211, key=45514759, wanted=454D5341, offset=00004F50
chk_size=105, key=454F4641, wanted=454D5341, offset=00004F50
chk_size=52, key=454E4543, wanted=454D5341, offset=00004F50
chk_size=26, key=454D5259, wanted=454D5341, offset=00004F50
chk_size=13, key=454E3542, wanted=454D5341, offset=000050F0
chk_size=6, key=454D5741, wanted=454D5341, offset=000050F0
chk_size=3, key=454D5459, wanted=454D5341, offset=000050F0
chk_size=1, key=454D5341, wanted=454D5341, offset=000050F0
ROM entry: 01000000 00000002 00000000
Cart ID: 00000FC2
ARM9: offset=00004000 entry=02004800 RAM=02004000 size=000580AC
ARM7: offset=001B0000 entry=02380000 RAM=02380000 size=00024B64
CP15Control = 00052078 (00002078->00052000)
Re-encrypting cart secure area
Save file: /home/toxicshadow/.config/retroarch/saves/super_mario_64_ds_u.sav
[INFO] Skipping SRAM load..
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 32823.63 Hz.
[INFO] [Video]: Video @ 6144x2304
[INFO] [Video]: Using HW render, OpenGL driver forced.
[INFO] [Video]: Using configured "gl" driver for GL HW render.
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [RCHEEVOS]: testing NES (discards header)
[INFO] [RCHEEVOS]: testing Generic (plain content)
[INFO] [GLX]: GLX_EXT_swap_control_tear supported.
[INFO] [GL]: Found GL context: x
[INFO] [GL]: Detecting screen resolution 3840x1880.
[INFO] [GLX]: Window manager is KWin.
[INFO] [GLX]: X = 0, Y = 0, W = 6144, H = 2304.
[INFO] [GLX]: Creating context for requested version 3.3.
[INFO] [RCHEEVOS]: got game id 0
[INFO] [RCHEEVOS]: testing Generic (filename)
[INFO] [RCHEEVOS]: got game id 0
[INFO] [RCHEEVOS]: this game doesn't feature achievements
[INFO] [RCHEEVOS]: Load task finished
[INFO] [GLX]: Not running Mesa, trying higher versions...
[INFO] [GLX]: Creating context for version 4.6.
[INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
[INFO] [GLX]: glXSwapIntervalEXT(1)
[INFO] [GL]: Vendor: NVIDIA Corporation, Renderer: GeForce GTX 1070/PCIe/SSE2.
[INFO] [GL]: Version: 4.6.0 NVIDIA 430.40.
[INFO] [GL]: Using resolution 1280x735
[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] Setting up menu pipeline shaders for XMB ...
[INFO] [GLSL]: Compiling ribbon shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling simple ribbon shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling snow shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling modern snow shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling bokeh shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling snowflake shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 1 program(s).
[INFO] [Joypad]: Found joypad driver: "sdl2".
[INFO] [Font]: Using font rendering backend: bitmap.
[ERROR] GL: Invalid enum.
[ERROR] [Video]: Cannot open video driver ... Exiting ...
[ERROR] Fatal error received in: "init_video()"
[ERROR] failed_to_start_audio_driver
CP15Control = 00002078 (00052078->00002000)
PU: region 0 = 04000033 : enabled, 04000000-08000000
PU: region 1 = 0200002B : enabled, 02000000-02400000
PU: region 2 = 027C0023 : enabled, 027C0000-02800000
PU: region 3 = 08000035 : enabled, 08000000-10000000
PU: region 4 = 023C001B : enabled, 023C0000-023C4000
PU: region 5 = 0100002F : enabled, 01000000-02000000
PU: region 6 = FFFF001D : enabled, FFFF0000-FFFF8000
PU: region 7 = 027FF017 : enabled, 027FF000-02800000
PU: CodeCacheable=00000042
PU: DataCacheable=00000042
PU: DataCacheWrite=00000002
PU: CodeRW=05100011
PU: DataRW=15111011
CP15Control = 0005707D (00002078->00057005)
PU region 0: 04000000-08000000, user=00 priv=07
PU region 1: 02000000-02400000, user=70 priv=77
PU region 2: 027C0000-02800000, user=00 priv=00
PU region 3: 08000000-10000000, user=00 priv=03
PU region 4: 023C0000-023C4000, user=00 priv=03
PU region 5: 01000000-02000000, user=00 priv=07
PU region 6: FFFF0000-FFFF8000, user=50 priv=55
PU region 7: 027FF000-02800000, user=00 priv=03
Segmentation fault (core dumped)