Camera app "Capture failed"
-
Hi
Camera worked fine on my Sony xperia until I install anbox (coïncidence ?) Ever since, I can't take a picture but I can record a video and take screenshots The camera application opens and displays images as normal, everything is fine until the app tries to take a picture. I have the following error :Capture failed Restarting your device might fix the problem.
I try reboot multiple times,I uninstalled anbox, uninstall then reinstall camera-app with no luck. I verified what's explained here : solved-capture-failed-for-camera-app-screenshots-missing-and-gallery-app-malfunction(https://forums.ubports.com/topic/3366/solved-capture-failed-for-camera-app-screenshots-missing-and-gallery-app-malfunction)
But it doesn't fix the problem/Does anyone know how I could fix this ?
Thanks !Device is Sony Xperia X
OS is Ubuntu 16.04 (OTA-21) that I updated yesterday
Here's the camera-app's log after just one start :library "libgui.so" wasn't loaded and RTLD_NOLOAD prevented it Creating a QMirClientScreen now Import path added "/usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/lib/aarch64-linux-gnu" Camera app directory "/usr/share/click/preinstalled/com.ubuntu.camera/3.2.3" virtual QMediaService* AalServicePlugin::create(const QString&) "org.qt-project.qt.mediaplayer" Using Hybris video sink virtual QMediaPlayer::State AalMediaPlayerControl::state() const virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const virtual void AalMediaPlayerControl::stop() virtual void AalMediaPlayerControl::setMedia(const QMediaContent&, QIODevice*) setMedia() media: QUrl("file:///usr/share/sounds/ubports/camera/click/camera_click.ogg") virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const Setting media to: QUrl("file:///usr/share/sounds/ubports/camera/click/camera_click.ogg") PlaybackStatus changed to: "stopped" m_surface is NULL, can't update video texture qq= QDeclarativeCamera_QML_31(0x11320770) 0x113b2570 error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.112\" (uid=32011 pid=7688 comm=\"./camera-app \") interface=\"com.canonical.libertine.Service.Operations\" member=\"list\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=5024 comm=\"/usr/bin/python3 /usr/bin/libertined \")" error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.112\" (uid=32011 pid=7688 comm=\"./camera-app \") interface=\"com.canonical.libertine.Service.OperationsMonitor\" member=\"running\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=5024 comm=\"/usr/bin/python3 /usr/bin/libertined \")" lastError - no arguments? error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.112\" (uid=32011 pid=7688 comm=\"./camera-app \") interface=\"com.canonical.libertine.Service.OperationsMonitor\" member=\"last_error\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=5024 comm=\"/usr/bin/python3 /usr/bin/libertined \")" lastError - no arguments? error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.112\" (uid=32011 pid=7688 comm=\"./camera-app \") interface=\"com.canonical.libertine.Service.OperationsMonitor\" member=\"result\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.canonical.libertine.Service\" (uid=32011 pid=5024 comm=\"/usr/bin/python3 /usr/bin/libertined \")" lastError - no arguments? PlaybackStatus changed to: "paused" virtual void AalMediaRecorderControl::applySettings() is not used ** Application is now active file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/ViewFinderExportConfirmation.qml:75:17: QML Item: Binding loop detected for property "height" file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/ViewFinderExportConfirmation.qml:75:17: QML Item: Binding loop detected for property "height" file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/ViewFinderExportConfirmation.qml:75:17: QML Item: Binding loop detected for property "height" Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0' file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/ViewFinderOverlay.qml:46:5: QML Settings: Failed to initialize QSettings instance. Status code is: 1 file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/ViewFinderOverlay.qml:46:5: QML Settings: The following application identifiers have not been set: QVector("organizationName") qml: updateViewfinderResolution: viewfinder resolutions is not known yet. qml: updateViewfinderResolution: viewfinder resolutions is not known yet. Could not create AF_NETLINK socket (Permission denied) propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.125\" (uid=32011 pid=7688 comm=\"./camera-app \") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=2002 comm=\"NetworkManager \")" nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.125\" (uid=32011 pid=7688 comm=\"./camera-app \") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=2002 comm=\"NetworkManager \")" "Object path cannot be empty" (AalImageEncoderControl::setSize) ** Image and thumbnail aspect ratios are different. Thumbnails will look wrong! QObject::connect: No such slot AalImageCaptureControl::onPreviewReady() qml: updateViewfinderResolution: viewfinder resolutions is not known yet. qml: updateViewfinderResolution: viewfinder resolutions is not known yet. qml: updateViewfinderResolution: viewfinder resolutions is not known yet. qml: updateViewfinderResolution: viewfinder resolutions is not known yet. qml: updateViewfinderResolution: viewfinder resolutions is not known yet. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/StopWatch.qml:37:5: QML QQuickBorderImage: Protocol "" is unknown virtual void AalMediaRecorderControl::applySettings() is not used virtual QSGVideoNode* ShaderVideoNodePlugin::createNode(const QVideoSurfaceFormat&) m_surface is NULL, can't update video texture [PERFORMANCE]: Last frame took 57 ms to render. [PERFORMANCE]: Last frame took 91 ms to render. qq= ResponsiveGridView_QMLTYPE_95_QML_100(0x1197ad20) 0x1197d400 QFileSystemWatcher::removePaths: list is empty file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:74:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:98:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:110:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:123:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:135:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:147:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:159:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/PhotogridView.qml:108:5: QML Settings: Failed to initialize QSettings instance. Status code is: 1 file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/PhotogridView.qml:108:5: QML Settings: The following application identifiers have not been set: QVector("organizationName") file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/MediaInfoPopover.qml:30:5: QML Item: Binding loop detected for property "height" file:///usr/lib/aarch64-linux-gnu/qt5/qml/Ubuntu/Components/Popups/1.3/Popover.qml:250:9: QML Item: Binding loop detected for property "height" file:///usr/lib/aarch64-linux-gnu/qt5/qml/Ubuntu/Components/Themes/Ambiance/1.3/BubbleShape.qml:101:5: QML QQuickBorderImage: Protocol "" is unknown file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.ImageWidth' of undefined file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.ImageLength' of undefined file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.DateTime' of undefined file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.Model' of undefined file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.Copyright' of undefined file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.ExposureTime' of undefined file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.FNumber' of undefined file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.NewSubfileType' of undefined file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/SlideshowView.qml:47: TypeError: Cannot read property 'isSelected' of null file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/MediaInfoPopover.qml:62: TypeError: Cannot read property 'Exif.Photo.Flash' of undefined file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/MediaInfoPopover.qml:11: TypeError: Cannot read property 'url' of undefined file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/SlideshowView.qml:388: TypeError: Cannot call method 'getMedia' of null file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/SlideshowView.qml:422: TypeError: Cannot read property 'actions' of null file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/OptionButton.qml:24:5: Unable to assign [undefined] to QString file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/OptionButton.qml:24:5: Unable to assign [undefined] to QString file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/MediaInfoPopover.qml:11: TypeError: Cannot read property 'url' of null [PERFORMANCE]: Last frame took 33 ms to render. ext1: 0, ext2: 0 virtual void AalMediaPlayerControl::play() void AalMediaPlayerService::play() Actually calling m_hubPlayerSession->play() PlaybackStatus changed to: "playing" QFile::rename: Empty or null file name QCameraImageCapture error: "Could not save image to /home/phablet/Pictures/com.ubuntu.camera/image20220107_230003170.jpg" qml: Image capture failed for request 1: Could not save image to /home/phablet/Pictures/com.ubuntu.camera/image20220107_230003170.jpg [PERFORMANCE]: Last frame took 51 ms to render. void AalMediaPlayerControl::playbackComplete() virtual void AalMediaPlayerControl::stop() void AalVideoRendererControl::playbackComplete() PlaybackStatus changed to: "stopped" qt.qpa.mirclient: Attempted to deliver an event to a non-existent window, ignoring. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:74:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:98:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:110:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:123:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:135:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:147:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:159:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:74:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:98:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:110:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:123:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:135:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:147:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:159:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:74:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:98:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:110:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:123:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:135:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:147:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:159:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:74:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:98:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:110:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:123:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:135:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:147:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:159:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:74:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:98:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:110:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:123:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:135:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:147:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:159:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:74:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:98:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:110:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:123:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:135:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:147:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead. file:///usr/share/click/preinstalled/com.ubuntu.camera/3.2.3/GalleryViewHeader.qml:159:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
-
@_anna_ Anbox is not really the best option anymore. Might it be best to remove it and try WayDroid instead?
-
@lakotaubp said in Camera app "Capture failed":
Might it be best to remove it and try WayDroid instead?
Xperia X does not support WayDroid as it's a pre-Halium9 device.
-
@moem I can never remember all these things it's age
-
@lakotaubp it happens to us all!
OP, have you tried reflashing Ubuntu Touch to the device while unticking the 'wipe user data' box? It fixes many problems.
-
@moem thanks for your answer i'm not sure I understand, as english is not my first language, but I would prefer not to reinstall ubuntu touch because I want to keep my sms, mms, my bookmarks on Pure map, etc
I may have to , though -
@_anna_ said in Camera app "Capture failed":
I would prefer not to reinstall ubuntu touch because I want to keep my sms, mms, my bookmarks on Pure map, etc
Don't worry! They will stay. If you reinstall, and make sure that the box is NOT ticked for 'wipe user data', you will keep all of these things.
This is a ticked box: ️
This is a box that is not ticked, or unticked:
I hope that makes it clearer what I mean. -
@moem I fix it ! unbelieable
I I just reinstalled the camera-app via apt-get in a terminalsudo apt-get install camera-app
Via the open-store doesn't work. I don't know why,and I don't care I'm SO happy to have my ubports phone back !
Thanks for the answers -