pcmanfm uses 100% cpu to draw two different desktops using arandr

Bug #1286588 reported by Lyn Perrine
56
This bug affects 11 people
Affects Status Importance Assigned to Milestone
pcmanfm (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description ubuntu trusty Tahr
release 14.04
apt-cache policy pcmanfm
installed 1.2.0-0ubuntu2
canidate 1.2.0-0ubuntu2

To reproduce this bug first enable the pcmanfm from proposed. Then log out and log back in. Then if you have it open arandr and drag a 1366x768 screen below a 1024x768 one. I expected to get 2 different screens and having two wallpapers set from earlier version of pcmanfm which was recently added.
Instead I get two usable screens but I watch my temperture monitor go way up on lxpanel and can hear my fan being much louder. opneing htop show this using 100% cpu. for pcmanfm --desktop when normally it is a lot if any at all.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: pcmanfm 1.2.0-0ubuntu2
ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
Uname: Linux 3.12.0-7-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.13.2-0ubuntu5
Architecture: amd64
Config_pcmanfm_System_Lubuntu: Error: [Errno 2] No such file or directory: '/etc/xdg/pcmanfm/lubuntu.conf'
CurrentDesktop: LXDE
Date: Sat Mar 1 10:20:23 2014
InstallationDate: Installed on 2014-01-02 (58 days ago)
InstallationMedia: Lubuntu 14.04 "Trusty Tahr" - Alpha amd64 (20140101)
Pref_Config_System_Lubuntu: Error: [Errno 2] No such file or directory: '/etc/xdg/libfm/pref-apps.conf'
SourcePackage: pcmanfm
Udisks_dump: Error: [Errno 2] No such file or directory: 'udisks'
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Lyn Perrine (walterorlin) wrote :
Revision history for this message
Lyn Perrine (walterorlin) wrote :

Note it does not use excessive cpu if I log into the lubuntu netbook seisson which could be a workaround. if you really want two screens.

Revision history for this message
Lyn Perrine (walterorlin) wrote :

For some reason this does not happen when I set lxterminal back to defualt terminal in lxseisson default apps.

Revision history for this message
Lyn Perrine (walterorlin) wrote :

After latest updates I have failed to reproduce this bug.

Revision history for this message
linuxien_ref (untruclong-durabombarder) wrote :

Hi,

Same issue i Think.

Lubuntu 14.04 fresh migration.

To setup my EEEPC and an external 19' LCD monitor I launch :
#!/bin/sh
xrandr --output LVDS1 --mode 1024x600 --pos 128x1024 --rotate normal --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal

Then process pcmanfm use 100% CPU (on one core of my Atom CPU). Desktop hangup, icons are not refreshed when we slide a windows on the desktop. Impossible to launch File explorer. If I kill pcmanfm process, it come back with an other PID and 100% CPU.

When I come back to boot screen config :
#!/bin/sh
xrandr --output VIRTUAL1 --off --output LVDS1 --mode 1024x600 --pos 0x0 --rotate normal --output VGA1 --mode 1280x1024 --pos 0x0 --rotate normal
Then I have to kill pcmanfm process. After this, I can launch manually all applications without 100% CPU on pcmanfm. The desktop icons don't come back.

Regards.
RR

Revision history for this message
linuxien_ref (untruclong-durabombarder) wrote :

Hi,

If it can help :

When I remove all directories, shortcuts and files from the Desktop (Bureau) files, I can run xrandr command without having pcmanfm at 100% CPU.

If i just put a new empty directory, I have the bug.

If pacmanfm is at 0% CPU in the rendering with two screns, when I copy files to Desktop directory, so pcmanFM hang up at 100% CPU.

Regards,
RR

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pcmanfm (Ubuntu):
status: New → Confirmed
Revision history for this message
pivo (pivo-pobox) wrote :

I worked around this issue by clearing the Desktop Manager field in the LXSession configuration.

Revision history for this message
linuxien_ref (untruclong-durabombarder) wrote :

I confirm clearing the Desktop Manager field in the LXSession configuration, don't give 100% CPU.
But files are not visible on Desktop :(

Revision history for this message
Massimiliano Ballerini (mballerini) wrote :

Had really similar problem, and reported it here with a workaround.
https://bugs.launchpad.net/ubuntu/+source/pcmanfm/+bug/1360108

Revision history for this message
Lyn Perrine (walterorlin) wrote :

I am unable to reproduce this with latest updates I think a new Xorg might have fixed this.

Revision history for this message
Massimiliano Ballerini (mballerini) wrote :

Still affects me with lastest updates

Revision history for this message
Jason Drage (geektopia) wrote :

Still have this bug, can confirm that workaround mentioned in https://bugs.launchpad.net/ubuntu/+source/pcmanfm/+bug/1360108 fixes the excessive cpu usage but clears the Desktop of icons and backgrounds

Workaraound:
  killall -9 pcmanfm && pcmanfm (desktop will flash)
  ctrl-z
  kill -9 %1

Revision history for this message
thom (tsk) wrote :

Another workaround:

1) boot the system without the external monitor connected
2) after boot and login, connect the external monitor

Strange that the physical (electrical) presence of the monitor during boot triggers this bug.

Revision history for this message
Robert Schwartz (rschwartz216) wrote :

Same problem here, lubuntu 14.04 LTS with two monitors set up with ArandR.

pcmanfm hangs and uses 100% of my CPU shortly after I start it with two monitors attached.

Revision history for this message
Chris Carlin (crcarlin) wrote :

Still there with
pcmanfm:
  Installed: 1.2.0-1
  Candidate: 1.2.0-1

Revision history for this message
Vaclav Petras (wenzeslaus) wrote :

It happens to me (pcmanfm using 100% of one CPU) even with one screen when switching from laptop buildin display to VGA or HDMI port using xrandr. Killing pcmanfm process works.

Revision history for this message
RB (erpuntbakker) wrote :

My workaround:
1. clearing the Desktop Manager field in the LXSession configuration, as suggested above.

This makes the desktop disfunctional, without icons.

To solve this I tried two things:

2a. adding a line to the LXSession autostart file:
@pcmanfm --desktop --profile lubuntu
(--profile lubuntu is specific to my lubuntu installation)

This reintroduces the bug.

2b. adding a line to the LXSession autostart file:
pcmanfm --desktop --profile lubuntu

(so leaving out the @ at the start)

This surprisingly fixes the bug, with a fully functional desktop.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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