rnote
rnote copied to clipboard
Saving file on external google drive crashes app
Describe the bug
When you try to save a document to a external drive (only tested for my case: google-drive://[email protected]/), the app crashes.
To Reproduce
Steps to reproduce the behavior:
- Open app
- Draw something
- Crtl-S
- Navigate to external drive
- Press Save
- App crashes
Expected behavior
File saved to the external drive
Console Output
$ flatpak --env=RUST_LOG=rnote=debug --env=RUST_BACKTRACE=1 run com.github.flxzt.rnote
2023-11-20T15:09:44.839Z DEBUG rnote > ... env_logger initialized
(rnote:2): Gtk-CRITICAL **: 16:09:45.363: gtk_widget_class_set_accessible_role: assertion '!gtk_accessible_role_is_abstract (accessible_role)' failed
(rnote:2): GLib-GIO-CRITICAL **: 16:10:21.202: g_file_get_path: assertion 'G_IS_FILE (file)' failed
Desktop (please complete the following information):
- OS: Fedora 39
- App Version: Rnote v0.9.1
- Installation Source: Flatpak
- Desktop Environment: Gnome 45.1
Additional context
I try to sync my files between devices using gdrive. Saving files on Windows using the gdrive drive (G:) provided by installing gdrive is functioning flawless. On my linux device, the gdrive provided by logging in with google in GNOME is not functioning.
I don't know if i should open a new issue for this but you also can't set it as a workspace path (" - no directory selected - " instead.
(rnote:2): Gtk-CRITICAL **: 16:26:30.917: gtk_widget_class_set_accessible_role: assertion '!gtk_accessible_role_is_abstract (accessible_role)' failed
(rnote:2): Gtk-CRITICAL **: 16:26:35.988: The layout manager of type GtkBoxLayout 0x55e58f3b4690 does not create GtkLayoutChild instances
(rnote:2): GLib-GIO-CRITICAL **: 16:27:00.308: g_file_get_path: assertion 'G_IS_FILE (file)' failed
(rnote:2): GLib-GObject-CRITICAL **: 16:27:00.308: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Aswell as a error for opening existing files.
(rnote:2): GLib-GIO-CRITICAL **: 16:33:13.519: g_file_query_info: assertion 'G_IS_FILE (file)' failed
(rnote:2): GLib-GIO-CRITICAL **: 16:33:13.519: g_file_info_get_file_type: assertion 'G_IS_FILE_INFO (info)' failed
2023-11-20T15:33:13.519Z WARN rnote::filetype > unknown file type
(rnote:2): GLib-GObject-CRITICAL **: 16:33:13.519: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(rnote:2): GLib-GObject-CRITICAL **: 16:33:13.519: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
2023-11-20T15:33:13.519Z ERROR rnote::appwindow > Opening file with dialogs failed, Err: tried to open unsupported file type
2023-11-20T15:33:13.531Z ERROR rnote::overlays > Opening file failed
They all seem related.
Can you test if this occurs in other gtk4/libadwaita based apps?
gtk3 apps work just fine.
I also tried opening files on celluloid, which works, only file/folder names are really weird.
The same for G4Music.
Apostrophe couldn't open nor save files. If you have any other potential app in mind, feel free to tell me.
what about gnom-text-editor @tipptop3d ? Also if you could be more clear about "weird file names" in other apps? It does sound like the sync app you're using does something special that most apps can't handle.
Also the error seems to be the same as in #926, so it might be the same underlying issue.