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

Fix caja crash during startup #101

Closed
wants to merge 1 commit into from
Closed

Fix caja crash during startup #101

wants to merge 1 commit into from

Conversation

willysr
Copy link
Member

@willysr willysr commented Apr 9, 2013

Closed #100

Signed-off-by: Willy Sudiarto Raharjo willysr@gmail.com

Closed #100

Signed-off-by: Willy Sudiarto Raharjo <willysr@gmail.com>
@stefano-k
Copy link
Collaborator

@willysr : from documentation,

--sync
Tells GTK+ (actually the GDK part of GTK+) to make X calls synchronous.
This will give very smooth display updates, but very slow as well... No practical use. 

Can you try if '-n' fixes the issue for you, instead? It was suggested in the past, and also GNOME does the same
https://git.gnome.org/browse/nautilus/tree/data/nautilus-autostart.desktop.in

@willysr
Copy link
Member Author

willysr commented Apr 9, 2013

No, -n doesn't work
it still gives me multiple instances of caja
only by using --sync solved this problem
also, i don't think slow is an issue anymore has hardware has been so fast

@stefano-k
Copy link
Collaborator

multiple instances -> how many instances you get?

@willysr
Copy link
Member Author

willysr commented Apr 10, 2013

multiple instances -> how many instances you get?

a lot, because when it failed to open an instance, it tries to open
another one until it reached the limit of open process and then it
will terminate one by one until there's no instance left, but that
could take up to 3-4 minutes

Willy Sudiarto Raharjo
Personal Blog : http://willysr.blogspot.com
Linux Blog: http://slackblogs.blogspot.com

@stefano-k
Copy link
Collaborator

so now I understand your issue it's different from the issue fixed with -n
can you try to debug caja to check why it crashes?
http://wiki.mate-desktop.org/applications:caja#debug
I think we need to fix this issue in a better way than --sync

@willysr
Copy link
Member Author

willysr commented Apr 10, 2013

so now I understand your issue it's different from the issue fixed with -n
can you try to debug caja to check why it crashes?
http://wiki.mate-desktop.org/applications:caja#debug
I think we need to fix this issue in a better way than --sync

Here's the result

willysr@desktop:$ ps aux | grep caja
willysr 22084 0.0 0.2 97152 10832 tty1 Rl 04:30 0:00 caja
willysr 22090 0.0 0.0 2764 880 pts/0 S+ 04:30 0:00 grep caja
willysr@desktop:
$ gdb caja 22084
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-slackware-linux".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/caja...(no debugging symbols found)...done.
Attaching to program: /usr/bin/caja, process 22084

warning: unable to open /proc file '/proc/22084/status'

warning: unable to open /proc file '/proc/22084/status'
ptrace: No such process.
/home/willysr/22084: No such file or directory.
(gdb) start
Temporary breakpoint 1 at 0x80840f5
Starting program: /usr/bin/caja
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Traceback (most recent call last):
File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3400.3-gdb.py",
line 9, in
from gobject import register
File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in
import gdb.backtrace
ImportError: No module named backtrace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".

Temporary breakpoint 1, 0x080840f5 in main ()
(gdb)

Willy Sudiarto Raharjo
Personal Blog : http://willysr.blogspot.com
Linux Blog: http://slackblogs.blogspot.com

@willysr
Copy link
Member Author

willysr commented Apr 10, 2013

so now I understand your issue it's different from the issue fixed with -n
can you try to debug caja to check why it crashes?
http://wiki.mate-desktop.org/applications:caja#debug
I think we need to fix this issue in a better way than --sync

Here's the result

willysr@desktop:$ ps aux | grep caja
willysr 22084 0.0 0.2 97152 10832 tty1 Rl 04:30 0:00 caja
willysr 22090 0.0 0.0 2764 880 pts/0 S+ 04:30 0:00 grep caja
willysr@desktop:
$ gdb caja 22084
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-slackware-linux".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/caja...(no debugging symbols found)...done.
Attaching to program: /usr/bin/caja, process 22084

warning: unable to open /proc file '/proc/22084/status'

