ios - PhoneGap stuck in (webView:identiferForInitialRequest: fromDataSource) kCFRunLoopDefaultMode -
i have ios/phonegap project have inherited requires connecting via websockets. application seems work of time.
sometimes, after connection, following message appears in debug console.
2014-12-01 15:11:23.167 xxx[4156:1044391] void senddelegatemessage(nsinvocation *): delegate (webview:identifierforinitialrequest:fromdatasource:) failed return after waiting 10 seconds. main run loop mode: kcfrunloopdefaultmode 2014-12-01 15:11:33.169 xxx[4156:1044391] void senddelegatemessage(nsinvocation *): delegate (webview:identifierforinitialrequest:fromdatasource:) failed return after waiting 10 seconds. main run loop mode: kcfrunloopdefaultmode
at point, entire application freezes. appears if main run loop waiting response 1 of many calls between js , native layer. never resolves , prints error every 10 seconds.
i think may issue bug in js callback, or failure return proper result phonegap call. problem there dozen asyncronous phonegap calls happening on connect.
i'm looking determine if there is: 1. way can safely recover webview or 2. track down of phonegap calls causing problem
cheers.
look problem runaway phonegap call causing js interpreter in native layer take long.
i ended logging every call phonegap (around 30) , identified runaway call.
Comments
Post a Comment