Xephyr -parent option fails with a BadMatch error
Submitted by Javier Celaya
Assigned to Xorg Project Team
Description
Created attachment 117808 potential patch for this bug
Tested on Fedora 22 x86_64, with both packaged Xephyr and compiled from git.
Trying to use an existing window with Xephyr (option -parent) fails with a BadMatch X11 error. It looks like there is a problem with the visual selected to create new windows under the existing one. Inheriting the visual seems to fix the problem. A patch is attached.
The output of the error (with debug messages) is:
$ hw/kdrive/ephyr/Xephyr :1 -parent 52428817 -verbosity 100
InitConnectionLimits: MaxClients = 256
(!!) in ephyrinit.c:309:ddxProcessArgument: (!!) set verbosiry to 100
(WW) Failed to open protocol names file /usr/local/lib/xorg/protocol.txt
(!!) in ephyr.c:237:ephyrMapFramebuffer: (!!) screen->width: 640, screen->height: 480 index=0(!!) in ephyr.c:651:ephyrInitScreen: (!!) pScreen->myNum:0
(!!) in ephyrvideo.c:222:ephyrInitVideo: (!!) enter
(!!) in ephyrvideo.c:252:ephyrXVPrivNew: (!!) enter
(!!) in ephyrvideo.c:450:ephyrXVPrivQueryHostAdaptors: (!!) enter
(!!) in ephyrvideo.c:469:ephyrXVPrivQueryHostAdaptors: (!!) host has 2 adaptors
(!!) in ephyrvideo.c:563:ephyrXVPrivQueryHostAdaptors: (!!) leave
(!!) in ephyrvideo.c:575:ephyrXVPrivSetAdaptorsHooks: (!!) enter
(!!) in ephyrvideo.c:608:ephyrXVPrivSetAdaptorsHooks: (!!) leave
(!!) in ephyrvideo.c:269:ephyrXVPrivNew: (!!) leave
(!!) in ephyrvideo.c:619:ephyrXVPrivRegisterAdaptors: (!!) enter
(!!) in ephyrvideo.c:628:ephyrXVPrivRegisterAdaptors: (!!) there are 2 registered adaptors
(!!) in ephyrvideo.c:633:ephyrXVPrivRegisterAdaptors: (!!) leave
(!!) in ephyr.c:668:ephyrInitScreen: (!!) initialized xvideo okay
(!!) in ephyr.c:674:ephyrInitScreen: (!!) host x does not support DRI. Disabling DRI forwarding
Sync Extension 3.1
(II) AIGLX: Loaded and initialized swrast
(II) GLX: Initialized DRISWRAST GL provider for screen 0
(!!) in ephyr.c:718:ephyrCreateResources: (!!) mark pScreen=0xddc950 mynum=0 shadow=0[dix] Could not init font path element /usr/share/X11/fonts/TTF/, removing from list!
[dix] Could not init font path element /usr/share/X11/fonts/OTF/, removing from list!
Popen: `"/usr/bin/xkbcomp" -w 1 "-R/usr/share/X11/xkb" -xkm "-" -em1 "The XKEYBOARD keymap compiler (xkbcomp) reports:" -emp "> " -eml "Errors from xkbcomp are not fatal to the X server" "/tmp/server-1.xkm"', fp = 0xeabc50
Pclose: fp = 0xeabc50
Loaded XKB keymap /tmp/server-1.xkm, defined=0x7f
(II) XKB: Reusing cached keymap
added keyboard (null) with dix id 6
(dix) initialising device 6
initialising keyboard (null)
(II) XKB: Reusing cached keymap
(dix) initialising device 7
initialising pointer Generic Pointer ...
(dix) enabling device 6
(dix) enabling device 7
client(0): Reserved pid(18064).
client(0): Reserved cmdname(hw/kdrive/ephyr/Xephyr) and cmdargs(:1 -parent 52428817 -verbosity 100).
(EE)
Fatal server error:
(EE) X11 error
Error code: 8
Sequence number: 5
Major code: 1 Minor code: 0
Error value: 52428817
(EE)
Attachment 117808, "potential patch for this bug":
0001-Fix-Xephyr-visual-with-parent-option.patch
Version: git