Desktop login to unity leads to hang and compiz crash when X Server Display Confirmation is clicked on

Bug #692677 reported by Doug McMahon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NVIDIA Drivers Ubuntu
Invalid
Undecided
Unassigned
nvidia-settings (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: nvidia-settings

The inclusion of the 06 patch has caused several issues in nvidia-settings

Switching from one menu to an other has become very laggy and some will not display or be displayed partially in a semi-corrupted state

The most notable is the X Server Display Confirmation menu which will either not open or only partially so - once and a rare while it will display fully

Tested on 2 machines (nvidia 7800 OC AGP and nvidia 8400m GS PCI-E ) both with compiz and metacity, unity and gnome-panel - same on all

Doing a re-build of current source excluding the patch and the menus then will work fine.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: nvidia-settings 260.19.21-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.37-10.24-generic 2.6.37-rc6
Uname: Linux 2.6.37-10-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Mon Dec 20 13:04:57 2010
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20101215.1)
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 LC_MESSAGES=en_US.utf8
 SHELL=/bin/bash
SourcePackage: nvidia-settings

Revision history for this message
Doug McMahon (mc3man) wrote :
Bryce Harrington (bryce)
tags: added: regression-development
Changed in nvidia-settings (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Bryce Harrington (bryce) wrote :

[Note: Patch 06 was introduced to fix bug #604525]

Revision history for this message
Bryce Harrington (bryce) wrote :

Hmm, from a casual skim through the patch I don't see an obvious part of the patch which could cause this particular problem, but it's a moderately long patch, and perhaps has a loose pointer or something.

Doug, since you can reproduce the issue and seem comfortable patching/building the source, would you be willing to help narrow down where in the patch the wayward code line is? Try commenting out different lines in the source code that the patch changed to identify what triggers the behavior.

Revision history for this message
Bryce Harrington (bryce) wrote :

Subbing upstream NVIDIA project as well, since on bug #604525 Aaron indicated they'd be considering the patch for inclusion upstream as well, and should be aware of this potential regression issue.

Revision history for this message
Doug McMahon (mc3man) wrote :

A bit of a change -
Thru a fully updated natty as of 6:30 pm (east coast usa), it now works in a Classic login to gnome-panel/compiz enabled

On the other hand a Desktop login to unity - when trying to click on the X Server Display Confirmation menu it hangs and then crashes both nvidia-settings and most likely compiz (window decorations disappear, ect.

(it may be possible (?) that this current compiz/unity bug has creates issues beyond the obvious.
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/690461
(wish I could figure out the deal with those nice little blue links
Am attaching .xsession-errors (old) from crash

I think I'll try a fresh, updated iso and install, see if it's any different

Finally - unless I'm missing something blatantly obvious or somewhat obscure I see absolutely no difference between a patched and unpatched nvidia-settings

Revision history for this message
Doug McMahon (mc3man) wrote :

With a fresh install of iso available today on a laptop, (dell 1330, nvidia 8400m GS), basically same the same thing -
Desktop login to unity, crashed window dec., then nvidia-settings
Classic login to gnome-panel, initially just froze up on the X Server Display Confirmation menu, after applying the small set of updates ( mainly gnome-panel and indicator package updates), it works fine

Returning to Desktop login still the same crashes.

Employing the second way to run unity - login to Classic with the unity plugin enabled - it works fine
So the Classic login is good with either the unity or gnome-panel interface
The Desktop login is a no go.

(- this is not the only instance where a Classic > unity login is better behaved than a Desktop > unity login.
I think I've restarted, logged in/out more in the last couple of weeks than in the last couple of years altogether...

tags: added: regression-release
removed: regression-development
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks for all the testing Doug!

So if I read your comments correctly, you've ruled out the 06 patch as a culprit? I.e. you can reproduce the crash with or without it?

It sounds like you find the bug occurs only a proportion of the time (which might explain why it at first seemed correlated to the patch)?

At this point it sounds like the unity initialization process is misbehaving when the nvidia driver is present. I'll update the title.

summary: - 06_layout_drop_down patch creates inacessable or corrupted menus
+ Desktop login to unity leads to hang and compiz crash when X Server
+ Display Confirmation is clicked on
Revision history for this message
Bryce Harrington (bryce) wrote :

Btw thanks for testing a fresh iso reinstall, that eliminates a host of -nvidia driver upgrade-related GLX misbehaviors.

Revision history for this message
Chris Halse Rogers (raof) wrote :

I don't seem to be able to reproduce this, although I've not tested the very latest code.

I've successfully used the dropdown menu in a Unity session on my nvidia laptop. I'll update the laptop and give it another go.

Revision history for this message
Doug McMahon (mc3man) wrote :

One of the difficulties here is that
one - there are some inconsistencies when using the same login, it not always the same, though if needed a logout/in or 2 can stabilise and give a clean login

two - there is clearly something different between the Desktop and Classic logins to unity. At this point I'd think any updates/patches/tests need to be run on Desktop > unity to test them, probably more than once (the 2 last updates to compiz highlight that
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/691561

three - when switching logins there is a good possibility of having the compizconfig settings for that profile unset, which then leads to having to re-enable to match their respective defaults. (if that matters ?

four - making some changes to compizconfig will crash compiz - it may take a restart and or a couple of logout/ins to return a clean load of that respective interface/profile

So - booting to a clean load of Classic > gnome-panel nvidia-settings works fine BUT it's not guaranteed to work 100% of the time, the same can be said for the Classic > unity login. If it fails (rare), it does so in same manner as the Desktop > unity. The difference is a logout/in will always fix in the former 2, nothing fixes Desktop > unity (except below

The one constant here seems to be the failure of the window decorator plugin, so -

Booting to a clean load of Desktop > unity with the window decorator plugin previously disabled, then nvidia-settings works fine

Revision history for this message
Doug McMahon (mc3man) wrote :

Just finally - While can demonstrate here identically of 2 different but not uncommon hardwares, this definitely begs further confirmation.
If valid, based on the progression so far as seen here, there doesn't seem any reason to take action, maybe better to wait for next set of compiz update(s)
(unless something is apparent, maybe in relationship to the window dec.

Revision history for this message
Chris Halse Rogers (raof) wrote :

So, I've built nvidia-settings with the 06 patch removed, and it doesn't break in this way. It looks like the patch is to blame, and we should therefore remove it until we've worked out what's going wrong.

Revision history for this message
Doug McMahon (mc3man) wrote :

Just to note - you can, if using a certain 'method', successfully open X Server
 Display Confirmation while using the Desktop > unity login. (though clearly that's not the intention
Also that it doesn't immediately crash compiz - actually takes several seconds during which the crash can be averted.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-settings - 260.19.21-0ubuntu3

---------------
nvidia-settings (260.19.21-0ubuntu3) natty; urgency=low

  * Drop patch debian/patches/06_layout_drop_down.patch: Causes regression
    when used with unity.
    (Closes LP: #692677, reopens #604525)
 -- Bryce Harrington <email address hidden> Mon, 03 Jan 2011 13:08:19 -0800

Changed in nvidia-settings (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Bryce Harrington (bryce) wrote :

As per comment #12 I've dropped the patch for now, and re-opened the original bug report.

Since it sounds like upstream is in process of taking the patch, I guess there is a potential for the bug to return, so continued efforts to troubleshoot this patch would not be in vain.

Changed in nvidia-settings (Ubuntu):
status: Triaged → Fix Committed
status: Fix Released → In Progress
Bryce Harrington (bryce)
Changed in nvidia-settings (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Doug McMahon (mc3man) wrote :

Just to follow up -
at least here inc. the 06 patch in nvidia-settings no longer causes any issues on any interface.
While I didn't ck. previously it's likely bug fixes to compiz ... +glibmainloop4-0ubuntu4 squared this up. (for the moment at least

Revision history for this message
dino99 (9d9) wrote :

That version is no more supported; please open a new bug report if the actual archive found version also has the same issue.

Changed in nvidia-drivers-ubuntu:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.