libretro / RetroArch

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

switchres causes segmentation fault on Respeberry Pi 4B 1GB #16753

Open sharmashivanand opened 5 months ago

sharmashivanand commented 5 months ago

First and foremost consider this:

Description

switchres causes segmentation fault on Respeberry Pi 4B 1GB

Expected behavior

switchres should working without throwing an error.

Actual behavior

[1] 2581 segmentation fault ~/RetroArch-1.19.1/retroarch -v --log-file=native.log [1] 2641 segmentation fault ~/RetroArch-1.19.1/retroarch -v --log-file=1920.log

Steps to reproduce the bug

sudo apt install aptitude

sudo aptitude install autoconf automake autopoint autotools-dev build-essential debhelper dh-autoreconf dh-strip-nondeterminism dwz fonts-dejavu fonts-liberation gettext indent intltool-debian joystick jstest-gtk libarchive-zip-perl libasound2-dev libavcodec-dev libavdevice-dev libavformat-dev libavresample-dev libdebhelper-perl libdrm-common libdrm-dev libdrm2 libegl-dev libegl1-mesa-dev libfile-stripnondeterminism-perl libflac-dev libfreetype6-dev libgbm-dev libgbm1 libgles-dev libgles2 libgles2-mesa libgles2-mesa-dev libglm-dev libjack-dev libjack-jackd2-0 libjack-jackd2-dev libjpeg62-turbo-dev libmbedtls-dev libminiupnpc-dev libminiupnpc17 libopenal-dev libpulse-dev libsdl-image1.2-dev libsdl2-dev libsigsegv2 libsub-override-perl libswresample-dev libswscale-dev libtool libudev-dev libusb-1.0-0-dev libv4l-dev libvulkan-dev libx11-xcb-dev libxkbcommon-dev libxml2-dev m4 mesa-vulkan-drivers po-debconf qtbase5-dev xboxdrv yasm zlib1g-dev binutils dialog xmlstarlet

./configure --disable-videocore --disable-opengl1 --enable-opengles --enable-opengles3 --enable-opengles3_1 --enable-pulse --enable-alsa --enable-udev --enable-ssl --enable-vulkan --enable-kms --enable-egl

make -j$(nproc)

~/RetroArch-1.19.1/retroarch --features Features: LibretroDB - LibretroDB support: yes Command - Command interface support: yes Network Command - Network Command interface support: yes SDL - SDL input/audio/video drivers: no SDL2 - SDL2 input/audio/video drivers: yes X11 - X11 input/video drivers: yes UDEV - UDEV/EVDEV input driver: yes Wayland - Wayland input/video drivers: yes Threads - Threading support: yes Vulkan - Video driver: yes Metal - Video driver: no OpenGL - Video driver: yes OpenGLES - Video driver: yes XVideo - Video driver: no EGL - Video context driver: yes KMS - Video context driver: yes OpenVG - Video context driver: no CoreAudio - Audio driver: no CoreAudioV3 - Audio driver: no ALSA - Audio driver: yes OSS - Audio driver: yes Jack - Audio driver: yes RSound - Audio driver: no RoarAudio - Audio driver: no PulseAudio - Audio driver: yes DirectSound - Audio driver: no WASAPI - Audio driver: no XAudio2 - Audio driver: no OpenAL - Audio driver: no OpenSL - Audio driver: no 7zip - 7zip extraction support: yes zlib - zip extraction support: yes External - External filter and plugin support: yes Cg - Fragment/vertex shader driver: no GLSL - Fragment/vertex shader driver: yes HLSL - Fragment/vertex shader driver: no SDL_image - SDL_image image loading: no rpng - PNG image loading/encoding: yes rjpeg - JPEG image loading: yes Dynamic - Dynamic run-time loading of libretro library: yes FFmpeg - On-the-fly recording of gameplay with libavcodec: yes FreeType - TTF font rendering driver: yes CoreText - TTF font rendering driver: no Netplay - Peer-to-peer netplay: yes Libusb - Libusb support: no Cocoa - Cocoa UI companion support (for OSX and/or iOS): no Qt - Qt UI companion support: yes Video4Linux2 - Camera driver: yes

Leave everything at default. sudo cp ~/RetroArch-1.19.1/deps/switchres/switchres.ini /etc/

monitor pal

Both commands were initiated from console not lightdm / desktop.

Turn on switchres with NATIVE and INI

~/RetroArch-1.19.1/retroarch -v --log-file=native.log [INFO] [Config]: Looking for config in: "/home/username/.config/retroarch/retroarch.cfg". [INFO] === Build ======================================= [INFO] Capabilities: ASIMD [INFO] Version: 1.19.1 [INFO] Built: Jul 3 2024 [INFO] ================================================= [INFO] [Input]: Found input driver: "udev". [ERROR] Couldn't find any cloud sync driver named "" [INFO] Available cloud sync drivers are: [INFO] webdav [INFO] null [WARN] Going to default to first cloud sync driver... [INFO] [Environ]: SET_PIXEL_FORMAT: RGB565. [INFO] [Core]: Version of libretro API: 1, Compiled against API: 1 [INFO] [Core]: Geometry: 320x240, Aspect: 1.333, FPS: 60.00, Sample rate: 48000.00 Hz. [INFO] [Audio]: Set audio input rate to: 48000.00 Hz. [INFO] [Video]: Set video size to: 960x720. [ERROR] [Wayland]: Failed to connect to Wayland server. [WARN] [DRM]: Couldn't get device resources. [WARN] [DRM]: Couldn't get device resources. [INFO] [DRM]: Found 2 connectors. [INFO] [DRM]: Connector 0 connected: yes [INFO] [DRM]: Connector 0 has 41 modes. [INFO] [DRM]: Connector 0 assigned to monitor index: #1. [INFO] [DRM]: Connector 1 connected: no [INFO] [DRM]: Connector 1 has 0 modes. [INFO] [DRM]: Mode 0: (1280x720) 1280 x 720, 60.000000 Hz [INFO] [DRM]: Mode 1: (4096x2160) 4096 x 2160, 30.000000 Hz [INFO] [DRM]: Mode 2: (4096x2160) 4096 x 2160, 29.970001 Hz [INFO] [DRM]: Mode 3: (4096x2160) 4096 x 2160, 25.000000 Hz [INFO] [DRM]: Mode 4: (4096x2160) 4096 x 2160, 24.000000 Hz [INFO] [DRM]: Mode 5: (4096x2160) 4096 x 2160, 23.976000 Hz [INFO] [DRM]: Mode 6: (3840x2160) 3840 x 2160, 30.000000 Hz [INFO] [DRM]: Mode 7: (3840x2160) 3840 x 2160, 29.970001 Hz [INFO] [DRM]: Mode 8: (3840x2160) 3840 x 2160, 25.000000 Hz [INFO] [DRM]: Mode 9: (3840x2160) 3840 x 2160, 24.000000 Hz [INFO] [DRM]: Mode 10: (3840x2160) 3840 x 2160, 23.976000 Hz [INFO] [DRM]: Mode 11: (1920x1080) 1920 x 1080, 60.000000 Hz [INFO] [DRM]: Mode 12: (1920x1080) 1920 x 1080, 59.940201 Hz [INFO] [DRM]: Mode 13: (1920x1080i) 1920 x 1080, 60.000000 Hz [INFO] [DRM]: Mode 14: (1920x1080i) 1920 x 1080, 59.940201 Hz [INFO] [DRM]: Mode 15: (1920x1080) 1920 x 1080, 50.000000 Hz [INFO] [DRM]: Mode 16: (1920x1080i) 1920 x 1080, 50.000000 Hz [INFO] [DRM]: Mode 17: (1600x1200) 1600 x 1200, 60.000000 Hz [INFO] [DRM]: Mode 18: (1680x1050) 1680 x 1050, 59.883251 Hz [INFO] [DRM]: Mode 19: (1400x1050) 1400 x 1050, 59.947769 Hz [INFO] [DRM]: Mode 20: (1280x1024) 1280 x 1024, 75.024673 Hz [INFO] [DRM]: Mode 21: (1280x1024) 1280 x 1024, 60.019741 Hz [INFO] [DRM]: Mode 22: (1440x900) 1440 x 900, 59.901459 Hz [INFO] [DRM]: Mode 23: (1280x960) 1280 x 960, 60.000000 Hz [INFO] [DRM]: Mode 24: (1360x768) 1360 x 768, 60.015163 Hz [INFO] [DRM]: Mode 25: (1280x800) 1280 x 800, 59.909546 Hz [INFO] [DRM]: Mode 26: (1280x768) 1280 x 768, 59.870228 Hz [INFO] [DRM]: Mode 27: (1280x720) 1280 x 720, 59.940201 Hz [INFO] [DRM]: Mode 28: (1280x720) 1280 x 720, 50.000000 Hz [INFO] [DRM]: Mode 29: (1024x768) 1024 x 768, 75.028580 Hz [INFO] [DRM]: Mode 30: (1024x768) 1024 x 768, 70.069359 Hz [INFO] [DRM]: Mode 31: (1024x768) 1024 x 768, 60.003841 Hz [INFO] [DRM]: Mode 32: (800x600) 800 x 600, 60.316540 Hz [INFO] [DRM]: Mode 33: (720x576) 720 x 576, 50.000000 Hz [INFO] [DRM]: Mode 34: (720x576i) 720 x 576, 50.000000 Hz [INFO] [DRM]: Mode 35: (720x480) 720 x 480, 60.000000 Hz [INFO] [DRM]: Mode 36: (720x480) 720 x 480, 59.940060 Hz [INFO] [DRM]: Mode 37: (720x480i) 720 x 480, 60.002220 Hz [INFO] [DRM]: Mode 38: (720x480i) 720 x 480, 59.940060 Hz [INFO] [DRM]: Mode 39: (640x480) 640 x 480, 60.000000 Hz [INFO] [DRM]: Mode 40: (640x480) 640 x 480, 59.940475 Hz [INFO] [GL]: Found GL context: "kms". [INFO] [GL]: Detecting screen resolution: 1280x720. [WARN] [KMS]: Falling back to mode 0 (default) [INFO] [EGL] Found EGL client version >= 1.5, trying eglGetPlatformDisplay [INFO] [EGL]: EGL version: 1.4 [INFO] [EGL]: Current context: 0x5562cc5eb0. [INFO] [KMS]: New FB: 1280x720 (stride: 5120). [INFO] [GL]: Vendor: Broadcom, Renderer: V3D 4.2. [INFO] [GL]: Version: OpenGL ES 3.1 Mesa 23.2.1-1~bpo12+rpt3. [INFO] [GL]: Using resolution 1280x720. [INFO] [GL]: Default shader backend found: glsl. [INFO] [Shader driver]: Using GLSL shader backend. [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] [Video]: Graphics driver did not initialize an input driver. Attempting to pick a suitable driver. [INFO] [udev]: Keyboard #0: "Logitech USB Keyboard" (/dev/input/event4). [INFO] [udev]: Keyboard #1: "Logitech USB Keyboard Consumer Control" (/dev/input/event5). [INFO] [udev]: Keyboard #2: "Logitech USB Keyboard System Control" (/dev/input/event6). [INFO] [udev]: Keyboard #3: "vc4-hdmi-0" (/dev/input/event0). [INFO] [udev]: Keyboard #4: "vc4-hdmi-1" (/dev/input/event2). [INFO] [udev]: Pad #0 (/dev/input/event7) supports force feedback. [INFO] [udev]: Pad #0 (/dev/input/event7) supports 16 force feedback effects. [INFO] [Autoconf]: Logitech Gamepad F310 configured in port 1. [INFO] [Joypad]: Found joypad driver: "udev". [INFO] [Video]: Found display server: "kms". [INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432. [INFO] [Audio]: Started synchronous audio driver. [INFO] [ALSA] Using ALSA version 1.2.8 [INFO] [Microphone]: Initialized microphone driver. [INFO] [Display]: Found display driver: "gl". [INFO] [Playlist]: Loading history file: "/home/username/.config/retroarch/content_history.lpl". [INFO] [Playlist]: Loading history file: "/home/username/.config/retroarch/content_music_history.lpl". [INFO] [Playlist]: Loading history file: "/home/username/.config/retroarch/content_video_history.lpl". [INFO] [Playlist]: Loading history file: "/home/username/.config/retroarch/content_image_history.lpl". [INFO] [Playlist]: Loading favourites file: "/home/username/.config/retroarch/content_favorites.lpl".

