Don't assume the default QPA platform is XCB

Review Request #124203 - Created June 29, 2015 and submitted

Information
Nerdopolis Turfwalker
kwin
master
Reviewers
kwin

I compiled my QT to have the default platform as Wayland, not XCB, which seems to be why kwin_wayland was crashing without KWIN_COMPOSE=Q

Before I was getting a crash, this snippet of the back trace:
Only when KWIN_COMPOSE was unset.

5 <signal handler called>

No symbol table info available.

6 0xb75fe50a in __GI_strstr (haystack_start=0x1 <error: Cannot access memory at address 0x1>, needle_start=0xb4db8756 "X.Org")

at strstr.c:63
    haystack = 0x1 <error: Cannot access memory at address 0x1>
    needle = 0xb4db8756 "X.Org"
    needle_len = <optimized out>
    haystack_len = <optimized out>
    ok = true

7 0xb4da0094 in KWin::getXServerVersion () at /srcbuild/kwin/libkwineffects/kwinglplatform.cpp:66

    major = -5414223950535816263
    minor = 4294967297
    patch = -5414898745570328168
    dpy = 0xb0d03320

Adding the additional isPlatformX11 prevented kwin_wayland from crashing, and it ran

Files


Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Martin Flöser
Nerdopolis Turfwalker
Nerdopolis Turfwalker
Martin Flöser
Nerdopolis Turfwalker
Nerdopolis Turfwalker
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 924b66c4d5e30c7141890bdb64e30c47761eb5eb by Martin Gräßlin on behalf of Nerdopolis Turfwalker to branch master.
Loading...