Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with root Caja: 100% CPU #176

Closed
Frannoe opened this issue Sep 29, 2013 · 10 comments
Closed

Problems with root Caja: 100% CPU #176

Frannoe opened this issue Sep 29, 2013 · 10 comments

Comments

@Frannoe
Copy link

Frannoe commented Sep 29, 2013

With the last update (performed without problems), I found two problems with Caja:
1º: The first place I found, the problem of displaying the thumbnails. This has been solved by creating appropriate symbolic links.
2º: Caja as root does not work properly. CPU consumption, soars to 100% open Caja with any of the Super-User mode.
Moreover, this problem does not occur with Nautilus

Thanks

@stefano-k
Copy link
Collaborator

You need to create symlinks for root too.
I believe you are on LMDE. Latest mate-desktop update should fix your issues without need of symlink.

@Frannoe
Copy link
Author

Frannoe commented Oct 1, 2013

This was the first thing I did, but it not works.
Terminal messages or gdb does not explain anything.
I use a version of Debian (wheezy) with MATE desktop (wheezy), "LMDE not" Working perfectly.
It has been necessary these days upgrading Debian to jessie, and has performed flawlessly this update.
The results of Debian (jessie) + MATE (wheezy) are described above
I thought Debian (jessie) + MATE (jessie) could be the solution, but it is not.

In the coming days, I install the hard drive in another system and try the whole process again to see if it recurs.

@stefano-k
Copy link
Collaborator

Are there problems with thumbnails with root?

@Frannoe
Copy link
Author

Frannoe commented Oct 1, 2013

No problem stefano-k, load just fine

@stefano-k
Copy link
Collaborator

@Frannoe could you try to enable debug log for root? http://wiki.mate-desktop.org/applications:caja#debug

@Frannoe
Copy link
Author

Frannoe commented Oct 3, 2013

Terminal as Root:

(gdb) run
Starting program: /usr/bin/caja
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffea57c700 (LWP 3999)]
[New Thread 0x7fffe9d7b700 (LWP 4010)]
Initializing caja-open-terminal extension
Initializing caja-dropbox 0.7.1
[New Thread 0x7fffe3df5700 (LWP 4011)]
** Message: Initializing gksu extension...
[New Thread 0x7fffe2129700 (LWP 4012)]
[New Thread 0x7fffe1928700 (LWP 4013)]
[New Thread 0x7fffe0ecf700 (LWP 4014)]

** (caja:3995): WARNING **: Failed to get the current CK session: GDBus.Error:org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '3995'
[Thread 0x7fffe1928700 (LWP 4013) exited]
[New Thread 0x7fffe1928700 (LWP 4028)]
[Thread 0x7fffe1928700 (LWP 4028) exited]

/////////////////////////

ps aux | grep caja
frannoe 4165 0.4 2.1 1408360 45216 ? Sl 23:19 0:01 caja -n
frannoe 4302 0.5 1.6 417900 33244 ? Sl 23:22 0:01 gksu caja 'file:///home/frannoe/Escritorio/emerald-themes-0.7'
root 4303 0.0 0.1 56376 2140 ? Ss 23:22 0:00 /usr/bin/sudo -H -S -p GNOME_SUDO_PASS -u root -- caja file:///home/frannoe/Escritorio/emerald-themes-0.7
root 4305 99.6 2.1 981316 44896 ? Rl 23:22 4:24 caja file:///home/frannoe/Escritorio/emerald-themes-0.7
root 4559 0.0 0.0 9288 856 pts/0 S+ 23:26 0:00 grep caja

@Frannoe
Copy link
Author

Frannoe commented Oct 8, 2013

Hi Stefano-k.
These days I have been doing multiple tests to try to figure out where the problem is. I have done many installations from scratch to detect something that can give us a clue.
I can say that everything works correctly in the update until the following packages are installed:

gir1.2-freedesktop (1.32.1-1) to 1.36.0-2+b1
gir1.2-glib-2.0 (1.32.1-1) to 1.36.0-2+b1
glib-networking (2.32.3-1) to 2.36.1-2
glib-networking-common (2.32.3-1) to 2.36.1-2
glib-networking-services (2.32.3-1) to 2.36.1-2
libgirepository-1.0-1 (1.32.1-1) to 1.36.0-2+b1
libglib2.0-0 (2.33.12+really2.32.4-5) to 2.36.4-1
libglib2.0-bin (2.33.12+really2.32.4-5) to 2.36.4-1
python-gi (3.2.2-2) to 3.8.2-1

These packages are mutually dependent.
If we update these packages Caja/root consumes more than 100% of the CPU.
If we put these packages to stable everything returns to normal, then Caja works perfectly.

I hope I have been helpful.

@stefano-k
Copy link
Collaborator

With glib >= 2.34, both caja and mate-desktop need to be rebuilt against it.
You're upgrading from wheezy to jessie. Are you sure caja and mate-desktop are installed from jessie repository?

@Frannoe
Copy link
Author

Frannoe commented Oct 8, 2013

Yes, I counted 55 packages installed (Caja + mate-deskatop) of +8.jessie

@stefano-k
Copy link
Collaborator

@Frannoe thank you for the debugging. I checked build logs and I dont know why but mate-desktop/jessie was built against glib 2.32. I'll close the issue and I'll build new packages soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants