Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Camera preview fail after second start or switch between video and picture #311
Comments
thestinger
added
Type: bug
unconfirmed
labels
Jun 14, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
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.
|
Needs logs from |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
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.





acabrol
commented
Jun 14, 2016
•
|
@thestinger you will find attached my log file with default camera app and open camera. |
thestinger
added
upstream
Status: duplicate
and removed
unconfirmed
labels
Jun 14, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
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.
|
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
closed this
Jun 14, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
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. |
acabrol commentedJun 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.