PCManFM 1.3.1 in Ubuntu 20.04 hangs for 90 seconds on reboot/shutdown

Bug #1878625 reported by Fane
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pcmanfm (Fedora)
Fix Released
Undecided
pcmanfm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Relevant information from "journalctl -b-1 -e" after restart:

May 14 17:16:00 ubuntu2004 systemd[528]: pulseaudio.service: Succeeded.
May 14 17:17:29 ubuntu2004 systemd[1]: session-1.scope: Stopping timed out. Killing.
May 14 17:17:29 ubuntu2004 systemd[1]: session-1.scope: Killing process 796 (pcmanfm) with signal SIGKILL.
May 14 17:17:29 ubuntu2004 systemd[1]: session-1.scope: Killing process 797 (gmain) with signal SIGKILL.
May 14 17:17:29 ubuntu2004 systemd[1]: session-1.scope: Killing process 798 (gdbus) with signal SIGKILL.
May 14 17:17:29 ubuntu2004 systemd[1]: session-1.scope: Failed with result 'timeout'.
May 14 17:17:29 ubuntu2004 systemd[1]: Stopped Session 1 of user user.

I found the same issue reported for Arch Linux here:

https://bbs.archlinux.org/viewtopic.php?id=254266

From the Arch Linux thread, it looks like the issue has been fixed by Fedora Linux here:

https://bugzilla.redhat.com/show_bug.cgi?id=1797193

Tags: patch
Revision history for this message
In , ppywlkiqletw (ppywlkiqletw-redhat-bugs) wrote :

Description of problem:

Whenever I request a shutdown or reboot, I get this:
Waiting for stop job for 1 min and 30 secs.

Version-Release number of selected component (if applicable):

pcmanfm-1.3.1-2.D20181227git0619a81f.fc31.2.x86_64

How reproducible:

Always (at least on my system which is running as a qemu/kvm guest).

Steps to Reproduce:
1. Reboot and log in to lxde.
2. Request a shutdown.
3. wait for the reboot to complete

Actual results:

Shutdown takes a long time.

Expected results:

Shutdown would be just as fast as in the previous fedora version.

Additional info:

From the journal

Feb 01 10:39:37 fc31 kernel: fbcon: Taking over console
Feb 01 10:39:37 fc31 kernel: Console: switching to colour frame buffer device 160x45
Feb 01 10:41:01 fc31 systemd[1]: session-2.scope: Stopping timed out. Killing.
Feb 01 10:41:01 fc31 systemd[1]: session-2.scope: Killing process 718 (pcmanfm) with signal SIGKILL.
Feb 01 10:41:01 fc31 systemd[1]: session-2.scope: Killing process 740 (gmain) with signal SIGKILL.
Feb 01 10:41:01 fc31 systemd[1]: session-2.scope: Killing process 742 (gdbus) with signal SIGKILL.
Feb 01 10:41:01 fc31 systemd[1]: session-2.scope: Failed with result 'timeout'.
Feb 01 10:41:01 fc31 systemd[1]: Stopped Session 2 of user vek.
Feb 01 10:41:01 fc31 systemd[1]: session-2.scope: Consumed 19.863s CPU time.
Feb 01 10:41:01 fc31 systemd[1]: Stopping Login Service...
Feb 01 10:41:01 fc31 systemd[1]: Stopping User Manager for UID 1000...

If I interpret this correctly, the remaining process would be pcmanfm.

I would be nice if I could attach strace to that process, but strace itself would be terminated too early to be useful.

Revision history for this message
In , bcotton (bcotton-redhat-bugs) wrote :

This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Revision history for this message
In , mtasaka (mtasaka-redhat-bugs) wrote :

I hope pcmanfm-1.3.1-3.D20190224gitc52cc4b2.fc32 will fix this issue.

Revision history for this message
In , updates (updates-redhat-bugs) wrote :

pcmanfm-1.3.1-3.D20190224gitc52cc4b2.fc32 has been pushed to the Fedora 32 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b41760de92

Revision history for this message
In , ppywlkiqletw (ppywlkiqletw-redhat-bugs) wrote :

(In reply to Mamoru TASAKA from comment #2)
> I hope pcmanfm-1.3.1-3.D20190224gitc52cc4b2.fc32 will fix this issue.

For me the problem is fixed. No more shutdown dealy.

Revision history for this message
In , mtasaka (mtasaka-redhat-bugs) wrote :

Thank you for confirmation!

Revision history for this message
In , updates (updates-redhat-bugs) wrote :

FEDORA-2020-b41760de92 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Revision history for this message
In , mtasaka (mtasaka-redhat-bugs) wrote :

Closing. Thank you for confirmation.

Fane (i96usa)
no longer affects: pcmanfm (Arch Linux)
no longer affects: pcmanfm (Fedora)
Fane (i96usa)
Changed in pcmanfm (Ubuntu):
status: New → Confirmed
Revision history for this message
shasheene (shasheene) wrote :

Hi, I this issue is affecting thousands of users (many of whom are using Ubuntu for the first time) through my Ubuntu remix named Rescuezilla. For now I have simply limited the systemd service timeout to 10 seconds instead of 90 seconds, but this is not a great solution.

Given Ubuntu 20.04 will be supported until 2025, it is important that this bug be properly resolved.

As the user who reported this issue has alluded to, several months ago this issue was fixed by the upstream pcmanfm project by this commit:

https://git.lxde.org/gitweb/?p=lxde/pcmanfm.git;a=commit;h=be8c60d588fc6b527d1cc77df9935bcfa66d52be

It's a one-line fix.

If somebody imports that one-line fix and pushes the deb file to the focal-proposed repository, I will be happy to test it.

Revision history for this message
Fane (i96usa) wrote :

@shasheene, can any of the Rescuezilla project users mark this bug as affecting them as well? Maybe this will increase visibility and the chance of getting into Ubuntu 20.04 the already existing fix.

Revision history for this message
shasheene (shasheene) wrote :

I don't want to bother my users by asking for them to vote this issue up. I am not sure what other Ubuntu-based distributions use pcmanfm in desktop mode, but it's likely the true number of users affected by this bug is HUGE.

I think that the fix should be imported into Ubuntu as soon as possible, as the issue is severe for the vast majority of affected users and the one-line fix linked above is very simple.

As mentioned, I am 100% happy to work with the Ubuntu maintainers and test any candidate deb package to ensure it works.

Revision history for this message
Fane (i96usa) wrote :

With Lubuntu moved to LXQt, I'm afraid that there are not so many users of LXDE/PCManFM left in Ubuntu land. As you can see, I've reported the bug more than 2 months ago and until yesterday (when you wrote something) there's been only deep silence.

My use case for LXDE is installing (custom net install using mini.iso) on old/under-powered PCs in order to make them minimally usable with LibreOffice and Firefox. Meanwhile, I've been using Debian 10 (which still has 32-bit available and that also helps).

Revision history for this message
Kow (kow) wrote :

Attached is the fix as per https://bugzilla.redhat.com/show_bug.cgi?id=1797193

All you (Lubuntu devs) need to do is apply the patch and this bug is solved. How do we get this bug priority escalated to critical? It should be impacting 100% of Lubuntu users since pcmanfm is a core component of LXDE. Thank you

I noticed this bug has been open and confirmed since long before 20.04.1. If Ubuntu can't support LXDE anymore, then drop Lubuntu as an official flavor.

Revision history for this message
Fane (i96usa) wrote :

@Kow, Lubuntu has switched (from LXDE) to LXQt since 18.10. As I previously wrote, few users of LXDE - meaning even fewer developers of LXDE - in Ubuntu.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "pcmanfm-0201-main-set-the-GIOChannel-encoding-to-binary.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in pcmanfm (Fedora):
importance: Unknown → Undecided
status: Unknown → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pcmanfm - 1.3.2-1

---------------
pcmanfm (1.3.2-1) unstable; urgency=medium

  * Merging upstream version 1.3.2 (Closes: #917522, #961084, #962561, #970924,
    LP: #1878625, #1883173).
  * Reposition Vcs-* to the Debian Salsa.
  * Bump Standards-Version to 4.5.1.
  * Drop obsolete lintian override 'package-contains-broken-symlink'.
  * Updating debian/copyright file.
  * Adding 'Rules-Requires-Root: no' header.
  * Bump debhelper to version 12.
  * Drop obsolete pcmanfm-dbg package.

 -- Andriy Grytsenko <email address hidden> Sat, 06 Feb 2021 02:36:43 +0200

Changed in pcmanfm (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Fane (i96usa) wrote :

1.3.2-1 is (only) in 21.04. Will it make it to 20.04 (currently on 1.3.1-1 and still hanging)?

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.