xpra icon
Bug tracker and wiki

Opened 5 months ago

Closed 5 months ago

Last modified 5 months ago

#1858 closed defect (fixed)

issue without MIT-SHM

Reported by: mviereck Owned by: mviereck
Priority: major Milestone: 2.4
Component: android Version: 2.3.x
Keywords: Cc:

Description

System: debian 9, winswitch repository.

I am facing an issue I currently can not encircle well.
Maybe you have an idea nonetheless.

I am using xpra to locally display X applications in docker containers.
I am starting Xvfb or Xdummy on myself with disabled extension MIT-SHM. Afterwards, I run xpra with --use-display.

I have no issue up to xpra v2.2.5-r18663.
Since xpra v2.2.6-r18969 I get this error message in xpra server log immediatly after the client has connected to server:

2018-05-29 13:46:31,307 get_image(0, 0, 300, 300) get_image local variable 'shm_image' referenced before assignment
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/xpra/x11/gtk2/window_damage.py", line 176, in get_image
    if shm_image:
UnboundLocalError: local variable 'shm_image' referenced before assignment

The message appears if applications do OpenGL requests. With glxgears it repeats a few hundred times within a few seconds and never stops.
Changing xpra options seems to have no effect, especially I tried --mmap=no and disabling OpenGL in xpra client tray icon.
Using either Xvfb or Xdummy does not make a difference.

The error disappears if I allow extension MIT-SHM, but then I have to share host IPC namespace with container. I want to avoid that as that degrades container isolation.

I did not succeed to set up a short example to reproduce, sorry.
If you want to try out with x11docker itself, please install x11docker release 4.3.0 from github and run:

x11docker --xpra --verbose --no-auth x11docker/lxde glxgears

Change History (6)

comment:1 Changed 5 months ago by Antoine Martin

Milestone: 2.4
Owner: changed from Antoine Martin to mviereck

Does r19518 fix things?

comment:2 Changed 5 months ago by mviereck

Could you please push a build in winswitch beta repository for debian stretch?
I am getting xpra v2.4-r19479 currently.
Looking at your code change it will most probably fix it.

comment:3 Changed 5 months ago by Antoine Martin

Could you please push a build in winswitch beta repository for debian stretch?

Done.

comment:4 Changed 5 months ago by mviereck

The bug is fixed, thank you!

comment:5 Changed 5 months ago by mviereck

Resolution: fixed
Status: newclosed

comment:6 Changed 5 months ago by Antoine Martin

This will be included in 2.3.1: r19519

Note: See TracTickets for help on using tickets.