Grafx2 opens and crashes. Gives this error, "X Error of failed request: BadWindow:

My System Info

I am on Fedora 35, and have both X11 and Wayland installed.
I’m using the mesa drivers for graphics and have disabled nouveau drivers from auto loading onto the kernel since I’m not using Fedora for anything that requires my GPU.

The Problem

When I open Grafx2, it immediately crashes.
When I run the command from the terminal this is what I get:

[user@fedora ~]$ grafx2
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  18 (X_ChangeProperty)
  Resource id in failed request:  0x0
  Serial number of failed request:  346
  Current serial number in output stream:  347

I couldn’t really find help about this online. At least ones I could understand.
I did a cursory check here in the forums as well.

Try enabling the driver for nvidia and see if things then work. Sometimes an app depends on the hardware and having hardware that is not properly configured with the driver loaded can cause problems.

I have tried with nouveau drivers, got the same error.
Nouveau wasn’t set up properly when I installed fedora and I’m too inexperienced to randomly install any nvidia driver so I just disabled nouveau to see if grafx2 would work.

So, I need to reinstall my nvidia drivers basically?
Will grafx2 work on mesa after I fix that?

Fedora 35 by default uses wayland for the desktop, and uses the open source nouveau driver for nvidia cards. At the login screen where you enter the password you can select to use xorg or wayland for your session.

When you install the nvidia driver from the rpmfusion repo it disables the nouveau driver and enables the nvidia driver in its place.

As to whether grafx2 will work or not I cannot say. I have never tried it, but someone else may have a suggestion.

My comment was that in general it is a bad idea to not load an available driver for hardware since that can impact how software works.

BTW
I just reread your initial post and although you state you have both xorg and wayland installed, you did not state that you have tried the app under both desktops.

Is there any difference between logging in with wayland and starting the app vs logging in with xorg and starting the app? It is quite possible that grafx2 will run well with xorg but fail with wayland (or vice versa).

Also, would you please post the output of inxi -Fzx so we can see the actual hardware and drivers in use.

My bad, I didn’t mean to leave that out.
I have tried with both wayland and xorg and a few environments and window managers as well.
They give the same error output.

Running inxi -Fzx gives me:

[user@fedora ~]$ inxi -Fzx
System:
  Kernel: 5.16.19-200.fc35.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.37-10.fc35 Desktop: GNOME v: 41.4
    Distro: Fedora release 35 (Thirty Five)
Machine:
  Type: Laptop System: HP product: HP Pavilion Gaming Laptop 15-dk2xxx
    v: Type1ProductConfigId serial: <superuser required>
  Mobo: HP model: 88E5 v: 76.31 serial: <superuser required> UEFI: Insyde
    v: F.10 date: 08/26/2021
Battery:
  ID-1: BAT1 charge: 24.5 Wh (47.6%) condition: 51.5/52.5 Wh (98.1%)
    volts: 11.2 min: 11.6 model: Hewlett-Packard PABAS0241231
    status: discharging
CPU:
  Info: quad core model: 11th Gen Intel Core i5-11300H bits: 64 type: MT MCP
    arch: Tiger Lake rev: 1 cache: L1: 320 KiB L2: 5 MiB L3: 8 MiB
  Speed (MHz): avg: 920 high: 1108 min/max: 400/4400 cores: 1: 919 2: 727
    3: 851 4: 1108 5: 980 6: 986 7: 698 8: 1091 bogomips: 49766
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Hewlett-Packard
    driver: i915 v: kernel bus-ID: 0000:00:02.0
  Device-2: Chicony HP Wide Vision HD Camera type: USB driver: uvcvideo
    bus-ID: 3-5:2
  Display: wayland server: X.Org v: 1.21.1.4 with: Xwayland v: 21.1.4
    compositor: gnome-shell driver: X: loaded: modesetting unloaded: fbdev,vesa
    gpu: i915 resolution: 1920x1080~144Hz
  OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.3.8
    direct render: Yes
Audio:
  Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel bus-ID: 0000:00:1f.3
  Sound Server-1: ALSA v: k5.16.19-200.fc35.x86_64 running: yes
  Sound Server-2: PipeWire v: 0.3.49 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel port: 4000
    bus-ID: 0000:02:00.0
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek vendor: Hewlett-Packard driver: rtw89_pci v: kernel
    port: 3000 bus-ID: 0000:03:00.0
  IF: wlo1 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 3-10:3
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 bus-ID: 0000:00:0e.0
Drives:
  Local Storage: total: 942.7 GiB used: 440.44 GiB (46.7%)
  ID-1: /dev/nvme0n1 vendor: KIOXIA model: N/A size: 476.94 GiB
    temp: 57.9 C
  ID-2: /dev/sda type: USB vendor: Toshiba model: MQ01ABF050
    size: 465.76 GiB
Partition:
  ID-1: / size: 40 GiB used: 31.44 GiB (78.6%) fs: btrfs dev: /dev/sda3
  ID-2: /boot size: 973.4 MiB used: 203.2 MiB (20.9%) fs: ext4
    dev: /dev/sda2
  ID-3: /boot/efi size: 598.8 MiB used: 13.8 MiB (2.3%) fs: vfat
    dev: /dev/sda1
  ID-4: /home size: 40 GiB used: 31.44 GiB (78.6%) fs: btrfs dev: /dev/sda3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 27.8 C mobo: 10.0 C
  Fan Speeds (RPM): cpu: 0 fan-2: 0
Info:
  Processes: 326 Uptime: 30m Memory: 15.37 GiB used: 3.62 GiB (23.6%)
  Init: systemd runlevel: 5 Compilers: gcc: 11.2.1 Packages: 15
  note: see --pkg Shell: Bash v: 5.1.8 inxi: 3.3.14

Let me see if installing the proprietary drivers work.
I’m using an RTX 3050 (Mobile) and unfortunately it doesn’t seem like it’s supported by nouveau from what I can tell on their website.

Inxi only shows one GPU and it is intel.
Normally even without a driver all the GPUs show with inxi.

Please post the output of lspci or lspci | grep VGA so we may actually see what video devices are installed.

The RTX 3050 is new enough that nouveau may not support it so you would likely need the nvidia driver to use it.

Missing NVIDIA Driver

Inxi only shows one GPU and it is intel.
Normally even without a driver all the GPUs show with inxi.

Sorry, I forgot to enable the nvidia driver.
After enabling it this is what I get:

[user@fedora ~]$ inxi -Fzx
System:
  Kernel: 5.16.20-200.fc35.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.37-10.fc35 Desktop: GNOME v: 41.4
    Distro: Fedora release 35 (Thirty Five)
Machine:
  Type: Laptop System: HP product: HP Pavilion Gaming Laptop 15-dk2xxx
    v: Type1ProductConfigId serial: <superuser required>
  Mobo: HP model: 88E5 v: 76.31 serial: <superuser required> UEFI: Insyde
    v: F.10 date: 08/26/2021
Battery:
  ID-1: BAT1 charge: 12.7 Wh (24.9%) condition: 51.0/52.5 Wh (97.1%)
    volts: 11.2 min: 11.6 model: Hewlett-Packard PABAS0241231 status: N/A
CPU:
  Info: quad core model: 11th Gen Intel Core i5-11300H bits: 64 type: MT MCP
    arch: Tiger Lake rev: 1 cache: L1: 320 KiB L2: 5 MiB L3: 8 MiB
  Speed (MHz): avg: 911 high: 1314 min/max: 400/4400 cores: 1: 753 2: 700
    3: 1230 4: 1246 5: 1314 6: 487 7: 982 8: 581 bogomips: 49766
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Hewlett-Packard
    driver: i915 v: kernel bus-ID: 0000:00:02.0
  Device-2: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: Hewlett-Packard
    driver: nvidia v: 510.60.02 bus-ID: 0000:01:00.0
  Device-3: Chicony HP Wide Vision HD Camera type: USB driver: uvcvideo
    bus-ID: 3-5:2
  Display: x11 server: X.Org v: 1.20.14 driver: X:
    loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa gpu: i915
    resolution: 1920x1080~144Hz
  OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.3.8
    direct render: Yes
Audio:
  Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel bus-ID: 0000:00:1f.3
  Sound Server-1: ALSA v: k5.16.20-200.fc35.x86_64 running: yes
  Sound Server-2: PipeWire v: 0.3.50 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel port: 4000
    bus-ID: 0000:02:00.0
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek vendor: Hewlett-Packard driver: rtw89_pci v: kernel
    port: 3000 bus-ID: 0000:03:00.0
  IF: wlo1 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 3-10:3
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 bus-ID: 0000:00:0e.0
Drives:
  Local Storage: total: 942.7 GiB used: 441.22 GiB (46.8%)
  ID-1: /dev/nvme0n1 vendor: KIOXIA model: N/A size: 476.94 GiB
    temp: 61.9 C
  ID-2: /dev/sda type: USB vendor: Toshiba model: MQ01ABF050
    size: 465.76 GiB
Partition:
  ID-1: / size: 40 GiB used: 32.22 GiB (80.5%) fs: btrfs dev: /dev/sda3
  ID-2: /boot size: 973.4 MiB used: 203.3 MiB (20.9%) fs: ext4
    dev: /dev/sda2
  ID-3: /boot/efi size: 598.8 MiB used: 13.8 MiB (2.3%) fs: vfat
    dev: /dev/sda1
  ID-4: /home size: 40 GiB used: 32.22 GiB (80.5%) fs: btrfs dev: /dev/sda3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 27.8 C mobo: 10.0 C
  Fan Speeds (RPM): cpu: 0 fan-2: 0
Info:
  Processes: 322 Uptime: 10m Memory: 15.37 GiB used: 3.08 GiB (20.0%)
  Init: systemd runlevel: 5 Compilers: gcc: 11.2.1 Packages: 15
  note: see --pkg Shell: Bash v: 5.1.8 inxi: 3.3.14

running lspci gets me this:

[user@fedora ~]$ lspci | grep VGA
0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)
[user@fedora ~]$ lspci | grep 3D
0000:01:00.0 3D controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1)

Installing the nvidia drivers

The RTX 3050 is new enough that nouveau may not support it so you would likely need the nvidia driver to use it.

Right, so I did that using Howto/NVIDIA - RPM Fusion as a guide.
It seems to have been a success.

[user@fedora ~]$ modinfo -F version nvidia
510.60.02

I reboot as necessary

Trying Grafx2 again

So I do another reboot and try to open Grafx2 again, but it gives the same BadWindow error.
Am I doing something wrong?