ubuntu2004 glxgears black screen

50 views
Skip to first unread message

蔡会杰

unread,
Mar 17, 2025, 1:45:42 AMMar 17
to TigerVNC User Discussion/Support
In a Ubuntu 20.04 VM started by QEMU, after implementing GUP (GPU Passthrough) and setting the following environment variables:
bash复制
export __GLX_VENDOR_LIBRARY_NAME='nvidia' export NVIDIA_DRIVER_CAPABILITIES='all' export __NV_PRIME_RENDER_OFFLOAD='1'
occasionally encountering a black screen or crash when starting glxgears.


Pierre Ossman

unread,
Mar 17, 2025, 2:18:19 AMMar 17
to 蔡会杰, TigerVNC User Discussion/Support
We'll need a bit more to go on. What is crashing? Where is TigerVNC
involved here, and how is it set up?

Regards,
--
Pierre Ossman Software Development
Cendio AB http://cendio.com
Teknikringen 8 http://twitter.com/ThinLinc
583 30 Linköping http://facebook.com/ThinLinc
Phone: +46-13-214600

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

huijie cai

unread,
Mar 17, 2025, 5:04:36 AMMar 17
to TigerVNC User Discussion/Support
TigerVNC version is 1.15.0(latest). I copied the file /usr/lib/systemd/system/vncserver@.service to /etc/systemd/system/vncserver@.service and started it using the command systemctl enable vncserver@:1.service

huijie cai

unread,
Mar 17, 2025, 5:05:54 AMMar 17
to TigerVNC User Discussion/Support
Furthermore, I have already entered :1=huijiecai in the /etc/tigervnc/vncserver.users file.

Pierre Ossman

unread,
Mar 18, 2025, 11:43:45 AMMar 18
to huijie cai, TigerVNC User Discussion/Support
On 17/03/2025 10:05, huijie cai wrote:
> Furthermore, I have already entered :1=huijiecai in the
> /etc/tigervnc/vncserver.users file.

That's a good start. Where are you seeing a crash? Have you checked the
user's journal with "journalctl --user"? Do you have anything in
vncserver's logfile in ~/.local/state/tigervnc?

Regards,
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc

huijie cai

unread,
Mar 21, 2025, 2:45:29 AMMar 21
to TigerVNC User Discussion/Support
screenshot-20250321-144439.png
screenshot-20250321-144453.png

huijie cai

unread,
Mar 21, 2025, 2:47:31 AMMar 21
to TigerVNC User Discussion/Support
journalctl --user log:
-- Logs begin at Thu 2025-03-20 22:18:31 CST, end at Fri 2025-03-21 14:37:50 CST. --
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Started Pending report trigger for Ubuntu Report.
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Reached target Paths.
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Reached target Timers.
3月 20 22:18:31 cloud-computer-230 vncsession[2774]: ~/.vnc is deprecated, please consult 'man vncsession' for paths to migrate to.
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Starting D-Bus User Message Bus Socket.
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Listening on GnuPG network certificate management daemon.
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
3月 20 22:18:31 cloud-computer-230 dbus-daemon[2779]: [session uid=1002 pid=2779] AppArmor D-Bus mediation is enabled
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Listening on GnuPG cryptographic agent and passphrase cache.
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Listening on debconf communication socket.
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Listening on Sound System.
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Listening on REST API socket for snapd user session agent.
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Listening on D-Bus User Message Bus Socket.
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Reached target Sockets.
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Reached target Basic System.
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Starting Sound Service...
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Starting Tracker metadata extractor...
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Starting Tracker file system data miner...
3月 20 22:18:31 cloud-computer-230 tracker-extract[2772]: Set scheduler policy to SCHED_IDLE
3月 20 22:18:31 cloud-computer-230 tracker-extract[2772]: Setting priority nice level to 19
3月 20 22:18:31 cloud-computer-230 tracker-miner-f[2773]: Set scheduler policy to SCHED_IDLE
3月 20 22:18:31 cloud-computer-230 tracker-miner-f[2773]: Setting priority nice level to 19
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Started D-Bus User Message Bus.
3月 20 22:18:31 cloud-computer-230 dbus-daemon[2779]: [session uid=1002 pid=2779] Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service' reque>
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Starting Virtual filesystem service...
3月 20 22:18:31 cloud-computer-230 dbus-daemon[2779]: [session uid=1002 pid=2779] Successfully activated service 'org.gtk.vfs.Daemon'
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Started Virtual filesystem service.
3月 20 22:18:31 cloud-computer-230 tracker-miner-f[2773]: Unable to get XDG user directory path for special directory &DOCUMENTS. Ignoring this location.
3月 20 22:18:31 cloud-computer-230 tracker-miner-f[2773]: Unable to get XDG user directory path for special directory &MUSIC. Ignoring this location.
3月 20 22:18:31 cloud-computer-230 tracker-miner-f[2773]: Unable to get XDG user directory path for special directory &PICTURES. Ignoring this location.
3月 20 22:18:31 cloud-computer-230 tracker-miner-f[2773]: Unable to get XDG user directory path for special directory &VIDEOS. Ignoring this location.
3月 20 22:18:31 cloud-computer-230 tracker-miner-f[2773]: Unable to get XDG user directory path for special directory &DOWNLOAD. Ignoring this location.
3月 20 22:18:31 cloud-computer-230 tracker-miner-f[2773]: Unable to get XDG user directory path for special directory &DOCUMENTS. Ignoring this location.
3月 20 22:18:31 cloud-computer-230 tracker-miner-f[2773]: Unable to get XDG user directory path for special directory &MUSIC. Ignoring this location.
3月 20 22:18:31 cloud-computer-230 tracker-miner-f[2773]: Unable to get XDG user directory path for special directory &PICTURES. Ignoring this location.
3月 20 22:18:31 cloud-computer-230 tracker-miner-f[2773]: Unable to get XDG user directory path for special directory &VIDEOS. Ignoring this location.
3月 20 22:18:31 cloud-computer-230 dbus-daemon[2779]: [session uid=1002 pid=2779] Activating via systemd: service name='org.gtk.vfs.UDisks2VolumeMonitor' unit='gvfs-udisks2>
3月 20 22:18:31 cloud-computer-230 systemd[2765]: Starting Virtual filesystem service - disk device monitor...
3月 20 22:18:31 cloud-computer-230 pulseaudio[2771]: Failed to open cookie file '/home/huijiecai/.config/pulse/cookie': No such file or directory
3月 20 22:18:31 cloud-computer-230 pulseaudio[2771]: Failed to load authentication key '/home/huijiecai/.config/pulse/cookie': No such file or directory



cat: /home/huijiecai/.local/state/tigervnc: No such file or directory
Reply all
Reply to author
Forward
0 new messages