Camera preview fail after second start or switch between video and picture #311

Closed
acabrol opened this Issue Jun 14, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@acabrol

acabrol commented Jun 14, 2016

On my Nexus 6P camera service works well after reboot but fail after camera app restart or switch between picture and video record.
I tried several camera apps like open camera I had the same issue.
The camera sometimes is able to take picture even if preview failed sometimes not at all.
Even force stop doesn't solve the issue only reboot solve it.
I guess is unavailability of camera device or service in the background which makes trouble.

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Jun 14, 2016

Contributor

Needs logs from adb logcat to approach this, along with knowing whether you changed the advanced security settings in Settings -> Security.

Contributor

thestinger commented Jun 14, 2016

Needs logs from adb logcat to approach this, along with knowing whether you changed the advanced security settings in Settings -> Security.

@acabrol

This comment has been minimized.

Show comment Hide comment
@acabrol

acabrol Jun 14, 2016

@thestinger you will find attached my log file with default camera app and open camera.
And screenshots of my security settings.
screenshot_20160614-210156
screenshot_20160614-210206
screenshot_20160614-210218
screenshot_20160614-210227
screenshot_20160614-210232

acabrol commented Jun 14, 2016

@thestinger you will find attached my log file with default camera app and open camera.
And screenshots of my security settings.
screenshot_20160614-210156
screenshot_20160614-210206
screenshot_20160614-210218
screenshot_20160614-210227
screenshot_20160614-210232

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Jun 14, 2016

Contributor

This is the upstream issue filed as #203. It's a memory corruption bug in Qualcomm's proprietary mm-qcamera-daemon uncovered by OpenBSD malloc. It's not feasible for us to fix the problem since we don't have the source code. Disabling page cache memory protection will usually avoid the segmentation faults when it tries to do the use-after-free but it's not a fix for the problem and it will still fault if it ends up being unmapped too soon regardless. It's memory corruption so it could cause all kinds of problems.

Contributor

thestinger commented Jun 14, 2016

This is the upstream issue filed as #203. It's a memory corruption bug in Qualcomm's proprietary mm-qcamera-daemon uncovered by OpenBSD malloc. It's not feasible for us to fix the problem since we don't have the source code. Disabling page cache memory protection will usually avoid the segmentation faults when it tries to do the use-after-free but it's not a fix for the problem and it will still fault if it ends up being unmapped too soon regardless. It's memory corruption so it could cause all kinds of problems.

@thestinger thestinger closed this Jun 14, 2016

@acabrol

This comment has been minimized.

Show comment Hide comment
@acabrol

acabrol Jun 16, 2016

I disabled page cache memory protection and camera apps works well now.
Thank you.

acabrol commented Jun 16, 2016

I disabled page cache memory protection and camera apps works well now.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment