内存崩溃警告

发布于 2024-11-06 10:08:52 字数 1812 浏览 0 评论 0原文

谁能帮忙分析一下这个崩溃问题吗?

    The program did receive memory warning when webview was opened.
    2011-05-10 10:52:44.882 [17713:207] *** -[CALayer retain]: message sent to deallocated instance 0xd0ee720
    (gdb) where
    #0  0x017d7057 in ___forwarding___ ()
    #1  0x017d6f22 in __forwarding_prep_0___ ()
    #2  0x017780bc in CFRetain ()
    #3  0x0185edb5 in +[__NSArrayI __new::] ()
    #4  0x013328f6 in -[CALayerArray copyWithZone:] ()
    #5  0x017c67ca in -[NSObject(NSObject) copy] ()
    #6  0x007378d7 in -[UIView dealloc] ()
    #7  0x007ac52a in -[UIViewController setView:] ()
    #8  0x007aeeec in -[UIViewController unloadViewForced:] ()
    #9  0x007aab0a in -[UIViewController unloadViewIfReloadable] ()
    #10 0x007b6194 in -[UINavigationController purgeMemoryForReason:] ()
    #11 0x007aa15b in -[UIViewController didReceiveMemoryWarning] ()
    #12 0x004686c1 in _nsnote_callback ()
    #13 0x0183df99 in __CFXNotificationPost_old ()
    #14 0x017bd33a in _CFXNotificationPostNotification ()
    #15 0x0045e266 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
    #16 0x0046a5a9 in -[NSNotificationCenter postNotificationName:object:] ()
    #17 0x00703108 in -[UIApplication _performMemoryWarning] ()
    #18 0x0181724c in __CFNotificationCenterDarwinCallBack ()
    #19 0x017a7872 in __CFMachPortPerform ()
    #20 0x01847064 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ ()
    #21 0x017a76f7 in __CFRunLoopDoSource1 ()
    #22 0x017a4983 in __CFRunLoopRun ()
    #23 0x017a4240 in CFRunLoopRunSpecific ()
    #24 0x017a4161 in CFRunLoopRunInMode ()
    #25 0x01daa268 in GSEventRunModal ()
    #26 0x01daa32d in GSEventRun ()
    #27 0x0070d42e in UIApplicationMain ()
    #28 0x0000272e in main (argc=1, argv=0xbfffee7c) 

Can anyone help in analysing this crash issue?

    The program did receive memory warning when webview was opened.
    2011-05-10 10:52:44.882 [17713:207] *** -[CALayer retain]: message sent to deallocated instance 0xd0ee720
    (gdb) where
    #0  0x017d7057 in ___forwarding___ ()
    #1  0x017d6f22 in __forwarding_prep_0___ ()
    #2  0x017780bc in CFRetain ()
    #3  0x0185edb5 in +[__NSArrayI __new::] ()
    #4  0x013328f6 in -[CALayerArray copyWithZone:] ()
    #5  0x017c67ca in -[NSObject(NSObject) copy] ()
    #6  0x007378d7 in -[UIView dealloc] ()
    #7  0x007ac52a in -[UIViewController setView:] ()
    #8  0x007aeeec in -[UIViewController unloadViewForced:] ()
    #9  0x007aab0a in -[UIViewController unloadViewIfReloadable] ()
    #10 0x007b6194 in -[UINavigationController purgeMemoryForReason:] ()
    #11 0x007aa15b in -[UIViewController didReceiveMemoryWarning] ()
    #12 0x004686c1 in _nsnote_callback ()
    #13 0x0183df99 in __CFXNotificationPost_old ()
    #14 0x017bd33a in _CFXNotificationPostNotification ()
    #15 0x0045e266 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
    #16 0x0046a5a9 in -[NSNotificationCenter postNotificationName:object:] ()
    #17 0x00703108 in -[UIApplication _performMemoryWarning] ()
    #18 0x0181724c in __CFNotificationCenterDarwinCallBack ()
    #19 0x017a7872 in __CFMachPortPerform ()
    #20 0x01847064 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ ()
    #21 0x017a76f7 in __CFRunLoopDoSource1 ()
    #22 0x017a4983 in __CFRunLoopRun ()
    #23 0x017a4240 in CFRunLoopRunSpecific ()
    #24 0x017a4161 in CFRunLoopRunInMode ()
    #25 0x01daa268 in GSEventRunModal ()
    #26 0x01daa32d in GSEventRun ()
    #27 0x0070d42e in UIApplicationMain ()
    #28 0x0000272e in main (argc=1, argv=0xbfffee7c) 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尬尬 2024-11-13 10:08:52

您正在尝试访问已释放的 CALayer 对象。确保正确释放对象。还要确保在释放其他对象之前不调用 [super dealloc];

You are trying to access a CALayer object that has already been released. Make sure you release the objects properly. Also ensure that [super dealloc]; is not called before other objects are released

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文