Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save-file dialog crashes #648

Closed
LuNeder opened this issue Apr 25, 2023 · 8 comments
Closed

save-file dialog crashes #648

LuNeder opened this issue Apr 25, 2023 · 8 comments
Labels
bug Something isn't working cant-reproduce The bug can't be reproduced

Comments

@LuNeder
Copy link

LuNeder commented Apr 25, 2023

Describe the bug
Saving does not work. When you click "save" or "save as" and name the document, no file is created.
The only way to save the file is closing the app and using the dialog that asks if you want to save before closing (apparently updating files that were created this way works as expected)

Opening other folders in the file selector save thing also makes the selector abend

There is one exception to this bug: if you open an empty folder and save the file in it. Then it works (sometimes? it did not work when I recorded lol).

To Reproduce
Steps to reproduce the behavior:

  1. Go to hamburger menu
  2. Click on Save or Save As
  3. Name the file whatever
  4. No files are created/saved

Expected behavior
When clicking Save or Save As, a file should be created on the selected folder, saving the file.

Console Output
No output is given

Screenshots

2023-04-25_19-22-32.mov

Desktop (please complete the following information):

  • OS: OpenSUSE Tumbleweed
  • App Version: rnote v0.6.0
  • Installation Source: Flatpak
  • Desktop Environment: XFCE
@flxzt flxzt added bug Something isn't working high prio This has high priority labels Apr 26, 2023
@flxzt
Copy link
Owner

flxzt commented Apr 28, 2023

In the last few seconds in your sceencast it looks like the filechooser is crashing. Did you try saving through this dialog in other gtk4 / adwaita apps?
Or maybe try out another default file manager (for example, nautilus).

Because rnote should log successful or unsuccessful saves, it looks like the filechooser simply does not give picked file path back (equivalent to cancelling).

@LuNeder
Copy link
Author

LuNeder commented May 1, 2023

I tried gnome text editor and liferea, both seem to save files succssesfully. Pretty sure that the filepicker that rnote and both of those apps are opening is nautilus (even tho my default is thunar).

Here's the journalctl log of when the filepicker crash happens: rnote-filepicker-abend.txt

Apparently it might have something to do with the filter, according to someone else that tried it. They said that in KDE it's appearing without a filter too (even tho they were not able to reproduce the crash). For me, no filter selection option is shown at all.
xdg-desktop-por[18490]: _gtk_file_system_model_set_filter: assertion 'filter == NULL || GTK_IS_FILE_FILTER (filter)' failed

@flxzt
Copy link
Owner

flxzt commented May 6, 2023

This definitely reads like it is a bug in either xdg-desktop-portal-gtk, gtk or gtk-rs (the rust bindings). I can't reproduce it unfortunately (neither via flatpak or with a native installation). A brief search through issue-trackers reveals this reported issue, though the logs don't match exactly what you are experiencing.

What might already be a possible "fix": #660 switches to the new FileDialog API and removes uses of the now deprecated FileChooserNative. Could you test if it fixed it?

@flxzt flxzt changed the title Saving does not work save-file dialog crashes May 6, 2023
@flxzt flxzt added cant-reproduce The bug can't be reproduced and removed high prio This has high priority labels Jun 21, 2023
@132ikl
Copy link

132ikl commented Oct 1, 2023

I have this same issue, using 0.8.2 native and flatpak. I can usually get the file to save by just trying over and over again until it eventually works. I have the same issue with the file picker for Export Document, but sometimes the dialog doesn't open at all. The Import File dialog never opens. I consistently get this error in the log for xdg-desktop-portal when the file picker doesn't work or doesn't open at all:

Backend call failed: Message recipient disconnected from message bus without replying

and this error in the rnote log:

2023-10-01T17:03:05.921Z DEBUG rnote::dialogs::export > no file selected in save doc as dialog (Error or dialog dismissed by user), Error { domain: gtk-dialog-error-quark, code: 2, message: "Dismissed by user" }

I have definitely also seen the filter error @LuNeder posted, although I can't seem to produce it myself at the moment.

@132ikl
Copy link

132ikl commented Oct 2, 2023

Update: If I systemctl mask the xdg-desktop-portal service, everything becomes fully functional.

@LuNeder
Copy link
Author

LuNeder commented Oct 2, 2023 via email

@132ikl
Copy link

132ikl commented Oct 3, 2023

It seems like xdg-desktop-portal-lxqt works. I was using xdg-desktop-portal-gtk before.

@flxzt
Copy link
Owner

flxzt commented Nov 12, 2023

alright, I don't think this was/is an issue on Rnote's side but one that needs to be/is already fixed in gtk-portal.

@flxzt flxzt closed this as completed Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cant-reproduce The bug can't be reproduced
Projects
None yet
Development

No branches or pull requests

3 participants