Titanium JIRA Archive
Appcelerator Community (AC)

[AC-684] Gallery moment сrach

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-03-13T19:37:44.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMaxim Khrichtchatyi
AssigneeShak Hossain
Created2016-02-19T19:33:39.000+0000
Updated2016-03-13T19:37:45.000+0000

Description

1. Open App 2. Open Photo Gallery 3. Open Moments dir 4. Go back to previous (root) directory *The application has crashed with an uncaught exception 'NSInvalidArgumentException'.* {noformat} [ERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'. [ERROR] : Reason: [ERROR] : *** -[NSProxy doesNotRecognizeSelector:scrollViewDidScroll:] called! [ERROR] : Stack trace: [ERROR] : [ERROR] : 0 CoreFoundation 0x00000001860002d8 + 132 [ERROR] : 1 libobjc.A.dylib 0x00000001978240e4 objc_exception_throw + 60 [ERROR] : 2 CoreFoundation 0x0000000186000218 + 0 [ERROR] : 3 Foundation 0x0000000186ef1098 + 80 [ERROR] : 4 CoreFoundation 0x0000000186004154 + 928 [ERROR] : 5 CoreFoundation 0x0000000185f06ccc _CF_forwarding_prep_0 + 92 [ERROR] : 6 UIKit 0x000000018ad1fbbc + 72 [ERROR] : 7 UIKit 0x000000018aa5cdb4 + 500 [ERROR] : 8 UIKit 0x000000018ad20834 + 864 [ERROR] : 9 UIKit 0x000000018ab18d7c + 400 [ERROR] : 10 UIKit 0x000000018ab18ba4 + 44 [ERROR] : 11 UIKit 0x000000018aa3dc20 + 440 [ERROR] : 12 libobjc.A.dylib 0x000000019783d724 + 564 [ERROR] : 13 CoreFoundation 0x0000000185ee1074 _CFAutoreleasePoolPop + 28 [ERROR] : 14 CoreFoundation 0x0000000185fb58a8 + 1500 [ERROR] : 15 CoreFoundation 0x0000000185ee12d4 CFRunLoopRunSpecific + 396 [ERROR] : 16 GraphicsServices 0x000000018f6f76fc GSEventRunModal + 168 [ERROR] : 17 UIKit 0x000000018aaa6fac UIApplicationMain + 1488 {noformat}
Ti.Media.openPhotoGallery({
    mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO],
    cancel:function() {
    },
    error:function(error) {
    },
    success:function(event) {
    }
});

Comments

  1. Sharif AbuDarda 2016-02-23

    Hello, I have tested the issue in SDK 5.1.2.GA and 5.2.0.v20160114021251. I am using the below code. I wasn't able to reproduce the issue. I followed the instruction. App did not crush.
       var win = Ti.UI.createWindow();
       
       var button = Titanium.UI.createButton({
           title : 'Hello',
           top : 10,
           width : 100,
           height : 50
       });
       button.addEventListener('click', function(e) {
           Titanium.API.info("You clicked the button");
           Ti.Media.openPhotoGallery({
       
               mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],
       
               cancel : function() {
       
               },
       
               error : function(error) {
       
               },
       
               success : function(event) {
       
               }
           });
       
       });
       win.add(button);
       
       win.open();
       

    Environment

       Operating System
         Name                        = Mac OS X
         Version                     = 10.11.3
         Architecture                = 64bit
         # CPUs                      = 4
         Memory                      = 8589934592
       Node.js
         Node.js Version             = 4.2.2
         npm Version                 = 2.14.7
       Titanium CLI
         CLI Version                 = 5.0.5
       Titanium SDK
         SDK Version                 = 5.2.0.v20160114021251
        Target Platform             = iphone
       
  2. Maxim Khrichtchatyi 2016-02-23

    Sharif AbuDarda, I have tested your code on REAL device: 0. Install on device 1. Open App 2. Open Photo Gallery 3. Open Moments dir 4. Go back to previous (root) directory the application has crashed! {noformat} [INFO] : You clicked the button [ERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'. [ERROR] : Reason: [ERROR] : *** -[NSProxy doesNotRecognizeSelector:scrollViewDidScroll:] called! [ERROR] : Stack trace: [ERROR] : [ERROR] : 0 CoreFoundation 0x00000001831202d8 + 132 [ERROR] : 1 libobjc.A.dylib 0x00000001949440e4 objc_exception_throw + 60 [ERROR] : 2 CoreFoundation 0x0000000183120218 + 0 [ERROR] : 3 Foundation 0x0000000184011098 + 80 [ERROR] : 4 CoreFoundation 0x0000000183124154 + 928 [ERROR] : 5 CoreFoundation 0x0000000183026ccc _CF_forwarding_prep_0 + 92 [ERROR] : 6 UIKit 0x0000000187e3fbbc + 72 [ERROR] : 7 UIKit 0x0000000187b7cdb4 + 500 [ERROR] : 8 UIKit 0x0000000187e40834 + 864 [ERROR] : 9 UIKit 0x0000000187c38d7c + 400 [ERROR] : 10 UIKit 0x0000000187c38ba4 + 44 [ERROR] : 11 UIKit 0x0000000187b5dc20 + 440 [ERROR] : 12 libobjc.A.dylib 0x000000019495d724 + 564 [ERROR] : 13 CoreFoundation 0x0000000183001074 _CFAutoreleasePoolPop + 28 [ERROR] : 14 CoreFoundation 0x00000001830d58a8 + 1500 [ERROR] : 15 CoreFoundation 0x00000001830012d4 CFRunLoopRunSpecific + 396 [ERROR] : 16 GraphicsServices 0x000000018c8176fc GSEventRunModal + 168 [ERROR] : 17 UIKit 0x0000000187bc6fac UIApplicationMain + 1488 [ERROR] : 18 TESTAPP 0x000000010002283c TESTAPP + 26684 [ERROR] : 19 libdyld.dylib 0x0000000194fc2a08 + 4 [ERROR] : *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSProxy doesNotRecognizeSelector:scrollViewDidScroll:] called!' [ERROR] : *** First throw call stack: [ERROR] : (0x1831202d8 0x1949440e4 0x183120218 0x184011098 0x183124154 0x183026ccc 0x187e3fbbc 0x187b7cdb4 0x187e40834 0x187c38d7c 0x187c38ba4 0x187b5dc20 0x19495d724 0x183001074 0x1830d58a8 0x1830012d4 0x18c8176fc 0x187bc6fac 0x10002283c 0x194fc2a08) {noformat}
  3. Sharif AbuDarda 2016-03-07

    Hello, I have tested this in device, and I wasn't able to regenerate the issue. The app didn't crash when going back from the moment directory. Here is my device test info
       iPod 5G(iOS 9.2)
       SDK 5.2.0GA
       
    Could you create a video of the issue that you are seeing in your platform? Please attach a video of the issue. Thanks.
  4. Maxim Khrichtchatyi 2016-03-08

    how can video help? I described the steps to get the error.
  5. Sharif AbuDarda 2016-03-08

    Hello, As I said in our environment we are trying and couldn't reproduce the issue. The app did not crash. Can you send a full project which is regeneratable the issue. Or a video of the issue that is happening in your case.Thanks.

JSON Source