RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

(X11/XFree86-VidModeExtension) (OpenGL) True fullscreen - error on fullscreen/windowed toggle

Open LibretroAdmin opened this issue 3 years ago • 5 comments

To reproduce this, you have to turn 'Windowed Fullscreen' off, so that it will use the XFree86-VidoModeExtension codepath for toggling fullscreen.

A crash happens when trying to toggle from fullscreen to windowed mode by pressing the 'F' hotkey. Vulkan seems to work fine by comparison.

Error that happens:

X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 153 (XFree86-VidModeExtension) Minor opcode of failed request: 10 (XF86VidModeSwitchToMode) Value in failed request: 0x200005 Serial number of failed request: 1387 Current serial number in output stream: 1389

Affected drivers: gl1, gl, glcore Unaffected drivers: vulkan

Only workaround for this for now is to turn on 'Fullscreen windowed mode' (which thankfully is the default, which kinda papers over the current issue).

NOTE: This also affects threaded video (switching between ON/OFF, causes similar error).

Distro: Ubuntu Linux 5.15 OS: Linux GPU: NVIDIA Geforce RTX 3080 Ti Laptop GPU

LibretroAdmin avatar Sep 05 '22 16:09 LibretroAdmin

cant reproduce the fault

with gl1 starting in full screen is fine, going to window is fine, going back to full screen image is stretched with glcore no issues with gl no issues RetroArch 1.10.3 (Git 84868ab21f)

only tested in xorg, you didnt mention wayland or xorg in the details.

edit updated updated too RetroArch 1.10.3 (Git 1c31efaa91) results are the same as above

thread toggle is fine as well.

MistyDreams avatar Sep 05 '22 19:09 MistyDreams

X.org info

xdpyinfo | grep version version number: 11.0 X.Org version: 1.21.1.3

echo $XDG_SESSION_TYPE x11

Ubuntu version

cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"

RetroArch version

./retroarch --version RetroArch: Frontend for libretro - v1.10.3 - 84f599503d Compiler: GCC (11.2.0) 64-bit Built: Sep 6 2022

LibretroAdmin avatar Sep 06 '22 02:09 LibretroAdmin

xdpyinfo | grep version                        
version number:    11.0
X.Org version: 21.1.4

cat /etc/lsb-release                                            
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=21.3.7
DISTRIB_CODENAME=Ruah
DISTRIB_DESCRIPTION="Manjaro Linux"

retroarch --version                                        
RetroArch: Frontend for libretro -- v1.10.3 -- 1c31efaa91 --
Compiler: GCC (12.1.1) 64-bit Built: Sep  5 2022

glxinfo -B                                                       ✔ 
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon R5 340 (oland, LLVM 14.0.6, DRM 3.46, 5.18.17-1-MANJARO) (0x6610)
    Version: 22.1.6
    Accelerated: yes
    Video memory: 2048MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 1565 MB, largest block: 1565 MB
    VBO free aux. memory - total: 3026 MB, largest block: 3026 MB
    Texture free memory - total: 1565 MB, largest block: 1565 MB
    Texture free aux. memory - total: 3026 MB, largest block: 3026 MB
    Renderbuffer free memory - total: 1565 MB, largest block: 1565 MB
    Renderbuffer free aux. memory - total: 3026 MB, largest block: 3026 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 5120 MB
    Currently available dedicated video memory: 1565 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon R5 340 (oland, LLVM 14.0.6, DRM 3.46, 5.18.17-1-MANJARO)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.1.6
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.1.6
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.1.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

This is an old box for emulation only an i5 .I can test on linux mint on another machine

MistyDreams avatar Sep 06 '22 08:09 MistyDreams

I can't reproduce the issue using latest commit 906d885.

xdpyinfo | grep version                        
version number:    11.0
X.Org version: 21.1.4
cat /etc/lsb-release 
DISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
./retroarch --version
RetroArch: Frontend for libretro -- v1.10.3 -- 906d885b8e --
Compiler: GCC (12.2.0) 64-bit Built: Sep  6 2022
glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 6144 MB
    Total available memory: 6144 MB
    Currently available dedicated video memory: 5715 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 515.65.01
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 515.65.01
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 515.65.01
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

gouchi avatar Sep 06 '22 11:09 gouchi

@LibretroAdmin I think we can close this issue. Thank you.

EDIT : it seems not.

gouchi avatar Aug 13 '24 14:08 gouchi