You are not logged in.

#1 2022-08-29 07:02:13

trumpetrespas
Member
Registered: 2022-08-29
Posts: 14

[SOLVED] Milkytracker black screen using Nvidia gpu

When I launch Milkytracker all I get is a black screen, tried running in both full screen and windowed. Also tried running with -nosplash.

Downgrading my packages to the date 08/20/2022 fixed the issue, but I don't want to use outdated packages forever.

Any help would be greatly appreciated, and any feedback on my post as well. This is my first post so if I did something really stupid I apologize for it.

Last edited by trumpetrespas (2022-09-25 06:54:04)

Offline

#2 2022-08-29 10:16:23

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,926

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

Milkytracker was last updated nov 2021, so the cause is probably an update to one of its dependencies.

Please post the log of the downgrade (look in /var/log/pacman.log ) .

It would also help if you upgraded again, ran milkytracker from terminal and post the output shown in the terminal .

Welcome to archlinux forums.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2022-08-29 11:10:22

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

SDL2 uses a new version numbering scheme now which seems to have broken all packages based on it, e.g. pygame and milkytracker.

Offline

#4 2022-08-29 16:05:27

trumpetrespas
Member
Registered: 2022-08-29
Posts: 14

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

My /var/log/pacman.log

 [2022-08-29T09:09:08-0700] [PACMAN] Running 'pacman -Syyuu'
