[xenial] Camera app image freeze #611
[xenial] Camera app image freeze #611
Comments
Happens for me too. If do a long swipe left the camera app image goes black (frozen picture disappears). Reselect camera app and can tale another picture and the picture freezes. The cycle repeats itself ;-) |
In the mean time when i'm creating a screenshot, the phone is slightly freezing. |
I can confirm this running Xenial r416 on hammerhead.
Other issues with the camera.
|
Same here with r425 on hammerhead, take a picture and the screen freezes on that taken image, until I press the onscreen button to swap to the front camera. After a few seconds it will switch and a live image from the camera is active again, I can then switch back to the back camera and take another picture. |
Probably not related, but equally critical as the camera app won't launch at all on the Pro 5. #667 |
This fixes ubports/ubuntu-touch#667 and ubports/ubuntu-touch#665 and ubports/ubuntu-touch#582 And might even have positive effect on ubports/ubuntu-touch#611 and ubports/ubuntu-touch#514
ubports/libhybris#5 did not seem to have effect on this issue sadly :( |
Similar behaviour on Hammerhead 2018-W31
|
User experience wise, I'm not sure it's a good idea to move it from ota 4 to 5. |
@ernesst We know its not optimal, but we also seem to not find the bug. How long should we delay OTA-4 after me have delayed it for 2 months now? There are a lot of other fixes waiting to be deployed, plus we are running on an unsupported Ubuntu core version, and we are risking to get security issues etc. |
Interesting fact, even if the screen freeze on the N5, I can still take picture one after the one. |
This is why we said we want to shift it. Its not critical imho |
Hi, |
Well done, thanks |
Claap your haaaaaands and saaaay THAAAANK YOOOOOU! |
Nice to see this fix, thanks! It seems the liveview feed still freezes when:
If I stay out of settings and stick to one mode the camera works flawlessly. Also just a note: while the UT media player cannot playback the files the video plays fine on my desktop in VLC. |
Just for the record (OTA-9), I confirm this issue is fixed.
|
OTA 9 fixed the issue for me too. Nexus 5 |
For the record, I still get freezing. If I switch between cameras and they are set to different aspect ratios (ie 16:9 and 4:3) it still freezes. A quick swipe at the edge and it works again. If I leave all cameras set to the same ratio (16:9 or 4:3) the app works as expected. |
camera is buggy again on devel ( N5 ) |
…ead) This is a masive SUPER HACK! it completly destroy and recreate camera hal to restart preview. ¯\_(ツ)_/¯ Kinda fixes: ubports/ubuntu-touch#611
…head) This is a massive SUPER HACK! it completely destroy and recreate camera hal to restart preview. ¯\_(ツ)_/¯ Kinda fixes: ubports/ubuntu-touch#611
We've had three people sitting together trying to fix this bug for a few hours, and at least we have a much better understanding of what's going on... The first reference of this bug we found is in android camera2 preview data stop callback in the middle of the call on StackOverflow. The user was trying to perform calls similar to us and ending up in the same situation, a stopped preview. The fact it was on the Nexus 5, in the same situation as us, and there wasn't so much as a theory in the comments was... concerning. The bug is first officially referenced in ubports/android_device_lge_hammerhead@6a34b0d, which is again concerning. Instead of actually fixing the problem, it just reports to another service that the problem is occurring. In the AOSP camera app, we find our red flag. Line 34 in RepeatFailureDetector.java basically states that Google needed to do several hacks in sequence to get the camera to work properly again... The first is restarting the camera, the second is reporting to the user that the camera failed in the hope they'll restart their device. Basically we're trying to fix the issue that Google's engineers gave up on. That leaves us without many ways forward, actually. There's a lot of complexity leading to the detection and remediation of the issue, complexity that I don't think we can or should reimplement. The most likely fix, even though it's awful, is Marius' change which causes the camera to be restarted every time it does anything. Maybe we can use Google's code to make the restart faster, but it's looking less likely by the minute. |
I have no idea why :) Fixes: ubports/ubuntu-touch#611 Change-Id: I755715492910e6bb9d2db6a79737a6d09dc57903
I have no idea why :) Fixes: ubports/ubuntu-touch#611 Change-Id: I755715492910e6bb9d2db6a79737a6d09dc57903
Since reactivating the app seems to solve the issue wee might be able to add a work around in the camera app itself... until this issue is solved. |
I have no idea why :) Fixes: ubports/ubuntu-touch#611 Change-Id: I755715492910e6bb9d2db6a79737a6d09dc57903
So lets test tomorrow´s update ^^ |
N5 RC, camera works as expected |
Works fine on N5 on RC |
Steps to reproduce
Just take a picture
Expected behavior
no freeze
Actual behavior
The image in the camera app freezes, blocking to take another picture.
Video more : as soon as i activate the video mode the image freeze, i cannot even start to record
Logfiles and additional information
The text was updated successfully, but these errors were encountered: