! 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 switching between tree and shortcut views repeatedly
Status:
RESOLVED: MOVED

Comments

Description Yousuf 'Jay' Philips 2020-03-07 20:45:47 CET
Steps:
1. open thunar
2. press Ctrl + B and then Ctrl + E to switch between shortcut and tree view
3. repeat step 2 until it crashes (should crash on the 8th time)

Confirmed on 1.8.9 and master
Comment 1 Yousuf 'Jay' Philips 2020-03-07 20:55:16 CET
Created attachment 9545 
backtrace
Comment 2 Yousuf 'Jay' Philips 2020-03-07 22:20:09 CET
Created attachment 9548 
backtrace with symbols
Comment 3 alexxcons editbugs 2020-03-08 01:16:44 CET
Thanks for reporting !

For me it is not even required to use Ctrl + B. It's sufficient to hold Ctrl + E to permanently add/remove the tree-view .. same backtrace.
Comment 4 Reuben Green editbugs 2020-03-08 01:30:55 CET
I can reproduce this on 1.8.12 and master. The number of changes needed varies quite a bit, but for me it seems to be 20-40. It seems like the crash always happens on Ctrl^B, and when I start thunar again after the crash it opens with tree view in the side pane, so maybe this is a bug somewhere in the chain of code that selects shortcuts view before the change gets saved?

Reproducing this a few times seems to yield the following pattern of errors: I do Ctrl^B and Ctrl^E a few times with no errors printed, until at some point hitting Ctrl^B yields the errors

GLib-GObject-WARNING **: 00:22:58.872: invalid cast from '(null)' to 'GObject'
GLib-GObject-CRITICAL **: 00:22:58.872: g_object_set: assertion 'G_IS_OBJECT (object)' failed

after which each Ctrl^E yields

GLib-GObject-WARNING **: 00:23:25.478: invalid unclassed pointer in cast to 'GObject'
GLib-GObject-CRITICAL **: 00:23:25.478: g_object_set: assertion 'G_IS_OBJECT (object)' failed

and each Ctrl^B yields

GLib-GObject-CRITICAL **: 00:23:32.777: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
GLib-GObject-WARNING **: 00:23:32.796: invalid uninstantiatable type '(null)' in cast to 'GObject'
GLib-GObject-CRITICAL **: 00:23:32.796: g_object_set: assertion 'G_IS_OBJECT (object)' failed

and then this pattern repeats until eventually one Ctrl^B yields a segfault.
Comment 5 Reuben Green editbugs 2020-03-08 01:36:46 CET
I can also get a crash from just doing Ctrl-E enough times, with similar errors printed to the console.
Comment 6 Git Bot editbugs 2020-05-26 23:48:45 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/284.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #16509

Reported by:
Yousuf 'Jay' Philips
Reported on: 2020-03-07
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Version:
1.8.11

Attachments

backtrace (4.76 KB, text/plain)
2020-03-07 20:55 CET , Yousuf 'Jay' Philips
no flags
backtrace with symbols (6.43 KB, text/plain)
2020-03-07 22:20 CET , Yousuf 'Jay' Philips
no flags

Additional information