xpra icon
Bug tracker and wiki

Opened 4 weeks ago

Closed 2 weeks ago

Last modified 2 weeks ago

#1455 closed task (fixed)

xpra does not check for MIT-SHM - server logfile with MBs of error messages

Reported by: mviereck Owned by: mviereck
Priority: minor Milestone: 2.0
Component: server Version: 1.0.x
Keywords: MIT-SHM Cc: bachbaum24@…

Description

If xpra server uses a display without extension MIT-SHM, the server log file gets filled with repeating error messages and can increase to a size of some MB within minutes.

Example:
2017-03-01 16:12:16,470 XShmWrapper.setup() XShmAttach(..) failed!
Xlib: extension "MIT-SHM" missing on display ":500".
Xlib: extension "MIT-SHM" missing on display ":500".

This can lead to an overfilled hard disk after some hours.
xpra should check whether MIT-SHM is available and avoid to use it if it is missing.

Change History (4)

comment:1 Changed 4 weeks ago by Antoine Martin

Milestone: 2.1
Owner: changed from Antoine Martin to mviereck

Done in r15198. Please close if this works for you.
(this may be applied to the v1.0.x LTS branch at some point)

Tested by adding -extension MIT-SHM to my xvfb command line.

FYI: you can also use this environment switch with older versions:

XPRA_XSHM=0 xpra start ..

Note: beware, the non-xshm codepath is not very well tested.

comment:2 Changed 2 weeks ago by mviereck

Resolution: fixed
Status: newclosed

Much thanks for your hint with environment variable XPRA_XSHM! That does help me a lot, as I need to be compatible with older xpra versions. Now I set XPRA_XSHM whenever I connect to an X server without MIT-SHM and leave it away if X supports it.
I still did not test your bug fix, sorry, as I was a bit confused how to get and compile r15198.
So far, I did not encounter any problems with xpra and MIT-SHM disabled. I also did not have any problems before except the growing logfile.

comment:3 Changed 2 weeks ago by Antoine Martin

That does help me a lot, as I need to be compatible with older xpra versions.


FYI: the currently supported version (1.0 LTS) is compatible with older xpra versions going as far back as the previous LTS version (0.14.x), see wiki/Versions for details. (using anything else means version with lots of known bugs, including security issues..)

comment:4 Changed 2 weeks ago by Antoine Martin

Milestone: 2.12.0
Note: See TracTickets for help on using tickets.