ZDoom / Raze

Build engine port backed by GZDoom tech. Currently supports Duke Nukem 3D, Blood, Shadow Warrior, Redneck Rampage and Powerslave/Exhumed.
690 stars 59 forks source link

[BUG] No game window is shown if Launcher window is shown before #1070

Open smirnov opened 7 months ago

smirnov commented 7 months ago

Raze version

No response

Which game are you running with Raze?

Other

What Operating System are you using?

Linux x86_64

Please describe your specific OS version

Fedora 39 (AppImage, but also Flatpak)

Relevant hardware info

AMD 7840U

Have you checked that no other similar issue already exists?

A clear and concise description of what the bug is.

If there's more than 1 game in the data folder, thus launcher is triggered (to select which game to play), then clicking on any game will result in having no window displayed when the game is launched. Logs indicate that the game is still being launched, just no window is shown. This bug is not reproducible with version 1.9.1, but is with latest AppImage builds and Flatpak builds.

Steps to reproduce the behaviour.

Explain how to reproduce

  1. Add more than 1 game file to path where Raze is expecting to find it
  2. Launch Raze, select any game
  3. Observe lack of game window

Your configuration

No changes to config.

Provide a Log

Raze - - SDL version Compiled on Feb 4 2024

Log started: 2024-02-27 23:40:08 OS: Fedora Linux 39 (Workstation Edition), Linux 6.7.5-200.fc39.x86_64 on x86_64 Gtk-Message: 23:40:09.059: Failed to load module "canberra-gtk-module" Gtk-Message: 23:40:09.059: Failed to load module "pk-gtk-module" Using video driver wayland [2024-02-27 23:40:10.427] [MANGOHUD] [error] [overlay_params.cpp:1003] Failed to read presets file: '/home/smirnovd/.config/MangoHud/presets.conf' [2024-02-27 23:40:10.427] [MANGOHUD] [error] [overlay_params.cpp:840] Unknown option 'nis_steam_sharpness' Vulkan device: AMD Radeon Graphics (RADV GFX1103_R1) Vulkan device type: integrated gpu Vulkan version: 1.3.267 (api) 23.3.6 (driver) Max. texture size: 16384 Max. uniform buffer range: -1 Min. uniform buffer offset alignment: 4 Resolution: 2256 x 1504 adding /tmp/.mount_Raze-l4yk0DE/raze.pk3, 3836 lumps adding /home/user/Sync/raze-appimage/duke3d/duke3d.grp, 456 lumps adding /home/user/Sync/raze-appimage/duke3d/, 1 lumps CPU speed: 3294 MHz CPU Vendor ID: AuthenticAMD Name: AMD Ryzen 7 7840U w/ Radeon 780M Graphics Family 25 (25), Model 116, Stepping 1 Features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 AVX512 F16C FMA3 BMI1 BMI2 HyperThreading Loading "engine/widescreen.def"

I_InitSound: Initializing OpenAL Opened device NC700 EFX enabled No GENMIDI lump found. OPL playback not available. script parsing took 231.29 ms Compiling: 'game.con'.

Duder963 commented 4 months ago

I am also facing this issue on Hyprland with a GTX 1080 Ti using the latest commit. The issue seems to be tied to Wayland as I did not have this issue back when I used X11

AvinashReddy3108 commented 3 months ago

I think I can help here, here's a workaround you can try..

# Force X11 SDL_VIDEODRIVER
export SDL_VIDEODRIVER="x11"

# Run Raze (I'm using the compiled binary, AppImage/Flatpak people should refer their respective docs)
./raze <the rest of the commandline stuff goes here>

Alternatively, you can put the export SDL_VIDEODRIVER line in your .bashrc (or similar, check your shell docs) or in /etc/environment (remove the export word in this case). Reboot, and try running the game.

Pointing8422 commented 1 month ago

Using SDL_VIDEODRIVER="x11" didn't change anything to me. I'm also on Hyprland on Wayland. Nvidia Laptop 3070.

Log started: 2024-08-22 11:22:06 OS: Arch Linux, Linux 6.10.6-zen1-1-zen on x86_64 Using video driver x11 Number of detected displays 1 . Creating window [1280x720] on adapter 0 GL_VENDOR: NVIDIA Corporation GL_RENDERER: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2 GL_VERSION: 4.6.0 NVIDIA 555.58.02 (Core profile) GL_SHADING_LANGUAGE_VERSION: 4.60 NVIDIA

Max. texture size: 32768 Max. texture units: 32 Max. varying: 124 Max. combined shader storage blocks: 96 Max. vertex shader storage blocks: 16 Resolution: 640 x 480 adding /usr/share/raze/raze.pk3, 4049 lumps adding /home/leonardojllq/.config/raze/Shadow Warrior/SW.GRP, 693 lumps adding /home/leonardojllq/.config/raze/Shadow Warrior/, 17 lumps CPU speed: 2688 MHz CPU Vendor ID: GenuineIntel Name: 12th Gen Intel(R) Core(TM) i7-12700H Loading "engine/widescreen.def"

I_InitSound: Initializing OpenAL Opened device Alder Lake PCH-P High Definition Audio Controller Speaker EFX enabled No GENMIDI lump found. OPL playback not available. script parsing took 145.28 ms SHADOW WARRIOR(tm) Version 1.2 Copyright (c) 1997 3D Realms Entertainment player 1 of 1 (1 nodes)

On btop I can see Ram and GPU consume, but no window appear. On x11 the text is similar, but the game works fine.

madame-rachelle commented 1 month ago

Does changing SDL_VIDEODRIVER to "wayland" help? I think it actually defaults to X11.

Pointing8422 commented 2 weeks ago

Already have it setup on wayland, changing it to X11 changes nothing. For now I'll use it on X11.