← Back to team overview

touch-packages team mailing list archive

[Bug 1368436] Re: camera-app crashes after quickly opening and closing app

 

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
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:
  Invalid
Status in “qtubuntu-camera” package in Ubuntu:
  New

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


References