Merge lp:~schwann/phablet-extras/fix_camera_crash_on_manta into lp:phablet-extras/libhybris

Proposed by Günter Schwann
Status: Merged
Approved by: Sergio Schvezov
Approved revision: 125
Merged at revision: 127
Proposed branch: lp:~schwann/phablet-extras/fix_camera_crash_on_manta
Merge into: lp:phablet-extras/libhybris
Diff against target: 12 lines (+0/-2)
1 file modified
compat/camera/camera_compatibility_layer.cpp (+0/-2)
To merge this branch: bzr merge lp:~schwann/phablet-extras/fix_camera_crash_on_manta
Reviewer Review Type Date Requested Status
Sergio Schvezov Approve
PS Jenkins bot continuous-integration Approve
Jim Hodapp Pending
Thomas Voß Pending
Ricardo Salveti Pending
Ubuntu Phablet Team Pending
Review via email: mp+160080@code.launchpad.net

Commit message

Do not call releaseRecordingFrame() after capture

Description of the change

Do not call releaseRecordingframe() after capture.
This function is not implemented for exynos2. And is not called by android jni framework.
A test on maguro showed no increase in memory consumption.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Wouldn't you need to keep this for the devices not using libcamera2?

review: Needs Information
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

This doesn't seem to need a release commit/changelog entry as it's android side only, right?

125. By Günter Schwann

Rever changelog entry

Revision history for this message
Günter Schwann (schwann) wrote :

This releaseRecordingFrame() is not even needed in the old libcamera (maybe it was needed before Android 4.2).
As I tested it with maguro, memory doesn't fill up.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

It works, no crashes but there is some strange behavior that merits some new bugs.

This is definetly an improvement over crashing though :-)

review: Approve
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

HApproved myself since the other reviewers were requested long before I was.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'compat/camera/camera_compatibility_layer.cpp'
2--- compat/camera/camera_compatibility_layer.cpp 2013-03-04 23:08:36 +0000
3+++ compat/camera/camera_compatibility_layer.cpp 2013-05-14 07:34:26 +0000
4@@ -104,8 +104,6 @@
5 default:
6 break;
7 }
8-
9- camera->releaseRecordingFrame(data);
10 }
11
12 void postDataTimestamp(

Subscribers

People subscribed via source and target branches