[INFO] [KMS]: New FB: 1280x720 (stride: 5120). [INFO] [KMS]: New FB: 1280x720 (stride: 5120). [INFO] [CRT]: Requested Resolution: 320x240@60.000000 orientation: normal [INFO] [CRT] Video context is: kms [INFO] [CRT]: CRT Mode: 4 - Selected from ini [INFO] [CRT]: SR rtn 0 [INFO] [CRT]: KMS context detected, keeping SR alive [INFO] Switchres: Calculating best video mode for 320x240@60.000000 orientation: normal [INFO] Switchres: Modeline "320x240_50 15.600000KHz 50.000000Hz" 6.146400 320 329 358 394 240 267 269 312 -hsync -vsync [INFO] [CRT]: Setting Aspect Ratio: 1.333333 [INFO] [CRT]: Setting Video Screen Size to: 320x240 [INFO] [Video]: Video refresh rate changed to 50.000 Hz. [INFO] [EGL]: Current context: 0x5562cc5eb0. [INFO] [KMS]: New FB: 320x240 (stride: 1280). [INFO] [KMS]: New FB: 320x240 (stride: 1280). [INFO] [KMS]: New FB: 320x240 (stride: 1280). [INFO] [KMS]: New FB: 320x240 (stride: 1280). [1] 2581 segmentation fault ~/RetroArch-1.19.1/retroarch -v --log-file=native.log

