You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2012/06/09 00:29:23 UTC

[jira] [Created] (CB-885) Crash when sliding the notification tray and/or tel link confirm dialog

Shazron Abdullah created CB-885:
-----------------------------------

             Summary: Crash when sliding the notification tray and/or tel link confirm dialog
                 Key: CB-885
                 URL: https://issues.apache.org/jira/browse/CB-885
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.8.0
            Reporter: Shazron Abdullah
            Assignee: Shazron Abdullah
            Priority: Critical


my app crashes when I invoke some native iOS UI (i.e. Manually pulling the Notification tray on top of the app, clicking a link that invokes a native Call dialog, etc). 

EmployeeDirectory18[2451:7103] bool _WebTryThreadLock(bool), 0x3a2f60: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
1   _ZL17_WebTryThreadLockb
2   WebThreadLock
3   -[UIWebView stringByEvaluatingJavaScriptFromString:]
4   -[CDVPlugin writeJavascript:]
5   -[CDVLocalStorage backup:withDict:]
6   __33-[CDVLocalStorage onResignActive]_block_invoke_0201
7   _dispatch_call_block_and_release
8   _dispatch_worker_thread2
9   _pthread_wqthread
10  start_wqthread
(lldb) 

--
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-885) Crash when sliding the notification tray and/or tel link confirm dialog

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

Shazron Abdullah commented on CB-885:
-------------------------------------

I think I know what's going on. When you do either of those actions, the app is not active anymore, and usually this signals that you are going into the background, and we do a backup of your localStorage database. 

Recently there was a change that made this backup async, (previously it was synchronous), and thus we have a threading issue – UIKit was only designed to be used on the main thread. The change was this: https://issues.apache.org/jira/browse/CB-684
                
> Crash when sliding the notification tray and/or tel link confirm dialog
> -----------------------------------------------------------------------
>
>                 Key: CB-885
>                 URL: https://issues.apache.org/jira/browse/CB-885
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.0
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>            Priority: Critical
>
> my app crashes when I invoke some native iOS UI (i.e. Manually pulling the Notification tray on top of the app, clicking a link that invokes a native Call dialog, etc). 
> EmployeeDirectory18[2451:7103] bool _WebTryThreadLock(bool), 0x3a2f60: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
> 1   _ZL17_WebTryThreadLockb
> 2   WebThreadLock
> 3   -[UIWebView stringByEvaluatingJavaScriptFromString:]
> 4   -[CDVPlugin writeJavascript:]
> 5   -[CDVLocalStorage backup:withDict:]
> 6   __33-[CDVLocalStorage onResignActive]_block_invoke_0201
> 7   _dispatch_call_block_and_release
> 8   _dispatch_worker_thread2
> 9   _pthread_wqthread
> 10  start_wqthread
> (lldb) 

--
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-885) Crash when sliding the notification tray and/or tel link confirm dialog

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

Lyle Pratt commented on CB-885:
-------------------------------

I'm actually experiencing this same issue when using Push Notifications with Cordova. Basically, the first time you request an APN, iOS asks for Push Notification permission via an alert. That alert crashes the app with this error:

2012-06-13 11:20:35.434 BetterVoicemail[667:7113] bool _WebTryThreadLock(bool), 0x190670: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now..

Shazron, do you think your commit will fix that issue? 1.8.1 is scheduled to be released tomorrow. Does it contain the fix?

Thanks!
Lyle
                
> Crash when sliding the notification tray and/or tel link confirm dialog
> -----------------------------------------------------------------------
>
>                 Key: CB-885
>                 URL: https://issues.apache.org/jira/browse/CB-885
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.0
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.8.1
>
>
> my app crashes when I invoke some native iOS UI (i.e. Manually pulling the Notification tray on top of the app, clicking a link that invokes a native Call dialog, etc). 
> EmployeeDirectory18[2451:7103] bool _WebTryThreadLock(bool), 0x3a2f60: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
> 1   _ZL17_WebTryThreadLockb
> 2   WebThreadLock
> 3   -[UIWebView stringByEvaluatingJavaScriptFromString:]
> 4   -[CDVPlugin writeJavascript:]
> 5   -[CDVLocalStorage backup:withDict:]
> 6   __33-[CDVLocalStorage onResignActive]_block_invoke_0201
> 7   _dispatch_call_block_and_release
> 8   _dispatch_worker_thread2
> 9   _pthread_wqthread
> 10  start_wqthread
> (lldb) 

--
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-885) Crash when sliding the notification tray and/or tel link confirm dialog

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

Lyle Pratt commented on CB-885:
-------------------------------

Thanks for the prompt reply and for the fix!
                
> Crash when sliding the notification tray and/or tel link confirm dialog
> -----------------------------------------------------------------------
>
>                 Key: CB-885
>                 URL: https://issues.apache.org/jira/browse/CB-885
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.0
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.8.1
>
>
> my app crashes when I invoke some native iOS UI (i.e. Manually pulling the Notification tray on top of the app, clicking a link that invokes a native Call dialog, etc). 
> EmployeeDirectory18[2451:7103] bool _WebTryThreadLock(bool), 0x3a2f60: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
> 1   _ZL17_WebTryThreadLockb
> 2   WebThreadLock
> 3   -[UIWebView stringByEvaluatingJavaScriptFromString:]
> 4   -[CDVPlugin writeJavascript:]
> 5   -[CDVLocalStorage backup:withDict:]
> 6   __33-[CDVLocalStorage onResignActive]_block_invoke_0201
> 7   _dispatch_call_block_and_release
> 8   _dispatch_worker_thread2
> 9   _pthread_wqthread
> 10  start_wqthread
> (lldb) 

