[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
** Changed in: qtubuntu-camera (Ubuntu RTM) Status: New => Fix Released ** Changed in: qtubuntu-camera (Ubuntu RTM) Importance: Undecided => Critical ** Changed in: qtubuntu-camera (Ubuntu) Status: Triaged => Fix Released -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
Second crash (after applying Ricardo's fix) appears to be unrelated to qtubuntu-camera or camera-app, and is instead caused by an issue in the QML compiler when being terminated whilst still compiling components asynchronously, I've opened a new bug to track that issue here: https://bugs.launchpad.net/ubuntu/+source/qtdeclarative-opensource- src/+bug/1373039 -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
** Branch linked: lp:~michael-sheldon/qtubuntu-camera/fix-1368436 -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
** Tags added: beta -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
** Changed in: qtubuntu-camera (Ubuntu) Importance: Undecided => Critical ** Changed in: qtubuntu-camera (Ubuntu) Assignee: (unassigned) => Michael Sheldon (michael-sheldon) ** Changed in: qtubuntu-camera (Ubuntu) Status: New => Triaged -- 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
[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.cpp2014-07-10 14:59:10 + +++ src/aalcameraexposurecontrol.cpp2014-09-19 06:06:32 + @@ -65,7 +65,8 @@ return false; } -if (parameter == QCameraExposureControl::ExposureMode) { +if ((parameter == QCameraExposureControl::ExposureMode) && + (m_service->androidControl() != NULL)) { m_requestedExposureMode = value.value(); 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
Bill, mind assigning this bug to Florian or someone else in your team? -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
Yeah, even when hybris is actually working with a proper assert, that still causes a crash with an abort. The real fix here is in qtubuntu- camera, to make sure control is actually valid when using it. This is a race when shutting down the app, and seems to be easier to crash now that for some unknown reason the startup is a bit slower. ** Changed in: libhybris (Ubuntu) Status: Confirmed => Invalid -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
** Also affects: qtubuntu-camera (Ubuntu) Importance: Undecided Status: New -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
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) () from /usr/lib/arm-linux-gnueabihf/libQt5Qml.so.5 #9 0xb662135a in QQmlPropertyPrivate::writeValueProperty(QObject*, QQmlPropertyData const&, QVariant const&, QQmlContextData*, QFlags) () from /usr/lib/arm-linux-gnueabihf/libQt5Qml.so.5 #10 0xb66213f4 in QQmlPropertyPrivate::writeValueProperty(QVariant const&, QFlags) () 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 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
The proper backtrace from android: #0 my_pthread_mutex_lock (__mutex=0x8) at hooks.c:479 #1 0xa9e23b58 in memmove (src=0x0, dest=0x8, len=1) at bionic/libc/include/string.h:114 #2 move_forward_type > (n=2850176545, s=0x0, d=0x8) at system/core/include/utils/TypeHelpers.h:181 #3 android::SortedVector >::do_move_forward (this=, dest=0x8, from=0x0, num=2850176545) at system/core/include/utils/SortedVector.h:264 The crash in hybris is a quite weird one, as it's not able to access the pointer given to mutex_lock: static int my_pthread_mutex_lock(pthread_mutex_t *__mutex) unsigned int value = (*(unsigned int *) __mutex); <- crash Wonder when this crash started to happen, and nothing really changed in libhybris for quite a while. -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
It's worth mentioning that this is the new "top crasher" as per our "“Top Crashers of the Day”: 20140915" in the RTM Readiness report and if past experience is any indicator this crash is the reason we went from 8 hours to 1.5 minutes Mean Time Before Failure. -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
** Changed in: camera-app (Ubuntu) Status: Confirmed => Invalid -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
** Changed in: camera-app (Ubuntu) Importance: High => Critical ** Changed in: libhybris (Ubuntu) Importance: High => Critical -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
changing priority per victor request -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
I think this bug should be critical -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
Here is the stack trace with libhybris debug packages installed from http://ddebs.ubuntu.com/pool/main/libh/libhybris/ [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1". Core was generated by `./camera-app'. Program terminated with signal SIGSEGV, Segmentation fault. #0 my_pthread_mutex_lock (__mutex=0x8) at hooks.c:479 479 hooks.c: No such file or directory. (gdb) bt #0 my_pthread_mutex_lock (__mutex=0x8) at hooks.c:479 #1 0xa9d3cb58 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) ** Tags added: touch-2014-09-25 -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
Adding bugtask for hybris and moving to high, definitely not critical. ** Also affects: libhybris (Ubuntu) Importance: Undecided Status: New ** Changed in: libhybris (Ubuntu) Status: New => Confirmed ** Changed in: libhybris (Ubuntu) Importance: Undecided => High ** Changed in: camera-app (Ubuntu) Importance: Critical => High ** Changed in: libhybris (Ubuntu) Assignee: (unassigned) => Ricardo Salveti (rsalveti) -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
Confirmed on krillin rtm #32 with the steps in the description. On second launch camera app crashes. ** Changed in: camera-app (Ubuntu) Status: New => Confirmed -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
The errors.u.c link in comment 2 has more details on software installed -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
device: krillin build_number: 30 version_detail: ubuntu=20140911.2,device=20140908-d8c11f3,custom=1410379789,version=30 com.ubuntu.camera 3.0.0.387 I am swiping the screen right and then swiping up on the camera app -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
what device, what build? -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
How are you closing the app? -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
After the crash happens it can take a long time for the camera app to open again -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
** Changed in: camera-app (Ubuntu) Importance: Undecided => Critical -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
you can watch the /var/crash directory while opening and closing the camera app to see the crash happen. -- 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
[Bug 1368436] Re: camera-app crashes after quickly opening and closing app
https://errors.ubuntu.com/oops/329a1cca-39fa-11e4-b914-fa163e4ccdf2 This bug might belong higher up in the stack like qtubuntu-camera -- 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