You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Jason Dove (JIRA)" <ji...@apache.org> on 2012/08/13 17:08:38 UTC

[jira] [Created] (CB-1229) Application Crashes w/EXC_BAD_ACCESS on ResignActive

Jason Dove created CB-1229:
------------------------------

             Summary: Application Crashes w/EXC_BAD_ACCESS on ResignActive
                 Key: CB-1229
                 URL: https://issues.apache.org/jira/browse/CB-1229
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.8.1
         Environment: iOS 5.1
            Reporter: Jason Dove
            Assignee: Shazron Abdullah
            Priority: Critical


I recently moved from PG 1.2 to 1.8.1.

On Android I have no issues. On iOS, whenever I press the home button the application crashes with an EXC_BAD_ACCESS.  

I have my own backgroundTask that also ran on ResignActive, and I thought it could be a problem, so I removed it and retested, unfortunately the app is still failing.

CallStack from the crash:
#0	0x02acf09f in objc_msgSend ()
#1	0x0023ab52 in -[_UIBackgroundTaskInfo dealloc] ()
#2	0x02acfe3d in _objc_rootRelease ()
#3	0x014861d4 in releaseObjectMT ()
#4	0x014832b9 in __NSMapTableCallback ()
#5	0x01493686 in CFBasicHashRemoveValue ()
#6	0x01493181 in -[NSClassicMapTable removeObjectForKey:] ()
#7	0x01493115 in NSMapRemove ()
#8	0x0024e15d in -[UIApplication endBackgroundTask:] ()
#9	0x00118f99 in __33-[CDVLocalStorage onResignActive]_block_invoke_0203 ()
#10	0x04a4d330 in _dispatch_call_block_and_release ()
#11	0x04a4e439 in _dispatch_worker_thread2 ()
#12	0x988a1b24 in _pthread_wqthread ()
#13	0x988a36fe in start_wqthread ()


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-1229) Application Crashes w/EXC_BAD_ACCESS on ResignActive

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

Shazron Abdullah resolved CB-1229.
----------------------------------

    Resolution: Cannot Reproduce

Please re-test with 2.1.0 when it is out next week. For now, I am resolving as no repro as per my original findings. Re-open if it is still a problem
                
> Application Crashes w/EXC_BAD_ACCESS on ResignActive
> ----------------------------------------------------
>
>                 Key: CB-1229
>                 URL: https://issues.apache.org/jira/browse/CB-1229
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5.1
>            Reporter: Jason Dove
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: zombie.png
>
>
> I recently moved from PG 1.2 to 1.8.1.
> On Android I have no issues. On iOS, whenever I press the home button the application crashes with an EXC_BAD_ACCESS.  
> I have my own backgroundTask that also ran on ResignActive, and I thought it could be a problem, so I removed it and retested, unfortunately the app is still failing.
> CallStack from the crash:
> #0	0x02acf09f in objc_msgSend ()
> #1	0x0023ab52 in -[_UIBackgroundTaskInfo dealloc] ()
> #2	0x02acfe3d in _objc_rootRelease ()
> #3	0x014861d4 in releaseObjectMT ()
> #4	0x014832b9 in __NSMapTableCallback ()
> #5	0x01493686 in CFBasicHashRemoveValue ()
> #6	0x01493181 in -[NSClassicMapTable removeObjectForKey:] ()
> #7	0x01493115 in NSMapRemove ()
> #8	0x0024e15d in -[UIApplication endBackgroundTask:] ()
> #9	0x00118f99 in __33-[CDVLocalStorage onResignActive]_block_invoke_0203 ()
> #10	0x04a4d330 in _dispatch_call_block_and_release ()
> #11	0x04a4e439 in _dispatch_worker_thread2 ()
> #12	0x988a1b24 in _pthread_wqthread ()
> #13	0x988a36fe in start_wqthread ()

--
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] [Updated] (CB-1229) Application Crashes w/EXC_BAD_ACCESS on ResignActive

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

Shazron Abdullah updated CB-1229:
---------------------------------

    Fix Version/s: 2.1.0
    
