GZDoom (SDL) does not seem to work properly on Weston

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE? Did your computer break? Ask here.

Moderator: GZDoom Developers

GZDoom (SDL) does not seem to work properly on Weston

Postby Rachael » Mon Feb 08, 2021 6:54 am

While SDL seems to work okay on Weston (the reference Wayland compositor), it does seem to have some issues.

Test environment:

Spoiler:


It works okay for fullscreen, but in windowed mode the window simply disappears. vid_preferbackend 0 (opengl) works okay, vid_preferbackend 2 (softpoly) simply crashes.

I'm sticking this in tech issues for now, not sure if the bug is in GZDoom itself or in SDL. It appears that the SDL version being compiled is 2.0.0 (what is available in Ubuntu's apt repo).
User avatar
Rachael
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: GZDoom (SDL) does not seem to work properly on Weston

Postby Blzut3 » Sat Feb 13, 2021 1:12 pm

SDL on Ubuntu 20.04 should be 2.0.10. I would definitely build the latest SDL and check that first. Also check setting vid_sdl_render_driver to software.

But I definitely wouldn't rule out a bug in the use of SDL_Renderer for SoftPoly. On Linux the only value proposition is that with the software render driver it does provide a pure software code path, but on systems with OpenGL or Vulkan available it's slower even for throwing the Carmack renderer to the screen (even when not using the software render driver) so I'd be surprised if it gets a whole lot of testing.
Blzut3
Pronounced: B-l-zut
 
 
 
Joined: 24 Nov 2004
Github ID: Blzut3
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
Graphics Processor: ATI/AMD with Vulkan Support

Re: GZDoom (SDL) does not seem to work properly on Weston

Postby drfrag » Sat Feb 13, 2021 2:06 pm

Softpoly crashes on arm due to the memory alignment problem.
User avatar
drfrag
Os voy a romper a pedazos!
Vintage GZDoom Developer
 
Joined: 23 Apr 2004
Location: Spain
Discord: drfrag#3555
Github ID: drfrag666

Re: GZDoom (SDL) does not seem to work properly on Weston

Postby Cacodemon345 » Sat Feb 20, 2021 12:46 pm

I recently tested GZDoom on Softpoly backend on a Amlogic S912 device running Manjaro ARM 64-bit and it doesn't seem to crash. Is it some sort of CPU/RAM problem exclusive to the Raspberry Pis?
Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Other Linux 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: GZDoom (SDL) does not seem to work properly on Weston

Postby Rachael » Sat Feb 20, 2021 12:55 pm

Possibly, I don't know. I know Pi's don't typically use the most up-to-date ARM chips but I also wouldn't expect it to fail on something this badly either. Even if so - I would have thought maybe the compiler would catch it.
User avatar
Rachael
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: GZDoom (SDL) does not seem to work properly on Weston

Postby Cacodemon345 » Mon Mar 01, 2021 12:40 pm

Does compiling GZDoom with -march=armv8-a fix the Softpoly crash?
Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Other Linux 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: GZDoom (SDL) does not seem to work properly on Weston

Postby Rachael » Tue Mar 02, 2021 4:43 pm

Heya - I saw your message and I plan to test it when I can, but right now the system is not set up.
User avatar
Rachael
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: GZDoom (SDL) does not seem to work properly on Weston

Postby Cacodemon345 » Wed Mar 03, 2021 12:09 am

Do also try with -march=armv8.2-a if compiling with -march=armv8-a doesn't fix the Softpoly crash when you finally set up your system. There was a couple of memory model changes introduced in the ARMv8.2-A revision.
Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Other Linux 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: GZDoom (SDL) does not seem to work properly on Weston

Postby SP_FACE1 » Tue Nov 16, 2021 6:21 am

I decided to test this too...

Hardware:
  • Intel i7-4700MQ
  • Intel HD Graphics 4600
  • 16 GB RAM

Software:
  • GZDooM 4.7.1
  • SDL2 2.0.16
  • Wayland 1.19.0
  • Gnome 41.1
  • mutter 41.1
  • Linux 5.15.2

I ran GZDooM with:
Code: Select allExpand view
SDL_VIDEODRIVER=wayland gzdoom


I tested all the rendering backends (vid_preferbackend 0–3, restart after each change).

In windowed mode the window's position is half outside the screen, it cannot be moved but it can be resized. The window does not have a title bar. Despite these issues in the windowed mode the game itself works.

In full screen mode everything works fine.

Also I did not experience any crashes during testing.
User avatar
SP_FACE1
 
Joined: 27 Aug 2017


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 0 guests