Bug 30645

Summary: Ren'Py gives X Error failed requiest after update to nvidia driver 470.129.06
Product: Mageia Reporter: Martin Ward <martin>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: martin
Version: 8   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: x11-driver-video-nvidia-current-470.129.06 CVE:
Status comment:

Description Martin Ward 2022-07-16 11:58:05 CEST
Description of problem:

I have a number of visual novels which use Ren'Py and these work fine
with the Nvidia driver 470.94-1. After updating to 470.129.06
any Ren'Py program crashes on startup with this error:


X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  105
  Current serial number in output stream:  106


Version-Release number of selected component (if applicable):

dkms-nvidia-current-470.129.06
nvidia-current-cuda-opencl-470.129.06
x11-driver-video-nvidia-current-470.129.06

How reproducible:

Every time

Steps to Reproduce:
1. Update to version 470.129.06 of Nvidia driver (eg via Mageia Control Centre)
2. Run any Ren'Py game
3. Observe the crash

An example of a game which causes the crash is:

https://npckc.itch.io/one-night-hot-springs

This can be downloaded for free.
The download file is onsengame-1.50-linux.tar.bz2
Martin Ward 2022-07-16 11:58:50 CEST

CC: (none) => martin

Comment 1 sturmvogel 2022-07-16 13:44:32 CEST
Ren'Py is a third party app not provided by Mageia.

Please report this issue upstream at the developer site.

Can not reproduce this issue with dkms-nvidia-current-470.129.06-1.mga8.nonfree.x86_64.rpm and onsengame-1.50-linux.tar.bz2
on a GTX 1060

inxi -G
Graphics:  Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] driver: nvidia v: 470.129.06 
           Display: x11 server: Mageia X.org 1.20.14 driver: nvidia,v4l resolution: 1920x1080~60Hz 
           OpenGL: renderer: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 v: 4.6.0 NVIDIA 470.129.06
Comment 2 sturmvogel 2022-07-16 13:52:39 CEST
Additionally onsengame-1.50-linux.tar.bz2 uses an old Ren'Py 7.4.6.1693 which has Python 2 support only. So this looks definitly like an upstream problem of your game developer or Ren'Py itself.

You can see the used Ren'Py version in the log.txt of your game.
Comment 3 Martin Ward 2022-07-16 14:16:15 CEST
This is my graphics card:

inxi -G
Graphics:  Device-1: NVIDIA GA104 [GeForce RTX 3070] driver: nvidia v: 470.94 
           Display: x11 server: Mageia X.org 1.20.14 driver: nvidia,v4l 
           resolution: 2560x1440~60Hz 
           OpenGL: renderer: NVIDIA GeForce RTX 3070/PCIe/SSE2 v: 4.6.0 NVIDIA 470.94
Comment 4 sturmvogel 2022-07-16 14:25:47 CEST
Tested on my second machine with Nvidia and can't reproduce either:

inxi -G
Graphics:  Device-1: NVIDIA GA102 [GeForce RTX 3080 Ti] driver: nvidia v: 470.129.06 
           Display: x11 server: Mageia X.org 1.20.14 driver: nvidia,v4l resolution: 1920x1080 
           OpenGL: renderer: NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 470.129.06
Comment 5 sturmvogel 2022-07-16 14:27:06 CEST
According your comment 3 you are still using the old driver 470.94 . Did you properly restart your machine after update to 470.129.06-1 and did the kernel modules got build?
Comment 6 Martin Ward 2022-07-16 14:29:01 CEST
I tested the driver update on a backup root partition, this is my main root partition which has not had the driver update applied.
Comment 7 sturmvogel 2022-07-16 15:02:22 CEST
Is your complete main system that outdated? You are on 470.94 which got released in Mageia in Dec 2021!?

- are your systems up to date at all (not only graphic card, also xorg, kernel, EVERYTHING)?
- how old is your backup?
- how do you test your backup (data integrity)
- how do you work with your backups: in a virtual machine or on real HW?
- which kernel are you using?

And please don't mix output from your machines/backups/mains as it makes it more confusing.
Comment 8 Martin Ward 2022-07-16 15:26:06 CEST
I normally keep everything up to date using mgaapplet. The nvidia driver was updated from 470.94 to 470.129.06 a few weeks ago and broke my renpy games, so I restored from my backup. Today I decided to try it again and report the problem.

Everything else on my main partition, apart from the nvidia driver, is up to date:

kernel-desktop-latest-5.15.50-1.mga8
x11-server-xorg-1.20.14-3.mga8

% cat /proc/version 
Linux version 5.15.50-desktop-1.mga8 (iurt@rabbit.mageia.org) (gcc (Mageia 10.3.0-2.mga8) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP Sat Jun 25 13:56:51 UTC 2022

I use rsync to keep the backup root partition up to date with the latest working main root partition and use grub to select which partition to boot from on power up.
Comment 9 sturmvogel 2022-07-16 15:36:41 CEST
(In reply to Martin Ward from comment #8)
> The nvidia driver was
> updated from 470.94 to 470.129.06 a few weeks ago and broke my renpy games

There is something fishy with your system...we have July 2022.

nvidia-current-470.94-1.mga8 2021-12-22
nvidia-current-470.103.01-1.mga8 2022-02-12
nvidia-current-470.129.06-1.mga8 2022-05-16
Comment 10 Martin Ward 2022-07-16 17:31:31 CEST
I know I updated the kernel, and may have done the first nvidia update.
Then I applied the latest updated and noticed the problem, so I restored
from a backup which still had the previous kernel. It seems that this
backup still had nvidia-current-470.94. I have since re-applied the kernel update,
but when I tried the nvidia update it still has the problem.
Comment 11 sturmvogel 2022-07-16 17:46:49 CEST
If you feel confident, you could try dkms-nvidia-current-510.73.05-1.mga8.nonfree.x86_64.rpm from nonfree_backports repository. Only make sure to remove backports media completely after your test or you could hit by bug 29830.
Comment 12 Martin Ward 2022-07-16 18:46:14 CEST
Its easier to feel confident when you have backup root partitions :-)
I tried it on a backup and it worked, so I have updated my main partition,
and taken nonfree backports back off the sources list.

Many thanks for your help and patience! :-)
Comment 13 Martin Ward 2022-07-16 18:56:40 CEST
Installing dkms-nvidia-current-510.73.05-1.mga8.nonfree.x86_64.rpm from nonfree_backports fixes this

Only make sure to remove backports media completely after your test or you could hit by bug 29830.

Status: NEW => RESOLVED
Resolution: (none) => FIXED