warning: unable to open /proc file '/proc/22084/status'
ptrace: No such process.
/home/willysr/22084: No such file or directory.
(gdb) start
Temporary breakpoint 1 at 0x80840f5
Starting program: /usr/bin/caja
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Traceback (most recent call last):
File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3400.3-gdb.py",
line 9, in
from gobject import register
File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in
import gdb.backtrace
ImportError: No module named backtrace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".

Temporary breakpoint 1, 0x080840f5 in main ()
(gdb)

Another information from dmesg

[81367.304352] caja[20509]: segfault at 4 ip b6c77354 sp bfa25480
error 4 in libcairo.so.2.11200.14[b6c5d000+105000]
[81367.863656] caja[20516]: segfault at 4 ip b6bea354 sp bfbd8430
error 4 in libcairo.so.2.11200.14[b6bd0000+105000]
[81368.437545] caja[20523]: segfault at 4 ip b6c73354 sp bfaf7880
error 4 in libcairo.so.2.11200.14[b6c59000+105000]
[81369.234135] caja[20540]: segfault at 4 ip b6c6e354 sp bfe82d50
error 4 in libcairo.so.2.11200.14[b6c54000+105000]
[81369.828883] caja[20549]: segfault at 4 ip b6be6354 sp bfe38bf0
error 4 in libcairo.so.2.11200.14[b6bcc000+105000]
[81370.386539] caja[20563]: segfault at 4 ip b6c6d354 sp bf9aa8a0
error 4 in libcairo.so.2.11200.14[b6c53000+105000]
[81371.001083] caja[20570]: segfault at 4 ip b6c8b354 sp bfa177f0
error 4 in libcairo.so.2.11200.14[b6c71000+105000]
[81371.497197] caja[20577]: segfault at 4 ip b6c83354 sp bff82d50
error 4 in libcairo.so.2.11200.14[b6c69000+105000]
[81371.988233] caja[20585]: segfault at 4 ip b6c43354 sp bf8407b0
error 4 in libcairo.so.2.11200.14[b6c29000+105000]
[81372.469969] caja[20591]: segfault at 4 ip b6c41354 sp bfd2a9e0
error 4 in libcairo.so.2.11200.14[b6c27000+105000]
[81372.987208] caja[20598]: segfault at 4 ip b6c36354 sp bf9c1020
error 4 in libcairo.so.2.11200.14[b6c1c000+105000]
[81373.477080] caja[20606]: segfault at 4 ip b6c45354 sp bfc20de0
error 4 in libcairo.so.2.11200.14[b6c2b000+105000]
[81373.921219] caja[20613]: segfault at 4 ip b6c12354 sp bf92e580
error 4 in libcairo.so.2.11200.14[b6bf8000+105000]
[81374.462578] caja[20620]: segfault at 4 ip b6c28354 sp bfa0a380
error 4 in libcairo.so.2.11200.14[b6c0e000+105000]
[81374.943924] caja[20637]: segfault at 4 ip b6bc9354 sp bfd7b5a0
error 4 in libcairo.so.2.11200.14[b6baf000+105000]
[81375.364445] caja[20648]: segfault at 4 ip b6baf354 sp bf8e90b0
error 4 in libcairo.so.2.11200.14[b6b95000+105000]
[81375.779626] caja[20657]: segfault at 4 ip b6bcd354 sp bf8bb860
error 4 in libcairo.so.2.11200.14[b6bb3000+105000]
[81376.218105] caja[20664]: segfault at 4 ip b6bd4354 sp bfc1a590
error 4 in libcairo.so.2.11200.14[b6bba000+105000]
[81376.625062] caja[20672]: segfault at 4 ip b6c95354 sp bf9b0760
error 4 in libcairo.so.2.11200.14[b6c7b000+105000]
[81378.308180] show_signal_msg: 3 callbacks suppressed
[81378.308186] caja[20699]: segfault at 4 ip b6c18354 sp bfbbc0f0
error 4 in libcairo.so.2.11200.14[b6bfe000+105000]
[81378.720629] caja[20707]: segfault at 4 ip b6ba7354 sp bfa67fa0
error 4 in libcairo.so.2.11200.14[b6b8d000+105000]
[81379.138733] caja[20713]: segfault at 4 ip b6c4a354 sp bf89e130
error 4 in libcairo.so.2.11200.14[b6c30000+105000]
[81379.547965] caja[20720]: segfault at 4 ip b6bb2354 sp bffc8a70
error 4 in libcairo.so.2.11200.14[b6b98000+105000]
[81379.956304] caja[20726]: segfault at 4 ip b6c3b354 sp bf7fcd10
error 4 in libcairo.so.2.11200.14[b6c21000+105000]
[81380.371694] caja[20733]: segfault at 4 ip b6ba3354 sp bfff7640
error 4 in libcairo.so.2.11200.14[b6b89000+105000]
[81380.777331] caja[20739]: segfault at 4 ip b6c99354 sp bf8fc590
error 4 in libcairo.so.2.11200.14[b6c7f000+105000]
[81381.189908] caja[20745]: segfault at 4 ip b6c42354 sp bf8b6540
error 4 in libcairo.so.2.11200.14[b6c28000+105000]
[81381.602414] caja[20751]: segfault at 4 ip b6bed354 sp bff8e230
error 4 in libcairo.so.2.11200.14[b6bd3000+105000]
[81382.012342] caja[20757]: segfault at 4 ip b6c58354 sp bfd1b490
error 4 in libcairo.so.2.11200.14[b6c3e000+105000]
[81384.066865] show_signal_msg: 4 callbacks suppressed
[81384.066871] caja[20793]: segfault at 4 ip b6c62354 sp bf944020
error 4 in libcairo.so.2.11200.14[b6c48000+105000]
[81384.485121] caja[20800]: segfault at 4 ip b6c1b354 sp bfafe000
error 4 in libcairo.so.2.11200.14[b6c01000+105000]
[81384.906726] caja[20806]: segfault at 4 ip b6bed354 sp bfc3c740
error 4 in libcairo.so.2.11200.14[b6bd3000+105000]
[81385.329138] caja[20814]: segfault at 4 ip b6c70354 sp bfe2a220
error 4 in libcairo.so.2.11200.14[b6c56000+105000]
[81385.744957] caja[20820]: segfault at 4 ip b6bae354 sp bffa1ee0
error 4 in libcairo.so.2.11200.14[b6b94000+105000]
[81386.162859] caja[20828]: segfault at 4 ip b6c7e354 sp bfe38900
error 4 in libcairo.so.2.11200.14[b6c64000+105000]
[81386.578000] caja[20835]: segfault at 4 ip b6bcc354 sp bfab70a0
error 4 in libcairo.so.2.11200.14[b6bb2000+105000]
[81386.987159] caja[20842]: segfault at 4 ip b6c4d354 sp bfc86c10
error 4 in libcairo.so.2.11200.14[b6c33000+105000]
[81387.411380] caja[20849]: segfault at 4 ip b6bda354 sp bfcd1980
error 4 in libcairo.so.2.11200.14[b6bc0000+105000]
[81387.825174] caja[20856]: segfault at 4 ip b6bc5354 sp bfe7e820
error 4 in libcairo.so.2.11200.14[b6bab000+105000]
[81389.518576] show_signal_msg: 3 callbacks suppressed
[81389.518583] caja[20882]: segfault at 4 ip b6bd5354 sp bfef3050
error 4 in libcairo.so.2.11200.14[b6bbb000+105000]
[81389.940312] caja[20888]: segfault at 4 ip b6bd5354 sp bfbe0e00
error 4 in libcairo.so.2.11200.14[b6bbb000+105000]
[81390.378112] caja[20895]: segfault at 4 ip b6be2354 sp bfb28120
error 4 in libcairo.so.2.11200.14[b6bc8000+105000]
[81390.792151] caja[20902]: segfault at 4 ip b6c57354 sp bff53a00
error 4 in libcairo.so.2.11200.14[b6c3d000+105000]
[81391.219054] caja[20909]: segfault at 4 ip b6c43354 sp bf9fe240
error 4 in libcairo.so.2.11200.14[b6c29000+105000]
[81391.629936] caja[20915]: segfault at 4 ip b6c31354 sp bff8c570
error 4 in libcairo.so.2.11200.14[b6c17000+105000]
[81392.048725] caja[20921]: segfault at 4 ip b6c07354 sp bfb48af0
error 4 in libcairo.so.2.11200.14[b6bed000+105000]
[81392.476106] caja[20928]: segfault at 4 ip b6be3354 sp bfb72a30
error 4 in libcairo.so.2.11200.14[b6bc9000+105000]
[81392.887151] caja[20935]: segfault at 4 ip b6c77354 sp bfe27c90
error 4 in libcairo.so.2.11200.14[b6c5d000+105000]
[81393.318212] caja[20941]: segfault at 4 ip b6c3c354 sp bfc4b330
error 4 in libcairo.so.2.11200.14[b6c22000+105000]
[81394.982914] show_signal_msg: 3 callbacks suppressed
[81394.982921] caja[20969]: segfault at 4 ip b6c3c354 sp bf859ec0
error 4 in libcairo.so.2.11200.14[b6c22000+105000]
[81395.400559] caja[20976]: segfault at 4 ip b6c7c354 sp bff98a70
error 4 in libcairo.so.2.11200.14[b6c62000+105000]
[81395.815635] caja[20982]: segfault at 4 ip b6bfb354 sp bfb66060
error 4 in libcairo.so.2.11200.14[b6be1000+105000]
[81396.248340] caja[20990]: segfault at 4 ip b6bd9354 sp bfa8afa0
error 4 in libcairo.so.2.11200.14[b6bbf000+105000]
[81689.602325] caja[24386]: segfault at 4 ip b6bb3354 sp bf865a00
error 4 in libcairo.so.2.11200.14[b6b99000+105000]
[81690.035308] caja[24396]: segfault at 4 ip b6ba0354 sp bff25230
error 4 in libcairo.so.2.11200.14[b6b86000+105000]
[81690.466961] caja[24403]: segfault at 4 ip b6c9b354 sp bfc55c80
error 4 in libcairo.so.2.11200.14[b6c81000+105000]
[81690.899431] caja[24409]: segfault at 4 ip b6c36354 sp bfef0a00
error 4 in libcairo.so.2.11200.14[b6c1c000+105000]
[81691.327717] caja[24419]: segfault at 4 ip b6c76354 sp bfb821a0
error 4 in libcairo.so.2.11200.14[b6c5c000+105000]
[81691.760265] caja[24425]: segfault at 4 ip b6c01354 sp bfb0f160
error 4 in libcairo.so.2.11200.14[b6be7000+105000]
[81692.180868] caja[24431]: segfault at 4 ip b6c8d354 sp bf862a40
error 4 in libcairo.so.2.11200.14[b6c73000+105000]
[81692.599252] caja[24438]: segfault at 4 ip b6c9e354 sp bfcf3550
error 4 in libcairo.so.2.11200.14[b6c84000+105000]
[81693.041315] caja[24447]: segfault at 4 ip b6ba8354 sp bfae6b50
error 4 in libcairo.so.2.11200.14[b6b8e000+105000]
[81693.487237] caja[24455]: segfault at 4 ip b6be1354 sp bf903b50
error 4 in libcairo.so.2.11200.14[b6bc7000+105000]
[81695.443350] show_signal_msg: 3 callbacks suppressed
[81695.443357] caja[24481]: segfault at 4 ip b6bed354 sp bfd05a00
error 4 in libcairo.so.2.11200.14[b6bd3000+105000]
[81695.877570] caja[24487]: segfault at 4 ip b6c80354 sp bfdbcd20
error 4 in libcairo.so.2.11200.14[b6c66000+105000]
[81696.327861] caja[24494]: segfault at 4 ip b6bff354 sp bfc95520
error 4 in libcairo.so.2.11200.14[b6be5000+105000]
[81697.004469] caja[24500]: segfault at 4 ip b6bb9354 sp bfb13910
error 4 in libcairo.so.2.11200.14[b6b9f000+105000]
[81697.430036] caja[24507]: segfault at 4 ip b6c3e354 sp bfe30870
error 4 in libcairo.so.2.11200.14[b6c24000+105000]
[81697.846056] caja[24513]: segfault at 4 ip b6c97354 sp bfdc5a40
error 4 in libcairo.so.2.11200.14[b6c7d000+105000]
[81698.341612] caja[24520]: segfault at 4 ip b6c51354 sp bfb883a0
error 4 in libcairo.so.2.11200.14[b6c37000+105000]
[81698.872968] caja[24528]: segfault at 4 ip b6bb2354 sp bfa61a40
error 4 in libcairo.so.2.11200.14[b6b98000+105000]
[81699.301886] caja[24534]: segfault at 4 ip b6bd4354 sp bfedb380
error 4 in libcairo.so.2.11200.14[b6bba000+105000]
[81699.713521] caja[24540]: segfault at 4 ip b6c5b354 sp bfd6f580
error 4 in libcairo.so.2.11200.14[b6c41000+105000]
[81700.997340] show_signal_msg: 2 callbacks suppressed
[81700.997352] caja[24563]: segfault at 4 ip b6ba2354 sp bf96e530
error 4 in libcairo.so.2.11200.14[b6b88000+105000]
[81701.423965] caja[24569]: segfault at 4 ip b6c42354 sp bf948d00
error 4 in libcairo.so.2.11200.14[b6c28000+105000]
[81701.834499] caja[24577]: segfault at 4 ip b6c05354 sp bfde9d20
error 4 in libcairo.so.2.11200.14[b6beb000+105000]
[81702.259973] caja[24584]: segfault at 4 ip b6c50354 sp bfd55010
error 4 in libcairo.so.2.11200.14[b6c36000+105000]
[81702.669444] caja[24594]: segfault at 4 ip b6c65354 sp bffda220
error 4 in libcairo.so.2.11200.14[b6c4b000+105000]
[81703.098792] caja[24600]: segfault at 4 ip b6bc8354 sp bf890c90
error 4 in libcairo.so.2.11200.14[b6bae000+105000]
[81703.527056] caja[24608]: segfault at 4 ip b6c8a354 sp bff59e60
error 4 in libcairo.so.2.11200.14[b6c70000+105000]
[81703.959529] caja[24615]: segfault at 4 ip b6b9f354 sp bf8d9330
error 4 in libcairo.so.2.11200.14[b6b85000+105000]
[81704.382995] caja[24623]: segfault at 4 ip b6bbb354 sp bfeb29a0
error 4 in libcairo.so.2.11200.14[b6ba1000+105000]
[81704.808076] caja[24629]: segfault at 4 ip b6be2354 sp bfd02ca0
error 4 in libcairo.so.2.11200.14[b6bc8000+105000]
[81706.707874] show_signal_msg: 3 callbacks suppressed
[81706.707880] caja[24655]: segfault at 4 ip b6c69354 sp bfef26e0
error 4 in libcairo.so.2.11200.14[b6c4f000+105000]
[81707.127015] caja[24662]: segfault at 4 ip b6bff354 sp bfda7f70
error 4 in libcairo.so.2.11200.14[b6be5000+105000]
[81707.538577] caja[24668]: segfault at 4 ip b6c94354 sp bf8519b0
error 4 in libcairo.so.2.11200.14[b6c7a000+105000]
[81708.145646] caja[24680]: segfault at 4 ip b6bde354 sp bf964dc0
error 4 in libcairo.so.2.11200.14[b6bc4000+105000]
[81708.693918] caja[24688]: segfault at 4 ip b6bf1354 sp bfcf9120
error 4 in libcairo.so.2.11200.14[b6bd7000+105000]
[81709.110526] caja[24696]: segfault at 4 ip b6c76354 sp bfc83730
error 4 in libcairo.so.2.11200.14[b6c5c000+105000]
[81709.520826] caja[24702]: segfault at 4 ip b6c32354 sp bffea830
error 4 in libcairo.so.2.11200.14[b6c18000+105000]
[81709.943069] caja[24712]: segfault at 4 ip b6c83354 sp bfa10240
error 4 in libcairo.so.2.11200.14[b6c69000+105000]
[81710.367314] caja[24719]: segfault at 4 ip b6c87354 sp bff48920
error 4 in libcairo.so.2.11200.14[b6c6d000+105000]
[81710.819219] caja[24727]: segfault at 4 ip b6be9354 sp bf984a40
error 4 in libcairo.so.2.11200.14[b6bcf000+105000]
[81712.572600] show_signal_msg: 3 callbacks suppressed
[81712.572609] caja[24756]: segfault at 4 ip b6c33354 sp bf828ae0
error 4 in libcairo.so.2.11200.14[b6c19000+105000]
[81713.038743] caja[24764]: segfault at 4 ip b6c67354 sp bfabc050
error 4 in libcairo.so.2.11200.14[b6c4d000+105000]
[81713.680145] caja[24773]: segfault at 4 ip b6c50354 sp bf9d8590
error 4 in libcairo.so.2.11200.14[b6c36000+105000]
[81714.195693] caja[24780]: segfault at 4 ip b6ba6354 sp bfd14a20
error 4 in libcairo.so.2.11200.14[b6b8c000+105000]
[81714.644149] caja[24787]: segfault at 4 ip b6c83354 sp bfe8f050
error 4 in libcairo.so.2.11200.14[b6c69000+105000]
[81715.124489] caja[24794]: segfault at 4 ip b6be5354 sp bff2a8e0
error 4 in libcairo.so.2.11200.14[b6bcb000+105000]
[81715.853066] caja[24802]: segfault at 4 ip b6bbe354 sp bfcb0600
error 4 in libcairo.so.2.11200.14[b6ba4000+105000]

