incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-910) Consecutive photographs with the camera of the Asus Transformer pad causes java.lang.OutOfMemoryError
Date Thu, 26 Jul 2012 11:52:33 GMT

    [ https://issues.apache.org/jira/browse/CB-910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423017#comment-13423017
] 

Alex commented on CB-910:
-------------------------

Althought I've seen CB910 is fixed in 1.9.0, it's still ocurring to me.

My scenario:
Mobile: LG3 with Android 4.0
Using PhoneGap 1.9.0
Using this function:
	      navigator.camera.getPicture(onPhotoDataSuccess, onFail, 
	      	{ 
	      		quality: 80,
	      		destinationType: destinationType.FILE_URI,
	        	encodingType: navigator.camera.EncodingType.JPEG,
	        	mediaType: 0,
	        	targetWidth: 1024,
	        	targetHeight: 768,
	        	correctOrientation: false
	        }
	      );

Taking the first picture gives no problem. After second photo, logcat gives this:
http://pastebin.com/WJ2KTBh4
and app is closed.

I'm using save to library, no orientation, slow resolution, slow quality ...

Would you recommend to use 100 of quality or better to move to phonegap 2.0 ?

                
> Consecutive photographs with the camera of the Asus Transformer pad causes java.lang.OutOfMemoryError
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CB-910
>                 URL: https://issues.apache.org/jira/browse/CB-910
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.7.0, 1.8.0
>         Environment: Android 4.0.3, PhoneGap 1.8.0 OR PhoneGap 1.7.0, Asus Transformer
Pad
> (if I run the same code, or any other using camera in iPad2, Samsung Galaxy 2, no problems)
>            Reporter: Susanna Huhtanen
>            Assignee: Simon MacDonald
>            Priority: Minor
>              Labels: features
>             Fix For: 1.9.0
>
>
> 1. Expected outcome:
> I can take consecutive photographs with the camera of the device.
> 2. The actual outcome:
> After a few pictures has been taken the application crashes.
> 3.
> Wrap the index.html in Android 4.0.3, launch the app on the Asus Transformer, take pictures,
anything from 2-5 pictures makes the app to crash. If you alter the code and create a local
storage where to store the url and some text, the second picture is always enough to crash
the app with the same crash report.
> index.html and logcat
> https://gist.github.com/2922651

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message