> Application Crashes w/EXC_BAD_ACCESS on ResignActive
> ----------------------------------------------------
>
>                 Key: CB-1229
>                 URL: https://issues.apache.org/jira/browse/CB-1229
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5.1
>            Reporter: Jason Dove
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> I recently moved from PG 1.2 to 1.8.1.
> On Android I have no issues. On iOS, whenever I press the home button the application crashes with an EXC_BAD_ACCESS.  
> I have my own backgroundTask that also ran on ResignActive, and I thought it could be a problem, so I removed it and retested, unfortunately the app is still failing.
> CallStack from the crash:
> #0	0x02acf09f in objc_msgSend ()
> #1	0x0023ab52 in -[_UIBackgroundTaskInfo dealloc] ()
> #2	0x02acfe3d in _objc_rootRelease ()
> #3	0x014861d4 in releaseObjectMT ()
> #4	0x014832b9 in __NSMapTableCallback ()
> #5	0x01493686 in CFBasicHashRemoveValue ()
> #6	0x01493181 in -[NSClassicMapTable removeObjectForKey:] ()
> #7	0x01493115 in NSMapRemove ()
> #8	0x0024e15d in -[UIApplication endBackgroundTask:] ()
> #9	0x00118f99 in __33-[CDVLocalStorage onResignActive]_block_invoke_0203 ()
> #10	0x04a4d330 in _dispatch_call_block_and_release ()
> #11	0x04a4e439 in _dispatch_worker_thread2 ()
> #12	0x988a1b24 in _pthread_wqthread ()
> #13	0x988a36fe in start_wqthread ()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1229) Application Crashes w/EXC_BAD_ACCESS on ResignActive

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

Shazron Abdullah commented on CB-1229:
--------------------------------------

I cannot repro in 1.8.1 nor 2.0.0 (with new projects).
                
> Application Crashes w/EXC_BAD_ACCESS on ResignActive
> ----------------------------------------------------
>
>                 Key: CB-1229
>                 URL: https://issues.apache.org/jira/browse/CB-1229
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5.1
>            Reporter: Jason Dove
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> I recently moved from PG 1.2 to 1.8.1.
> On Android I have no issues. On iOS, whenever I press the home button the application crashes with an EXC_BAD_ACCESS.  
> I have my own backgroundTask that also ran on ResignActive, and I thought it could be a problem, so I removed it and retested, unfortunately the app is still failing.
> CallStack from the crash:
> #0	0x02acf09f in objc_msgSend ()
> #1	0x0023ab52 in -[_UIBackgroundTaskInfo dealloc] ()
> #2	0x02acfe3d in _objc_rootRelease ()
> #3	0x014861d4 in releaseObjectMT ()
> #4	0x014832b9 in __NSMapTableCallback ()
> #5	0x01493686 in CFBasicHashRemoveValue ()
> #6	0x01493181 in -[NSClassicMapTable removeObjectForKey:] ()
> #7	0x01493115 in NSMapRemove ()
> #8	0x0024e15d in -[UIApplication endBackgroundTask:] ()
> #9	0x00118f99 in __33-[CDVLocalStorage onResignActive]_block_invoke_0203 ()
> #10	0x04a4d330 in _dispatch_call_block_and_release ()
> #11	0x04a4e439 in _dispatch_worker_thread2 ()
> #12	0x988a1b24 in _pthread_wqthread ()
> #13	0x988a36fe in start_wqthread ()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1229) Application Crashes w/EXC_BAD_ACCESS on ResignActive

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

Jason Dove commented on CB-1229:
--------------------------------

Tried it, but it didn't make a difference.  Thanks for the suggestion though.
                
> Application Crashes w/EXC_BAD_ACCESS on ResignActive
> ----------------------------------------------------
>
>                 Key: CB-1229
>                 URL: https://issues.apache.org/jira/browse/CB-1229
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5.1
>            Reporter: Jason Dove
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: zombie.png
>
>
> I recently moved from PG 1.2 to 1.8.1.
> On Android I have no issues. On iOS, whenever I press the home button the application crashes with an EXC_BAD_ACCESS.  
> I have my own backgroundTask that also ran on ResignActive, and I thought it could be a problem, so I removed it and retested, unfortunately the app is still failing.
> CallStack from the crash:
> #0	0x02acf09f in objc_msgSend ()
> #1	0x0023ab52 in -[_UIBackgroundTaskInfo dealloc] ()
> #2	0x02acfe3d in _objc_rootRelease ()
> #3	0x014861d4 in releaseObjectMT ()
> #4	0x014832b9 in __NSMapTableCallback ()
> #5	0x01493686 in CFBasicHashRemoveValue ()
> #6	0x01493181 in -[NSClassicMapTable removeObjectForKey:] ()
> #7	0x01493115 in NSMapRemove ()
> #8	0x0024e15d in -[UIApplication endBackgroundTask:] ()
> #9	0x00118f99 in __33-[CDVLocalStorage onResignActive]_block_invoke_0203 ()
> #10	0x04a4d330 in _dispatch_call_block_and_release ()
> #11	0x04a4e439 in _dispatch_worker_thread2 ()
> #12	0x988a1b24 in _pthread_wqthread ()
> #13	0x988a36fe in start_wqthread ()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1229) Application Crashes w/EXC_BAD_ACCESS on ResignActive

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

