[
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