FYI, i'm using cairo-1.12.14

Willy Sudiarto Raharjo
Personal Blog : http://willysr.blogspot.com
Linux Blog: http://slackblogs.blogspot.com

@willysr
Copy link
Member Author

willysr commented Apr 10, 2013

caja
Here's a screenshot when multiple caja instances are started up until Maximum number of clients reached

@willysr
Copy link
Member Author

willysr commented Apr 10, 2013

More info on the console after logging out MATE

(caja:24802): Gdk-CRITICAL **: IA__gdk_cairo_create: assertion
`GDK_IS_DRAWABLE (drawable)' failed

Willy Sudiarto Raharjo
Personal Blog : http://willysr.blogspot.com
Linux Blog: http://slackblogs.blogspot.com

@raymerjacque
Copy link

uhm, where do you create this entry with --sync ?

@willysr
Copy link
Member Author

willysr commented Apr 12, 2013

uhm, where do you create this entry with --sync ?

/usr/share/applications/caja.desktop

Willy Sudiarto Raharjo
Personal Blog : http://willysr.blogspot.com
Linux Blog: http://slackblogs.blogspot.com

@raymerjacque
Copy link

Worked like a charm, many thnx, ive been struggling for days to fix this :)

@stefano-k
Copy link
Collaborator

@willysr is this issue always reproducible on slackware?

@willysr
Copy link
Member Author

willysr commented Apr 13, 2013

@willysr is this issue always reproducible on slackware?

Not always
when i tried to set up a clean VM, the bug is gone
i think it happened when users have other DE installed and the
configuration might impact on how MATE is started

Willy Sudiarto Raharjo
Personal Blog : http://willysr.blogspot.com
Linux Blog: http://slackblogs.blogspot.com

@stefano-k
Copy link
Collaborator

@willysr did you try to enable caja debug log?

@willysr
Copy link
Member Author

willysr commented Apr 13, 2013

@willysr did you try to enable caja debug log?

I did and i had posted them before on this bug report as well

Willy Sudiarto Raharjo
Personal Blog : http://willysr.blogspot.com
Linux Blog: http://slackblogs.blogspot.com

@stefano-k
Copy link
Collaborator

@willysr uhm, I dont see ~/caja-debug-log.txt up. Am I wrong?

@willysr
Copy link
Member Author

willysr commented Apr 14, 2013

@willysr uhm, I dont see ~/caja-debug-log.txt up. Am I wrong?

Well, i tried making caja-debug-log.conf with these values

[debug log]
max lines = 1000
enable domains = async

and when i restarted my MATE without using --sync, caja instances are
multiplied times and i don't see any caja-debug-log.txt on my home
directory

Willy Sudiarto Raharjo
Personal Blog : http://willysr.blogspot.com
Linux Blog: http://slackblogs.blogspot.com

@willysr
Copy link
Member Author

willysr commented Apr 14, 2013

Does this info gives you more debug information?

Initializing caja-open-terminal extension
** Message: Initializing gksu extension...
Initializing caja-image-converter extension
The program 'caja' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
(Details: serial 7 error_code 9 request_code 53 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

Willy Sudiarto Raharjo
Personal Blog : http://willysr.blogspot.com
Linux Blog: http://slackblogs.blogspot.com

@raveit65
Copy link
Member

Today it happend again after session start with one caja window, i use caja -n in desktop file.
This i found in .xsession-errors.

sys:1: Warning: g_hash_table_foreach: assertion version == hash_table->version' failed sys:1: Warning: g_object_unref: assertionG_IS_OBJECT (object)' failed

sys:1: GtkWarning: IA__gtk_container_foreach: assertion `GTK_IS_CONTAINER (container)' failed

Some days ago it happend during the session with tons of windows and unstoppable.
Restarting session didn't help, i need to restart the system.
.xsession-errors
https://dl.dropboxusercontent.com/u/49862637/Mate-desktop/Bugs/.xsession-errors.old

@willysr
Copy link
Member Author

willysr commented May 18, 2013

how about changing it to --sync instead of -n ?

@raymerjacque
Copy link

The fix for this should be to delete the nautilus.desktop file on
"/usr/share/applications/"

That is how i fixed it previously, an update may have replaced that file.

On Sat, May 18, 2013 at 9:48 AM, Willy Sudiarto Raharjo <
notifications@github.com> wrote:

how about changing it to --sync instead of -n ?


Reply to this email directly or view it on GitHubhttps://github.com//pull/101#issuecomment-18096761
.

Regards*
*

Banking Details :
Bank : First National Bank
Account Name : Jacque M Raymer
Account Type : Cheque
Account Number : 62236672326
Branch Code : 210317
Branch : Rink Street.

@willysr
Copy link
Member Author

willysr commented May 18, 2013

i don't have nautilus.desktop on /usr/share/applications here

@raveit65
Copy link
Member

i add -n in /usr/share/applications/caja.desktop, exec line
Means no default window.
@raymerjacque Why nautilus.desktop?

