Bug 292549 - Muon locks up when post-install script returns error
Summary: Muon locks up when post-install script returns error
Status: RESOLVED FIXED
Alias: None
Product: muon
Classification: Applications
Component: qaptworker (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Jonathan Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-27 04:23 UTC by Davor Cubranic
Modified: 2012-01-27 18:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 1.2.95, 1.2.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Davor Cubranic 2012-01-27 04:23:12 UTC
At the end of a large batch of updates (219 packages upgrading KDE from 4.7.3 to 4.7.4), Muon is stuck at the "Install Updates" screen with progress bar at 100% and the following message:

subprocess installed post-installation script returned error exit
status 1

The application cannot be exited because it's ignoring close window action (either clicking on the close button, through the window menu, or Alt-F4 shortcut). It is not completely unresponsive because I can open the menus but all entries are disabled. Basically, the only way to close it was by xkill.

The last entry in /etc/var/dpkg.log is "status half-configured initramfs-tools 0.99ubuntu8"
Comment 1 Jonathan Thomas 2012-01-27 04:28:39 UTC

*** This bug has been marked as a duplicate of bug 292423 ***
Comment 2 Davor Cubranic 2012-01-27 04:38:05 UTC
Jonathan, why do you think this is the same bug? 292423 does not mention anything about subprocess's error message.
Comment 3 Jonathan Thomas 2012-01-27 04:44:21 UTC
Oh, sorry. Knee-jerk at "locks up during update". Yeah, this is different.
Comment 4 Jonathan Thomas 2012-01-27 04:53:43 UTC
Git commit 490c2b529454d3175ab4b894a654d3941a37b690 by Jonathan Thomas.
Committed on 27/01/2012 at 05:51.
Pushed by jmthomas into branch '1.2'.

Emit the CommitChangesFinished event even if dpkg fails. Otherwise frontends won't ever
know that the commit finished, and will get stuck in commit mode forever (preventing
exits)
FIXED-IN:1.2.95, 1.2.3

M  +1    -3    src/worker/worker.cpp

http://commits.kde.org/libqapt/490c2b529454d3175ab4b894a654d3941a37b690
Comment 5 Jonathan Thomas 2012-01-27 04:53:44 UTC
Git commit a3ac4eca5c05407cf59a317de6a12856db0a6f3c by Jonathan Thomas.
Committed on 27/01/2012 at 05:51.
Pushed by jmthomas into branch 'master'.

Emit the CommitChangesFinished event even if dpkg fails. Otherwise frontends won't ever
know that the commit finished, and will get stuck in commit mode forever (preventing
exits)
FIXED-IN:1.2.95, 1.2.3

M  +1    -3    src/worker/worker.cpp

http://commits.kde.org/libqapt/a3ac4eca5c05407cf59a317de6a12856db0a6f3c
Comment 6 Davor Cubranic 2012-01-27 05:21:30 UTC
Thanks! That was some quick bugfix turnaround!

Looking at the diff I couldn't tell, so could you please clarify: will Muon tell me which package's install failed?
Comment 7 Jonathan Thomas 2012-01-27 05:25:51 UTC
Yeah; during the commit, if a package fails it sends out an error to Muon (or any other frontend listening) about the error, and Muon saves it in a list. Once the commit is done Muon will re-initialize APT and display everything on the error and warning stacks that accumulated during the commit.

The issue was that the QApt Worker never was sending out the commit finished signal, so it just hung there. ;-)
Comment 8 Davor Cubranic 2012-01-27 18:44:30 UTC
That's great, thank you. Do you know if this is going to be in another 4.7.x bugfix release or not until 4.8 is out?
Comment 9 Jonathan Thomas 2012-01-27 18:56:17 UTC
Muon has its own release schedule independent of KDE's, but the fix will be included in both 1.3. and 1.2.3.