I 've tested with a trivial TPP (one that doesn't use Qt, that only
connects to and disconnects from U8) and wasn't able to repro the issue.
Thanks to Thomas for his help. As I said before, the camera driver is a
bit flakey - I get errors like

[  933.537054] [mt-i2c]ERROR,454: id=0,addr: 50, transfer error
[  933.537093] [mt-i2c]ERROR,460: I2C_ACKERR

or of the following sort,

[ 1006.938770] inv_mpu: error to reset fifo
[ 1007.055090] inv_mpu: error in header parsing=3c00

but the camera preview still seems to work, though the startup delay
varies slightly due to these.

This seems to indicate Qt Quick Scenegraph Renderer is doing something
bogus. I guess we could also try a TPP which sets up EGL only to glClear
the surface to be 100% sure.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mir in Ubuntu.
https://bugs.launchpad.net/bugs/1551811

Title:
  Opening the camera for the first time leads to reboot

Status in camera-app:
  New
Status in Canonical System Image:
  Confirmed
Status in Mir:
  New
Status in Telegram app:
  Invalid
Status in trust-store:
  New
Status in mir package in Ubuntu:
  New

Bug description:
  Test case.
  - Flash the phone.
  - Open Telegram app.
  - Fill the account details.
  - Add a contact (if needed).
  - Select a contact to send a message.
  - Tap on the clip to attach a photo.
  - Select the camera.

  Expected result.
  - After accepting the permission dialog, camera app allows to take a picture.

  Actual result.
  - After accepting the permission dialog, phone reboots.

  I'm not sure whether this is a problem with Telegram or with the
  camera. However, I couldn't reproduce the problem using the messaging-
  app. And once the permission dialog is accepted, the reboot is gone.

  com.ubuntu.telegram_2.0.8.0_armhf.click
  current build number: 259
  device name: arale
  channel: ubuntu-touch/rc-proposed/meizu.en

  --------------------------

  Same happens with the following steps:

  1. Flash device (arale) with

  $ ubuntu-device-flash touch --device arale --channel ubuntu/rc-
  proposed/meizu.en --recovery-image <path-to-recovery-with-adb-support>
  --bootstrap

  2. Wait until flash process is done
  3. Go through first-start wizard
  4. Pass tutorial
  5. Directly launch camera-app, approve trust-prompt

  Repeat 1-5 multiple times and you will see a frozen device after step
  5. You can verify it happened due to a kernel panic mentioned in
  comment #7.

  You can reset the trust db entry for the camera app using :
  $rm -rf ~/.local/share/CameraService
  $restart cameraservice-trust-stored

  Run the following to get the command line for all threads so you can match 
the pid from the kmsg later (see below):
  ps H -eo 'pid tid cmd:250 comm'

  To verify it was really the kernel panic run

  $ sudo cat /proc/last_kmsg

  once the device has rebooted.

To manage notifications about this bug go to:
https://bugs.launchpad.net/camera-app/+bug/1551811/+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

Reply via email to