[TIMOB-8444] iOS: Call to Ti.Blob.getSize() and co. causes segfault
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-04-17T10:13:36.000+0000 |
Affected Version/s | Release 1.8.2, Release 2.0.1 |
Fix Version/s | Release 3.0.2 |
Components | iOS |
Labels | n/a |
Reporter | Norm Santos |
Assignee | Shameer Jan |
Created | 2012-03-28T19:25:04.000+0000 |
Updated | 2017-03-17T18:35:28.000+0000 |
Description
The following code causes the app to segfault in both the simulator and on the device (iphone4). Have not had a chance to see if this also happens on android. Alerts "[object TiBlob]" then segfaults.
Titanium.Media.showCamera({
showControls : true,
saveToPhotoGallery: true,
success : function(e){
var imgBlob = e.media
alert(imgBlob);
alert(imgBlob.getSize());
alert(imgBlob.getWidth());
alert(imgBlob.getHeight());
},
error : function(e){
alert('camera error');
}
});
Tested with 2.0.1GA2 on an iPhone 3GS, issue still exists. On a Samsung Galaxy S2, it says these functions (getSize() etc) don't exist and crashes the app.
issue does not reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0
Closing ticket as the issue cannot be reproduced.