[2022-08-29T09:09:08-0700] [PACMAN] synchronizing package lists
[2022-08-29T09:09:13-0700] [PACMAN] starting full system upgrade
[2022-08-29T09:09:25-0700] [ALPM] running '60-mkinitcpio-remove.hook'...
[2022-08-29T09:09:25-0700] [ALPM] running '71-dkms-remove.hook'...
[2022-08-29T09:09:25-0700] [ALPM-SCRIPTLET] ==> dkms remove --no-depmod evdi/1.12.0 -k 5.19.4-arch1-1
[2022-08-29T09:09:25-0700] [ALPM-SCRIPTLET] ==> dkms remove --no-depmod vboxhost/6.1.36_OSE -k 5.19.4-arch1-1
[2022-08-29T09:09:25-0700] [ALPM-SCRIPTLET] ==> depmod 5.19.4-arch1-1
[2022-08-29T09:09:28-0700] [ALPM] transaction started
[2022-08-29T09:09:28-0700] [ALPM] downgraded iana-etc (20220715-1 -> 20220603-1)
[2022-08-29T09:09:28-0700] [ALPM] downgraded glibc (2.36-3 -> 2.36-2)
[2022-08-29T09:09:28-0700] [ALPM-SCRIPTLET] Generating locales...
[2022-08-29T09:09:29-0700] [ALPM-SCRIPTLET]   en_US.ISO-8859-1... done
[2022-08-29T09:09:29-0700] [ALPM-SCRIPTLET]   en_US.UTF-8... done
[2022-08-29T09:09:29-0700] [ALPM-SCRIPTLET] Generation complete.
[2022-08-29T09:09:30-0700] [ALPM] downgraded gcc-libs (12.2.0-1 -> 12.1.1-4)
[2022-08-29T09:09:30-0700] [ALPM] downgraded lib32-glibc (2.36-3 -> 2.36-2)
[2022-08-29T09:09:30-0700] [ALPM] downgraded libtasn1 (4.19.0-1 -> 4.18.0-1)
[2022-08-29T09:09:30-0700] [ALPM] downgraded ca-certificates-mozilla (3.82-1 -> 3.81-1)
[2022-08-29T09:09:30-0700] [ALPM] downgraded binutils (2.39-3 -> 2.39-2)
[2022-08-29T09:09:30-0700] [ALPM] downgraded libjpeg-turbo (2.1.4-2 -> 2.1.3-2)
[2022-08-29T09:09:30-0700] [ALPM] downgraded libtiff (4.4.0-4 -> 4.4.0-3)
[2022-08-29T09:09:30-0700] [ALPM] downgraded librsvg (2:2.54.5-1 -> 2:2.54.4-1)
[2022-08-29T09:09:30-0700] [ALPM] downgraded libssh (0.10.0-1 -> 0.9.6-1)
[2022-08-29T09:09:30-0700] [ALPM] downgraded libpciaccess (0.16-4 -> 0.16-3)
[2022-08-29T09:09:30-0700] [ALPM] downgraded mesa (22.1.7-1 -> 22.1.6-1)
[2022-08-29T09:09:30-0700] [ALPM] downgraded sdl2 (2.24.0-1 -> 2.0.22-2)
[2022-08-29T09:09:30-0700] [ALPM] downgraded x264 (3:0.164.r3095.baee400-4 -> 3:0.164.r3095.baee400-2)
[2022-08-29T09:09:30-0700] [ALPM] downgraded chromaprint (1.5.1-4 -> 1.5.1-3)
[2022-08-29T09:09:35-0700] [ALPM] downgraded cuda (11.7.1-3 -> 11.7.1-1)
[2022-08-29T09:09:36-0700] [ALPM] downgraded nss (3.82-1 -> 3.81-1)
[2022-08-29T09:09:36-0700] [ALPM] downgraded cups-filters (1.28.16-1 -> 1.28.15-2)
[2022-08-29T09:09:36-0700] [ALPM] downgraded libxslt (1.1.36-1 -> 1.1.35-1)
[2022-08-29T09:09:36-0700] [ALPM] downgraded electron (20.0.3-1 -> 20.0.0-1)
[2022-08-29T09:09:36-0700] [ALPM] downgraded firefox (104.0-1 -> 103.0.2-1)
[2022-08-29T09:09:38-0700] [ALPM] downgraded gap (4.12.0-2 -> 4.11.1-10)
[2022-08-29T09:09:39-0700] [ALPM] downgraded gcc (12.2.0-1 -> 12.1.1-4)
[2022-08-29T09:09:39-0700] [ALPM] downgraded geogebra (6.0.726.0-1 -> 6.0.723.0-1)
[2022-08-29T09:09:39-0700] [ALPM] downgraded github-cli (2.14.7-1 -> 2.14.4-1)
[2022-08-29T09:09:39-0700] [ALPM] downgraded gnupg (2.2.37-1 -> 2.2.36-1)
[2022-08-29T09:09:39-0700] [ALPM] downgraded qt5-base (5.15.5+kde+r178-1 -> 5.15.5+kde+r174-1)
[2022-08-29T09:09:39-0700] [ALPM] downgraded libtool (2.4.7-5 -> 2.4.7-3)
[2022-08-29T09:09:39-0700] [ALPM] downgraded kwallet (5.97.0-4 -> 5.97.0-2)
[2022-08-29T09:09:39-0700] [ALPM] downgraded ndctl (74-1 -> 73-1)
[2022-08-29T09:09:39-0700] [ALPM] downgraded libkdegames (22.08.0-1 -> 22.04.3-1)
[2022-08-29T09:09:39-0700] [ALPM] downgraded granatier (22.08.0-1 -> 22.04.3-1)
[2022-08-29T09:09:39-0700] [ALPM] downgraded grub (2:2.06.r322.gd9b4638c5-1 -> 2:2.06.r297.g0c6c1aff2-1)
[2022-08-29T09:09:39-0700] [ALPM] downgraded vim-runtime (9.0.0246-1 -> 9.0.0135-1)
[2022-08-29T09:09:39-0700] [ALPM] downgraded gvim (9.0.0246-1 -> 9.0.0135-1)
[2022-08-29T09:09:39-0700] [ALPM] downgraded hunspell (1.7.1-1 -> 1.7.0-4)
[2022-08-29T09:09:40-0700] [ALPM] downgraded imagemagick (7.1.0.47-1 -> 7.1.0.45-1)
[2022-08-29T09:09:40-0700] [ALPM] downgraded signon-kwallet-extension (22.08.0-1 -> 22.04.3-1)
[2022-08-29T09:09:40-0700] [ALPM] downgraded kaccounts-integration (22.08.0-2 -> 22.04.3-1)
[2022-08-29T09:09:40-0700] [ALPM] downgraded openpmix (4.2.0-1 -> 4.1.2-1)
[2022-08-29T09:09:40-0700] [ALPM] downgraded krita (5.1.0-1 -> 5.0.8-1)
[2022-08-29T09:09:40-0700] [ALPM] downgraded ldns (1.8.3-1 -> 1.8.1-1)
[2022-08-29T09:09:40-0700] [ALPM] downgraded lib32-gcc-libs (12.2.0-1 -> 12.1.1-4)
[2022-08-29T09:09:40-0700] [ALPM] downgraded lib32-libjpeg-turbo (2.1.4-2 -> 2.1.3-1)
[2022-08-29T09:09:40-0700] [ALPM] downgraded lib32-libtiff (4.4.0-4 -> 4.4.0-3)
[2022-08-29T09:09:40-0700] [ALPM] downgraded lib32-mesa (22.1.7-1 -> 22.1.6-1)
[2022-08-29T09:09:40-0700] [ALPM] downgraded lib32-nss (3.82-1 -> 3.81-1)
[2022-08-29T09:09:40-0700] [ALPM] downgraded libkexiv2 (22.08.0-1 -> 22.04.3-1)
[2022-08-29T09:09:40-0700] [ALPM] downgraded libopenmpt (0.6.5-1 -> 0.6.4-1)
[2022-08-29T09:09:40-0700] [ALPM] downgraded libwpe (1.12.3-1 -> 1.12.2-1)
[2022-08-29T09:09:41-0700] [ALPM] downgraded linux (5.19.4.arch1-1 -> 5.19.2.arch1-1)
[2022-08-29T09:09:41-0700] [ALPM] downgraded pahole (1:1.23-1 -> 1.23-1)
[2022-08-29T09:09:42-0700] [ALPM] downgraded linux-headers (5.19.4.arch1-1 -> 5.19.2.arch1-1)
[2022-08-29T09:09:42-0700] [ALPM] downgraded webkit2gtk (2.36.7-1 -> 2.36.6-1)
[2022-08-29T09:09:42-0700] [ALPM] downgraded python-appdirs (1.4.4-7 -> 1.4.4-6)
[2022-08-29T09:09:42-0700] [ALPM] downgraded python-jaraco.context (4.1.2-1 -> 4.1.1-2)
[2022-08-29T09:09:42-0700] [ALPM] downgraded python-trove-classifiers (2022.8.24-1 -> 2022.8.7-1)
[2022-08-29T09:09:42-0700] [ALPM] downgraded python-setuptools (1:62.3.0-1 -> 1:62.1.0-1)
[2022-08-29T09:09:43-0700] [ALPM] downgraded python-urllib3 (1.26.12-1 -> 1.26.11-1)
[2022-08-29T09:09:43-0700] [ALPM] downgraded lutris (0.5.11-1 -> 0.5.10.1-2)
[2022-08-29T09:09:43-0700] [ALPM] downgraded mariadb-libs (10.9.2-1 -> 10.8.4-1)
[2022-08-29T09:09:43-0700] [ALPM] downgraded netpbm (10.73.37-2 -> 10.73.37-1)
[2022-08-29T09:09:43-0700] [ALPM] downgraded nvidia (515.65.01-9 -> 515.65.01-5)
[2022-08-29T09:09:43-0700] [ALPM] downgraded qt5-quickcontrols2 (5.15.5+kde+r6-1 -> 5.15.5+kde+r5-1)
[2022-08-29T09:09:43-0700] [ALPM] downgraded okular (22.08.0-1 -> 22.04.3-1)
[2022-08-29T09:09:43-0700] [ALPM] downgraded opencv (4.6.0-4 -> 4.6.0-3)
[2022-08-29T09:09:43-0700] [ALPM] warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
[2022-08-29T09:09:43-0700] [ALPM] downgraded pacman-mirrorlist (20220828-1 -> 20220724-1)
[2022-08-29T09:09:43-0700] [ALPM] downgraded plfit (0.9.4-1 -> 0.9.3-1)
[2022-08-29T09:09:43-0700] [ALPM] downgraded python-debugpy (1.6.3-1 -> 1.6.2-2)
[2022-08-29T09:09:43-0700] [ALPM] downgraded python-fonttools (4.37.1-1 -> 4.35.0-1)
[2022-08-29T09:09:43-0700] [ALPM] downgraded python-importlib-metadata (4.8.2-1 -> 4.8.1-3)
[2022-08-29T09:09:43-0700] [ALPM] downgraded python-six (1.16.0-6 -> 1.16.0-5)
[2022-08-29T09:09:43-0700] [ALPM] downgraded python-jupyter_client (7.3.5-1 -> 7.3.4-1)
[2022-08-29T09:09:43-0700] [ALPM] downgraded python-matplotlib-inline (0.1.6-1 -> 0.1.3-3)
[2022-08-29T09:09:43-0700] [ALPM] downgraded python-ipywidgets (8.0.1-1 -> 7.7.1-2)
[2022-08-29T09:09:43-0700] [ALPM] downgraded python-kiwisolver (1.4.4-1 -> 1.4.3-1)
[2022-08-29T09:09:43-0700] [ALPM] downgraded python-rpy2 (3.5.4-1 -> 3.5.3-1)
[2022-08-29T09:09:43-0700] [ALPM] downgraded python-scipy (1.9.1-1 -> 1.9.0-2)
[2022-08-29T09:09:44-0700] [ALPM] downgraded python-sympy (1.11-1 -> 1.10.1-1)
[2022-08-29T09:09:44-0700] [ALPM] downgraded singular (4.3.1.p2-1 -> 4.3.1.p1-2)
[2022-08-29T09:09:45-0700] [ALPM] downgraded sagemath (9.6-7 -> 9.6-6)
[2022-08-29T09:09:45-0700] [ALPM] downgraded sdl2_image (2.6.2-1 -> 2.6.1-1)
[2022-08-29T09:09:45-0700] [ALPM] downgraded sdl2_mixer (2.6.2-1 -> 2.6.1-1)
[2022-08-29T09:09:45-0700] [ALPM] downgraded sdl2_net (1:2.2.0-1 -> 1:2.0.1-3)
[2022-08-29T09:09:45-0700] [ALPM] downgraded sdl2_ttf (2.20.1-1 -> 2.20.0-1)
[2022-08-29T09:09:45-0700] [ALPM] downgraded system-config-printer (1.5.17-1 -> 1.5.16-1)
[2022-08-29T09:09:45-0700] [ALPM] downgraded taglib (1.12-2 -> 1.12-1)
[2022-08-29T09:09:45-0700] [ALPM] downgraded webkit2gtk-4.1 (2.36.7-1 -> 2.36.6-1)
[2022-08-29T09:09:46-0700] [ALPM] downgraded wine (7.16-1 -> 7.15-1)
[2022-08-29T09:09:46-0700] [ALPM] downgraded wxwidgets-common (3.2.0-5 -> 3.2.0-4)
[2022-08-29T09:09:46-0700] [ALPM] downgraded wxwidgets-gtk3 (3.2.0-5 -> 3.2.0-4)
[2022-08-29T09:09:46-0700] [ALPM] downgraded xfce4-panel (4.16.5-1 -> 4.16.4-1)
[2022-08-29T09:09:46-0700] [ALPM] downgraded xfdesktop (4.16.1-1 -> 4.16.0-2)
[2022-08-29T09:09:47-0700] [ALPM] downgraded yt-dlp (2022.08.19-1 -> 2022.07.18-1)
[2022-08-29T09:09:47-0700] [ALPM] transaction completed
[2022-08-29T09:09:47-0700] [ALPM] running '30-systemd-binfmt.hook'...
[2022-08-29T09:09:47-0700] [ALPM] running '30-systemd-daemon-reload.hook'...
[2022-08-29T09:09:47-0700] [ALPM] running '30-systemd-tmpfiles.hook'...
[2022-08-29T09:09:47-0700] [ALPM] running '30-systemd-udev-reload.hook'...
[2022-08-29T09:09:47-0700] [ALPM] running '30-systemd-update.hook'...
[2022-08-29T09:09:47-0700] [ALPM] running '30-update-mime-database.hook'...
[2022-08-29T09:09:47-0700] [ALPM] running '40-update-ca-trust.hook'...
[2022-08-29T09:09:48-0700] [ALPM] running '60-depmod.hook'...
[2022-08-29T09:09:49-0700] [ALPM] running '70-dkms-install.hook'...
[2022-08-29T09:09:49-0700] [ALPM-SCRIPTLET] ==> dkms install --no-depmod evdi/1.12.0 -k 5.19.2-arch1-1
[2022-08-29T09:09:51-0700] [ALPM-SCRIPTLET] ==> dkms install --no-depmod vboxhost/6.1.36_OSE -k 5.19.2-arch1-1
[2022-08-29T09:09:55-0700] [ALPM-SCRIPTLET] ==> depmod 5.19.2-arch1-1
[2022-08-29T09:09:57-0700] [ALPM] running '90-mkinitcpio-install.hook'...
[2022-08-29T09:09:57-0700] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2022-08-29T09:09:57-0700] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2022-08-29T09:09:57-0700] [ALPM-SCRIPTLET] ==> Starting build: 5.19.2-arch1-1
[2022-08-29T09:09:57-0700] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2022-08-29T09:09:57-0700] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2022-08-29T09:09:57-0700] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2022-08-29T09:09:57-0700] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2022-08-29T09:09:57-0700] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2022-08-29T09:09:57-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: xhci_pci
[2022-08-29T09:09:57-0700] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2022-08-29T09:09:57-0700] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET] ==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET] ==> Image generation successful
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET] ==> Starting build: 5.19.2-arch1-1
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: bfa
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: qed
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: qla1280
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: qla2xxx
[2022-08-29T09:09:58-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: wd719x
[2022-08-29T09:09:59-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: xhci_pci
[2022-08-29T09:09:59-0700] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2022-08-29T09:09:59-0700] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2022-08-29T09:10:00-0700] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2022-08-29T09:10:00-0700] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2022-08-29T09:10:00-0700] [ALPM-SCRIPTLET] ==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
[2022-08-29T09:10:00-0700] [ALPM-SCRIPTLET] ==> Image generation successful
[2022-08-29T09:10:00-0700] [ALPM] running 'dbus-reload.hook'...
[2022-08-29T09:10:00-0700] [ALPM] running 'detect-old-perl-modules.hook'...
[2022-08-29T09:10:00-0700] [ALPM] running 'fontconfig.hook'...
[2022-08-29T09:10:00-0700] [ALPM] running 'fontconfig-32.hook'...
[2022-08-29T09:10:00-0700] [ALPM] running 'gdk-pixbuf-query-loaders.hook'...
[2022-08-29T09:10:00-0700] [ALPM] running 'gtk-update-icon-cache.hook'...
[2022-08-29T09:10:00-0700] [ALPM] running 'texinfo-install.hook'...
[2022-08-29T09:10:01-0700] [ALPM] running 'update-desktop-database.hook'...

Milkytracker output:

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)

I also just wanted to say thank you real quick.

Last edited by trumpetrespas (2022-08-29 20:34:46)

Offline

#5 2022-08-29 18:44:50

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

Please edit your post and use [ code ] tags (not quote tags) when posting output. This makes the output easier to read and provides a scroll box for long output.

https://wiki.archlinux.org/title/Genera … s_and_code
https://bbs.archlinux.org/help.php#bbcode

Offline

#6 2022-08-29 19:43:48

xerxes_
Member
Registered: 2018-04-29
Posts: 776

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

I can not confirm this! Here Milkytracker launch and plays as good as always, but I don't use nvidia binary drivers. You may try to disable nvidia and try nouveau, but you have quite new graphic card and I don't know how good/bad your system may work. Maybe you also have Intel builtin GPU to test?

My output from terminal:

milkytracker 
Available Renderers: opengl opengles2 software 
Vendor     : nouveau
Renderer   : NV117
Version    : OpenGL ES 3.2 Mesa 22.1.7
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)

How many software is now broken because of nvidia's poor quality Linux drivers?

Last edited by xerxes_ (2022-08-29 19:49:43)

Offline

#7 2022-08-29 20:39:12

trumpetrespas
Member
Registered: 2022-08-29
Posts: 14

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

Everything else for me is working. I have an AMD GPU along side my Nvidia GPU, so I can't try it on an intel, but I might be able to force Milkytracker to use the AMD GPU (I'm not sure how though).

Offline

#8 2022-08-30 10:28:05

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,926

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

milkytracker 1.03.00-3 just entered repos and the change log states it was rebuilt aginst sdl2 .

Run pacman -Syu and verify if that version works for you.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#9 2022-08-30 16:09:02

trumpetrespas
Member
Registered: 2022-08-29
Posts: 14

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

Unfortunately, I'm still getting a black screen.

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)

Offline

#10 2022-08-30 16:39:10

trumpetrespas
Member
Registered: 2022-08-29
Posts: 14

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

I can confirm that it is indeed the new SDL2 is causing the problems on my system. I copied the libSDL2 from the downgraded version of my system then ran LD_PRELOAD=./libSDL2-2.0.so ./milkytracker, and it worked. I'll try and automate this somehow to see if I can install the package this way.

Offline

#11 2022-08-30 17:19:36

trumpetrespas
Member
Registered: 2022-08-29
Posts: 14

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

Ok, here is the text of my messy PKGBUILD.

 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Christopher O'Neill <milkytracker@chrisoneill.co.uk>
# Contributor: Maks Verver <maksverver@geocities.com>

