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

BadDrawable? #120

Open
RobLoach opened this issue Aug 26, 2019 · 5 comments
Open

BadDrawable? #120

RobLoach opened this issue Aug 26, 2019 · 5 comments

Comments

@RobLoach
Copy link
Collaborator

flatpak run org.libretro.RetroArch
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
Major opcode of failed request: 149 ()
Minor opcode of failed request: 4
Resource id in failed request: 0x5c00009
Serial number of failed request: 72
Current serial number in output stream: 78

@Leopard1907
Copy link

System: Linux Mint 19 Cinnamon 19.2 64 bit ( based on Ubuntu 18.04 )
Retroarch version: org.libretro.RetroArch/x86_64/stable ( Installed through Flatpak integration of Mint Software Center)
Driver: Nvidia 430.26 binary driver
Kernel version: 5.0.0-20-mfutex

@RobLoach
Copy link
Collaborator Author

Once the update gets published, I think this shoudl be fixed. Mind testing tomorrow?

@Leopard1907
Copy link

Same issue with 1.7.8

@RobLoach
Copy link
Collaborator Author

RobLoach commented Aug 31, 2019

Any other logs you have around? Does it happen when compiled locally?

@SeaMonkey82
Copy link

SeaMonkey82 commented Sep 13, 2021

This happens when trying to launch retroarch using vulkan with the following hardware. I believe this may be a common issue for anyone using a mobile combo graphics solution. I tried using the flatpak installer as well as building from source.

Graphics:  Device-1: Intel HD Graphics 530 driver: i915 v: kernel 
           Device-2: NVIDIA GM204M [GeForce GTX 970M] driver: nvidia v: 460.91.03 
           Display: x11 server: X.Org 1.20.11 driver: modesetting,nvidia unloaded: fbdev,nouveau,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: GeForce GTX 970M/PCIe/SSE2 v: 4.6.0 NVIDIA 460.91.03 
➜  retroarch git:(master) ./retroarch
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  149 ()
  Minor opcode of failed request:  4
  Resource id in failed request:  0x5a00006
  Serial number of failed request:  51
  Current serial number in output stream:  57

This can be (partially) resolved by editing retroarch.cfg and changing vulkan_gpu_index = "0" to vulkan_gpu_index = "1

However, cores may try to use the wrong vulkan driver resulting in retroarch crashing. This can be resolved by specifying the correct vulkan driver when launching retroarch. For example:
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json ./retroarch

Ultimately, I wasn't able to get vulkan working correctly with the flatpak installer, so I

  • built from source
  • ran sudo make install from the build directory
  • added VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json to /etc/environment
  • set the PRIME profile to NVIDIA (Performance Mode) in NVIDIA X Server Settings
  • rebooted
  • reverted to vulkan_gpu_index = "0" in retroarch.cfg (changing the vulkan driver affects the GPU index)
  • set video_windowed_fullscreen = "false" in retroarch.cfg (was still crashing without this)

@Leopard1907 Leopard1907 removed their assignment Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants