"g_strstr_len: assertion 'haystack != NULL' failed" criticals when changing VM resolution
Description
I run a VM with QEMU/KVM. When I change the VM's resolution, I get criticals like this:
(thunar-volman:1775): GLib-CRITICAL **: 21:44:46.014: g_strstr_len: assertion 'haystack != NULL' failed
Debugging
Here's an example invocation that causes criticals: thunar-volman --device-added /sys/devices/virtual/input/input12/mouse2
It looks like the VM returns NULL
for the mouse-model:
#3 0x000055555570a270 in tvm_input_device_added (context=0x5060000f5d80) at tvm-input-device.c:92
92 if (g_strstr_len (id_model, -1, "Tablet") != NULL
(gdb) p id_model
$1 = (const gchar *) 0x0
Full backtrace:
#0 g_logv (log_domain=0x7ffff74013a1 "GLib", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=<optimized out>) at ../glib/glib/gmessages.c:1277
#1 0x00007ffff7345754 in g_log (log_domain=<optimized out>, log_level=<optimized out>, format=<optimized out>) at ../glib/glib/gmessages.c:1315
#2 0x00007ffff735d6d8 in g_strstr_len (haystack=<optimized out>, haystack_len=<optimized out>, needle=<optimized out>) at ../glib/glib/gstrfuncs.c:2742
#3 0x000055555570a270 in tvm_input_device_added (context=0x5060000f5d80) at tvm-input-device.c:92
#4 0x0000555555709131 in tvm_context_run (user_data=0x3b0) at tvm-context.c:91
#5 0x00007ffff7340199 in g_main_dispatch (context=0x510000000740) at ../glib/glib/gmain.c:3344
#6 0x00007ffff739f3bf in g_main_context_dispatch_unlocked (context=0x510000000740) at ../glib/glib/gmain.c:4152
#7 g_main_context_iterate_unlocked.isra.0 (context=0x510000000740, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4217
#8 0x00007ffff7340dc7 in g_main_loop_run (loop=0x50200006b030) at ../glib/glib/gmain.c:4419
#9 0x000055555570485c in main (argc=<optimized out>, argv=<optimized out>) at main.c:190
Version: e002fa33