Made a simple patch to avoid this crash, but it's now showing up a
different one in libQt5QML, so this needs to be investigated by someone
that knows the stack better than I do.

Patch I used to avoid the crash described by this bug:

rsalveti@evasys:/tmp/camera/qtubuntu-camera$ bzr diff
=== modified file 'src/aalcameraexposurecontrol.cpp'
--- src/aalcameraexposurecontrol.cpp    2014-07-10 14:59:10 +0000
+++ src/aalcameraexposurecontrol.cpp    2014-09-19 06:06:32 +0000
@@ -65,7 +65,8 @@
         return false;
     }
 
-    if (parameter == QCameraExposureControl::ExposureMode) {
+    if ((parameter == QCameraExposureControl::ExposureMode) &&
+                                                       
(m_service->androidControl() != NULL)) {
         m_requestedExposureMode = value.value<QCameraExposure::ExposureMode>();
         Q_EMIT requestedValueChanged(QCameraExposureControl::ExposureMode);

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1368436

Title:
  camera-app crashes after quickly opening and closing app

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/camera-app/+bug/1368436/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to