@raymerjacque
Copy link

the problem previously was that both caja and nautilus were starting up
together, removing nautilus startup entry fixed the problem, have you tried
deleting the caja entry ? it should be called something like
"caja-mate.desktop" or something along those lines.

On Sat, May 18, 2013 at 10:08 AM, Wolfgang Ulbrich <notifications@github.com

wrote:

i add -n in /usr/share/applications/nautilus.desktop, exec line
Means no default window.
But i will check if we could the desktop file complete.


Reply to this email directly or view it on GitHubhttps://github.com//pull/101#issuecomment-18096964
.

Regards*
*

Banking Details :
Bank : First National Bank
Account Name : Jacque M Raymer
Account Type : Cheque
Account Number : 62236672326
Branch Code : 210317
Branch : Rink Street.

@raymerjacque
Copy link

You can read about the issue here as well :

mate-desktop/mate-session-manager#19

if one of the methods work for you, please let me know so i can update the
FAQ for any future users who experience this problem.

On Sat, May 18, 2013 at 10:43 AM, Jacque Raymer raymerjacque@gmail.comwrote:

the problem previously was that both caja and nautilus were starting up
together, removing nautilus startup entry fixed the problem, have you tried
deleting the caja entry ? it should be called something like
"caja-mate.desktop" or something along those lines.

