'gtk initialization failed' on Fedora 32 #3

Closed
opened 2025-12-28 23:20:19 +01:00 by adam · 18 comments
Owner

Originally created by @jhasse on GitHub (Jun 4, 2020).

I've already checked the troubleshooting steps. This is my output:

$ docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx
No protocol specified
Unable to init server: Could not connect: Connection refused
QEMU 5.0.0 monitor - type 'help' for more information
(qemu) qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `dac'
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `adc'
gtk initialization failed

Maybe an X forwarding problem? Anything I need to keep in mind?

Originally created by @jhasse on GitHub (Jun 4, 2020). I've already checked the troubleshooting steps. This is my output: ``` $ docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx No protocol specified Unable to init server: Could not connect: Connection refused QEMU 5.0.0 monitor - type 'help' for more information (qemu) qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize DAC alsa: Failed to open `default': alsa: Reason: No such file or directory ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize DAC alsa: Failed to open `default': alsa: Reason: No such file or directory audio: Failed to create voice `dac' ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize ADC alsa: Failed to open `default': alsa: Reason: No such file or directory ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize ADC alsa: Failed to open `default': alsa: Reason: No such file or directory audio: Failed to create voice `adc' gtk initialization failed ``` Maybe an X forwarding problem? Anything I need to keep in mind?
adam closed this issue 2025-12-28 23:20:19 +01:00
Author
Owner

@sickcodes commented on GitHub (Jun 4, 2020):

Is hardware acceleration turned on in your BIOS?
I usually get 3x CPU errors but you've got 4, the rest of the errors are sound card related.

@sickcodes commented on GitHub (Jun 4, 2020): Is hardware acceleration turned on in your BIOS? I usually get 3x CPU errors but you've got 4, the rest of the errors are sound card related.
Author
Owner

@jhasse commented on GitHub (Jun 4, 2020):

SVM is enabled, egrep -c '(svm|vmx)' /proc/cpuinfo returned 16 (AMD Ryzen 3800X). Do I need to enable IOMMU as well?

@jhasse commented on GitHub (Jun 4, 2020): SVM is enabled, `egrep -c '(svm|vmx)' /proc/cpuinfo` returned 16 (AMD Ryzen 3800X). Do I need to enable IOMMU as well?
Author
Owner

@sickcodes commented on GitHub (Jun 4, 2020):

Mines on, what window manager or display manager are you using?

@sickcodes commented on GitHub (Jun 4, 2020): Mines on, what window manager or display manager are you using?
Author
Owner

@jhasse commented on GitHub (Jun 4, 2020):

GNOME Shell 3.36.2, X11 with Nvidia proprietary driver

@jhasse commented on GitHub (Jun 4, 2020): GNOME Shell 3.36.2, X11 with Nvidia proprietary driver
Author
Owner

@sickcodes commented on GitHub (Jun 4, 2020):

Which display number are you using? This uses Display=:0.0 you can change it in the docker file

echo $DISPLAY

@sickcodes commented on GitHub (Jun 4, 2020): Which display number are you using? This uses Display=:0.0 you can change it in the docker file `echo $DISPLAY`
Author
Owner

@wooque commented on GitHub (Jun 4, 2020):

Same problem.

~ (master) echo $DISPLAY 
:0
@wooque commented on GitHub (Jun 4, 2020): Same problem. ``` ~ (master) echo $DISPLAY :0 ```
Author
Owner

@sickcodes commented on GitHub (Jun 4, 2020):

I get the error if I run it without --privileged
and also without the tmp folders

Try running it with this:
docker run --privileged --net host --cap-add=ALL -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev:/dev -v /lib/modules:/lib/modules sickcodes/docker-osx

@sickcodes commented on GitHub (Jun 4, 2020): I get the error if I run it without --privileged and also without the tmp folders Try running it with this: `docker run --privileged --net host --cap-add=ALL -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev:/dev -v /lib/modules:/lib/modules sickcodes/docker-osx`
Author
Owner

@icanc0 commented on GitHub (Jun 4, 2020):

same issue here, but mine doesnt even support avx, could that be a problem

@icanc0 commented on GitHub (Jun 4, 2020): same issue here, but mine doesnt even support avx, could that be a problem
Author
Owner

@sickcodes commented on GitHub (Jun 4, 2020):

Show the output of these:

pgrep -a X
echo $DISPLAY
echo $TERM

My output is:

1858 /usr/lib/Xorg -nolisten tcp :0 vt1
:0.0

Are you guys running Wayland window manager?

@sickcodes commented on GitHub (Jun 4, 2020): Show the output of these: ``` pgrep -a X echo $DISPLAY echo $TERM ``` My output is: ``` 1858 /usr/lib/Xorg -nolisten tcp :0 vt1 :0.0 ``` Are you guys running Wayland window manager?
Author
Owner

@arsham commented on GitHub (Jun 4, 2020):

Try this then run the container:

xhost +
@arsham commented on GitHub (Jun 4, 2020): Try this then run the container: ``` xhost + ```
Author
Owner

@wooque commented on GitHub (Jun 4, 2020):

My output is

884 /usr/lib/Xorg :0 -keeptty vt1 -keeptty -auth /tmp/serverauth.TZlK7LVmUW
:0
rxvt-unicode-256color

Running i3 window manager on standard X server

@wooque commented on GitHub (Jun 4, 2020): My output is ``` 884 /usr/lib/Xorg :0 -keeptty vt1 -keeptty -auth /tmp/serverauth.TZlK7LVmUW :0 rxvt-unicode-256color ``` Running i3 window manager on standard X server
Author
Owner

@sickcodes commented on GitHub (Jun 5, 2020):

Try this

echo $DISPLAY

# ARCH
sudo pacman -S xorg-xhost

# UBUNTU DEBIAN
sudo apt install x11-xserver-utils

# CENTOS RHEL FEDORA
sudo yum install xorg-x11-server-utils

# then run
xhost +

docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh
@sickcodes commented on GitHub (Jun 5, 2020): Try this ``` echo $DISPLAY # ARCH sudo pacman -S xorg-xhost # UBUNTU DEBIAN sudo apt install x11-xserver-utils # CENTOS RHEL FEDORA sudo yum install xorg-x11-server-utils # then run xhost + docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh ```
Author
Owner

@sickcodes commented on GitHub (Jun 6, 2020):

@jhasse let me know if that solved it so I can close this :)

@sickcodes commented on GitHub (Jun 6, 2020): @jhasse let me know if that solved it so I can close this :)
Author
Owner

@jhasse commented on GitHub (Jun 6, 2020):

works now, thanks!

@jhasse commented on GitHub (Jun 6, 2020): works now, thanks!
Author
Owner

@cdub50 commented on GitHub (Dec 15, 2021):

I am seeing this same error on KDE FC 35 but I am unable to resolve output of pgrep, display and term

1265 /usr/libexec/Xorg -nolisten tcp -auth /var/run/sddm/{61b95591-784c-4a0c-9aeb-cbe196581660} -background none -noreset -displayfd 16 -seat seat0 vt2
1725 /usr/bin/Xwayland :1 -auth /run/user/1000/xauth_NMxHkg -listen 52 -listen 53 -displayfd 44 -rootless -wm 47
:1

@cdub50 commented on GitHub (Dec 15, 2021): I am seeing this same error on KDE FC 35 but I am unable to resolve output of pgrep, display and term 1265 /usr/libexec/Xorg -nolisten tcp -auth /var/run/sddm/{61b95591-784c-4a0c-9aeb-cbe196581660} -background none -noreset -displayfd 16 -seat seat0 vt2 1725 /usr/bin/Xwayland :1 -auth /run/user/1000/xauth_NMxHkg -listen 52 -listen 53 -displayfd 44 -rootless -wm 47 :1
Author
Owner

@sickcodes commented on GitHub (Dec 17, 2021):

rootless

Could be related to this, do you have enough permissions?

@sickcodes commented on GitHub (Dec 17, 2021): > rootless Could be related to this, do you have enough permissions?
Author
Owner

@gusbemacbe commented on GitHub (Apr 12, 2024):

I used MX Linux. I ran the command docker start -ai ventura, and I received the following errors:

QEMU 7.1.0 monitor - type 'help' for more information
(qemu) ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `dac'
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `adc'
gtk initialization failed

When I ran the command xhost +, it said:

access control disabled, clients can connect from any host

When I ran the command docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh, I received the error:

qemu-system-x86_64: warning: dbind: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/1000/at-spi/bus_0: No such file or directory
Could not access KVM kernel module: Permission denied
qemu-system-x86_64: failed to initialize kvm: Permission denied
@gusbemacbe commented on GitHub (Apr 12, 2024): I used MX Linux. I ran the command `docker start -ai ventura`, and I received the following errors: ``` QEMU 7.1.0 monitor - type 'help' for more information (qemu) ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize DAC alsa: Failed to open `default': alsa: Reason: No such file or directory ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize DAC alsa: Failed to open `default': alsa: Reason: No such file or directory audio: Failed to create voice `dac' ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize ADC alsa: Failed to open `default': alsa: Reason: No such file or directory ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize ADC alsa: Failed to open `default': alsa: Reason: No such file or directory audio: Failed to create voice `adc' gtk initialization failed ``` When I ran the command `xhost +`, it said: ``` access control disabled, clients can connect from any host ``` When I ran the command `docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh`, I received the error: ``` qemu-system-x86_64: warning: dbind: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/1000/at-spi/bus_0: No such file or directory Could not access KVM kernel module: Permission denied qemu-system-x86_64: failed to initialize kvm: Permission denied ```
Author
Owner

@lonngxiang commented on GitHub (Sep 19, 2024):

how about windows?

@lonngxiang commented on GitHub (Sep 19, 2024): how about windows?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#3