Open ubuntu-touch-testing opened 4 years ago
I've confirmed this on other devices. It doesn't look like the camera permission manager is working. This is a critical problem for OTA-13.
Further detail... It appears that the camera permission manager is working on my Nexus 4 and Nexus 7 2013 Wi-Fi, which are both running Canonical-sanctioned device compatibility images. My Nexus 5, OnePlus One, Sony Xperia X, and FairPhone 2 do not have working camera permission managers. Instead, they allow access to the camera automatically.
I suspect this may have been the case for a longer time and I may have forgotten about it. I will continue to investigate.
Okay, this does not appear to be a regression but rather a missing feature. I'll still label it as a bug, but it is not critical.
I'm experiencing a similar bug.
Some screenshots: 1 | 2 | 3 |
---|---|---|
Device: Xperia X (F5121) Channel: Devel OS build number: 2021-07-17/2
Log:
Published using Logviewer for Ubuntu Touch
From file /home/phablet/.cache/upstart/application-click-com.ubuntu.camera_camera_3.2.3.log:
library "libgui.so" wasn't loaded and RTLD_NOLOAD prevented it
Creating a QMirClientScreen now
Import path added "/opt/click.ubuntu.com/com.ubuntu.camera/3.2.3/lib/aarch64-linux-gnu"
Camera app directory "/opt/click.ubuntu.com/com.ubuntu.camera/3.2.3"
virtual QMediaService* AalServicePlugin::create(const QString&) "org.qt-project.qt.mediaplayer"
[TT 2021-07-18 09:52:45.285843] [service.cpp:29@instance]
[DD 2021-07-18 09:52:45.304602] [platform_default_sink.cpp:66@make_platform_default_sink_factory] Using hybris video sink
[TT 2021-07-18 09:52:45.441458] [player_stub.cpp:243@PlayerStub]
virtual QMediaPlayer::State AalMediaPlayerControl::state() const
virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const
virtual void AalMediaPlayerControl::stop()
[DD 2021-07-18 09:52:45.450823] [player_stub.cpp:192@operator()] PlaybackStatusChanged signal arrived via the bus (status: PlaybackStatus::stopped)
virtual void AalMediaPlayerControl::setMedia(const QMediaContent&, QIODevice*)
setMedia() media: QUrl("file:///system/media/audio/ui/camera_click.ogg")
virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const
Setting media to: QUrl("file:///system/media/audio/ui/camera_click.ogg")
m_surface is NULL, can't update video texture
[DD 2021-07-18 09:52:45.473727] [player_stub.cpp:192@operator()] PlaybackStatusChanged signal arrived via the bus (status: PlaybackStatus::ready)
[DD 2021-07-18 09:52:45.598945] [player_stub.cpp:179@operator()] AboutToFinish signal arrived via the bus.
[DD 2021-07-18 09:52:45.599292] [player_stub.cpp:179@operator()] AboutToFinish signal arrived via the bus.
[WW 2021-07-18 09:52:45.636986] [codec.h:148@decode_argument] Unknown metadata key "audio-codec" while decoding dbus message
[WW 2021-07-18 09:52:45.637530] [codec.h:148@decode_argument] Unknown metadata key "encoder" while decoding dbus message
[WW 2021-07-18 09:52:45.637641] [codec.h:148@decode_argument] Unknown metadata key "encoder-version" while decoding dbus message
[WW 2021-07-18 09:52:45.637728] [codec.h:148@decode_argument] Unknown metadata key "mpris:artUrl" while decoding dbus message
[WW 2021-07-18 09:52:45.637817] [codec.h:148@decode_argument] Unknown metadata key "mpris:length" while decoding dbus message
[WW 2021-07-18 09:52:45.637906] [codec.h:148@decode_argument] Unknown metadata key "mpris:trackid" while decoding dbus message
[WW 2021-07-18 09:52:45.638004] [codec.h:148@decode_argument] Unknown metadata key "nominal-bitrate" while decoding dbus message
[WW 2021-07-18 09:52:45.638186] [codec.h:148@decode_argument] Unknown metadata key "xesam:artist" while decoding dbus message
[WW 2021-07-18 09:52:45.638284] [codec.h:148@decode_argument] Unknown metadata key "xesam:title" while decoding dbus message
[WW 2021-07-18 09:52:45.638598] [codec.h:148@decode_argument] Unknown metadata key "audio-codec" while decoding dbus message
[WW 2021-07-18 09:52:45.638723] [codec.h:148@decode_argument] Unknown metadata key "container-format" while decoding dbus message
[WW 2021-07-18 09:52:45.638817] [codec.h:148@decode_argument] Unknown metadata key "encoder" while decoding dbus message
[WW 2021-07-18 09:52:45.638905] [codec.h:148@decode_argument] Unknown metadata key "encoder-version" while decoding dbus message
[WW 2021-07-18 09:52:45.638990] [codec.h:148@decode_argument] Unknown metadata key "mpris:artUrl" while decoding dbus message
[WW 2021-07-18 09:52:45.639153] [codec.h:148@decode_argument] Unknown metadata key "mpris:length" while decoding dbus message
[WW 2021-07-18 09:52:45.639240] [codec.h:148@decode_argument] Unknown metadata key "mpris:trackid" while decoding dbus message
[WW 2021-07-18 09:52:45.639325] [codec.h:148@decode_argument] Unknown metadata key "nominal-bitrate" while decoding dbus message
[WW 2021-07-18 09:52:45.639411] [codec.h:148@decode_argument] Unknown metadata key "xesam:artist" while decoding dbus message
[WW 2021-07-18 09:52:45.639488] [codec.h:148@decode_argument] Unknown metadata key "xesam:title" while decoding dbus message
qq= QDeclarativeCamera_QML_30(0xa9f36a0) 0xaa9dcb0
error calling result "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.194\" (uid=32011 pid=25876 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=5757 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.194\" (uid=32011 pid=25876 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=5757 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.194\" (uid=32011 pid=25876 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=5757 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.194\" (uid=32011 pid=25876 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=5757 comm=\"/usr/bin/python3 /usr/bin/libertined \")"
lastError - no arguments?
PlaybackStatus changed to: "ready"
PlaybackStatus changed to: "ready"
virtual void AalMediaRecorderControl::applySettings() is not used
QObject::startTimer: Timers cannot be started from another thread
** Application has been suspended
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.2.3/ViewFinderExportConfirmation.qml:75:17: QML Item: Binding loop detected for property "height"
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.2.3/ViewFinderExportConfirmation.qml:75:17: QML Item: Binding loop detected for property "height"
file:///opt/click.ubuntu.com/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'
qml: updateViewfinderResolution: viewfinder resolutions is not known yet.
qml: updateViewfinderResolution: viewfinder resolutions is not known yet.
virtual void AalMediaRecorderControl::applySettings() is not used
Nexus5: Camera App Permissions greyed out. System Settings --> Security & Privacy --> App permissions --> Camera 0 (Greyed out, not selectable)
Maybe related to issue #1419 ?
However, Front and Back Camera working correctly for Photos and Videos. Camera App did freeze the first few times after install, probably related to this permission issue, but after a reboot, update, use a few times, it now works correctly. Maybe a slight lag when the camera app is starting, but not sure if just the phone or related to a permission check timeout.
Channel: Release Candidate OS Build Number: 2020-W24 UBports Image part: 20200602-30971
Feel free to ask me for more info on reproducing this, photo of the screen or to test anything.