On Sun Nov 13, 2022 at 08:37:55PM +0100, Rafael Sadowski wrote:
> I don't know if this has worked in the past, but when debugging some Qt
> applications I saw the following debug messages:
> 
> $ gwenview
> qt.qpa.xcb: Has MIT-SHM     : true
> qt.qpa.xcb: Has MIT-SHM FD  : true
> qt.qpa.xcb: xcb_shm_attach() failed
> qt.qpa.xcb: failed to create System V shared memory segment (remote X11 
> connection?), disabling SHM
> qt.qpa.xcb: Using XInput version 2.2
> qt.qpa.screen: Output DP-1 is not connected
> qt.qpa.screen: Output HDMI-1 is not connected
> 
> The code that fails is here. xcb_shm_attach_checked and/or
> xcb_request_check failed with all my Qt applications.
> 
> pobj/qtbase-5.15.6/qtbase-everywhere-src-5.15.6/src/plugins/platforms/xcb/qxcbbackingstore.cpp
> 
> bool QXcbBackingStoreImage::createSystemVShmSegment(xcb_connection_t *c, 
> size_t segmentSize,
>                                                     xcb_shm_segment_info_t 
> *shmInfo)
> {
>     const int id = shmget(IPC_PRIVATE, segmentSize, IPC_CREAT | 0x1C0);
                                                                  ^^^^^
This is 0600 by default not 0x1C0. It was a test.

Reply via email to