--
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-885) Crash when sliding the notification tray and/or tel link confirm dialog

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

Shazron Abdullah commented on CB-885:
-------------------------------------

Hi Lyle, yes this is the same error. The commit will fix your issue, and will be in 1.8.1
                
> Crash when sliding the notification tray and/or tel link confirm dialog
> -----------------------------------------------------------------------
>
>                 Key: CB-885
>                 URL: https://issues.apache.org/jira/browse/CB-885
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.0
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.8.1
>
>
> my app crashes when I invoke some native iOS UI (i.e. Manually pulling the Notification tray on top of the app, clicking a link that invokes a native Call dialog, etc). 
> EmployeeDirectory18[2451:7103] bool _WebTryThreadLock(bool), 0x3a2f60: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
> 1   _ZL17_WebTryThreadLockb
> 2   WebThreadLock
> 3   -[UIWebView stringByEvaluatingJavaScriptFromString:]
> 4   -[CDVPlugin writeJavascript:]
> 5   -[CDVLocalStorage backup:withDict:]
> 6   __33-[CDVLocalStorage onResignActive]_block_invoke_0201
> 7   _dispatch_call_block_and_release
> 8   _dispatch_worker_thread2
> 9   _pthread_wqthread
> 10  start_wqthread
> (lldb) 

--
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-885) Crash when sliding the notification tray and/or tel link confirm dialog

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

Shazron Abdullah resolved CB-885.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.9.0

Fix commit - http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/27e83f74
                
> Crash when sliding the notification tray and/or tel link confirm dialog
> -----------------------------------------------------------------------
>
>                 Key: CB-885
>                 URL: https://issues.apache.org/jira/browse/CB-885
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.0
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.9.0
>
>
> my app crashes when I invoke some native iOS UI (i.e. Manually pulling the Notification tray on top of the app, clicking a link that invokes a native Call dialog, etc). 
> EmployeeDirectory18[2451:7103] bool _WebTryThreadLock(bool), 0x3a2f60: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
> 1   _ZL17_WebTryThreadLockb
> 2   WebThreadLock
> 3   -[UIWebView stringByEvaluatingJavaScriptFromString:]
> 4   -[CDVPlugin writeJavascript:]
> 5   -[CDVLocalStorage backup:withDict:]
> 6   __33-[CDVLocalStorage onResignActive]_block_invoke_0201
> 7   _dispatch_call_block_and_release
> 8   _dispatch_worker_thread2
> 9   _pthread_wqthread
> 10  start_wqthread
> (lldb) 

--
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-885) Crash when sliding the notification tray and/or tel link confirm dialog

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

Shazron Abdullah commented on CB-885:
-------------------------------------

1.8.1 is out: http://phonegap.com/2012/06/13/phonegap-1-8-1-released/
                
> Crash when sliding the notification tray and/or tel link confirm dialog
> -----------------------------------------------------------------------
>
>                 Key: CB-885
>                 URL: https://issues.apache.org/jira/browse/CB-885
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.0
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.8.1
>
>
> my app crashes when I invoke some native iOS UI (i.e. Manually pulling the Notification tray on top of the app, clicking a link that invokes a native Call dialog, etc). 
> EmployeeDirectory18[2451:7103] bool _WebTryThreadLock(bool), 0x3a2f60: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
> 1   _ZL17_WebTryThreadLockb
> 2   WebThreadLock
> 3   -[UIWebView stringByEvaluatingJavaScriptFromString:]
> 4   -[CDVPlugin writeJavascript:]
> 5   -[CDVLocalStorage backup:withDict:]
> 6   __33-[CDVLocalStorage onResignActive]_block_invoke_0201
> 7   _dispatch_call_block_and_release
> 8   _dispatch_worker_thread2
> 9   _pthread_wqthread
> 10  start_wqthread
> (lldb) 

--
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-885) Crash when sliding the notification tray and/or tel link confirm dialog

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

Shazron Abdullah updated CB-885:
--------------------------------

    Fix Version/s:     (was: 1.9.0)
                   1.8.1
    
> Crash when sliding the notification tray and/or tel link confirm dialog
> -----------------------------------------------------------------------
>
>                 Key: CB-885
>                 URL: https://issues.apache.org/jira/browse/CB-885
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.0
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>            Priority: Critical
>             Fix For: 1.8.1
>
>
> my app crashes when I invoke some native iOS UI (i.e. Manually pulling the Notification tray on top of the app, clicking a link that invokes a native Call dialog, etc). 
> EmployeeDirectory18[2451:7103] bool _WebTryThreadLock(bool), 0x3a2f60: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
> 1   _ZL17_WebTryThreadLockb
> 2   WebThreadLock
> 3   -[UIWebView stringByEvaluatingJavaScriptFromString:]
> 4   -[CDVPlugin writeJavascript:]
> 5   -[CDVLocalStorage backup:withDict:]
> 6   __33-[CDVLocalStorage onResignActive]_block_invoke_0201
> 7   _dispatch_call_block_and_release
> 8   _dispatch_worker_thread2
> 9   _pthread_wqthread
> 10  start_wqthread
> (lldb) 

--
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