Summary: | "Window Pack Left (or some other direction)" crashes the current application | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Maxime Gamboni <tendays-kde> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | cfeck |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Maxime Gamboni
2010-08-11 13:35:39 UTC
This may be a duplicate of https://bugs.kde.org/show_bug.cgi?id=241049 although that bug reports huge windows and this one has a crash. Shall I close this as a duplicate anyway? Bug 241049 comment #3 states that something starts eating lots of RAM. This crash could be caused by video drivers failing to allocate memory to convert images to pixmaps and Qt fails to handle that case. See bug 230490. It is nice to have a reproducable test case for the bug. Are you able to compile Qt from source? If yes, I will prepare a patch so that you can test. Yes I should be able to. I have these (ubuntu) packages that seem to provide the core of Qt, if you can guess/tell me which one your patch will apply to, I'll grab the corresponding sources. (Although, if I understand correctly, this will fix the crash itself, but still won't make the "pack" feature work, correct? Anyway, that *is* a step to the right direction) ii libqt3-mt 3:3.3.8-b-6ubuntu2 Qt GUI Library (Threaded runtime version), V rc libqt4-assistant 4:4.6.2-0ubuntu5 Qt 4 assistant module ii libqt4-core 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 transitional package for Qt 4 core non-GUI r ii libqt4-dbg 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 library debugging symbols ii libqt4-dbus 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 D-Bus module ii libqt4-declarative 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 Declarative module ii libqt4-designer 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 designer module ii libqt4-dev 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 development files ii libqt4-help 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 help module ii libqt4-multimedia 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 Multimedia module ii libqt4-network 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 network module ii libqt4-opengl 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 OpenGL module ii libqt4-opengl-dev 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 OpenGL library development files ii libqt4-qt3support 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 3 compatibility library for Qt 4 ii libqt4-script 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 script module ii libqt4-scripttools 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 script tools module ii libqt4-sql 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 SQL module ii libqt4-sql-mysql 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 MySQL database driver ii libqt4-sql-sqlite 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 SQLite 3 database driver ii libqt4-svg 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 SVG module ii libqt4-test 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 test module ii libqt4-webkit 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 transitional package for Qt 4 WebKit module ii libqt4-xml 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 XML module ii libqt4-xmlpatterns 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 XML patterns module ii libqtcore4 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 core module ii libqtgui4 4:4.7.0~beta2-0ubuntu3~lucid1~ppa4 Qt 4 GUI module There are some more with "qt" in the name but they don't seem to be part of the core libraries. Thanks. You are right, there are two bugs. This bug is about broken pack window functions; those create very large windows. Of course this one has to be fixed by KWin developers separately. The other bug is bug 230490 which is indeed a Qt bug failing to handle those large windows correctly and causing a crash. We have long been getting bug reports for this one, but we had no test case. And now I can abuse this bug for the test case ;) I will add the patch to bug 230490. Qt comes in a single source package, you cannot compile modules separately. You could ask on IRC or in a forum when you need help recreating Qt with the patch. *** This bug has been marked as a duplicate of bug 241049 *** I don't like bypassing the dpkg package system. I'll first try going the "apt-get source" way, but if that doesn't work I'll get the sources directly. Will report back when I have results. All right so I wrote a long report in here, and then thought I'd try and see what happens if I try "packing" a Skype window, given that it's Qt but not kde, but that made all of X unresponsive so I lost my report. Anyway the point was, I applied your patch on qt 4.7.0 and I no longer get segfaults, but a variety of other behaviours instead, such as the app taking 100% cpu until killed, or X throwing an ABORT because of insufficient resources at the application, or (most of the time) just nothing at all happening. I suppose that means "your" bug is fixed, and now let's hope some kwin expert finds how to fix "mine" :) Thanks |