Moisés Gramary created CB-911:
---------------------------------

             Summary: Unhandled exception in Cordova 1.8.0 when changing App
                 Key: CB-911
                 URL: https://issues.apache.org/jira/browse/CB-911
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.8.0
         Environment: iOS 5.1.1
            Reporter: Moisés Gramary
            Assignee: Shazron Abdullah
            Priority: Critical


When the app "lost focus", in example, when you click two times in home button 
in iPhone to change between opened apps the Cordova crashes showing this error:

2012-06-13 12:05:18.463 mae[1661:7847] bool _WebTryThreadLock(bool), 0x289d60: 
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_wqthrea

There is a Google Groups thread that describes the same thing:

https://groups.google.com/forum/?fromgroups#!topic/phonegap/HAC1r8sDBgY


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


Reply via email to