Bug 300234 - KWin crashes on startup with nvidia-173 and Compositing
Summary: KWin crashes on startup with nvidia-173 and Compositing
Status: RESOLVED DUPLICATE of bug 293209
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-18 09:37 UTC by Kai Uwe Broulik
Modified: 2012-07-03 12:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
mgraesslin: NVIDIA+


Attachments
New crash information added by DrKonqi (5.71 KB, text/plain)
2012-05-26 10:30 UTC, ski_phreak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Uwe Broulik 2012-05-18 09:37:57 UTC
Application: kwin (4.8.2 (4.8.2))
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic i686
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
I logged in, the splash screen came up, then the screen froze for a short time and the KWin crash handler appeared. KWin restarted fine without Compositing. When I manually trigger the shortcut to enable Compositing, it works fine though. And I definitly need Compositing because it improves the UI's responsiveness quite a bit (it is a slow processor)

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb7707740 (LWP 5484))]

Thread 3 (Thread 0x1e92b40 (LWP 5486)):
#0  0x43090dcd in clock_gettime () from /lib/i386-linux-gnu/librt.so.1
#1  0x48b41855 in do_gettime (frac=0x1e920c0, sec=0x1e920b8) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x48c2b766 in QTimerInfoList::updateCurrentTime (this=0xb6400b34) at kernel/qeventdispatcher_unix.cpp:343
#4  0x48c2baba in QTimerInfoList::timerWait (this=0xb6400b34, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#5  0x48c2d7be in QEventDispatcherUNIX::processEvents (this=0xb6400488, flags=...) at kernel/qeventdispatcher_unix.cpp:913
#6  0x48bf6a4d in QEventLoop::processEvents (this=0x1e92240, flags=...) at kernel/qeventloop.cpp:149
#7  0x48bf6ce9 in QEventLoop::exec (this=0x1e92240, flags=...) at kernel/qeventloop.cpp:204
#8  0x48adfe8c in QThread::exec (this=0x8aad2f0) at thread/qthread.cpp:501
#9  0x48bd409d in QInotifyFileSystemWatcherEngine::run (this=0x8aad2f0) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x48ae3320 in QThreadPrivate::start (arg=0x8aad2f0) at thread/qthread_unix.cpp:298
#11 0x43048d4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0x42f7eace in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0x2b61b40 (LWP 5487)):
#0  0x00951416 in __kernel_vsyscall ()
#1  0x4304c96b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0x42f8c3dc in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0x4acebd29 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0x4acebd6f in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0x43048d4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0x42f7eace in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb7707740 (LWP 5484)):
[KCrash Handler]
#7  0x42f0c1d6 in free () from /lib/i386-linux-gnu/libc.so.6
#8  0x43399f9b in XFree (data=0x1) at ../../src/XlibInt.c:1701
#9  0x45c5ac76 in XRRUpdateConfiguration (event=0xbfe8486c) at ../../src/Xrandr.c:446
#10 0x478ed137 in KWin::Workspace::workspaceEvent (this=0x8a11e20, e=0xbfe8486c) at ../../kwin/events.cpp:460
#11 0x478dd3b2 in KWin::Application::x11EventFilter (this=0xbfe84ab8, e=0xbfe8486c) at ../../kwin/main.cpp:359
#12 0x49359cb4 in qt_x11EventFilter (ev=0xbfe8486c) at kernel/qapplication_x11.cpp:441
#13 qt_x11EventFilter (ev=0xbfe8486c) at kernel/qapplication_x11.cpp:429
#14 0x49369987 in QApplication::x11ProcessEvent (this=0xbfe84ab8, event=0xbfe8486c) at kernel/qapplication_x11.cpp:3444
#15 0x49398208 in QEventDispatcherX11::processEvents (this=0x894dea0, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#16 0x48bf6a4d in QEventLoop::processEvents (this=0xbfe849f4, flags=...) at kernel/qeventloop.cpp:149
#17 0x48bf6ce9 in QEventLoop::exec (this=0xbfe849f4, flags=...) at kernel/qeventloop.cpp:204
#18 0x48bfc3fa in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#19 0x492dc1f4 in QApplication::exec () at kernel/qapplication.cpp:3820
#20 0x478e0335 in kdemain (argc=1, argv=0xbfe84d64) at ../../kwin/main.cpp:541
#21 0x0804850b in main (argc=1, argv=0xbfe84d64) at kwin_dummy.cpp:3

Possible duplicates by query: bug 300174, bug 298845, bug 298370, bug 298304, bug 293648.

Reported using DrKonqi
Comment 1 Thomas Lübking 2012-05-18 09:57:39 UTC
that's not about compositing but about ubuntu - kwin just assumes the compositor might cause the crash and turns it off for safety. actual issue is a broken libXRandr (or even libX11) and a screen resolution change.

So far this has (mostly?) been reported for remote sessions, is this a local or a remote one?

*** This bug has been marked as a duplicate of bug 293209 ***
Comment 2 Thomas Lübking 2012-05-18 10:05:12 UTC
stupid question:
how do you run the legacy nvidia driver on a recent X11 server? inofficial patch or some beta release?
Comment 3 Kai Uwe Broulik 2012-05-18 13:42:54 UTC
Dr. Konqui presented me duplicates which are all remove sessions but this one is a local running session. Well, I had to downgrade the XServer to the version used in Kubuntu 11.10 because in 12.04 the nvidia driver is incompatible. Then I installed the proprietary driver downloaded directly from nvidia's website and installed it running the .run file.
Comment 4 Thomas Lübking 2012-05-18 14:25:37 UTC
did you downgrade libXrandr as well?
Comment 5 ski_phreak 2012-05-26 10:30:33 UTC
Created attachment 71379 [details]
New crash information added by DrKonqi

kwin (4.8.2 (4.8.2)) on KDE Platform 4.8.2 (4.8.2) using Qt 4.8.1

- What I was doing when the application crashed:
This happens with every login using KDE and 3d effects.  I will try using 2d effects after the busy holiday weekend.

- Unusual behavior I noticed:
Just before the crash, the launcher disappears and the entire screen "flinches."  (Probably just re-drawing the geometry of the screen to take advantage of the suddenly missing "taskbar?")

- Custom settings of the application:
I installed legacy nvidia-96 drivers on this old box when neither ubuntu, nor kubuntu was happy with my NV17 [GeForce4 MX 420] (rev a3).  I have not yet reinstalled (dpkg-reconfigure) the KWin or other parts of KDE since tweaking xserver-xorg to allow my legacy driver to work.  (I'm loath to go back however, since the screen looks much nicer and the entire system seems to move faster than either the nouveau or the SVGA drivers managed.)

Here's the relevant changes according HISTORY, and the datestamps of the files in /var/cache/apt/archives/
UPDATE & UPGRADE EVERYTHING INSTALLED SO FAR
sudo apt-get update && sudo apt-get upgrade

ADD ARCHIVES FOR ONEIRIC TO PACKAGES SOURCES
sudo vi /etc/apt/sources.list
  deb http://fr.archive.ubuntu.com/ubuntu/ oneiric main
  deb-src http://fr.archive.ubuntu.com/ubuntu/ oneiric main

SET OLDER (oneiric) XORG AND XSERVER-XORG HIGHER PRIORITY
sudo vi /etc/apt/preferences (new file)
  xorg xserver-xorg*
  Pin: release a=oneiric
  Pin-Priority: 1050

EXIT KDE GUI
sudo /etc/init.d/kdm stop

REMOVE POSSIBLE CONFLICTS (NVIDIA VERSIONS, NOUVEAU)
sudo dpkg -r nvidia-common
sudo apt-get remove xserver-xorg-video-nouveau 

UPDATE WITH ADDED ONEIRIC REPOSITORIES
sudo apt-get update

ALLOW NVIDIA TOOL TO GENERATE BASIC /etc/X11/xorg.conf
sudo nvidia-xconfig 

TWEAK PROPER MONITOR HORIZ/VERT AND RESOLUTIONS IN /etc/X11/xorg.conf 
sudo vi /etc/X11/xorg.conf 

CLEAN UP UN-NEEDED NVIDIAS (FROM OTHER VERSIONS
REINSTALL XSERVER-XORG WHICH SOMEHOW WAS NO LONGER INSTALLED.
sudo apt-get remove nvidia-settings
sudo apt-get install xserver-xorg
sudo service kdm restart

-- Backtrace (Reduced):
#8  0x004bcf9b in XFree (data=0x1) at ../../src/XlibInt.c:1701
#9  0x0030cc76 in XRRUpdateConfiguration (event=0xbfab74bc) at ../../src/Xrandr.c:446
#10 0x0016f3b7 in KWin::Workspace::workspaceEvent (this=0x8a37b78, e=0xbfab74bc) at ../../kwin/events.cpp:460
#11 0x0015f632 in KWin::Application::x11EventFilter (this=0xbfab7708, e=0xbfab74bc) at ../../kwin/main.cpp:359
#12 0x011eb534 in qt_x11EventFilter (ev=0xbfab74bc) at kernel/qapplication_x11.cpp:441