This seems to be a mix of issues, but the crash itself is caused because android_camera_set_scene_mode gets called after control gets released. In theory the correct result here would be an abort, but it seems assert is not behaving properly, which I'm now investigating why.
Besides that, the release/closing race seems to be actually part of qtubuntu-camera, and not hybris. #0 my_pthread_mutex_lock (__mutex=0x8) at hooks.c:479 #1 0xa9d66f9c in android::Mutex::lock (this=this@entry=0x8) at system/core/include/utils/Mutex.h:112 #2 0xa9d67266 in Autolock (mutex=..., this=0xbef1ba70) at system/core/include/utils/Mutex.h:65 #3 android_camera_set_scene_mode (control=0x0, mode=SCENE_MODE_AUTO) at ubuntu/libhybris/compat/camera/camera_compatibility_layer.cpp:304 #4 0xac3413e4 in android_camera_set_scene_mode (n1=0x0, n2=SCENE_MODE_AUTO) at camera.c:50 #5 0xac37f848 in AalCameraExposureControl::setValue(QCameraExposureControl::ExposureParameter, QVariant const&) () from /usr/lib/arm-linux-gnueabihf/qt5/plugins/mediaservice/libaalcamera.so #6 0xacd1c0fc in AdvancedCameraSettings::setHdrEnabled(bool) () from /usr/share/click/preinstalled/com.ubuntu.camera/3.0.0.387/lib/arm-linux-gnueabihf/CameraApp/libcamera-qml.so #7 0xacd2147c in AdvancedCameraSettings::qt_metacall(QMetaObject::Call, int, void**) () from /usr/share/click/preinstalled/com.ubuntu.camera/3.0.0.387/lib/arm-linux-gnueabihf/CameraApp/libcamera-qml.so #8 0xb6620c74 in QQmlPropertyPrivate::write(QObject*, QQmlPropertyData const&, QVariant const&, QQmlContextData*, QFlags<QQmlPropertyPrivate::WriteFlag>) () from /usr/lib/arm-linux-gnueabihf/libQt5Qml.so.5 #9 0xb662135a in QQmlPropertyPrivate::writeValueProperty(QObject*, QQmlPropertyData const&, QVariant const&, QQmlContextData*, QFlags<QQmlPropertyPrivate::WriteFlag>) () from /usr/lib/arm-linux-gnueabihf/libQt5Qml.so.5 #10 0xb66213f4 in QQmlPropertyPrivate::writeValueProperty(QVariant const&, QFlags<QQmlPropertyPrivate::WriteFlag>) () from /usr/lib/arm-linux-gnueabihf/libQt5Qml.so.5 #11 0xb6621474 in QQmlProperty::write(QVariant const&) const () from /usr/lib/arm-linux-gnueabihf/libQt5Qml.so.5 #12 0xb66995b6 in ?? () from /usr/lib/arm-linux-gnueabihf/libQt5Qml.so.5 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to camera-app in Ubuntu. https://bugs.launchpad.net/bugs/1368436 Title: camera-app crashes after quickly opening and closing app Status in “camera-app” package in Ubuntu: Invalid Status in “libhybris” package in Ubuntu: Confirmed Bug description: summary: camera-app crashes after quickly opening and closing app steps: 1. open camera app 2. close camera app 3. open camera app 4. close camera app expected result: no crash happens actual results: camera app crashes To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/camera-app/+bug/1368436/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp