milkytracker / MilkyTracker

An FT2 compatible music tracker
http://milkytracker.github.io/
Other
1.7k stars 160 forks source link

Milkytracker black screen on Nvidia gpu Linux with SDL 2.24.0 #295

Closed mward25 closed 2 years ago

mward25 commented 2 years ago

Output from milkytracker:

Available Renderers: opengl opengles2 software 
Vendor     : NVIDIA Corporation
Renderer   : NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2
Version    : OpenGL ES 3.2 NVIDIA 515.65.01
SDL: Minimum window size set to 640x480.
SDL: Using accelerated renderer.
SDL: Renderer supports rendering to texture.
SDL: Using audio driver: pulseaudio
SDL: Buffer size = 2048 samples (requested 2048)

Does not work with SDL2 2.24.0, but it does work with SDL2 2.0.22.

Here is the thread I created on the arch linux forums (in case that helps): https://bbs.archlinux.org/viewtopic.php?pid=2056385#p2056385

yves-le-berre commented 2 years ago

I just opened issue #6271 to libsdl-org/SDL.

Deltafire commented 2 years ago

Have you tried resizing the window? I've seen something similar in the past where resizing the window made the contents appear.

yves-le-berre commented 2 years ago

The window can only have a size superior to the minimum windows size given in configuration (mine is 1440x900) and if i enlarge the window (i can do it because my screen is 1920x1080), it stays black. This has also the curious effect to disable the WM close window button (and corresponding menu item)

yves-le-berre commented 2 years ago

No more black window with milkytracker 1.03.00 and sdl2-git 2.24.0.r289.g8d2cb1555.

mward25 commented 2 years ago

Given this new information, should I close this issue?

yves-le-berre commented 2 years ago

Yes, this behavior is due to SDL. sdl2 release planned end of next month.

josephbburg commented 1 year ago

I am having this issue when I try to build - is it possible to choose a different renderer in the meantime? Here's what I get in the console. Available Renderers: opengl opengles2 software But how to choose one or the other? Edit: It's possible to force software rendering by changing the file "/src/ppui/sdl/DisplayDevice_SDL.cpp" and changing a few lines. But is it possible to choose one from the command line with a flag? Anyways, display works when I do this.