Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12814] Device throws an error when large images are handled.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-01-30T00:01:02.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.2.0, Release 3.2.3
ComponentsAndroid
Labelsexalture, qe-closed-3.2.3
ReporterJamie Buckley
AssigneeIngo Muschenetz
Created2013-02-21T22:34:44.000+0000
Updated2014-06-19T12:44:15.000+0000

Description

On HTC Explorer 2.3.5 when attempting to open an image >1mb in Photogallery an error is thrown due to lack of available memory. Screenshot of error message attached.

Attachments

FileDateSize
2013-01-26_10-06-17.jpg2013-02-21T22:34:44.000+000030387

Comments

  1. Mostafizur Rahman 2014-01-29

    Hello, We tested this issue with the test code below. We can’t reproduce in Ti SDK 3.2GA. We have opened 2MB+ image from photo gallery without getting any error.

    Testing Environment

    Mac OS X 10.8.5 Ti SDK 3.2.0.GA Ti CLI 3.2.0 Android 2.3.3

    Test Code

       var win = Ti.UI.createWindow({
       	backgroundColor : '#000',
       	layout : 'vertical'
        
       });
        
       var frmgalary = Ti.UI.createButton({
       	title : 'Go_To_Galary',
       	color : '#000',
       	width : Ti.UI.SIZE,
       	height : Ti.UI.SIZE,
       	font : {
       		fontSize : 14,
       	},
       	top : 10
       });
        
       win.add(frmgalary);
        
       var anImageView = Ti.UI.createImageView({
       	width : Ti.UI.SIZE,
       	height : Ti.UI.SIZE,
       	top : 20,
       });
       win.add(anImageView);
        
       frmgalary.addEventListener('click', function() {
       	Ti.Media.openPhotoGallery({
       		mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],
       		success : function(e) {
       			anImageView.image = e.media;
        
       		},
       		cancel : function() {
       		},
       		error : function(err) {
       		}
       	});
       });
        
       win.open();
       
       
       
    Thanks
  2. Shak Hossain 2014-01-30

    Resolving this as per updated test results. We tested the issue with TISDK 3.2GA and we could not reproduce it.
  3. Deepti Pandey 2014-04-18

    Verified FIXED using : Appc Studio: 3.2.3.201404162038 SDK build: 3.2.3.v20140417162517, 3.3.0.v20140417173316 and 3.2.0 GA acs: 1.0.14 npm: 1.3.2 alloy:1.3.1 CLI: titanium@3.2.3-beta titanium-code-processor:1.1.1-beta1 Xcode: 5.1.1 Osx: Mavericks(10.9.2) Device: Nexus 7 (4.3) and Nexus 5 (4.4.2) Image is viewed correctly. Hence closed.

JSON Source