Turn on switchres with 1920 and INI

[INFO] [Config]: Looking for config in: "/home/sharmas/.config/retroarch/retroarch.cfg". [INFO] === Build ======================================= [INFO] Capabilities: ASIMD [INFO] Version: 1.19.1 [INFO] Built: Jul 3 2024 [INFO] ================================================= [INFO] [Input]: Found input driver: "udev". [ERROR] Couldn't find any cloud sync driver named "" [INFO] Available cloud sync drivers are: [INFO] webdav [INFO] null [WARN] Going to default to first cloud sync driver... [INFO] [Environ]: SET_PIXEL_FORMAT: RGB565. [INFO] [Core]: Version of libretro API: 1, Compiled against API: 1 [INFO] [Core]: Geometry: 320x240, Aspect: 1.333, FPS: 60.00, Sample rate: 48000.00 Hz. [INFO] [Audio]: Set audio input rate to: 48000.00 Hz. [INFO] [Video]: Set video size to: 960x720. [ERROR] [Wayland]: Failed to connect to Wayland server. [WARN] [DRM]: Couldn't get device resources. [WARN] [DRM]: Couldn't get device resources. [INFO] [DRM]: Found 2 connectors. [INFO] [DRM]: Connector 0 connected: yes [INFO] [DRM]: Connector 0 has 41 modes. [INFO] [DRM]: Connector 0 assigned to monitor index: #1. [INFO] [DRM]: Connector 1 connected: no [INFO] [DRM]: Connector 1 has 0 modes. [INFO] [DRM]: Mode 0: (1280x720) 1280 x 720, 60.000000 Hz [INFO] [DRM]: Mode 1: (4096x2160) 4096 x 2160, 30.000000 Hz [INFO] [DRM]: Mode 2: (4096x2160) 4096 x 2160, 29.970001 Hz [INFO] [DRM]: Mode 3: (4096x2160) 4096 x 2160, 25.000000 Hz [INFO] [DRM]: Mode 4: (4096x2160) 4096 x 2160, 24.000000 Hz [INFO] [DRM]: Mode 5: (4096x2160) 4096 x 2160, 23.976000 Hz [INFO] [DRM]: Mode 6: (3840x2160) 3840 x 2160, 30.000000 Hz [INFO] [DRM]: Mode 7: (3840x2160) 3840 x 2160, 29.970001 Hz [INFO] [DRM]: Mode 8: (3840x2160) 3840 x 2160, 25.000000 Hz [INFO] [DRM]: Mode 9: (3840x2160) 3840 x 2160, 24.000000 Hz [INFO] [DRM]: Mode 10: (3840x2160) 3840 x 2160, 23.976000 Hz [INFO] [DRM]: Mode 11: (1920x1080) 1920 x 1080, 60.000000 Hz [INFO] [DRM]: Mode 12: (1920x1080) 1920 x 1080, 59.940201 Hz [INFO] [DRM]: Mode 13: (1920x1080i) 1920 x 1080, 60.000000 Hz [INFO] [DRM]: Mode 14: (1920x1080i) 1920 x 1080, 59.940201 Hz [INFO] [DRM]: Mode 15: (1920x1080) 1920 x 1080, 50.000000 Hz [INFO] [DRM]: Mode 16: (1920x1080i) 1920 x 1080, 50.000000 Hz [INFO] [DRM]: Mode 17: (1600x1200) 1600 x 1200, 60.000000 Hz [INFO] [DRM]: Mode 18: (1680x1050) 1680 x 1050, 59.883251 Hz [INFO] [DRM]: Mode 19: (1400x1050) 1400 x 1050, 59.947769 Hz [INFO] [DRM]: Mode 20: (1280x1024) 1280 x 1024, 75.024673 Hz [INFO] [DRM]: Mode 21: (1280x1024) 1280 x 1024, 60.019741 Hz [INFO] [DRM]: Mode 22: (1440x900) 1440 x 900, 59.901459 Hz [INFO] [DRM]: Mode 23: (1280x960) 1280 x 960, 60.000000 Hz [INFO] [DRM]: Mode 24: (1360x768) 1360 x 768, 60.015163 Hz [INFO] [DRM]: Mode 25: (1280x800) 1280 x 800, 59.909546 Hz [INFO] [DRM]: Mode 26: (1280x768) 1280 x 768, 59.870228 Hz [INFO] [DRM]: Mode 27: (1280x720) 1280 x 720, 59.940201 Hz [INFO] [DRM]: Mode 28: (1280x720) 1280 x 720, 50.000000 Hz [INFO] [DRM]: Mode 29: (1024x768) 1024 x 768, 75.028580 Hz [INFO] [DRM]: Mode 30: (1024x768) 1024 x 768, 70.069359 Hz [INFO] [DRM]: Mode 31: (1024x768) 1024 x 768, 60.003841 Hz [INFO] [DRM]: Mode 32: (800x600) 800 x 600, 60.316540 Hz [INFO] [DRM]: Mode 33: (720x576) 720 x 576, 50.000000 Hz [INFO] [DRM]: Mode 34: (720x576i) 720 x 576, 50.000000 Hz [INFO] [DRM]: Mode 35: (720x480) 720 x 480, 60.000000 Hz [INFO] [DRM]: Mode 36: (720x480) 720 x 480, 59.940060 Hz [INFO] [DRM]: Mode 37: (720x480i) 720 x 480, 60.002220 Hz [INFO] [DRM]: Mode 38: (720x480i) 720 x 480, 59.940060 Hz [INFO] [DRM]: Mode 39: (640x480) 640 x 480, 60.000000 Hz [INFO] [DRM]: Mode 40: (640x480) 640 x 480, 59.940475 Hz [INFO] [GL]: Found GL context: "kms". [INFO] [GL]: Detecting screen resolution: 1280x720. [WARN] [KMS]: Falling back to mode 0 (default) [INFO] [EGL] Found EGL client version >= 1.5, trying eglGetPlatformDisplay [INFO] [EGL]: EGL version: 1.4 [INFO] [EGL]: Current context: 0x556f6c4eb0. [INFO] [KMS]: New FB: 1280x720 (stride: 5120). [INFO] [GL]: Vendor: Broadcom, Renderer: V3D 4.2. [INFO] [GL]: Version: OpenGL ES 3.1 Mesa 23.2.1-1~bpo12+rpt3. [INFO] [GL]: Using resolution 1280x720. [INFO] [GL]: Default shader backend found: glsl. [INFO] [Shader driver]: Using GLSL shader backend. [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] [Video]: Graphics driver did not initialize an input driver. Attempting to pick a suitable driver. [INFO] [udev]: Keyboard #0: "Logitech USB Keyboard" (/dev/input/event4). [INFO] [udev]: Keyboard #1: "Logitech USB Keyboard Consumer Control" (/dev/input/event5). [INFO] [udev]: Keyboard #2: "Logitech USB Keyboard System Control" (/dev/input/event6). [INFO] [udev]: Keyboard #3: "vc4-hdmi-0" (/dev/input/event0). [INFO] [udev]: Keyboard #4: "vc4-hdmi-1" (/dev/input/event2). [INFO] [udev]: Pad #0 (/dev/input/event7) supports force feedback. [INFO] [udev]: Pad #0 (/dev/input/event7) supports 16 force feedback effects. [INFO] [Autoconf]: Logitech Gamepad F310 configured in port 1. [INFO] [Joypad]: Found joypad driver: "udev". [INFO] [Video]: Found display server: "kms". [INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432. [INFO] [Audio]: Started synchronous audio driver. [INFO] [ALSA] Using ALSA version 1.2.8 [INFO] [Microphone]: Initialized microphone driver. [INFO] [Display]: Found display driver: "gl". [INFO] [Playlist]: Loading history file: "/home/sharmas/.config/retroarch/content_history.lpl". [INFO] [Playlist]: Loading history file: "/home/sharmas/.config/retroarch/content_music_history.lpl". [INFO] [Playlist]: Loading history file: "/home/sharmas/.config/retroarch/content_video_history.lpl". [INFO] [Playlist]: Loading history file: "/home/sharmas/.config/retroarch/content_image_history.lpl". [INFO] [Playlist]: Loading favourites file: "/home/sharmas/.config/retroarch/content_favorites.lpl".

