Bug 15577 - Caja crashes in KDE.
Summary: Caja crashes in KDE.
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Atilla ÖNTAŞ
QA Contact:
URL: https://github.com/mate-desktop/caja/...
Whiteboard: MGA4TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-27 01:50 CET by Renato Dali
Modified: 2015-04-20 16:01 CEST (History)
1 user (show)

See Also:
Source RPM: caja-1.8.2-2.mga5
CVE:
Status comment:


Attachments

Description Renato Dali 2015-03-27 01:50:41 CET
Caja does not start, crashing instead with an X error (shown ahead).

Steps to reproduce:

1. Install Mate on Mageia 5 RC 3 already with Xfce and KDE.
2. Log into KDE (not Mate).
3. Run "caja" in Konsole (because additionally Caja is not on KDE menu).
4. Caja crashes before starting and error messages are output to Konsole.

The error is the following:

=======================================================
[zz@localhost ~]$ caja
Initializing caja-open-terminal 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.)
[zz@localhost ~]$
=======================================================

Running caja with the --sync option makes it start normally without any error, as expected: images open with Gwenview, texts with Kwrite...
Comment 1 Renato Dali 2015-03-27 01:52:22 CET
I should add that Caja works as expected both in Mate and in Xfce.

Summary: Caja crashes. => Caja crashes in KDE.

Comment 2 Atilla ÖNTAŞ 2015-04-04 00:47:35 CEST
Ok. I confirm this bug which is reported and solved at upstream. I have backported upstream patch from caja-1.9.x. Will ask freeze push.

URL: (none) => https://github.com/mate-desktop/caja/issues/304
CC: (none) => tarakbumba
Assignee: bugsquad => tarakbumba
Source RPM: (none) => caja-1.8.2-2.mga5

Comment 3 Renato Dali 2015-04-04 04:15:57 CEST
Thank you.
Comment 4 Atilla ÖNTAŞ 2015-04-04 21:10:24 CEST
Renato, as you've said at bug#15604 that you've encountered this bug on Mageia 4 too; and i encountered same; i've pushed mate-file-manager-1.6.3-1.2.mga4 to Mageia 4 core/testing_updates repository. Would you mind to test it? I think it should also fix bug#15604 since with the patch applied caja no longer should try to manage KDE's desktop.

Whiteboard: (none) => MGA4TOO

Comment 5 Renato Dali 2015-04-05 03:51:33 CEST
Attila, it seemingly didn't hit the repos I use -- curiously, I have not any "Core Testing" repos, so I assumed you were talking about "Core Updates Testing" (there are 2 of them, in fact, which I didn't use before).

But I found it on the net on a French site, packaged by you -- but only x86_64. I'm using a 586 version (mainly due to having just 1GB in this production machine).

If you tell me how to find it, I'll tell which mirror I use.

There's no problem in testing it, because I don't really use Mate, so even if it breaks, I hope it won't affect other important gtk apps.
Comment 6 Atilla ÖNTAŞ 2015-04-05 12:00:59 CEST
Yeah. That should be core/updates_testing. Sorry. Btw,mate-file-manager-1.6.3-1.2.mga4 would hit the mirrors any time soon.
Comment 7 Renato Dali 2015-04-06 02:56:43 CEST
Hi, Attila, don't sweat it: my intention was just ask, I don't want to complain. As soon as the update comes, I'm sure to give it a go.

I also get somewhat confused, because there are some three "Core Updates Testing" right now (from Distrib5 to Distrib95). Actually, there are others yet...

Anyway, I'm installing it and will test it with the newly created user in a few moments...

Thanks for your interest.
Comment 8 Renato Dali 2015-04-06 03:48:30 CEST
Well, it worked. Kinda.

With updated package, Caja no longer crashes. It opens regularly when called from Konsole and can be closed as any other application. Also, "caja --sync" works the same way as running caja -- no messages, no errors.

All good and nice, but unfortunately Caja still crashes in Cauldron (it's on 1.8.2 or something). I suppose 1.9 will fix that, but as it is -- and in spite of your success in making stop crashing in 4, note that this bug was opened about Cauldron.

I think we should wait for Cauldron to be fixed, too, before closing it.
Comment 9 Atilla ÖNTAŞ 2015-04-06 09:39:59 CEST
Thank you Renato for testing. I noticed a security issue for Caja and its automount feature. Working on that security issue before ask for a fixed freeze push. Also, if sysadmins and qa team agree, i intend to push whole Mate 1.10.0, which is released today (includes the fix), to Cauldron.
Comment 10 Renato Dali 2015-04-07 01:24:47 CEST
That would be great, since you already solved it in Mageia 4.

Thanks BTW.
Comment 11 Atilla ÖNTAŞ 2015-04-20 10:46:25 CEST
Renato, updated caja-1.8.2-3.mga5 has been pushed to repos. Would you mind to test for Cauldron also? If this issue is fixed with the new caja for your Cauldron install then please close this bug report. Thank you.
Comment 12 Renato Dali 2015-04-20 16:01:55 CEST
Thanks, Attila, it is working perfectly in Cauldron, too. I'm closing bug 15577 .

Three observations ():

1) Caja is not available on the KDE menu, nor is Dolphin present on Xfce. In both cases, I need to call them from bash. Probably by design.

2) Prior to Caja, two extensions are launched (open-terminal and convert-image or something like that). Closing Caja does not close these, so I must Ctrl-C them. Maybe this is by design, too.

3) For single-clickers, Caja seems better than Thunar (in which a window/file is just selected instead of also being opened on the first-click after regaining focus). I'm trying it with Xfce. I realize this is a source of headaches for devs... :-)

Attila, thank you. Please keep up the good work.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.