! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Right-clicking any file/folder immediatly crashes thunar
Status:
RESOLVED: INVALID
Severity:
critical

Comments

Description João Sousa 2012-11-25 16:14:25 CET
Overview: Right-clicking any file/folder, either on the side pane or file/folder list, immediately crashes thunar.

Steps to Reproduce: Start thunar, right-click any file or folder.

Actual Results: thunar crashed, window closed.

Expected Results: file or folder actions menu

Build Date & Platform: thunar 1.5.3, 2012-11-25 on Debian Unstable/Sid Linux.

Doesn't Occur On Build: thunar 1.5.2, 2012-11-25 on Debian Unstable/Sid Linux.

Additional Information: The following is observed on the console:

$ thunar

(thunar:13401): Gtk-WARNING **: Refusing to add non-unique action 'ThunarUca::manage-actions' to action group 'ThunarWindow'
Segmentation fault
$

Sorry, don't know how to backtrace this. I may help if you guys tell me how to. Thank you.
Comment 1 Nick Schermer editbugs 2012-11-25 16:24:27 CET
Could you attach your uca.xml file (this contains the custom actions you've defined). Its located in ~/.config/Thunar/
Comment 2 Andrzej editbugs 2012-11-25 16:40:17 CET
Can you check linked libraries?

$ ldd `which thunar`

I had a similar (same?) problem and the reason was that thunar was linking in distribution's (old) libraries in /usr/lib instead of its newly built libraries in /usr/local/lib. Apparently there is some incompatibility between library versions.
Comment 3 João Sousa 2012-11-25 20:53:01 CET
Created attachment 4758 
~/.config/Thunar/uca.xml (custom actions config file)
Comment 4 João Sousa 2012-11-25 21:02:37 CET
Created attachment 4759 
ldd_which_thunar.txt

Result of the console command: ldd `which thunar`.
Comment 5 João Sousa 2012-11-25 21:06:03 CET
(In reply to comment #2)
> Can you check linked libraries?
> 
> $ ldd `which thunar`
> 
> I had a similar (same?) problem and the reason was that thunar was linking
> in distribution's (old) libraries in /usr/lib instead of its newly built
> libraries in /usr/local/lib. Apparently there is some incompatibility
> between library versions.

As you may check on the attached result, all my libs are pointing to /usr/lib/*. It worked fine with thunar 1.5.2 and earlier. I also built (as allways) thunar (and xfce) with ./configure --prefix=/usr. Something wrong?
Comment 6 Nick Schermer editbugs 2012-11-25 23:12:54 CET
To create a backtrace, read this: http://wiki.xfce.org/howto/debug. Compile 1.5.3 with debugging symbols first (--enable-debug).
Comment 7 João Sousa 2012-11-26 12:34:47 CET
Created attachment 4760 
backtrace_thunar_1.5.3.txt (Thunar 1.5.3 right-click crash backtrace)

Thunar 1.5.3 right-click crash backtrace with gdb debugger.
Comment 8 Nick Schermer editbugs 2012-11-26 12:53:13 CET
Mm the uca plugin shows no debugging symbols, are you sure you have no old uca-plugin on your system (from 1.5.2) and thunar has been restarted properly (log-out or run thunar -q to quit the running instances).
Comment 9 João Sousa 2012-11-26 13:08:46 CET
How can I make sure I have no old uca-plugin on my system? I have compiled Thunar and re-installed with:

$ ./configure --prefix=/usr --enable-debug
$ make
$ sudo make install

Thunar version gives:

$ thunar -V
Thunar 1.5.3 (Xfce 4.10)

Anyway, I made sure there were no other instances of Thunar running and made a second backtrace.
Comment 10 João Sousa 2012-11-26 13:09:54 CET
Created attachment 4761 
backtrace_thunar_1.5.3_#2.txt (Thunar 1.5.3 right-click crash backtrace, take 2)

Thunar 1.5.3 right-click crash backtrace, take 2, with gdb debugger.
Comment 11 Nick Schermer editbugs 2012-11-26 13:40:40 CET
Remove thunar 1.5.2 and make sure /usr/lib/x86_64-linux-gnu/thunarx-2/thunar-uca.so is removed and them install 1.5.3. With the 2nd backtrace there are also no debugging symbols (0x00007fffe17d7f49 in ?? often indicate its an optimized build).
Comment 12 João Sousa 2012-11-26 16:30:57 CET
(In reply to comment #11)
> Remove thunar 1.5.2 and make sure
> /usr/lib/x86_64-linux-gnu/thunarx-2/thunar-uca.so is removed and them
> install 1.5.3. With the 2nd backtrace there are also no debugging symbols
> (0x00007fffe17d7f49 in ?? often indicate its an optimized build).

It works now, Thank you! I have done as you said, uninstalled Thunar, had to manually remove /usr/lib/x86_64-linux-gnu/thunarx-2/thunar-uca.so. Installed again Thunar 1.5.3 and no more issues. Also after install I stil have the following plugins:

$ ls /usr/lib/x86_64-linux-gnu/thunarx-2/
thunar-apr.so                thunar-sbr.so
thunar-archive-plugin.so     thunar-wallpaper-plugin.so
thunar-media-tags-plugin.so

Should I delete any/all of them? Any idea why this problem existed? Shouldn't the 1.5.3 install take care of this plugin incompatibility?

Anyway, thank you for your help and excellent work on Thunar 1.5.3. It's way faster! Good Job! :)
Comment 13 Nick Schermer editbugs 2012-11-26 18:34:01 CET
Yes, if you install correctly it should overwrite the old plugins, but maybe make install does not have the permission to do so.
Comment 14 João Sousa 2012-11-26 21:53:41 CET
(In reply to comment #13)
> Yes, if you install correctly it should overwrite the old plugins, but maybe
> make install does not have the permission to do so.

Was my above install procedure incorrect in some way? How can I be sure that make install has the correct permissions?

Regarding the plugins located on /usr/lib/x86_64-linux-gnu/thunarx-2/ what should I do?
Comment 15 Nick Schermer editbugs 2012-11-26 22:55:09 CET
Walk through the make install output an look what it does. The apr, sbr and wallpaper .so files should be replaced with 1.5.3 versions (although nothing changed there between the two releases).
Comment 16 João Sousa 2012-11-26 23:12:41 CET
(In reply to comment #15)
> Walk through the make install output an look what it does. The apr, sbr and
> wallpaper .so files should be replaced with 1.5.3 versions (although nothing
> changed there between the two releases).

Thanks. I'll do that. Please bear with me, I noticed that newer version plugins, and thunar-uca.so were installed on /usr/lib/thunarx-2/

$ ls -la /usr/lib/thunarx-2/
total 1228
drwxr-xr-x   2 root root   4096 Nov 26 15:26 .
drwxr-xr-x 183 root root  69632 Nov 26 15:26 ..
-rwxr-xr-x   1 root root   1286 Nov 26 15:26 thunar-apr.la
-rwxr-xr-x   1 root root 200744 Nov 26 15:26 thunar-apr.so
-rwxr-xr-x   1 root root   1293 Nov 26 15:26 thunar-sbr.la
-rwxr-xr-x   1 root root 389557 Nov 26 15:26 thunar-sbr.so
-rwxr-xr-x   1 root root   1329 Nov 26 15:26 thunar-uca.la
-rwxr-xr-x   1 root root 351689 Nov 26 15:26 thunar-uca.so
-rw-r--r--   1 root root  46944 Aug  8  2011 thunar-vcs-plugin.so
-rwxr-xr-x   1 root root   1357 Nov 26 15:26 thunar-wallpaper-plugin.la
-rwxr-xr-x   1 root root  46664 Nov 26 15:26 thunar-wallpaper-plugin.so
-rwxr-xr-x   1 root root   1018 Nov 15 15:50 thunarx-python.la
-rwxr-xr-x   1 root root 106651 Nov 15 15:50 thunarx-python.so

Where the older are located on /usr/lib/x86_64-linux-gnu/thunarx-2/

$ ls -la /usr/lib/x86_64-linux-gnu/thunarx-2/
total 288
drwxr-xr-x  2 root root  4096 Nov 26 20:29 .
drwxr-xr-x 68 root root 69632 Nov 16 14:08 ..
-rw-r--r--  1 root root 38880 May  5  2012 thunar-apr.so
-rw-r--r--  1 root root 30560 Oct 28  2011 thunar-archive-plugin.so
-rw-r--r--  1 root root 59232 Nov 30  2011 thunar-media-tags-plugin.so
-rw-r--r--  1 root root 63456 May  5  2012 thunar-sbr.so
-rw-r--r--  1 root root 14304 May  5  2012 thunar-wallpaper-plugin.so

So, these should have been "replaced" or deleted/moved, since the newer plugins directory seems to be in use? Should this directory still exist or be deleted?
Comment 17 Nick Schermer editbugs 2012-11-26 23:33:00 CET
:-) in that case you can remove the old location.

Bug #9547

Reported by:
João Sousa
Reported on: 2012-11-25
Last modified on: 2012-11-26

People

Assignee:
Jannis Pohlmann
CC List:
2 users

Version

Attachments

Additional information