This bug occurs when using the "SaveFile" desktop portal API and the
user chooses a new file name rather than overwriting an existing file.

It can easily be reproduced with the following steps:

1. install the test-snapd-portal-client snap:

    snap install --edge test-snapd-portal-client

2. run the save-file test:

    test-snapd-portal-client save-file "foo"

3. in the file chooser, select a file name that does not exist.

The command will fail with a ConnectionAbortedError exception, and xdg-
document-portal will crash with the following in the log:

    Jan 07 17:38:06 scruffy xdg-document-portal[30685]: error: Invalid id 
snap.test-snapd-portal-client: Names must contain at least 2 periods
    Jan 07 17:38:06 scruffy xdg-document-portal[30685]: error: **
    Jan 07 17:38:06 scruffy xdg-document-portal[30685]: 
xdg-desktop-portal:ERROR:document-portal/document-portal-fuse.c:206:xdp_inode_destroy:
 assertion failed: (inode->dir_fd == -1)

The problem does not occur with xdg-desktop-portal 1.0.3, so it is
likely that one of the patches alexl mentioned at
https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-
portal/+bug/1691649/comments/10 would fix it.  With that said,
backporting 1.0.3 might be the better option if we want working portals.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xdg-desktop-portal in Ubuntu.
https://bugs.launchpad.net/bugs/1810757

Title:
  /usr/libexec/xdg-document-
  
portal:6:g_assertion_message:g_assertion_message_expr:xdp_inode_destroy:xdp_inode_unref_internal:xdp_inode_unref_internal

Status in xdg-desktop-portal package in Ubuntu:
  Confirmed

Bug description:
  The Ubuntu Error Tracker has been receiving reports about a problem regarding 
xdg-desktop-portal.  This problem was most recently seen with package version 
1.0.2-1ubuntu1, the problem page at 
https://errors.ubuntu.com/problem/38fed8b2e1a584847f0c29fac422a19313c40d3d 
contains more details, including versions of packages affected, stacktrace or 
traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software 
developer, you can request it at http://forms.canonical.com/reports/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-portal/+bug/1810757/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to