_name=MilkyTracker
pkgname=milkytracker
pkgver=1.03.00 pkgrel=4
pkgdesc='Music tracker inspired by Fast Tracker II'
arch=(x86_64)
url='https://milkytracker.titandemo.org/'
license=(GPL3)
depends=(alsa-lib lhasa rtmidi sdl2 zlib zziplib)
makedepends=(cmake jack ninja)
optdepends=('jack: JACK audio support')
# Disable stripping
# https://bugs.archlinux.org/task/30018
options=(!strip)
source=("$pkgname-$pkgver.tar.gz::https://github.com/milkytracker/MilkyTracker/archive/v$pkgver.tar.gz"
	"sdl2.pkg.tar.zst::https://archive.archlinux.org/repos/2022/08/20/extra/os/x86_64/sdl2-2.0.22-2-x86_64.pkg.tar.zst")
sha256sums=('72d5357e303380b52383b66b51f944a77cd77e2b3bfeb227d87cc0e72ab292f7'
            'b6e00e2221e5ed9a0e15861b6d72468061be9e98f80b118b23e5762112a521e8')

prepare() {
  mv -v $_name-$pkgver $pkgname-$pkgver
  # remove explicit use of C++98 as dependencies use C++11
  sed -e '/CMAKE_CXX_STANDARD/d' -e '/CMAKE_CXX_EXTENSIONS/d' -i $pkgname-$pkgver/CMakeLists.txt
}

