jimagic / foreground-camera-plugin

Automatically exported from code.google.com/p/foreground-camera-plugin
Apache License 2.0
0 stars 0 forks source link

Application crash on resuming after minimize #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open the application
2. Click on Capture photo button
3. The preview screen opens, now minimize the application by hitting HOME 
button.
4. Try accessing the application. APPLICATION CRASH (FORCE CLOSE)
5. This affects the application in which we integrate this plugin. The 
application crashes on resume if we minimize on the preview screen.

What is the expected output? What do you see instead?
EXPECTED: App/plugin shall continue from last screen or restart atleast.
ACTUAL: applicatin crash.

What version of the product are you using? On what operating system?
Android OS all versions.

Please provide any additional information below.
SOLUTION: Remove the onPause() event from CameraActivity class.
Its good that it releases unused objects but this shall not lead to application 
crash i assume.
Indead Android OS provides GC for cleaning the minimised applications after a 
regular interval.

Original issue reported on code.google.com by catchsa...@gmail.com on 6 Nov 2012 at 12:15

GoogleCodeExporter commented 8 years ago
UPDATE: Removal of onPause() leads to application crash as it does not find 
mCamera object after some pictures are taken.
This issue i faced only on Samsung galaxy S2(2.3.6) & not on S3.
Infact it was randomly occuring, sometimes after 4 images or sometimes on first 
itself.
Strange issue.
On keeping the code inside onPause() it works fine, but application crashes 
after minimizing.

Original comment by catchsa...@gmail.com on 14 Nov 2012 at 1:48

Attachments:

GoogleCodeExporter commented 8 years ago
Hi catchsau4u,

Thanks for the reporting! 

We could reproduce the problem, and we did a fix to the new version v1.3 that 
worked for us.
Could you check if it works for you?

Thanks.

Vinícius

Original comment by vinnysof...@gmail.com on 11 Dec 2012 at 4:31

GoogleCodeExporter commented 8 years ago

Original comment by vinnysof...@gmail.com on 11 Dec 2012 at 4:32

GoogleCodeExporter commented 8 years ago

Original comment by vinnysof...@gmail.com on 11 Dec 2012 at 4:45

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I will close this issue for now. Please let me know if the problem persists.

Original comment by vinnysof...@gmail.com on 13 Dec 2012 at 2:30