You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Amir Geri (JIRA)" <ji...@apache.org> on 2012/08/27 14:00:07 UTC

[jira] [Created] (CB-1279) Cannot Open iOS app from url scheme

Amir Geri created CB-1279:
-----------------------------

             Summary: Cannot Open iOS app from url scheme
                 Key: CB-1279
                 URL: https://issues.apache.org/jira/browse/CB-1279
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.7.0
            Reporter: Amir Geri
            Assignee: Shazron Abdullah


Trying to open the app from a custom url scheme that was registered in plist and it crashes in line:
int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
in Main.m
Saying that he cannot concate a string with nil.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CB-1279) Cannot Open iOS app from url scheme

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-1279.
----------------------------------

    Resolution: Cannot Reproduce

Tested with the latest code, it is fine. It probably occurred in 1.7, but was probably fixed in later releases. Without knowing the exact line that crashed, I cannot help you patch your version.
                
> Cannot Open iOS app from url scheme
> -----------------------------------
>
>                 Key: CB-1279
>                 URL: https://issues.apache.org/jira/browse/CB-1279
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.7.0
>            Reporter: Amir Geri
>            Assignee: Shazron Abdullah
>
> Trying to open the app from a custom url scheme that was registered in plist and it crashes in line:
> int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
> in Main.m
> Saying that he cannot concate a string with nil.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1279) Cannot Open iOS app from url scheme

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442697#comment-13442697 ] 

Shazron Abdullah commented on CB-1279:
--------------------------------------

I only deal with what I can reproduce objectively with the code, or some test code. It is not treated hastily, it is the process we use.

I tested it with the latest code in a new project, even with various scheme urls, and it cannot be reproduced, thus the bug resolution. This can be re-opened if you can provide exact steps to reproduce.
                
> Cannot Open iOS app from url scheme
> -----------------------------------
>
>                 Key: CB-1279
>                 URL: https://issues.apache.org/jira/browse/CB-1279
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.7.0
>            Reporter: Amir Geri
>            Assignee: Shazron Abdullah
>
> Trying to open the app from a custom url scheme that was registered in plist and it crashes in line:
> int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
> in Main.m
> Saying that he cannot concate a string with nil.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1279) Cannot Open iOS app from url scheme

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442702#comment-13442702 ] 

Shazron Abdullah commented on CB-1279:
--------------------------------------

As you can see, in that GG post (which I participated in), there are steps to debug what the line the crash occurs in, try that, then attach the crash log.
                
> Cannot Open iOS app from url scheme
> -----------------------------------
>
>                 Key: CB-1279
>                 URL: https://issues.apache.org/jira/browse/CB-1279
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.7.0
>            Reporter: Amir Geri
>            Assignee: Shazron Abdullah
>
> Trying to open the app from a custom url scheme that was registered in plist and it crashes in line:
> int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
> in Main.m
> Saying that he cannot concate a string with nil.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (CB-1279) Cannot Open iOS app from url scheme

Posted by "Amir Geri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amir Geri closed CB-1279.
-------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

After a few changes the problem disappeared
                
> Cannot Open iOS app from url scheme
> -----------------------------------
>
>                 Key: CB-1279
>                 URL: https://issues.apache.org/jira/browse/CB-1279
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.7.0
>            Reporter: Amir Geri
>            Assignee: Shazron Abdullah
>             Fix For: 2.0.0
>
>
> Trying to open the app from a custom url scheme that was registered in plist and it crashes in line:
> int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
> in Main.m
> Saying that he cannot concate a string with nil.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1279) Cannot Open iOS app from url scheme

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442621#comment-13442621 ] 

Shazron Abdullah commented on CB-1279:
--------------------------------------

Please test with the latest version, since we don't provide patch releases for previous versions.

Also, what custom url are you launching, is it empty, etc? (this is an incomplete bug report)
                
> Cannot Open iOS app from url scheme
> -----------------------------------
>
>                 Key: CB-1279
>                 URL: https://issues.apache.org/jira/browse/CB-1279
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.7.0
>            Reporter: Amir Geri
>            Assignee: Shazron Abdullah
>
> Trying to open the app from a custom url scheme that was registered in plist and it crashes in line:
> int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
> in Main.m
> Saying that he cannot concate a string with nil.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Reopened] (CB-1279) Cannot Open iOS app from url scheme

Posted by "Amir Geri (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amir Geri reopened CB-1279:
---------------------------


Upgraded to Cordova 2.0 and it still occur.
Console has:
2012-08-29 16:26:41.828 @View[14721:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSCFConstantString stringByAppendingString:]: nil argument'
*** First throw call stack:
(0x35a8f88f 0x336b3259 0x35a8f789 0x35a8f7ab 0x34e20111 0x3b4f 0x38ab 0x3333f507 0x3326bc45 0x3326b4e5 0x3318fb03 0x3318f567 0x3318ef3b 0x3378122b 0x35a63523 0x35a634c5 0x35a62313 0x359e54a5 0x359e536d 0x33780439 0x331bdcd5 0x2fbf 0x2a74)
terminate called throwing an exception(lldb) 
                
> Cannot Open iOS app from url scheme
> -----------------------------------
>
>                 Key: CB-1279
>                 URL: https://issues.apache.org/jira/browse/CB-1279
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.7.0
>            Reporter: Amir Geri
>            Assignee: Shazron Abdullah
>
> Trying to open the app from a custom url scheme that was registered in plist and it crashes in line:
> int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
> in Main.m
> Saying that he cannot concate a string with nil.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1279) Cannot Open iOS app from url scheme

Posted by "Amir Geri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442687#comment-13442687 ] 

Amir Geri commented on CB-1279:
-------------------------------

Thank you for your quick reply, however i'm not currently in the office so I cannot test it against version 2.0
However before coming here I did googled it, and found this result: https://groups.google.com/forum/#!topic/phonegap/m-6aqTDJpRQ
I think you were a bit hasty in closing this bug, but I will tell you more tomorrow.
As but the line that crashed, I added that line (or at least what xcode was willing to tell me). I'm not an experienced MAC programmer so if you need more data you will have to walk me through it.
As for the link, its <scheme>://?key=value&otherKey=value and so forth. 
                
> Cannot Open iOS app from url scheme
> -----------------------------------
>
>                 Key: CB-1279
>                 URL: https://issues.apache.org/jira/browse/CB-1279
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.7.0
>            Reporter: Amir Geri
>            Assignee: Shazron Abdullah
>
> Trying to open the app from a custom url scheme that was registered in plist and it crashes in line:
> int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
> in Main.m
> Saying that he cannot concate a string with nil.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1279) Cannot Open iOS app from url scheme

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444250#comment-13444250 ] 

Shazron Abdullah commented on CB-1279:
--------------------------------------

Sorry, if others cannot reproduce it aside from you, the problem can't be found to fix (thus it will be "no repro"). Doing a search on "stringByAppendingString" there is only one occurrence in CDVFileTransfer.m, which has nothing to do with custom url schemes. 

Try this, when your project is open- Cmd-Shift-F, then search for "stringByAppendingString", and report the results.
                
> Cannot Open iOS app from url scheme
> -----------------------------------
>
>                 Key: CB-1279
>                 URL: https://issues.apache.org/jira/browse/CB-1279
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.7.0
>            Reporter: Amir Geri
>            Assignee: Shazron Abdullah
>
> Trying to open the app from a custom url scheme that was registered in plist and it crashes in line:
> int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
> in Main.m
> Saying that he cannot concate a string with nil.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (CB-1279) Cannot Open iOS app from url scheme

Posted by "Amir Geri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442687#comment-13442687 ] 

Amir Geri edited comment on CB-1279 at 8/28/12 7:22 AM:
--------------------------------------------------------

Thank you for your quick reply, however i'm not currently in the office so I cannot test it against version 2.0
However before coming here I did googled it, and found this result: https://groups.google.com/forum/#!topic/phonegap/m-6aqTDJpRQ
You can notice there is a guy with ver 2.0 that has the same problem.
I think you were a bit hasty in closing this bug, but I will tell you more tomorrow.
As but the line that crashed, I added that line (or at least what xcode was willing to tell me). I'm not an experienced MAC programmer so if you need more data you will have to walk me through it.
As for the link, its <scheme>://?key=value&otherKey=value and so forth. 
                
      was (Author: geriamir):
    Thank you for your quick reply, however i'm not currently in the office so I cannot test it against version 2.0
However before coming here I did googled it, and found this result: https://groups.google.com/forum/#!topic/phonegap/m-6aqTDJpRQ
I think you were a bit hasty in closing this bug, but I will tell you more tomorrow.
As but the line that crashed, I added that line (or at least what xcode was willing to tell me). I'm not an experienced MAC programmer so if you need more data you will have to walk me through it.
As for the link, its <scheme>://?key=value&otherKey=value and so forth. 
                  
> Cannot Open iOS app from url scheme
> -----------------------------------
>
>                 Key: CB-1279
>                 URL: https://issues.apache.org/jira/browse/CB-1279
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.7.0
>            Reporter: Amir Geri
>            Assignee: Shazron Abdullah
>
> Trying to open the app from a custom url scheme that was registered in plist and it crashes in line:
> int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
> in Main.m
> Saying that he cannot concate a string with nil.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira