-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A fatal bug [running two Xorg on same tty] #404
Comments
The xfce DE run in container is on nothing else but a |
The crash happens if Xorg is started on a tty where already an Xorg is running. I get a similar crash if I force x11docker to use the same tty twice with option Maybe the check fails on your system.
Please also show me the output of Edit:
The package name is likely |
Side note: Instead of your current script setup I recommend tu use a fifo.
|
Sorry for replying late. Everything is just fine if I use Before starting |
This happens only in the quite special setup where you send back commands to the parent tty and run another Xorg there. I don't think x11docker should catch that. Just in case, you can specify another tty with option
I recommend to use |
I've added sort of a fix: Normally, if x11docker is started on a tty, it assumes that it should use the same tty for Xorg and not switch to another one. But in your case, starting x11docker twice on same tty, this leads to a crash that can now be avoided with |
OK I think that. Sorry for late for I rested during Newyear. Thanks for your advise. |
Environment: openSUSE leap 15.3 with xfce and lightDM on Thinkpad P15v gen1
No
Xephyr
because it is absent in bothzypper
andopi
so I do not bother to install.Files building:
1,
~/test.sh
: is to communicate between docker and host:#!/bin/bash
while [ 1 -eq 1 ]
do
tem=$(sed -n '1p' $1)
sed -i '1d' $1
bash -c "$tem"
sleep 0.2
done
2, touch ~/temcom.txt
Operation:
1,
switch to a black tty, ie tty1, and log in
2,
input
~/test.sh ~/temcom.txt &
3,
input
sudo -E x11docker --share=home x11docker/xfce
4,
open a
xfce4-terminal
in xfce and inputecho "sudo -E x11docker --hostdisplay --exe xterm" >~/temcom.txt
Result:
1,
Crash and back to black tty. However, both
Ctrl+C
andEnter
do not work2,
Three branches:
Branch 1: Immediately switch to another tty and then do anything as wanted
Branch 2: Wait for several second and then computer will get stuck.
Ctrl+Alt+Fx
will not work to switch to any other tty. I have to force poweroff by physics.Branch 3: Immediately switch to another tty, wait for several seconds, and switch back to tty1, and then just like Branch 2
It seems that after crash the SHELL of x11docker just stuck itself. It is OK to crash since I do some abnormal thing but it is fatal to crash the whole system. Please check.
Thanks.
The text was updated successfully, but these errors were encountered: