Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when switching to OpenGL renderer #203

Open
5 of 11 tasks
molly-o-k opened this issue Apr 30, 2024 · 2 comments
Open
5 of 11 tasks

Crash when switching to OpenGL renderer #203

molly-o-k opened this issue Apr 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@molly-o-k
Copy link

What version of melonDS DS are you using?

1.1.1

Does the problem happen in standalone melonDS?

No, it's a bug specific to melonDS DS.

What happened?

I saw another thread about this, so sorry if this is repeated information, but I thought I'd add that I've tested this on MelonDS (standalone) and melonDS (old libretro core) and it doesn't happen. Like the other poster, when I switch to OpenGL renderer on MelonDS DS, no matter what I do afterwards RetroArch basically instantly crashes. If I change this when a game is open and resume content, crash, if I restart/close and reopen game, crash, if I load the core with no game and change this setting, once the retroarch menu is closed even if nothing is loaded, crash. If this config gets saved I have to manually go and edit the config file or delete it because I can't open the core with a game loaded once this setting is turned on, the entire program just force closes. I'm using a GTX 1080. Debug log included (I hope I've done it right, anyway!).

Incidentally, I tested this on the most recent version of melonds ds and the version before this one and it happened on both versions.

retroarch.log

[INFO] [Environ]: SET_SUBSYSTEM_INFO.
[DEBUG] Subsystem ID: 0
Special game type: Slot 1 & 2 Boot
  Ident: gba
  ID: 1
  Content:
[DEBUG]     Nintendo DS (Slot 1) (required)
[DEBUG]     GBA (Slot 2) (required)
[DEBUG]     GBA Save Data (optional)
[DEBUG] Subsystem ID: 1
Special game type: Slot 1 & 2 Boot (No GBA Save Data)
  Ident: gbanosav
  ID: 2
  Content:
[DEBUG]     Nintendo DS (Slot 1) (required)
[DEBUG]     GBA (Slot 2) (required)
[DEBUG] Subsystems: 2
[INFO] [Content]: Updating firmware status for: "D:\Steam\steamapps\common\RetroArch\cores\melondsds_libretro.dll" on "D:\Steam\steamapps\common\RetroArch\system".
[INFO] [Core]: Using content: "D:\Steam\steamapps\common\RetroArch\downloads\Dragon Quest IX - Sentinels of the Starry Skies (Europe) (En,Fr,De,Es,It).nds".
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[DEBUG] [Audio]: Stopped audio driver "xaudio"
[INFO] [Core]: Unloading core..
[INFO] [Core]: Unloading core symbols..
[INFO] [Video]: Average monitor Hz: 139.004726 Hz. (14.076 % frame time deviation, based on 2048 last samples).
[INFO] RetroArch 1.17.0 (Git ad8975cb5a)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 AES AVX AVX2 
[INFO] Version: 1.17.0
[INFO] Git: ad8975cb5a
[INFO] Built: Feb  3 2024
[INFO] =================================================
[INFO] [Input]: Found input driver: "dinput".
[INFO] [Core]: Loading dynamic libretro core from: "D:\Steam\steamapps\common\RetroArch\cores\melondsds_libretro.dll"
[INFO] [Overrides]: Redirecting save file to "D:\Steam\steamapps\common\RetroArch\saves\melonDS DS\Dragon Quest IX - Sentinels of the Starry Skies (Europe) (En,Fr,De,Es,It).srm".
[INFO] [Overrides]: Redirecting save state to "D:\Steam\steamapps\common\RetroArch\states\melonDS DS\Dragon Quest IX - Sentinels of the Starry Skies (Europe) (En,Fr,De,Es,It).state".
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_UPDATE_DISPLAY_CALLBACK.
[INFO] [Environ]: RETRO_ENVIRONMENT_SET_CONTENT_INFO_OVERRIDE.
[INFO] [Content Override]: File Extension: 'srm' - need_fullpath: TRUE, persistent_data: FALSE
[INFO] [Content Override]: File Extension: 'sav' - need_fullpath: TRUE, persistent_data: FALSE
[INFO] [Content Override]: File Extension: 'nds' - need_fullpath: FALSE, persistent_data: TRUE
[INFO] [Content Override]: File Extension: 'dsi' - need_fullpath: FALSE, persistent_data: TRUE
[INFO] [Content Override]: File Extension: 'ids' - need_fullpath: FALSE, persistent_data: TRUE
[INFO] [Content Override]: File Extension: 'gba' - need_fullpath: FALSE, persistent_data: TRUE
[INFO] [Environ]: SET_CONTROLLER_INFO.
[DEBUG]    Port 1:
[DEBUG]       "Nintendo DS" (1)
[INFO] [Environ]: SET_SUPPORT_ACHIEVEMENTS: yes.
[INFO] [Environ]: GET_LOG_INTERFACE.
[libretro DEBUG] retro_set_environment(0x410680)
[INFO] [Environ]: GET_MESSAGE_INTERFACE_VERSION.
[INFO] [Environ]: SAVE_DIRECTORY: "D:\Steam\steamapps\common\RetroArch\saves\melonDS DS".
[libretro INFO] Save directory: "D:/Steam/steamapps/common/RetroArch/saves/melonDS DS"
[libretro INFO] melonDS DS save subdirectory: "D:/Steam/steamapps/common/RetroArch/saves/melonDS DS"
[INFO] [Environ]: SYSTEM_DIRECTORY: "D:\Steam\steamapps\common\RetroArch\system".
[libretro INFO] System directory: "D:/Steam/steamapps/common/RetroArch/system"
[libretro INFO] melonDS DS system subdirectory: "D:/Steam/steamapps/common/RetroArch/system/melonDS DS"
[DEBUG] [Environ]: SET_SUBSYSTEM_INFO.
[DEBUG] Special game type: Slot 1 & 2 Boot
  Ident: gba
  ID: 1
  Content:
