Thanks for the catch! (and useful stack trace) Looks like I accidentally checked in a change I shouldn't have:
- [self evalJsHelper:js]; + [self evalJsHelper2:js]; On Fri, Feb 22, 2013 at 3:15 PM, Filip Maj <[email protected]> wrote: > This is the output I get about 20 or so tests into the full jasmine unit > test: > > 2013-02-22 12:12:58.748 cordovaExample[4857:3107] bool > _WebTryThreadLock(bool), 0x2aeb40: 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 -[CDVCommandDelegateImpl evalJsHelper2:] > 5 -[CDVCommandDelegateImpl sendPluginResult:callbackId:] > 6 __22-[CDVContacts search:]_block_invoke_2 > 7 -[CDVAddressBookHelper createAddressBook:] > 8 __22-[CDVContacts search:]_block_invoke > 9 _dispatch_call_block_and_release > 10 _dispatch_worker_thread2 > 11 _pthread_wqthread > 12 start_wqthread > > > Passes fine on 6.0.1 devices (both iphone5 and iPod). > > Fails on ipod4,1 running 5.1.1. > >