build() {
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -W nodev \
    -B build \
    -G Ninja \
    $pkgname-$pkgver
  ninja -C build
}

package() {
  depends+=(libasound.so librtmidi.so)

  DESTDIR="$pkgdir" ninja install -C build

  echo "creating /opt/milkytracker"
  mkdir -p $pkgdir/opt/milkytracker

  echo "copying /usr/bin/milkytracker to /opt/milkytracker"
  cp $pkgdir/usr/bin/milkytracker $pkgdir/opt/milkytracker/

  mv usr/lib/libSDL2-2.0.so.0.22.0 $pkgdir/opt/milkytracker/libSDL2-2.0.so

  echo "LD_PRELOAD=/opt/milkytracker/libSDL2-2.0.so /opt/milkytracker/milkytracker \"\$@\"" > $pkgdir/usr/bin/milkytracker

  chmod 755 $pkgdir/usr/bin/milkytracker


  cd $pkgname-$pkgver/resources
  install -vDm 644 pictures/carton.png "$pkgdir/usr/share/pixmaps/${pkgname}.png"
  install -vDm 644 ${pkgname}.desktop -t "$pkgdir/usr/share/applications/"
  # yes, this file extension is wrong
  install -vDm 644 ${pkgname}.appdata "$pkgdir/usr/share/appdata/${pkgname}.appdata.xml"
}

EDIT: modified PKGBUILD to enable command line arguements

Last edited by trumpetrespas (2022-08-30 17:26:49)

Offline

#12 2022-08-30 17:57:24

Maniaxx
Member
Registered: 2014-05-14
Posts: 757

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

Are you sure you're on the latest version? Some mirrors need some time.

$ pacman -Qs milkytracker
local/milkytracker 1.03.00-3

If so, maybe reboot or rebuild the cache.

$ sudo ldconfig

Or reset the config:

mv ~/.config/milkytracker ~/.config/milkytracker-bak

Last edited by Maniaxx (2022-08-30 18:03:33)


sys2064

Offline

#13 2022-08-30 18:18:06

trumpetrespas
Member
Registered: 2022-08-29
Posts: 14

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

When I updated everything Milkytracker updated as well (its currently at Milkytracker 1.03.00-3). I just tried running

sudo ldconfig

, and,

mv ~/.config/milkytracker ~/.config/milkytracker-bak

I also rebooted before doing any of this, and I still got a black screen.

Last edited by trumpetrespas (2022-08-30 18:43:46)

Offline

#14 2022-08-30 19:10:11

Maniaxx
Member
Registered: 2014-05-14
Posts: 757

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

That's weird.
Please post the the following output:

$ ls -l /usr/lib/libSDL2*
$ ldd /usr/bin/milkytracker

Does any of these commands work?

$ env SDL_RENDER_DRIVER=software milkytracker
$ env __GLX_VENDOR_LIBRARY_NAME=mesa LIBGL_ALWAYS_SOFTWARE=1 milkytracker

sys2064

Offline

#15 2022-08-30 19:16:56

trumpetrespas
Member
Registered: 2022-08-29
Posts: 14

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

Output from ls -l /usr/lib/libSDL2*:

lrwxrwxrwx 1 root root      16 Aug 20 10:09 /usr/lib/libSDL2-2.0.so -> libSDL2-2.0.so.0
lrwxrwxrwx 1 root root      23 Aug 20 10:09 /usr/lib/libSDL2-2.0.so.0 -> libSDL2-2.0.so.0.2400.0
-rwxr-xr-x 1 root root 1804784 Aug 20 10:09 /usr/lib/libSDL2-2.0.so.0.2400.0
lrwxrwxrwx 1 root root      14 Aug 20 10:09 /usr/lib/libSDL2.so -> libSDL2-2.0.so
lrwxrwxrwx 1 root root      28 Aug 20 10:09 /usr/lib/libSDL2_image-2.0.so.0 -> libSDL2_image-2.0.so.0.600.2
-rwxr-xr-x 1 root root  128784 Aug 20 10:09 /usr/lib/libSDL2_image-2.0.so.0.600.2
lrwxrwxrwx 1 root root      28 Aug 20 10:09 /usr/lib/libSDL2_image.so -> libSDL2_image-2.0.so.0.600.2
lrwxrwxrwx 1 root root      28 Aug 20 10:15 /usr/lib/libSDL2_mixer-2.0.so.0 -> libSDL2_mixer-2.0.so.0.600.2
-rwxr-xr-x 1 root root  286568 Aug 20 10:15 /usr/lib/libSDL2_mixer-2.0.so.0.600.2
lrwxrwxrwx 1 root root      28 Aug 20 10:15 /usr/lib/libSDL2_mixer.so -> libSDL2_mixer-2.0.so.0.600.2
lrwxrwxrwx 1 root root      26 Aug 23 15:00 /usr/lib/libSDL2_net-2.0.so.0 -> libSDL2_net-2.0.so.0.200.0
-rwxr-xr-x 1 root root   22200 Aug 23 15:00 /usr/lib/libSDL2_net-2.0.so.0.200.0
lrwxrwxrwx 1 root root      26 Aug 23 15:00 /usr/lib/libSDL2_net.so -> libSDL2_net-2.0.so.0.200.0
-rw-r--r-- 1 root root  307830 Aug 20 10:09 /usr/lib/libSDL2_test.a
lrwxrwxrwx 1 root root      27 Aug 20 10:23 /usr/lib/libSDL2_ttf-2.0.so.0 -> libSDL2_ttf-2.0.so.0.2000.1
-rwxr-xr-x 1 root root 1457808 Aug 20 10:23 /usr/lib/libSDL2_ttf-2.0.so.0.2000.1
lrwxrwxrwx 1 root root      27 Aug 20 10:23 /usr/lib/libSDL2_ttf.so -> libSDL2_ttf-2.0.so.0.2000.1
-rw-r--r-- 1 root root    1462 Aug 20 10:09 /usr/lib/libSDL2main.a

Output from ldd /usr/bin/milkytracker:

	linux-vdso.so.1 => linux-vdso.so.1 (0x00007ffd377b8000)
	libz.so.1 => /usr/lib/libz.so.1 (0x00007f63d07d7000)
	libzzip-0.so.13 => /usr/lib/libzzip-0.so.13 (0x00007f63d07cd000)
	liblhasa.so.0 => /usr/lib/liblhasa.so.0 (0x00007f63d07bd000)
	libasound.so.2 => /usr/lib/libasound.so.2 (0x00007f63d06ce000)
	libSDL2-2.0.so.0 => /usr/lib/libSDL2-2.0.so.0 (0x00007f63d050f000)
	librtmidi.so.6 => /usr/lib/librtmidi.so.6 (0x00007f63d04f5000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f63d02bc000)
	libm.so.6 => /usr/lib/libm.so.6 (0x00007f63d01d4000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f63d01b4000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007f63cffcd000)
	/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f63d0ab8000)
	libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f63cffc8000)
	libjack.so.0 => /usr/lib/libjack.so.0 (0x00007f63cff73000)
	libdb-5.3.so => /usr/lib/libdb-5.3.so (0x00007f63cfdb2000)

Running

env SDL_RENDER_DRIVER=software milkytracker

does not work. But running

env __GLX_VENDOR_LIBRARY_NAME=mesa LIBGL_ALWAYS_SOFTWARE=1 milkytracker

,  works, but then everything in milkytracker looks very washed out.

NOTE: the same happens if I run

__GLX_VENDOR_LIBRARY_NAME=mesa  milkytracker

NOTE: running

 __GLX_VENDOR_LIBRARY_NAME=mesa milkytracker 

     using the older sdl version still results in washed out colors.

Output from milkytracker when running with env __GLX_VENDOR_LIBRARY_NAME=mesa :

Available Renderers: opengl opengles2 software 
Vendor     : Mesa/X.org
Renderer   : llvmpipe (LLVM 14.0.6, 256 bits)
Version    : OpenGL ES 3.2 Mesa 22.1.7
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)

Output when running env SDL_RENDER_DRIVER=software milkytrackerer.

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)

Last edited by trumpetrespas (2022-08-31 18:13:35)

Offline

#16 2022-09-08 10:00:48

yleberre
Member
Registered: 2013-06-09
Posts: 8

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

Same results with GTX1660.
specific to nvidia GL / GLES renderer ?

Offline

#17 2022-09-08 17:02:34

Maniaxx
Member
Registered: 2014-05-14
Posts: 757

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

Try to compile latest master. There are quite some new commits. If that doesn't help post a bug report on Github.
https://github.com/milkytracker/MilkyTracker


sys2064

Offline

#18 2022-09-08 18:32:38

trumpetrespas
Member
Registered: 2022-08-29
Posts: 14

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

I just built the latest master branch of Milkytracker and I still got the black screen. I'm going to write up that bug report right now.



Would this be a good time to mark this thread as closed?


Thank you for your time smile.

Last edited by trumpetrespas (2022-09-08 18:40:59)

Offline

#19 2022-09-09 08:48:11

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,926

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

No, but you might want to edit the title to reflect the issue better.

It would be nice if you posted a link to the upstream bugreport so others can follow it.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#20 2022-09-09 17:17:32

trumpetrespas
Member
Registered: 2022-08-29
Posts: 14

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

Thanks for the advise:

Here is the issue on github:
     https://github.com/milkytracker/MilkyTracker/issues/295

Offline

#21 2022-09-09 19:19:56

Maniaxx
Member
Registered: 2014-05-14
Posts: 757

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

trumpetrespas wrote:

SDL: Minimum window size set to 640x480.

Looks suspicious. Probing/enumeration might running wild. What's your desktop resolution? Wayland or X11?

trumpetrespas wrote:

I have an AMD GPU along side my Nvidia GPU, so I can't try it on an intel, but I might be able to force Milkytracker to use the AMD GPU (I'm not sure how though).

What Laptop is this exactly?


sys2064

Offline

#22 2022-09-09 19:23:19

trumpetrespas
Member
Registered: 2022-08-29
Posts: 14

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

I am using x11, my laptop is the Legion S7 15ACH6, and my resolution is 1920*1080.

NOTE:
the

SDL: Minimum window size set to 640x480.

changes with the resolution you set in milkytracker.

Last edited by trumpetrespas (2022-09-09 19:26:32)

Offline

#23 2022-09-22 05:45:44

yleberre
Member
Registered: 2013-06-09
Posts: 8

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

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

Offline

#24 2022-09-24 05:40:15

yleberre
Member
Registered: 2013-06-09
Posts: 8

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

No more black window with milkytracker 1.03.00 and sdl2-git 2.24.0.r289.g8d2cb1555
sdl2-git can be installed from aur.

sdl2 release planned end of next month (see github libsdl-org/SDL #6263)

Offline

#25 2022-09-25 00:03:32

trumpetrespas
Member
Registered: 2022-08-29
Posts: 14

Re: [SOLVED] Milkytracker black screen using Nvidia gpu

Installing sdl2-git from the aur worked for me too.

Would now be a good time to mark this post as solved?

Offline

Board footer

Powered by FluxBB