segfault in thunar_window_image_preview_mode_changed
While misusing Thunar as image viewer in a directory with many pictures, I was looking for an option to show larger thumbnails. Toggling one pulldown menu "Image Preview Mode" crashed Thunar 20221225T012030.b90bf5c6:
(gdb) p *window
$5 = {__parent__ = {bin = {container = {widget = {parent_instance = {g_type_instance = {g_class = <error reading variable: Cannot access
memory at address 0x300002>}, ref_count = 1, qdata = 0x55b40b390c40}, priv = 0x400001}, priv = 0x3}, priv = 0x1}, priv = 0x400002}, provi
der_factory = 0x3, thunarx_preferences_providers = 0x0, bookmark_file = 0x400003, bookmarks = 0x3 = {<error reading variable: Cannot acce
ss memory at address 0x3>
(gdb) bt
#0 0x00007fada81c64b7 in g_type_check_instance_is_fundamentally_a (type_instance=type_instance@entry=0x3, fundamental_type=fundamental_t
ype@entry=0x50 [GObject]) at ../gobject/gtype.c:4091
#1 0x00007fada81a687b in g_object_get (_object=0x3, first_property_name=first_property_name@entry=0x55b40a0c5c47 "last-image-preview-vis
ible") at ../gobject/gobject.c:2678
#2 0x000055b40a0b21ca in thunar_window_image_preview_mode_changed (window=0x55b40ab43a60) at thunar-window.c:3784
I rarely use Thunar, and was not able to reproduce the crash.