JS ERROR: Error capturing screenshot: Error: Unable to construct struct type BookmarkFile since it has no default constructor and cannot be allocated directly

Bug #2012534 reported by J-P Nurmi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
New
Undecided
Unassigned

Bug Description

Steps to reproduce:
- run daily-live 20230322
- right click a window title bar and select "take screenshot" or hit Alt+PrintScreen
- observe journal

The screenshot does appear on the disk but there's no notification which might be related.

```
Mar 22 16:34:21 ubuntu gnome-shell[1752]: JS ERROR: Error capturing screenshot: Error: Unable to construct struct type BookmarkFile since it has no default constructor and cannot be allocated directly
                                          saveRecentFile@resource:///org/gnome/shell/ui/screenshot.js:2079:27
                                          _storeScreenshot@resource:///org/gnome/shell/ui/screenshot.js:2139:23
                                          captureScreenshot@resource:///org/gnome/shell/ui/screenshot.js:2231:21
                                          async*_buildMenu/item<@resource:///org/gnome/shell/ui/windowMenu.js:35:34
                                          addAction/<@resource:///org/gnome/shell/ui/popupMenu.js:559:21
                                          activate@resource:///org/gnome/shell/ui/popupMenu.js:197:14
                                          vfunc_button_release_event@resource:///org/gnome/shell/ui/popupMenu.js:141:14
```

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: gnome-shell 44.0-2ubuntu1
ProcVersionSignature: Ubuntu 6.1.0-16.16-generic 6.1.6
Uname: Linux 6.1.0-16-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.26.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.480
CurrentDesktop: ubuntu:GNOME
Date: Wed Mar 22 16:34:42 2023
DisplayManager: gdm3
GsettingsChanges:
 b'org.gnome.shell' b'disabled-extensions' b'@as []'
 b'org.gnome.shell' b'enabled-extensions' b"['<email address hidden>']"
 b'org.gnome.shell' b'welcome-dialog-last-shown-version' b"'44.0'"
 b'org.gnome.desktop.app-folders' b'folder-children' b"['Utilities', 'YaST']"
 b'org.gnome.desktop.input-sources' b'sources' b"[('xkb', 'us')]"
LiveMediaBuild: Ubuntu 23.04 "Lunar Lobster" - Alpha amd64 (20230322)
ProcEnviron:
 LANG=C.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
RelatedPackageVersions: mutter-common 44.0-1ubuntu1
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
J-P Nurmi (jpnurmi) wrote :
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

This is a new dependency introduced in gnome-shell 44. Why it is failing I don't know, because GBookmarkFile has existed (with a default constructor) since 2006.

summary: - JS ERROR: Error capturing screenshot
+ JS ERROR: Error capturing screenshot: Error: Unable to construct struct
+ type BookmarkFile since it has no default constructor and cannot be
+ allocated directly
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.