Problem wrapping GWin32AppInfo
I am encountering crashes in some situations when I try to use Gio::AppInfo
on Windows.
Something like this will cause a crash:
const auto appInfoList = Gio::AppInfo::get_all();
for (const auto & appInfo : appInfoList) {
appInfo->get_id(); // Crash here.
}
A demo from gtkmm also crashes (in the loop): https://gitlab.gnome.org/GNOME/gtkmm/-/blob/master/demos/gtk-demo/example_listview_applauncher.cc#L40-54
There is a warning before the crash:
** (gtkmm-demo.exe:6992): WARNING **: 22:14:33.268: Failed to wrap object of type 'GWin32AppInfo'. Hint: this error is commonly caused by failing to call a library init() function.
Tested on Windows 10 using MSYS2 with glibmm 2.66.1 as well as compiled from master branch. Plain glib works fine.