On Sat, May 18, 2013 at 10:08 AM, Wolfgang Ulbrich <
notifications@github.com> wrote:

i add -n in /usr/share/applications/nautilus.desktop, exec line
Means no default window.
But i will check if we could the desktop file complete.


Reply to this email directly or view it on GitHubhttps://github.com//pull/101#issuecomment-18096964
.

Regards*
*

Banking Details :
Bank : First National Bank
Account Name : Jacque M Raymer
Account Type : Cheque
Account Number : 62236672326
Branch Code : 210317
Branch : Rink Street.

Regards*
*

Banking Details :
Bank : First National Bank
Account Name : Jacque M Raymer
Account Type : Cheque
Account Number : 62236672326
Branch Code : 210317
Branch : Rink Street.

@raveit65
Copy link
Member

removing /usr/share/applications/caja.desktop was a bad idea because than Mate session starts without 'caja hande the desktop', no desktop background and right click menu.

"the problem previously was that both caja and nautilus were starting up together, removing nautilus startup entry fixed the problem"
that's weird, because here in fedora /etc/Xdg/autostart/nautilus-autostart.desktop use 'OnlyShowIn=GNOME;Unity;'
Which means nautilus starts only in gnome or unity session.
But this gives me another idea.
I will try:

  1. removing in /usr/share/caja.desktop
  2. creating a /etc/Xdg/autostart/caja-autostart.desktop

[Desktop Entry]
Type=Application
Name=Caja Desktop
Comment=Start Caja desktop at log in
Exec=caja -n
OnlyShowIn=MATE;
NoDisplay=true

@raveit65
Copy link
Member

first restart of session works well, i will observe this further.

@raymerjacque
Copy link

ok, please explain step by step what you did to fix the problem.

On Sat, May 18, 2013 at 11:10 AM, Wolfgang Ulbrich <notifications@github.com

wrote:

first restart of session works well, i will observe this further.


Reply to this email directly or view it on GitHubhttps://github.com//pull/101#issuecomment-18097663
.

Regards*
*

Banking Details :
Bank : First National Bank
Account Name : Jacque M Raymer
Account Type : Cheque
Account Number : 62236672326
Branch Code : 210317
Branch : Rink Street.

@willysr
Copy link
Member Author

willysr commented May 18, 2013

I tested the above suggestion, but still no joy
multiple caja instances still exists
the only solution on my system is to use --sync

@raveit65
Copy link
Member

Ok.
The idea is not to use mate-session-daemon and /usr/share/caja.desktop for starting 'caja handle the desktop' in mate session. Same like gnome or cinnamon handle this.

  1. remove or save /usr/share/caja.desktop
  2. creating /etc/xdg/autostart/caja-autostart.desktop

-- pluma /etc/xdg/autostart/caja-autostart.desktop
-- include this lines in and save
[Desktop Entry]
Type=Application
Name=Caja Desktop
Comment=Start Caja desktop at log in
Exec=caja -n
OnlyShowIn=MATE;
NoDisplay=true

Now you will see this entry in autostart.
3. open dconf-editor and change those entrys.
In /org/mate/desktop/session/ change the key required-components-list to
['windowmanager', 'panel']
In /org/mate/desktop/sesssion/required-components/ remove caja from the key filemanager
(blank entry)

In result /etc/xdg/autostart/caja-autostart.desktop starts now caja and not mate-session-daemon.

It seems there is another positiv effect, imo the desktop starts faster.
But for really saying this is the solution i have to test this for some weeks.

@raveit65
Copy link
Member

@willysr
You need to do the dconf / gsettings stuff

@willysr
Copy link
Member Author

willysr commented May 18, 2013

No wonder i have no effect when testing the previous solution
i think i will wait until it appears in the released tarballs then

@stefano-k
Copy link
Collaborator

@NiceandGently with your solution, caja is not autorestarted if it crashes

@raveit65
Copy link
Member

@stefano-k
not if i add X-MATE-AutoRestart=true to /etc/xdg/autostart/caja-autostart.desktop. :-)

[Desktop Entry]
Type=Application
Name=Caja Desktop
Comment=Start Caja desktop at log in
Exec=caja -n
OnlyShowIn=MATE;
NoDisplay=true
X-MATE-Bugzilla-Bugzilla=MATE
X-MATE-Bugzilla-Product=caja
X-MATE-Bugzilla-Component=general
X-MATE-Bugzilla-Version=1.6.1
X-MATE-Autostart-Notify=true
X-MATE-AutoRestart=true
X-MATE-Provides=filemanager

@stefano-k
Copy link
Collaborator

@willysr issue is different from multiple x-caja-desktop windows at login. this issue is related to a caja crash on startup. mate-session restarts caja and it crashes again, causing an infinite loop.
I'm going to edit the pull request title to understand this difference

@stefano-k
Copy link
Collaborator

@willysr btw, a backtrace would be really useful

@willysr
Copy link
Member Author

willysr commented May 21, 2013

@stefano-k : I tried to make a backtrace using the information you gave me, but it didn't produce any backtrace
the only thing i can found is when i logged out from Mate to console (i'm using runlevel 3)

@raveit65
Copy link
Member

@willysr , @stefano-k
I found some interesting links about the issue with nautius, all from 2009
https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=485375
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/325973
https://bugzilla.gnome.org/show_bug.cgi?id=571417#c31
@willysr
Did you set the gsettings key '/org/mate/desktop/background/show-desktop-icons to false?

@stefano-k
Copy link
Collaborator

Closing, as this is not the right solution but only an hack

@stefano-k stefano-k closed this Jun 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multipla Caja instances During Startup
4 participants