[INFO] [KMS]: New FB: 1280x720 (stride: 5120). [INFO] [KMS]: New FB: 1280x720 (stride: 5120). [INFO] [CRT]: Requested Resolution: 320x240@60.000000 orientation: normal [INFO] [CRT] Video context is: kms [INFO] [CRT]: CRT Mode: 4 - Selected from ini [INFO] [CRT]: SR rtn 0 [INFO] [CRT]: KMS context detected, keeping SR alive [INFO] Switchres: Calculating best video mode for 320x240@60.000000 orientation: normal [INFO] Switchres: Modeline "1920x240_50 15.600000KHz 50.000000Hz" 36.847200 1920 1975 2148 2362 240 267 269 312 -hsync -vsync [INFO] [CRT]: Super resolution detected. Fractal scaling @ X:6.000000 Y:1.000000 [INFO] [CRT]: Setting Aspect Ratio: 8.000000 [INFO] [CRT]: Setting Video Screen Size to: 1920x240 [INFO] [Video]: Video refresh rate changed to 50.000 Hz. [INFO] [EGL]: Current context: 0x556f6c4eb0. [INFO] [KMS]: New FB: 1920x240 (stride: 7680). [INFO] [KMS]: New FB: 1920x240 (stride: 7680). [INFO] [KMS]: New FB: 1920x240 (stride: 7680). [INFO] [KMS]: New FB: 1920x240 (stride: 7680). [1] 2641 segmentation fault ~/RetroArch-1.19.1/retroarch -v --log-file=1920.log

Bisect Results

I've been trying to get this working for a week now with little to no instructions... Only to realise it works on HDMI and needs an external HDMI to composite encoder. Finally I got one and it accepts 1920 and connected perfectly fine to my CRT. I can see my desktop etc. on the CRT.

Version/Commit

https://github.com/libretro/RetroArch/archive/refs/tags/v1.19.1.tar.g

https://github.com/libretro/RetroArch/archive/refs/tags/v1.19.1.tar.g

Environment information

Stock Raspberry Pi OS (64-bit), 2024-03-15 Kernel: 6.6.20+rpt-rpi-v8 Pure stock image without any apt update / apt upgrade. RetroArch-1.19.1 (compiled from released source https://github.com/libretro/RetroArch/archive/refs/tags/v1.19.1.tar.gz) This even happens on the latest git commit as on this time.

hizzlekizzle commented 5 months ago

can you attach gdb and get a backtrace of the segfault? You'll want to build RetroArch with DEBUG=1

sharmashivanand commented 5 months ago

Sorry for the delay.

cd RetroArch-1.19.1 make clean rm -rvf ~/.config/retroarch/ make DEBUG=1 -j$(nproc)

gdb --args ~/RetroArch-1.19.1/retroarch -v --log-file=gdb-native.log

DEBUG LOG:

https://dpaste.com/AKWGMWTUM

Also CRT related lines:

[INFO] [CRT]: Requested Resolution: 320x240@60.000000 orientation: normal
[INFO] [CRT] Video context is: kms
[INFO] [CRT]: CRT Mode: 4 - Selected from ini
[INFO] [CRT]: SR rtn 0
[INFO] [CRT]: KMS context detected, keeping SR alive
[DEBUG] Mode details:  #0 RetroArch_CRT-320x240@50.00 50.00 320 329 358 394 240 267 269 312 6146
[INFO] [CRT]: Setting Aspect Ratio: 1.333333
[INFO] [CRT]: Setting Video Screen Size to: 320x240
[DEBUG] [KMS]: modeswitch detected, creating the new CRTC
substring commented 3 months ago

Are you building from from master or the 1.19.1 tag ? Because I fixed such a bug not too long ago.