[DEBUG]     Nintendo DS (Slot 1) (required)
[DEBUG]     GBA (Slot 2) (required)
[DEBUG]     GBA Save Data (optional)
[DEBUG] Special game type: Slot 1 & 2 Boot (No GBA Save Data)
  Ident: gbanosav
  ID: 2
  Content:
[DEBUG]     Nintendo DS (Slot 1) (required)
[DEBUG]     GBA (Slot 2) (required)
[INFO] [Environ]: GET_VFS_INTERFACE. Core requested version >= V1, providing V3.
[INFO] [Environ]: SET_SUPPORT_NO_GAME: yes.
[INFO] [Remaps]: Core-specific remap found at "D:\Steam\steamapps\common\RetroArch\config\remaps\melonDS DS\melonDS DS.rmp".
[libretro DEBUG] Frontend supports no-game mode.
[libretro DEBUG] Power state available
[libretro DEBUG] retro_init
[libretro INFO] melonDS DS 1.1.0
[INFO] [Environ]: RETRO_ENVIRONMENT_GET_MICROPHONE_INTERFACE.
[libretro DEBUG] Microphone support available (version 1)
[INFO] [Content]: Loading content file: "D:\Steam\steamapps\common\RetroArch\downloads\Dragon Quest IX - Sentinels of the Starry Skies (Europe) (En,Fr,De,Es,It).nds".
[libretro DEBUG] retro_load_game("D:\Steam\steamapps\common\RetroArch\downloads\Dragon Quest IX - Sentinels of the Starry Skies (Europe) (En,Fr,De,Es,It).nds", 268435456)
[INFO] [Environ]: SET_PIXEL_FORMAT: XRGB8888.
[libretro DEBUG] D:/Steam/steamapps/common/RetroArch/system/bios7.bin is not a known firmware size (found 16384 bytes, must be one of 131072, 262144, 524288)
[libretro DEBUG] D:/Steam/steamapps/common/RetroArch/system/bios9.bin is not a known firmware size (found 4096 bytes, must be one of 131072, 262144, 524288)
[libretro DEBUG] D:/Steam/steamapps/common/RetroArch/system/BIOSGBA.ROM is not a known firmware size (found 16384 bytes, must be one of 131072, 262144, 524288)
[libretro DEBUG] D:/Steam/steamapps/common/RetroArch/system/firmware.bin.bak is a backup file, not counting it as firmware
[libretro DEBUG] D:/Steam/steamapps/common/RetroArch/system/key.cfg is not a known firmware size (found 13 bytes, must be one of 131072, 262144, 524288)
[libretro DEBUG] D:/Steam/steamapps/common/RetroArch/system/mupen64plus.ini is not a known firmware size (found 455032 bytes, must be one of 131072, 262144, 524288)
[libretro DEBUG] Found a firmware image at "D:/Steam/steamapps/common/RetroArch/system/firmware.bin"
[libretro ERROR] [melonDS] PCap: init failed
[libretro WARN] Failed to enumerate Wi-fi adapters
[INFO] [Environ]: GET_CORE_OPTIONS_VERSION.
[INFO] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_V2.
[INFO] [Core]: Game-specific core options found at "D:\Steam\steamapps\common\RetroArch\config\melonDS DS\Dragon Quest IX - Sentinels of the Starry Skies (Europe) (En,Fr,De,Es,It).opt".
[libretro DEBUG] V2 core options set successfully
[DEBUG] [Environ]: GET_VARIABLE: melonds_console_mode = "ds"
[DEBUG] [Environ]: GET_VARIABLE: melonds_boot_mode = "direct"
[DEBUG] [Environ]: GET_VARIABLE: melonds_sysfile_mode = "native"
[DEBUG] [Environ]: GET_VARIABLE: melonds_ds_battery_ok_threshold = "20"
[DEBUG] [Environ]: GET_VARIABLE: melonds_battery_update_interval = "15"
[DEBUG] [Environ]: GET_VARIABLE: melonds_start_time_mode = "real"
[DEBUG] [Environ]: GET_VARIABLE: melonds_start_time_relative_year_offset = "0"
[DEBUG] [Environ]: GET_VARIABLE: melonds_start_time_relative_day_offset = "0"
[DEBUG] [Environ]: GET_VARIABLE: melonds_start_time_relative_hour_offset = "0"
[DEBUG] [Environ]: GET_VARIABLE: melonds_start_time_relative_minute_offset = "0"
[DEBUG] [Environ]: GET_VARIABLE: melonds_start_time_absolute_year = "2004"
[DEBUG] [Environ]: GET_VARIABLE: melonds_start_time_absolute_month = "1"
[DEBUG] [Environ]: GET_VARIABLE: melonds_start_time_absolute_day = "1"
[DEBUG] [Environ]: GET_VARIABLE: melonds_start_time_absolute_hour = "0"
[DEBUG] [Environ]: GET_VARIABLE: melonds_start_time_absolute_minute = "0"
[DEBUG] [Environ]: GET_VARIABLE: melonds_show_unsupported_features = "enabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_show_mic_state = "disabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_show_camera_state = "enabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_show_bios_warnings = "enabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_show_current_layout = "disabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_show_lid_state = "enabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_jit_enable = "enabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_jit_block_size = "32"
[DEBUG] [Environ]: GET_VARIABLE: melonds_jit_branch_optimisations = "enabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_jit_literal_optimisations = "enabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_jit_fast_memory = "enabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_homebrew_readonly = "disabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_homebrew_sync_sdcard_to_host = "disabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_homebrew_sdcard = "enabled"
[libretro INFO] No homebrew SD card image found at "D:/Steam/steamapps/common/RetroArch/saves/melonDS DS/dldi_sd_card.bin"; will create an image.
[DEBUG] [Environ]: GET_VARIABLE: melonds_dsi_sdcard_readonly = "disabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_dsi_sdcard_sync_sdcard_to_host = "disabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_dsi_sdcard = "enabled"
[libretro INFO] No DSi SD card image found at "D:/Steam/steamapps/common/RetroArch/saves/melonDS DS/dsi_sd_card.bin"; will create an image.
[DEBUG] [Environ]: GET_VARIABLE: melonds_dsi_nand_path = "/notfound"
[DEBUG] [Environ]: GET_VARIABLE: melonds_firmware_nds_path = "firmware.bin"
[DEBUG] [Environ]: GET_VARIABLE: melonds_firmware_dsi_path = "firmware.bin"
[DEBUG] [Environ]: GET_VARIABLE: melonds_firmware_language = "auto"
[DEBUG] [Environ]: GET_VARIABLE: melonds_firmware_favorite_color = "12"
[DEBUG] [Environ]: GET_VARIABLE: melonds_firmware_username = "guess_username"
[DEBUG] [Environ]: GET_VARIABLE: melonds_firmware_enable_alarm = "default"
[DEBUG] [Environ]: GET_VARIABLE: melonds_firmware_alarm_hour = "default"
[DEBUG] [Environ]: GET_VARIABLE: melonds_firmware_alarm_minute = "default"
[DEBUG] [Environ]: GET_VARIABLE: melonds_firmware_birth_month = "3"
[DEBUG] [Environ]: GET_VARIABLE: melonds_firmware_birth_day = "18"
[DEBUG] [Environ]: GET_VARIABLE: melonds_firmware_wfc_dns = "178.62.43.212"
[DEBUG] [Environ]: GET_VARIABLE: melonds_mic_input_active = "hold"
[DEBUG] [Environ]: GET_VARIABLE: melonds_mic_input = "microphone"
[DEBUG] [Environ]: GET_VARIABLE: melonds_audio_bitdepth = "auto"
[DEBUG] [Environ]: GET_VARIABLE: melonds_audio_interpolation = "disabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_network_mode = "indirect"
[DEBUG] [Environ]: GET_VARIABLE: melonds_direct_network_interface = "auto"
[DEBUG] [Environ]: GET_VARIABLE: melonds_screen_gap = "0"
[DEBUG] [Environ]: GET_VARIABLE: melonds_cursor_timeout = "3"
[DEBUG] [Environ]: GET_VARIABLE: melonds_touch_mode = "auto"
[DEBUG] [Environ]: GET_VARIABLE: melonds_show_cursor = "timeout"
[DEBUG] [Environ]: GET_VARIABLE: melonds_hybrid_ratio = "3"
[DEBUG] [Environ]: GET_VARIABLE: melonds_hybrid_small_screen = "one"
[DEBUG] [Environ]: GET_VARIABLE: melonds_number_of_screen_layouts = "2"
[DEBUG] [Environ]: GET_VARIABLE: melonds_screen_layout1 = "hybrid-bottom"
[DEBUG] [Environ]: GET_VARIABLE: melonds_screen_layout2 = "hybrid-top"
[DEBUG] [Environ]: GET_VARIABLE: melonds_screen_layout3 = "top"
[DEBUG] [Environ]: GET_VARIABLE: melonds_screen_layout4 = "bottom"
[DEBUG] [Environ]: GET_VARIABLE: melonds_screen_layout5 = "hybrid-top"
[DEBUG] [Environ]: GET_VARIABLE: melonds_screen_layout6 = "hybrid-bottom"
[DEBUG] [Environ]: GET_VARIABLE: melonds_screen_layout7 = "bottom-top"
[DEBUG] [Environ]: GET_VARIABLE: melonds_screen_layout8 = "right-left"
[DEBUG] [Environ]: GET_VARIABLE: melonds_opengl_filtering = "nearest"
[DEBUG] [Environ]: GET_VARIABLE: melonds_threaded_renderer = "enabled"
[DEBUG] [Environ]: GET_VARIABLE: melonds_render_mode = "opengl"
[DEBUG] [Environ]: GET_VARIABLE: melonds_opengl_resolution = "2"
[DEBUG] [Environ]: GET_VARIABLE: melonds_opengl_better_polygons = "disabled"
[libretro DEBUG] bool MelonDsDs::CoreOptionVisibility::Update()
[DEBUG] [Environ]: GET_VARIABLE: melonds_mic_input = "microphone"
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: GET_VARIABLE: melonds_render_mode = "opengl"
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: GET_VARIABLE: melonds_console_mode = "ds"
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: GET_VARIABLE: melonds_dsi_sdcard = "enabled"
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: GET_VARIABLE: melonds_homebrew_sdcard = "enabled"
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: GET_VARIABLE: melonds_show_cursor = "timeout"
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: GET_VARIABLE: melonds_number_of_screen_layouts = "2"
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: GET_VARIABLE: melonds_screen_layout1 = "hybrid-bottom"
[DEBUG] [Environ]: GET_VARIABLE: melonds_screen_layout2 = "hybrid-top"
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: GET_VARIABLE: melonds_firmware_enable_alarm = "default"
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: GET_VARIABLE: melonds_jit_enable = "enabled"
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: GET_VARIABLE: melonds_network_mode = "indirect"
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: GET_VARIABLE: melonds_start_time_mode = "real"
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[DEBUG] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY.
[libretro DEBUG] MelonDsDs::OpenGLRenderState::OpenGLRenderState()
[INFO] [Environ]: SET_HW_RENDER, context type: gl.
[INFO] Requesting OpenGL context.
[DEBUG] Reached end of SET_HW_RENDER.
[libretro DEBUG] Initialized OpenGL render state
[INFO] [Environ]: SET_ROTATION: 0
[INFO] [Microphone]: Microphone requested before driver context was ready; deferring initialization.
[libretro INFO] Loaded DS Lite firmware from "D:/Steam/steamapps/common/RetroArch/system/firmware.bin" (Identifier: MACh)
[libretro ERROR] Failed to open ARM7 file "D:/Steam/steamapps/common/RetroArch/system/melonDS DS/bios7.bin" for reading
[libretro INFO] Successfully loaded 16384-byte ARM7 file "D:/Steam/steamapps/common/RetroArch/system/bios7.bin"
[libretro ERROR] Failed to open ARM9 file "D:/Steam/steamapps/common/RetroArch/system/melonDS DS/bios9.bin" for reading
[libretro INFO] Successfully loaded 4096-byte ARM9 file "D:/Steam/steamapps/common/RetroArch/system/bios9.bin"
[libretro DEBUG] Installed native ARM7 and ARM9 NDS BIOS images
[INFO] [Environ]: GET_USERNAME: "".
[INFO] [Environ]: GET_LANGUAGE: "0".
[libretro DEBUG] Parsed NDS ROM: "D:\Steam\steamapps\common\RetroArch\downloads\Dragon Quest IX - Sentinels of the Starry Skies (Europe) (En,Fr,De,Es,It).nds"
[libretro DEBUG] Initialized indirect-mode Wi-fi support
[libretro DEBUG] [melonDS] Re-encrypting cart secure area
[libretro DEBUG] [melonDS] NDSCart: Initialized Key1_KeyBuf from memory
[libretro DEBUG] [melonDS] NDSCart: Initialized Key1_KeyBuf from memory
[libretro DEBUG] [melonDS] Re-encrypted cart secure area
[libretro INFO] [melonDS] Inserted cart with game code: YDQP
[libretro INFO] [melonDS] Inserted cart with ID: 0000FFC2
[libretro INFO] [melonDS] ROM entry: 10000000 00000003
[libretro INFO] No GBA SRAM was provided.
[INFO] [Environ]: GET_MESSAGE_INTERFACE_VERSION.
[INFO] [Environ]: SET_INPUT_DESCRIPTORS:
[DEBUG]    Port 1:
[DEBUG]       "D-Pad Up" => "Up"
[DEBUG]       "D-Pad Down" => "Down"
[DEBUG]       "D-Pad Left" => "Left"
[DEBUG]       "D-Pad Right" => "Right"
[DEBUG]       "B Button (Down)" => "B"
[DEBUG]       "A Button (Right)" => "A"
[DEBUG]       "Y Button (Left)" => "Y"
[DEBUG]       "X Button (Top)" => "X"
[DEBUG]       "Select Button" => "Select"
[DEBUG]       "Start Button" => "Start"
[DEBUG]       "L Button (Shoulder)" => "L"
[DEBUG]       "R Button (Shoulder)" => "R"
[DEBUG]       "L2 Button (Trigger)" => "Microphone"
[DEBUG]       "R2 Button (Trigger)" => "Next Screen Layout"
[DEBUG]       "L3 Button (Thumb)" => "Close Lid"
[DEBUG]       "R3 Button (Thumb)" => "Touch Joystick"
[DEBUG]    Port 2:
[DEBUG]    Port 3:
[DEBUG]    Port 4:
[DEBUG]    Port 5:
[DEBUG]    Port 6:
[DEBUG]    Port 7:
[DEBUG]    Port 8:
[libretro INFO] Deferring initialization until the OpenGL context is ready
[INFO] [RCHEEVOS]: Using host: https://retroachievements.org
[INFO] [RCHEEVOS]: Unofficial disabled
[INFO] [RCHEEVOS]: Encore mode disabled
[INFO] [RCHEEVOS]: Spectator mode disabled
[INFO] [RCHEEVOS]: Load started, hardcore active
[INFO] [RCHEEVOS]: Attempting to log in Socktopus (with token)
[INFO] [RCHEEVOS]: Identifying game: 268435456 bytes at 000000001E639040 (D:\Steam\steamapps\common\RetroArch\downloads\Dragon Quest IX - Sentinels of the Starry Skies (Europe) (En,Fr,De,Es,It).nds)
[INFO] [RCHEEVOS]: Found 1 potential consoles for nds file extension
[INFO] [RCHEEVOS]: Trying console 18
[INFO] [RCHEEVOS]: Opened [buffered file]
[INFO] [RCHEEVOS]: Hashing 352 byte header
[INFO] [RCHEEVOS]: Hashing 638216 byte arm9 code (at 00004000)
[INFO] [RCHEEVOS]: Hashing 167876 byte arm7 code (at 001E2400)
[INFO] [RCHEEVOS]: Hashing 2560 byte icon and labels data (at 00230400)
[INFO] [RCHEEVOS]: Generated hash ebb3e9ee86d520f624ffc701a912779b
[INFO] [Replay]: Found last replay slot: #0
[libretro DEBUG] retro_get_memory_data(RETRO_MEMORY_SAVE_RAM)
[libretro DEBUG] retro_get_memory_data(RETRO_MEMORY_RTC)
[libretro DEBUG] retro_get_memory_data(RETRO_MEMORY_SAVE_RAM)
[libretro DEBUG] retro_get_memory_data(RETRO_MEMORY_RTC)
[INFO] [Core]: Version of libretro API: 1, Compiled against API: 1
[INFO] [Core]: Geometry: 2048x1152, Aspect: 1.778, FPS: 59.90, Sample rate: 32768.00 Hz.
[INFO] [Audio]: Set audio input rate to: 32823.63 Hz.
[INFO] [Video]: Set video size to: fullscreen.
[INFO] [Video]: Using HW render, OpenGL driver forced.
[INFO] [Video]: Using configured "gl" driver for GL HW render.
[INFO] [GL]: Found GL context: "wgl".
[INFO] [GL]: Detecting screen resolution: 1920x1080.
[INFO] [WGL]: Extensions: WGL_ARB_buffer_region WGL_ARB_create_context WGL_ARB_create_context_no_error WGL_ARB_create_context_profile WGL_ARB_create_context_robustness WGL_ARB_context_flush_control WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_multisample WGL_ARB_pbuffer WGL_ARB_pixel_format WGL_ARB_pixel_format_float WGL_ARB_render_texture WGL_ATI_pixel_format_float WGL_EXT_colorspace WGL_EXT_create_context_es_profile WGL_EXT_create_context_es2_profile WGL_EXT_extensions_string WGL_EXT_framebuffer_sRGB WGL_EXT_pixel_format_packed_float WGL_EXT_swap_control WGL_EXT_swap_control_tear WGL_NVX_DX_interop WGL_NV_DX_interop WGL_NV_DX_interop2 WGL_NV_copy_image WGL_NV_delay_before_swap WGL_NV_float_buffer WGL_NV_multisample_coverage WGL_NV_multigpu_context WGL_NV_render_depth_texture WGL_NV_render_texture_rectangle 
[INFO] [WGL]: Adaptive VSync supported.
[INFO] [GL]: Vendor: NVIDIA Corporation, Renderer: NVIDIA GeForce GTX 1080/PCIe/SSE2.
[INFO] [GL]: Version: 4.6.0 NVIDIA 552.22.
[INFO] [GL]: Using resolution 1920x1080.
[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] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 1 program(s).
[INFO] [XInput]: Found XInput v1.4.
[INFO] [Joypad]: Found joypad driver: "xinput".
[INFO] [Autoconf]: Xbox 360 Wireless Controller configured in port 1.
[ERROR] [GL]: GL: Invalid enum.
[ERROR] [Video]: Cannot open video driver.. Exiting..
[ERROR] Fatal error received in: "video_driver_init_internal()"
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[libretro DEBUG] void MelonDsDs::OpenGLRenderState::ContextDestroyed()
[INFO] [Core]: Unloading game..
[libretro DEBUG] retro_unload_game()
[libretro DEBUG] Flushed 262144-byte firmware to "D:/Steam/steamapps/common/RetroArch/system/firmware.bin"
[libretro DEBUG] [melonDS] Resetting JIT block cache...
[libretro DEBUG] [melonDS] done resetting jit mem
[INFO] [Core]: Unloading core..
[libretro DEBUG] retro_deinit()
[libretro DEBUG] virtual MelonDsDs::OpenGLRenderState::~OpenGLRenderState()
[INFO] [Environ]: SET_HW_RENDER, context type: N/A.
[INFO] Requesting no HW context.
[DEBUG] Reached end of SET_HW_RENDER.
[WARN] [Microphone]: Attempted to free a microphone without an active driver context.
[INFO] [Core]: Unloading core symbols..
[INFO] [Core]: Saved game-specific core options to "D:\Steam\steamapps\common\RetroArch\config\melonDS DS\Dragon Quest IX - Sentinels of the Starry Skies (Europe) (En,Fr,De,Es,It).opt".
[INFO] [RCHEEVOS]: Socktopus logged in successfully
[INFO] [RCHEEVOS]: Load failed (-31): (null)
[INFO] [RCHEEVOS]: Load aborted during game identification

What should've happened instead?

Should not crash when switching to OpenGL renderer.

Which platforms do you see the problem on?

  • Windows
  • macOS
  • Linux
  • Android
  • iOS
  • tvOS
  • Other (specify below)

Which versions of the OS?

Windows 10

Which libretro frontend are you using?

RetroArch Steam release

Terms

  • I agree to follow the code of conduct.
  • I understand that melonDS DS is not developed or maintained by the authors of melonDS.
  • I understand that this form is for reporting bugs, not for requesting help.
  • I understand that the author develops this core in his spare time, and that he is under no obligation to respond to this bug report.
@molly-o-k molly-o-k added the bug Something isn't working label Apr 30, 2024
@forkymcforkface
Copy link

forkymcforkface commented May 16, 2024

Check #23

@molly-o-k
Copy link
Author

Check #23

#23 seems to talk about a version of OpenGL for mobile devices or for android/iOS. My issue is happening on a Windows desktop, and the upstream version of MelonDS (ie the standalone) works completely fine with the OpenGL renderer on the same desktop. The old melonDS core works fine as well, this is specific to this new core. I did try the advice in that thread about putting the screen version into left:right mode rather than hybrid and that didn't fix anything, either - it still crashed. Thanks for the comment regardless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants