[GH-ISSUE #748] Closing firejail-xpra window causes X Server crash. #508

Closed
opened 2026-05-05 06:00:40 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @elimohl on GitHub (Aug 28, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/748

Whenever I close a window that was made with firejail --x11=xpra I see only a black screen with a cursor.
Firejail without options or with --x11=xephyr works fine. Xpra without firejail works fine too.

Xpra log:

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
Current Operating System: Linux miles 4.6.0-1-amd64 #1 SMP Debian 4.6.4-1 (2016-07-18) x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-4.6.0-1-amd64 root=UUID=a6f59064-148f-4224-9343-c6230325ba51 ro initrd=/install/gtk/initrd.gz quiet
Build Date: 20 July 2016  05:14:41AM
xorg-server 2:1.18.4-1 (http://www.debian.org/support) 
Current version of pixman: 0.33.6
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/home/elsie/.xpra/Xorg.:775.log", Time: Sun Aug 28 23:41:13 2016
(++) Using config file: "/etc/xpra/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
2016-08-28 23:41:14,028 created unix domain socket: /home/elsie/.xpra/miles-775
2016-08-28 23:41:14,873 Warning: webcam forwarding is disabled
2016-08-28 23:41:14,873  the virtual video directory '/sys/devices/virtual/video4linux' was not found
2016-08-28 23:41:14,873  make sure that the 'v4l2loopback' kernel module is installed and loaded
2016-08-28 23:41:14,873 found 0 virtual video devices
2016-08-28 23:41:14,881 pulseaudio server started with pid 10009
2016-08-28 23:41:15,159 GStreamer version 1.8 for Python 2.7
2016-08-28 23:41:15,202 Warning: cannot forward notifications, the interface is already claimed
2016-08-28 23:41:15,202  if you do not have a dedicated dbus session for this xpra instance,
2016-08-28 23:41:15,202  use the 'notifications=no' option
2016-08-28 23:41:15,216 started command 'firejail xterm ' with pid 10026
2016-08-28 23:41:15,217 xpra X11 version 0.17.4-r12942
2016-08-28 23:41:15,217  running with pid 9967 on Linux debian stretch/sid
2016-08-28 23:41:15,217  on display :775
Reading profile /etc/firejail/default.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-passwdmgr.inc

** Note: you can use --noprofile to disable default.profile **

Parent pid 10031, child pid 10037
2016-08-28 23:41:15,373 xpra is ready.
2016-08-28 23:41:22,883 New unix-domain connection received on /home/elsie/.xpra/miles-775
2016-08-28 23:41:22,883 New unix-domain connection received on /home/elsie/.xpra/miles-775
2016-08-28 23:41:22,885 Connection lost
2016-08-28 23:41:23,496 Handshake complete; enabling connection
2016-08-28 23:41:23,505 Python/Gtk2 Linux debian stretch/sid client version 0.17.4-r12942
2016-08-28 23:41:23,505  connected from 'miles' as 'elsie'
2016-08-28 23:41:23,506  mmap is enabled using 256MB area in /tmp/xpra.MjC0Iv.mmap
2016-08-28 23:41:23,507  client root window size is 1366x768 with 1 display:
2016-08-28 23:41:23,508   :0.0 (361x203 mm - DPI: 96x96)
2016-08-28 23:41:23,508     monitor 1 (309x174 mm - DPI: 112x112)
2016-08-28 23:41:23,600 server virtual display now set to 1366x768
2016-08-28 23:41:23,601 setting key repeat rate from client: 660ms delay / 40ms interval
2016-08-28 23:41:23,603 setting keymap: rules=evdev, model=pc105, layout=us,ru
2016-08-28 23:41:23,667 Attached to :775 (press Control-C to detach)
2016-08-28 23:41:23,667 failed to set window metadata to '{'size-constraints': {'gravity': 1, 'base-size': (4, 4), 'minimum-size': (10, 17), 'increment': (6, 13), 'size': (484, 316)}, 'modal': False, 'client-machine': 'miles', 'pid': 2, 'iconic': False, 'sticky': False, 'shape': {}, 'skip-taskbar': False, 'strut': {}, 'bypass-compositor': 0, 'fullscreen': False, 'xid': '0x60000f', 'title': 'xterm', 'icon-title': 'xterm', 'window-type': ('NORMAL',), 'below': False, 'command': '', 'above': False, 'maximized': False, 'class-instance': ('xterm', 'XTerm'), 'shaded': False, 'skip-pager': False}'
2016-08-28 23:41:23,667   File "/usr/lib/python2.7/dist-packages/xpra/client/client_window_base.py", line 166, in update_metadata
2016-08-28 23:41:23,668     self.set_metadata(metadata)
2016-08-28 23:41:23,668   File "/usr/lib/python2.7/dist-packages/xpra/client/client_window_base.py", line 204, in set_metadata
2016-08-28 23:41:23,668     self.set_title(utf8_title)
2016-08-28 23:41:23,671 DPI set to 16 x 18 (wanted 96 x 96)
2016-08-28 23:41:23,671  you may experience scaling problems, such as huge or small fonts, etc
2016-08-28 23:41:23,671  to fix this issue, try the dpi switch, or use a patched Xorg dummy driver

** Note: you can use --noprofile to disable default.profile **

Parent pid 10031, child pid 10037

Parent is shutting down, bye...
2016-08-28 23:41:27,896 child 'firejail xterm ' with pid 10026 has terminated
2016-08-28 23:41:27,896 all children have exited and --exit-with-children was specified, exiting
2016-08-28 23:41:27,896 Disconnecting client /home/elsie/.xpra/miles-775:
2016-08-28 23:41:27,896  server shutdown
2016-08-28 23:41:27,898 xpra client disconnected.
2016-08-28 23:41:27,898 stopping pulseaudio with pid 10009
2016-08-28 23:41:28,411 xpra is terminating.
2016-08-28 23:41:28,412 removing socket /home/elsie/.xpra/miles-775
2016-08-28 23:41:28,413 killing xvfb with pid 9969
(II) Server terminated successfully (0). Closing log file.
Originally created by @elimohl on GitHub (Aug 28, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/748 Whenever I close a window that was made with firejail --x11=xpra I see only a black screen with a cursor. Firejail without options or with `--x11=xephyr` works fine. Xpra without firejail works fine too. Xpra log: ``` X.Org X Server 1.18.4 Release Date: 2016-07-19 X Protocol Version 11, Revision 0 Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian Current Operating System: Linux miles 4.6.0-1-amd64 #1 SMP Debian 4.6.4-1 (2016-07-18) x86_64 Kernel command line: BOOT_IMAGE=/vmlinuz-4.6.0-1-amd64 root=UUID=a6f59064-148f-4224-9343-c6230325ba51 ro initrd=/install/gtk/initrd.gz quiet Build Date: 20 July 2016 05:14:41AM xorg-server 2:1.18.4-1 (http://www.debian.org/support) Current version of pixman: 0.33.6 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (++) Log file: "/home/elsie/.xpra/Xorg.:775.log", Time: Sun Aug 28 23:41:13 2016 (++) Using config file: "/etc/xpra/xorg.conf" (==) Using system config directory "/usr/share/X11/xorg.conf.d" 2016-08-28 23:41:14,028 created unix domain socket: /home/elsie/.xpra/miles-775 2016-08-28 23:41:14,873 Warning: webcam forwarding is disabled 2016-08-28 23:41:14,873 the virtual video directory '/sys/devices/virtual/video4linux' was not found 2016-08-28 23:41:14,873 make sure that the 'v4l2loopback' kernel module is installed and loaded 2016-08-28 23:41:14,873 found 0 virtual video devices 2016-08-28 23:41:14,881 pulseaudio server started with pid 10009 2016-08-28 23:41:15,159 GStreamer version 1.8 for Python 2.7 2016-08-28 23:41:15,202 Warning: cannot forward notifications, the interface is already claimed 2016-08-28 23:41:15,202 if you do not have a dedicated dbus session for this xpra instance, 2016-08-28 23:41:15,202 use the 'notifications=no' option 2016-08-28 23:41:15,216 started command 'firejail xterm ' with pid 10026 2016-08-28 23:41:15,217 xpra X11 version 0.17.4-r12942 2016-08-28 23:41:15,217 running with pid 9967 on Linux debian stretch/sid 2016-08-28 23:41:15,217 on display :775 Reading profile /etc/firejail/default.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-passwdmgr.inc ** Note: you can use --noprofile to disable default.profile ** Parent pid 10031, child pid 10037 2016-08-28 23:41:15,373 xpra is ready. 2016-08-28 23:41:22,883 New unix-domain connection received on /home/elsie/.xpra/miles-775 2016-08-28 23:41:22,883 New unix-domain connection received on /home/elsie/.xpra/miles-775 2016-08-28 23:41:22,885 Connection lost 2016-08-28 23:41:23,496 Handshake complete; enabling connection 2016-08-28 23:41:23,505 Python/Gtk2 Linux debian stretch/sid client version 0.17.4-r12942 2016-08-28 23:41:23,505 connected from 'miles' as 'elsie' 2016-08-28 23:41:23,506 mmap is enabled using 256MB area in /tmp/xpra.MjC0Iv.mmap 2016-08-28 23:41:23,507 client root window size is 1366x768 with 1 display: 2016-08-28 23:41:23,508 :0.0 (361x203 mm - DPI: 96x96) 2016-08-28 23:41:23,508 monitor 1 (309x174 mm - DPI: 112x112) 2016-08-28 23:41:23,600 server virtual display now set to 1366x768 2016-08-28 23:41:23,601 setting key repeat rate from client: 660ms delay / 40ms interval 2016-08-28 23:41:23,603 setting keymap: rules=evdev, model=pc105, layout=us,ru 2016-08-28 23:41:23,667 Attached to :775 (press Control-C to detach) 2016-08-28 23:41:23,667 failed to set window metadata to '{'size-constraints': {'gravity': 1, 'base-size': (4, 4), 'minimum-size': (10, 17), 'increment': (6, 13), 'size': (484, 316)}, 'modal': False, 'client-machine': 'miles', 'pid': 2, 'iconic': False, 'sticky': False, 'shape': {}, 'skip-taskbar': False, 'strut': {}, 'bypass-compositor': 0, 'fullscreen': False, 'xid': '0x60000f', 'title': 'xterm', 'icon-title': 'xterm', 'window-type': ('NORMAL',), 'below': False, 'command': '', 'above': False, 'maximized': False, 'class-instance': ('xterm', 'XTerm'), 'shaded': False, 'skip-pager': False}' 2016-08-28 23:41:23,667 File "/usr/lib/python2.7/dist-packages/xpra/client/client_window_base.py", line 166, in update_metadata 2016-08-28 23:41:23,668 self.set_metadata(metadata) 2016-08-28 23:41:23,668 File "/usr/lib/python2.7/dist-packages/xpra/client/client_window_base.py", line 204, in set_metadata 2016-08-28 23:41:23,668 self.set_title(utf8_title) 2016-08-28 23:41:23,671 DPI set to 16 x 18 (wanted 96 x 96) 2016-08-28 23:41:23,671 you may experience scaling problems, such as huge or small fonts, etc 2016-08-28 23:41:23,671 to fix this issue, try the dpi switch, or use a patched Xorg dummy driver ** Note: you can use --noprofile to disable default.profile ** Parent pid 10031, child pid 10037 Parent is shutting down, bye... 2016-08-28 23:41:27,896 child 'firejail xterm ' with pid 10026 has terminated 2016-08-28 23:41:27,896 all children have exited and --exit-with-children was specified, exiting 2016-08-28 23:41:27,896 Disconnecting client /home/elsie/.xpra/miles-775: 2016-08-28 23:41:27,896 server shutdown 2016-08-28 23:41:27,898 xpra client disconnected. 2016-08-28 23:41:27,898 stopping pulseaudio with pid 10009 2016-08-28 23:41:28,411 xpra is terminating. 2016-08-28 23:41:28,412 removing socket /home/elsie/.xpra/miles-775 2016-08-28 23:41:28,413 killing xvfb with pid 9969 (II) Server terminated successfully (0). Closing log file. ```
gitea-mirror 2026-05-05 06:00:40 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@stryx commented on GitHub (Jan 17, 2017):

Same problem here. Whenever I close a firejailed window with --x11=xpra my whole desktop-session crashes, including windows opened in the host session. I can only change to a text console and restart my lightdm-session (sudo systemctl restart lightdm.service). This is severe since firejail should protect the host and not crash it.

My system a 64 bit Xubuntu 16.10 (Yakkety Yak). I've installed firejail 0.9.44.6-1 from the dep-package provided on https://sourceforge.net/projects/firejail/ . I've both tried with xpra from the Ubuntu-repositories (0.17.4+dfsg-2) and with the latest version from xpra.org (1.0.1-r14723-1). The behaviour is the same.

(By the way, --x11=xorg doesn't work for my Firefox either. When trying to enter @ with the keyboard I end up with ض . I'm on a German keyboard, so @ is entered by pressing AltGr+Q. I have Arabic as a secondary keyboard layout and there the ض indeed is on the Q-key. Still I don't know why the keyboard layouts are getting messed up. Xephyr looks much to complicated for what I need.)

<!-- gh-comment-id:273167670 --> @stryx commented on GitHub (Jan 17, 2017): Same problem here. Whenever I close a firejailed window with `--x11=xpra` my whole desktop-session crashes, including windows opened in the host session. I can only change to a text console and restart my lightdm-session (`sudo systemctl restart lightdm.service`). This is severe since firejail should protect the host and not crash it. My system a 64 bit Xubuntu 16.10 (Yakkety Yak). I've installed firejail 0.9.44.6-1 from the dep-package provided on https://sourceforge.net/projects/firejail/ . I've both tried with xpra from the Ubuntu-repositories (0.17.4+dfsg-2) and with the latest version from xpra.org (1.0.1-r14723-1). The behaviour is the same. (By the way, `--x11=xorg` doesn't work for my Firefox either. When trying to enter `@` with the keyboard I end up with ض . I'm on a German keyboard, so `@` is entered by pressing AltGr+Q. I have Arabic as a secondary keyboard layout and there the ض indeed is on the Q-key. Still I don't know why the keyboard layouts are getting messed up. Xephyr looks much to complicated for what I need.)
Author
Owner

@nullchinchilla commented on GitHub (Feb 20, 2017):

I experience the same issue too.

<!-- gh-comment-id:280983621 --> @nullchinchilla commented on GitHub (Feb 20, 2017): I experience the same issue too.
Author
Owner

@netblue30 commented on GitHub (Mar 25, 2017):

Moved to https://github.com/netblue30/firejail/issues/1157

<!-- gh-comment-id:289219571 --> @netblue30 commented on GitHub (Mar 25, 2017): Moved to https://github.com/netblue30/firejail/issues/1157
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#508
No description provided.