Skip to content

Crash when switching views quickly

Submitted by Alexander Schwinn @alexxcons

Assigned to Xfce Bug Triage

Link to original bug (#16887)

Description

If "automatically expand list columns" is disabled, a crash can be triggered when switching views quickly by holding CTRL and pressing 1 and 2 in high frequency.

The following messages will be shown: (thunar:165269): thunar-CRITICAL **: 23:23:20.863: thunar_details_view_zoom_level_changed_reload_fixed_columns: assertion '(((extension ({ GTypeInstance __inst = (GTypeInstance) ((details_view)); GType __t = ((thunar_details_view_get_type ())); gboolean __r; if (!__inst) __r = (0); else if (__inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))' failed

backtrace: Thread 1 "thunar" received signal SIGSEGV, Segmentation fault. 0x000055555559c4ea in thunar_details_view_zoom_level_changed_reload_fixed_columns (data=0x555556985f30) at thunar-details-view.c:950 950 _thunar_return_val_if_fail (THUNAR_IS_DETAILS_VIEW (details_view), FALSE);

(gdb) bt
#0  0x000055555559c4ea in thunar_details_view_zoom_level_changed_reload_fixed_columns (data=0x555556985f30)
    at thunar-details-view.c:950
#1  0x00007ffff7492d79 in  () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#2  0x00007ffff6b6d4de in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff6b6d890 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff6b6d91f in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff6d7f05d in g_application_run () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x000055555557cc25 in main (argc=2, argv=0x7fffffffe168) at main.c:86

Version: git