Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8444] iOS: Call to Ti.Blob.getSize() and co. causes segfault

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-04-17T10:13:36.000+0000
Affected Version/sRelease 1.8.2, Release 2.0.1
Fix Version/sRelease 3.0.2
ComponentsiOS
Labelsn/a
ReporterNorm Santos
AssigneeShameer Jan
Created2012-03-28T19:25:04.000+0000
Updated2017-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');
                                }
                        });

Comments

  1. Junaid Younus 2012-05-21

    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.
  2. Shameer Jan 2013-04-17

    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
  3. Lee Morris 2017-03-17

    Closing ticket as the issue cannot be reproduced.

JSON Source