ubports / ubuntu-touch

Ubuntu Touch's issue inbox is now migrated to GitLab.
https://gitlab.com/ubports/ubuntu-touch
1.29k stars 109 forks source link

Trying to access camera crashes various apps after qt5.12 upgrade #1660

Closed stekalb closed 3 years ago

stekalb commented 3 years ago

Steps to reproduce

Expected behavior

Actual behavior

Logfiles and additional information

virtual QMediaPlayer::MediaStatus AalMediaPlayerControl::mediaStatus() const

virtual void AalMediaPlayerControl::stop()

[DD 2021-02-04 17:33:17.506589] [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") mpris.Player.Error.UriNotFound: Warning: Failed to open uri file:///system/media/audio/ui/camera_click.ogg because it can't be found. Camera framerate boundaries are set by the backend Camera framerate boundaries are set by the backend Camera framerate boundaries are set by the backend Camera framerate boundaries are set by the backend (AalImageEncoderControl::setSize) * Image and thumbnail aspect ratios are different. Thumbnails will look wrong! QObject::connect: No such slot AalImageCaptureControl::onPreviewReady() PlaybackStatus changed to: "stopped" virtual void AalMediaRecorderControl::applySettings() is not used virtual QSGVideoNode ShaderVideoNodePlugin::createNode(const QVideoSurfaceFormat&) Rendering not enabled, returning without presenting frame stack corruption detected (-fstack-protector)```

dobey commented 3 years ago

This seems to be a quite low level problem that affects Halium 9, and perhaps Halium 7.1 devices, due to thread-local storage conflicts between bionic libc and gnu libc.

dobey commented 3 years ago

Fixed by changes to tls-padding package and ubuntu-touch-hybris seed.

CristianSw commented 3 years ago

Tested on lavender on current rc build 2021-w08 Legacy camera: passed, but, after app starts autofocus not work. After focusing manually to an object autofocus start working. Tagger: passed, in tagger autofocus work well. Authenticator: NG passed, but camera dont want to focus.

cibersheep commented 3 years ago

-Cameras works for picture and video -Tagger focus correctly

Tested on E5

dadandalive commented 3 years ago

I confirm that Tagger can access camera (and focus) in Nexus 5 (RC 2021-W10).