Admob GADBannerView.m bool _WebTryThreadLock(bool) iOS iPhone 崩溃
我使用 admob sdk 在 iPhone 3.1.3(第一代 iPhone)上运行该应用程序。我一直以为不是,最近我开始遇到这个错误,这是我以前从未见过的。
<Warning>: bool _WebTryThreadLock(bool), 0x3c3840: 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...
然后当我在日志文件中追踪错误时,我看到
Thread 6 Crashed:
0 WebCore 0x00084380 _WebTryThreadLock(bool) + 288
1 WebCore 0x00084ac0 _WebThreadAutoLock() + 52
2 UIKit 0x0022061c -[UIWebView dealloc] + 128
3 CoreFoundation 0x0003963a -[NSObject release] + 28
4 UIKit 0x0000ab2c -[UIView(Hierarchy) removeFromSuperview] + 592
5 UIKit 0x0005ca1c -[UIView dealloc] + 232
6 My iPhone App 0x0008d4e0 0x1000 + 574688
7 CoreFoundation 0x0003963a -[NSObject release] + 28
8 UIKit 0x0000ab2c -[UIView(Hierarchy) removeFromSuperview] + 592
9 UIKit 0x0005ca1c -[UIView dealloc] + 232
10 CoreFoundation 0x0003963a -[NSObject release] + 28
11 UIKit 0x000cad5c -[UIViewController dealloc] + 188
12 My iPhone App 0x00015e60 0x1000 + 85600
13 My iPhone App 0x000135c4 0x1000 + 75204
并进一步追踪它并得到,
-[GADBannerView dealloc] (in My iPhone App) (GADBannerView.m:111)
-[myViewController dealloc] (in My iPhone App) (myViewController.m:378)
-[mySubViewController dealloc] (in My iPhone App) (mySubViewController.m:64)
我不知道发生了什么。我可以采取什么措施来防止崩溃,还是 admob 必须解决这个问题?
任何帮助表示赞赏
I running the app on iPhone 3.1.3 (first gen iPhone) with admob sdk. Thought not all the time, I started to get this error lately, which I never seen before.
<Warning>: bool _WebTryThreadLock(bool), 0x3c3840: 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...
and then when I trace the error down in the log file, I see
Thread 6 Crashed:
0 WebCore 0x00084380 _WebTryThreadLock(bool) + 288
1 WebCore 0x00084ac0 _WebThreadAutoLock() + 52
2 UIKit 0x0022061c -[UIWebView dealloc] + 128
3 CoreFoundation 0x0003963a -[NSObject release] + 28
4 UIKit 0x0000ab2c -[UIView(Hierarchy) removeFromSuperview] + 592
5 UIKit 0x0005ca1c -[UIView dealloc] + 232
6 My iPhone App 0x0008d4e0 0x1000 + 574688
7 CoreFoundation 0x0003963a -[NSObject release] + 28
8 UIKit 0x0000ab2c -[UIView(Hierarchy) removeFromSuperview] + 592
9 UIKit 0x0005ca1c -[UIView dealloc] + 232
10 CoreFoundation 0x0003963a -[NSObject release] + 28
11 UIKit 0x000cad5c -[UIViewController dealloc] + 188
12 My iPhone App 0x00015e60 0x1000 + 85600
13 My iPhone App 0x000135c4 0x1000 + 75204
and traced it down even further and got,
-[GADBannerView dealloc] (in My iPhone App) (GADBannerView.m:111)
-[myViewController dealloc] (in My iPhone App) (myViewController.m:378)
-[mySubViewController dealloc] (in My iPhone App) (mySubViewController.m:64)
I have no idea what's going on. Is there something I can do to prevent the crash or is this something admob has to fix?
Any help is apprecated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用调试器来了解错误发生的位置。也是从您调用removeFromSuperView 方法的地方。这可能会导致问题
Try debugger to get the idea where your error occurred. Also from where you are calling removeFromSuperView method. This might be causing the problem