Jason Dove commented on CB-1229:
--------------------------------

No, I couldn't repro it on a new project either.  But if I revert back to my 1.2 project I don't have the issue (with the same code).  I've raise a task on my side to upgrade to 2.1.0, once that happens we'll see if it just goes away.
                
> Application Crashes w/EXC_BAD_ACCESS on ResignActive
> ----------------------------------------------------
>
>                 Key: CB-1229
>                 URL: https://issues.apache.org/jira/browse/CB-1229
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5.1
>            Reporter: Jason Dove
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.1.0
>
>
> I recently moved from PG 1.2 to 1.8.1.
> On Android I have no issues. On iOS, whenever I press the home button the application crashes with an EXC_BAD_ACCESS.  
> I have my own backgroundTask that also ran on ResignActive, and I thought it could be a problem, so I removed it and retested, unfortunately the app is still failing.
> CallStack from the crash:
> #0	0x02acf09f in objc_msgSend ()
> #1	0x0023ab52 in -[_UIBackgroundTaskInfo dealloc] ()
> #2	0x02acfe3d in _objc_rootRelease ()
> #3	0x014861d4 in releaseObjectMT ()
> #4	0x014832b9 in __NSMapTableCallback ()
> #5	0x01493686 in CFBasicHashRemoveValue ()
> #6	0x01493181 in -[NSClassicMapTable removeObjectForKey:] ()
> #7	0x01493115 in NSMapRemove ()
> #8	0x0024e15d in -[UIApplication endBackgroundTask:] ()
> #9	0x00118f99 in __33-[CDVLocalStorage onResignActive]_block_invoke_0203 ()
> #10	0x04a4d330 in _dispatch_call_block_and_release ()
> #11	0x04a4e439 in _dispatch_worker_thread2 ()
> #12	0x988a1b24 in _pthread_wqthread ()
> #13	0x988a36fe in start_wqthread ()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-1229) Application Crashes w/EXC_BAD_ACCESS on ResignActive

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

Shazron Abdullah updated CB-1229:
---------------------------------

    Attachment: zombie.png

It's possible there is a zombie in the blocks code (double dealloc). Turn on zombies by editing your scheme (see screenshot in this issue)
                
> Application Crashes w/EXC_BAD_ACCESS on ResignActive
> ----------------------------------------------------
>
>                 Key: CB-1229
>                 URL: https://issues.apache.org/jira/browse/CB-1229
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>         Environment: iOS 5.1
>            Reporter: Jason Dove
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: zombie.png
>
>
> I recently moved from PG 1.2 to 1.8.1.
> On Android I have no issues. On iOS, whenever I press the home button the application crashes with an EXC_BAD_ACCESS.  
> I have my own backgroundTask that also ran on ResignActive, and I thought it could be a problem, so I removed it and retested, unfortunately the app is still failing.
> CallStack from the crash:
> #0	0x02acf09f in objc_msgSend ()
> #1	0x0023ab52 in -[_UIBackgroundTaskInfo dealloc] ()
> #2	0x02acfe3d in _objc_rootRelease ()
> #3	0x014861d4 in releaseObjectMT ()
> #4	0x014832b9 in __NSMapTableCallback ()
> #5	0x01493686 in CFBasicHashRemoveValue ()
> #6	0x01493181 in -[NSClassicMapTable removeObjectForKey:] ()
> #7	0x01493115 in NSMapRemove ()
> #8	0x0024e15d in -[UIApplication endBackgroundTask:] ()
> #9	0x00118f99 in __33-[CDVLocalStorage onResignActive]_block_invoke_0203 ()
> #10	0x04a4d330 in _dispatch_call_block_and_release ()
> #11	0x04a4e439 in _dispatch_worker_thread2 ()
> #12	0x988a1b24 in _pthread_wqthread ()
> #13	0x988a36fe in start_wqthread ()

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira