! 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 !
Thunar crashes when scrolling or clicking on saved directories
Status:
RESOLVED: WONTFIX
Severity:
critical
Product:
Thunar-vfs
Component:
General

Comments

Description Cam Macdonell 2007-02-05 18:12:07 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.1) Gecko/20061208 Firefox/2.0.0.1
Build Identifier: 

If I scroll down after the window opens, it crashes.  Or if I click on a saved directory in the left panel, that crashes too.  I can click on the path components across the top with problem.

Reproducible: Always

Steps to Reproduce:
1.  Start Thunar
2.  Scroll down OR click on a saved directory in the left panel.  Both crash it.
3.

Actual Results:  
Thunar crashes

Expected Results:  
Thunar should not crash

Scientific Linux kernel=2.6.9-22.0.2.EL x86_64
pango-1.14
glib-2.12.0
gtk+-2.10.9
cairo-1.2.6
Comment 1 Cam Macdonell 2007-02-05 18:14:34 CET
Created attachment 984 
This is a backtrace and printer the 'info' pointer which is NULL

I suspect this may be a library issue, perhaps differences between versions.
Comment 2 Benedikt Meurer editbugs 2007-02-12 18:34:02 CET
Can you check on which file it crashes? I.e. add a debug message to thunar_icon_factory_load_file_icon() and print the file name/path.
Comment 3 Cam Macdonell 2007-02-12 23:25:36 CET
(In reply to comment #2)
> Can you check on which file it crashes? I.e. add a debug message to
> thunar_icon_factory_load_file_icon() and print the file name/path.
> 
[Thread debugging using libthread_db enabled]
[New Thread 182922903072 (LWP 25214)]
[New Thread 1084229984 (LWP 25217)]
[New Thread 1094719840 (LWP 25218)]
[New Thread 1105209696 (LWP 25219)]
[New Thread 1115699552 (LWP 25220)]
File path is main.c

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182922903072 (LWP 25214)]
IA__thunar_vfs_thumb_factory_lookup_thumbnail (factory=Variable "factory" is not available.
) at thunar-vfs-thumb.c:701
701           if (thunar_vfs_thumbnail_is_valid (path, uri, info->mtime))
(gdb) where
#0  IA__thunar_vfs_thumb_factory_lookup_thumbnail (factory=Variable "factory" is not available.
) at thunar-vfs-thumb.c:701
#1  0x000000000043839a in thunar_icon_factory_load_file_icon (factory=0x635000, file=0x87e520, icon_state=THUNAR_FILE_ICON_STATE_DEFAULT, icon_size=48)
    at thunar-icon-factory.c:957
#2  0x0000000000438ba7 in thunar_icon_renderer_render (renderer=0x725230, window=0x8051d0, widget=0x73e000, background_area=Variable "background_area" is not available.
) at thunar-icon-renderer.c:384
#3  0x0000002a957b4a85 in exo_icon_view_paint_item (icon_view=0x73e000, item=0x888d80, area=0x7fbfffec00, drawable=0x8051d0, x=7, y=7, draw_focus=1) at exo-icon-view.c:3624
#4  0x0000002a957b9cd8 in exo_icon_view_expose_event (widget=0x73e000, event=0x7fbffff2a0) at exo-icon-view.c:1717
#5  0x0000002a95a0b908 in _gtk_marshal_BOOLEAN__BOXED (closure=0x613f20, return_value=0x7fbfffede0, n_param_values=Variable "n_param_values" is not available.
) at gtkmarshalers.c:84
#6  0x0000002a964ede59 in IA__g_closure_invoke (closure=0x613f20, return_value=0x7fbfffede0, n_param_values=2, param_values=0x7fbfffef70, invocation_hint=0x7fbfffee10)
    at gclosure.c:490
#7  0x0000002a9650201c in signal_emit_unlocked_R (node=0x613c90, detail=0, instance=0x73e000, emission_return=0x7fbfffeef0, instance_and_params=0x7fbfffef70) at gsignal.c:2476
#8  0x0000002a96502959 in IA__g_signal_emit_valist (instance=0x73e000, signal_id=Variable "signal_id" is not available.
) at gsignal.c:2207
#9  0x0000002a96502f63 in IA__g_signal_emit (instance=Variable "instance" is not available.
) at gsignal.c:2241
#10 0x0000002a95b131a0 in gtk_widget_event_internal (widget=0x73e000, event=0x7fbffff2a0) at gtkwidget.c:3915
#11 0x0000002a95a0a27d in IA__gtk_main_do_event (event=0x7fbffff2a0) at gtkmain.c:1527
#12 0x0000002a95ea6502 in gdk_window_process_updates_internal (window=0x8051d0) at gdkwindow.c:2333
#13 0x0000002a95ea65cb in IA__gdk_window_process_all_updates () at gdkwindow.c:2396
#14 0x0000002a95984654 in gtk_container_idle_sizer (data=Variable "data" is not available.
) at gtkcontainer.c:1113
#15 0x0000002a96782067 in IA__g_main_context_dispatch (context=0x5e8930) at gmain.c:2043
#16 0x0000002a96783a98 in g_main_context_iterate (context=0x5e8930, block=487312576, dispatch=1, self=Variable "self" is not available.
) at gmain.c:2675
#17 0x0000002a96783dfa in IA__g_main_loop_run (loop=0x817970) at gmain.c:2879
#18 0x0000002a95a094e1 in IA__gtk_main () at gtkmain.c:1148
#19 0x000000000041c27f in main (argc=1, argv=0x7fbffff5a8) at main.c:243
Comment 4 Cam Macdonell 2007-02-13 17:43:33 CET
To explain a bit further...

I added the printf of the filename and parent directory at line 958 of thunar-icon-factory.c.  It is not always the same file that crashes Thunar.
But info seems to be a valid pointer in thunar_icon_factory_load_file_icon() but becomes null after it is passed to thunar_vfs_thumb_factory_lookup_thumbnail(). 

Cam
Comment 5 Kevin Day 2009-03-20 20:55:59 CET
I am not certain this is the exact same problem, but the symptoms are pretty much the same.

For Thunar 0.9.* (under xfce4.4) and Thunar 1.0.* (under xfce 4.6), the thunar file manager crashes when scrolling or otherwise viewing a thumbnail.

My test reveal that it seem to randomly crash on thumbnail generation for PNG files only. (JPEG files do not cause this problem)

The crash happens somewhere near the end of the generation as the thumbnail does finish getting generated.

Lets I had a folder with 10 PNG files in the folder, thunar might crash lets say for about 5 of them.

Of those 5, the first one it reaches, the thumbnail is generated and thunar crashes.  When I open the folder again, the PNG file that caused the crash the first time around no longer crashes and properly shows the thumbnail, leaving only 4 remaining PNG files that will crash thunar.

This process can be repeated until all 5 have been generated and then the crashing will never happen again for those 5 files.

Copying one of those PNG files anywhere will generate a new thumbnail and will therefore crash again.
Comment 6 Nick Schermer editbugs 2014-12-03 09:18:54 CET
Close bug reports of archived products.

Bug #2868

Reported by:
Cam Macdonell
Reported on: 2007-02-05
Last modified on: 2014-12-03

People

Assignee:
Jannis Pohlmann
CC List:
2 users

Version

Version:
unspecified

Attachments

This is a backtrace and printer the 'info' pointer which is NULL (6.09 KB, application/octet-stream)
2007-02-05 18:14 CET , Cam Macdonell
no flags

Additional information