(thunar:28824): thunar-uca-WARNING **: 23:06:35.500: Unknown element ignored: <submenu>Thread 1 "thunar" received signal SIGTRAP, Trace/breakpoint trap.0x00007ffff706d9ba in g_logv () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(gdb) bt#0 0x00007ffff706d9ba in g_logv () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0#1 0x00007ffff706dc6f in g_log () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0#2 0x00007fffed2bf0ed in () at /usr/lib/x86_64-linux-gnu/thunarx-3/thunar-uca.so#3 0x00007ffff7069a04 in () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0#4 0x00007ffff706a9fd in g_markup_parse_context_parse () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0#5 0x00007fffed2bf8ce in () at /usr/lib/x86_64-linux-gnu/thunarx-3/thunar-uca.so#6 0x00007ffff718250a in g_type_create_instance () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0#7 0x00007ffff7166dfd in () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0#8 0x00007ffff716838d in g_object_new_with_properties () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0#9 0x00007ffff7168d41 in g_object_new () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0#10 0x00007fffed2be131 in () at /usr/lib/x86_64-linux-gnu/thunarx-3/thunar-uca.so#11 0x00007fffed2c004e in () at /usr/lib/x86_64-linux-gnu/thunarx-3/thunar-uca.so#12 0x00007ffff718250a in g_type_create_instance () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0#13 0x00007ffff7166dfd in () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0#14 0x00007ffff716838d in g_object_new_with_properties () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0#15 0x00007ffff7168d41 in g_object_new () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0#16 0x00007ffff7fbd37c in thunarx_provider_factory_list_providersPython Exception <class 'gdb.error'> No type named TypeNode.: (factory=0x5555557abb90, type=) at thunarx-provider-factory.c:335#17 0x000055555561b20f in thunar_window_init (window=0x555555826530) at thunar-window.c:732#18 0x00007ffff718250a in g_type_create_instance () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0#19 0x00007ffff7166dfd in () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0#20 0x00007ffff71687e8 in g_object_new_valist () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0#21 0x00007ffff7168d19 in g_object_new () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0#22 0x000055555558d65d in thunar_application_open_window
/* use or allocate a new module for the file */ if (G_UNLIKELY (lp != NULL)) { /* just use the existing module */ module = THUNARX_PROVIDER_MODULE (lp->data); } else { /* allocate the new module and add it to our list */ module = thunarx_provider_module_new (name); thunarx_provider_modules = g_list_prepend (thunarx_provider_modules, module); }
yestaday, i change continue; to module = THUNARX_PROVIDER_MODULE (lp->data); this problem seem disapear, but menu item dumplicate
Yes, I noticed this also. When Thunar --daemon is run, the first time Thunar is opened I see the terminal and search entries in the menu, but the second time I open Thunar, these are missing. They are missing from the right-click menu and also the File menu. Also the F4 shortcut (for open a terminal) doesn't work. This is 4.17.8.
I think the trick is, that thunarx_provider_factory_add has to be called once for each instance of thunarx-provide-factory. (New thunar window?) While the loading of the modules itself has to happen only once at all. (static variables)
Attached a hack which makes the module laoding work again in the described testcase, though I did not have time so far to look for that "provide cache cleanup" and the unloading of non-persistant modules (whatever that is good for).