Summary: | kwin with compositing randomly crashes when focusing windows | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Ionut Ciocirlan <ionut.ciocirlan> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | andresbajotierra, bugs, gpothier |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Defers notifications for QDesktopWidget fallback |
Description
Ionut Ciocirlan
2009-01-19 18:33:56 UTC
Oh, and this is kwin svn 911645. It wasn't happening before with 907177. This may be related to bug 177006 With a single display everything is fine, so odds are in my case it's being triggered by something in commit 910287, which fixed bug #173017 -- http://bugs.kde.org/show_bug.cgi?id=173017#c39 I was getting the crashes with TwinView, when the desktop is in a messed up state, using both displays but unaware of xinerama hints -- see here: http://bugs.kde.org/show_bug.cgi?id=164242#c8 I'll check tomorrow if this is also happening with a "proper" twinview. It's not happening when KDE is started with both displays. What's obviously wrong when getting the crash (besides the lack of xinerama hints) is there's no root window on the second display. Hi, the stack trace you provided shows a lot of <value optimized out>, can you change your compile options so that the actual values are shown? I don't know that much about twinview -- is it compatible with xrandr? if not, then probably Kephal falls back to QDesktopWidget's notion of multi-screen, which has a few issues. I'll try rebuilding with -O0. Twinview is compatible with xrandr 1.1 only, but it's a big hack: it uses the refresh rate as an id for the combinations of displays / resolutions / real refresh rates (it calls these combinations "MetaModes"). For example, if I have 2 displays: 1680x1050 and 1280x1024@, the basic combinations would be presented to xrandr as a _single_ display with: 1680x1050 50.0 1280x1024 51.0 2960x1050 52.0 .. and so on if I'd need more combinations of resolutions. It takes care of the rest with xinerama hints. Ouch! That's an interesting hack ;-) Anyway I think Kephal needs xrandr 1.2. I'll try a fix to Kephal's QDesktopWidget fallback mode. I'll defer the notifications, as at the moment QDesktopWidget sends notifications it still reports the previous configuration, so this might confuse kwin. It's strange however that it does not happen with compositing disabled. Created attachment 30515 [details]
Defers notifications for QDesktopWidget fallback
Can you please test with this patch? You need to restart kded4 (and of course kwin) for it to take effect. If this solves the problem, I'll probably modify it a bit (to avoid code duplication). Note that I didn't test it myself as I don't have TwinView.
please still try the patch *** This bug has been marked as a duplicate of bug 177006 *** |