Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] SDL_CreateWindow produces BadMatch X_SetInputFocus
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Leon80
n00b
n00b


Joined: 19 May 2017
Posts: 2

PostPosted: Sat May 20, 2017 12:07 am    Post subject: [Solved] SDL_CreateWindow produces BadMatch X_SetInputFocus Reply with quote

Dear all,

on my htpc (primarily running mythtv) I also have several game emulators installed. One of them is sdlmame, which worked well for quite a while. However, it has been a few months since I last used it. In the meanwhile I upgraded the hardware from an Ivy Bridge processor to a new Skylake processor. (Always using the integrated GPU)

Prozessor: Intel(R) Core(TM) i3-6100T CPU @ 3.20GHz
Board: MSI H170M PRO-VDH (MS-7982)
VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)

Now when I try to start sdlmame, the following error message shows up:

Code:
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  42 (X_SetInputFocus)
  Serial number of failed request:  169
  Current serial number in output stream:  170


After looking into the source code of sdlmame I can say that this error message is the result of functioncall SDL_CreateWindow.

OK, to simplify things I decided to test this SDL function separately as described in the offical libsdl wiki. [1]
But also the shown code example in the wiki produces the exactly same error message on my htpc.

So I upgraded xorg-server, mesa, libdrm and libsdl2 to the latest versions available in testing branch:

Code:
x11-libs/libdrm-2.4.80::gentoo
USE="-libkms -static-libs -valgrind"
ABI_X86="32 (64) (-x32)"
VIDEO_CARDS="intel -amdgpu (-exynos) (-freedreno) -nouveau (-omap) -radeon (-tegra) (-vc4) (-vivante) -vmware"

media-libs/mesa-17.1.0::gentoo
USE="bindist classic dri3 egl gallium gbm llvm nptl vaapi -d3d9 -debug -gles1 -gles2 -opencl -openmax -osmesa -pax_kernel -pic (-selinux) -unwind -valgrind -vdpau -vulkan -wayland -xa -xvmc"
ABI_X86="32 (64) (-x32)"
VIDEO_CARDS="i965 intel (-freedreno) -i915 -imx -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) (-vivante) -vmware"

x11-base/xorg-drivers-1.19::gentoo
INPUT_DEVICES="evdev keyboard mouse -acecad -aiptek -elographics -fpit -hyperpen -joystick -libinput -mutouch -penmount -synaptics -tslib -vmmouse -void -wacom"
VIDEO_CARDS="i965 intel -amdgpu -apm -ark -ast -chips -cirrus -dummy -epson -fbdev (-fglrx) (-freedreno) (-geode) -glint -i128 (-i740) -i915 -mach64 -mga -neomagic (-newport) -nouveau -nv -nvidia (-omap) -qxl -r128 -radeon -radeonsi -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx (-tegra) -tga -trident -tseng -vesa -via -virtualbox -vmware (-voodoo)"

x11-base/xorg-server-1.19.3:0/1.19.3::gentoo
USE="glamor suid udev xorg -debug -dmx -doc -ipv6 -kdrive -libressl -minimal (-selinux) -static-libs -systemd -tslib -unwind -wayland -xephyr -xnest -xvfb"

media-libs/libsdl2-2.0.5::gentoo
USE="X alsa dbus haptic joystick opengl sound threads udev video (-altivec) (-custom-cflags) (-fusionsound) -gles -nas -oss -pulseaudio -static-libs -tslib -wayland -xinerama -xscreensaver"
ABI_X86="(64) -32 (-x32)"
CPU_FLAGS_X86="mmx sse sse2 -3dnow"


But unfortunately this didn't solve the issue.

I also tested switching the video driver used by xorg-server from modesetting (provided by x11-base/xorg-server itself) to intel (provided x11-drivers/xf86-video-intel). But as this also didn't solve the problem, I switched back to modesetting.

I'm using evilwm as window manager.

I'm running out of ideas. What else could I try to get rid of this problem or at least get closer to the root cause?
Every suggestion is appreciated!

Thanks a lot!

Kind regards
Leon

[1] https://wiki.libsdl.org/SDL_CreateWindow


Last edited by Leon80 on Sat May 20, 2017 12:57 am; edited 1 time in total
Back to top
View user's profile Send private message
Leon80
n00b
n00b


Joined: 19 May 2017
Posts: 2

PostPosted: Sat May 20, 2017 12:56 am    Post subject: Reply with quote

Just also upgraded x11-wm/evilwm from version 1.0.1 to the latest available version 1.1.1 in testing branch and that solved the problem.
I'm pretty sure I already tried this in the beginning but revert back before upgrading xorg-server, mesa, libdrm and libsdl2.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum