mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-04-27 08:35:48 +03:00
[GH-ISSUE #377] gtk initialization failed #272
Labels
No labels
bug
documentation
enhancement
following upstream developments
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Docker-OSX#272
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ThatGuy123-cmd on GitHub (Nov 5, 2021).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/377
So have tried previously suggested solutions (sudo pacman -S xorg-host && xhost +) but nethier have worked, all dependencies are downloaded and just having a really hard time with this
LOG:
╰─λ sudo docker run -it
--device /dev/kvm
-p 50922:10022
-v /tmp/.X11-unix:/tmp/.X11-unix
-e "DISPLAY={DISPLAY:-:0.0}"
sickcodes/docker-osx:big-sur
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
nohup: appending output to 'nohup.out'
++ id -u
++ id -g
++ id -u
++ id -g
++ id -u
++ id -g
QEMU 6.1.0 monitor - type 'help' for more information
(qemu) ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5111:(_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:5111:(_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:5111:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5599:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2660:(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:5111:(_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:5111:(_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:5111:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5599:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize DAC alsa: Failed to opendefault':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:5111:(_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:5111:(_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:5111:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5599:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize ADC alsa: Failed to opendefault':alsa: Reason: No such file or directory
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5111:(_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:5111:(_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:5111:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5599:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2660:(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 voiceadc'gtk initialization failed
@ThatGuy123-cmd commented on GitHub (Nov 5, 2021):
So ended up fixing this by changing the Display ENV var from "DISPLAY={DISPLAY:-:0.0}" to "DISPLAY=:0" after reading this article from the ubuntu forums (https://askubuntu.com/questions/1192102/xhost-produce-access-control-disabled-message-but-do-not-works)
@sickcodes Really looked around and couldn't find anything on this
Hope someone who's had the same problem as me across this and finds it useful, but for now, problem solved :)
@sickcodes commented on GitHub (Nov 17, 2021):
Regarding the DISPLAY variable, I have it at the very, very bottom of the README.md sorry.
https://github.com/sickcodes/Docker-OSX#what-is-display-00
And then the GTK error is here.
https://github.com/sickcodes/Docker-OSX#libgtk-errors-connection-refused
I should add the DISPLAY instructions inside the gtk confused section!
@sickcodes commented on GitHub (Nov 17, 2021):
What host operating system were you using? I would like to fix the README :)
@ThatGuy123-cmd commented on GitHub (Nov 17, 2021):
I was using Garuda KDE Dr460nized, Arch Linux, Kernel Version 5.14.15.
Haha, glad this may help someone in the future :)
@sickcodes commented on GitHub (Nov 18, 2021):
Thanks, feel free to add a Garuda KDE note in the README 😇