Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6730891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:27:47+00:00 2026-05-26T10:27:47+00:00

Occasionally I am getting a really strange crash in the simulator only (<= 4.3).

  • 0

Occasionally I am getting a really strange crash in the simulator only (<= 4.3). It happens when I press a button on a navigation controller embedded with in a popover. Under the popover there is an EAGLView which is rendering something. Memory is handled properly, etc… on device no problem at all.

Any idea?

Here is a call stack:

* thread #1: tid = 0x2c03, 0x00ab6707 CoreGraphics`CGColorGetAlpha + 17, stop reason = EXC_BAD_ACCESS (code=1, address=0x1cc9b72c)
frame #0: 0x00ab6707 CoreGraphics`CGColorGetAlpha + 17
frame #1: 0x00dc9871 QuartzCore`-[CALayer _renderBackgroundInContext:] + 97
frame #2: 0x00dc97af QuartzCore`-[CALayer renderInContext:] + 977
frame #3: 0x00dcf15c QuartzCore`-[CALayer _renderSublayersInContext:] + 444
frame #4: 0x00dc97e1 QuartzCore`-[CALayer renderInContext:] + 1027
frame #5: 0x00dcf15c QuartzCore`-[CALayer _renderSublayersInContext:] + 444
frame #6: 0x00dc97e1 QuartzCore`-[CALayer renderInContext:] + 1027
frame #7: 0x003434a9 UIKit`-[UIView(Internal) _renderSnapshotWithRect:inContext:] + 790
frame #8: 0x0067776d UIKit`-[UIClipCornerView _updateSnapshot] + 697
frame #9: 0x0067723c UIKit`-[UIRoundedCornerView didMoveToSuperview] + 51
frame #10: 0x0033c750 UIKit`-[UIView(Internal) _addSubview:positioned:relativeTo:] + 1080
frame #11: 0x0033aaa3 UIKit`-[UIView(Hierarchy) addSubview:] + 57
frame #12: 0x004df1ad UIKit`-[UILayoutContainerView _beginFastMode] + 259
frame #13: 0x003c0c74 UIKit`-[UIViewController(UINavigationControllerItem) setEditing:animated:] + 249
frame #14: 0x0051453b UIKit`-[UITableViewController setEditing:animated:] + 73
frame #15: 0x003b6d1e UIKit`-[UIViewController(UINavigationControllerItem) _toggleEditing:] + 77
frame #16: 0x0030b4fd UIKit`-[UIApplication sendAction:to:from:forEvent:] + 119
frame #17: 0x0051dcc3 UIKit`-[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 156
frame #18: 0x0030b4fd UIKit`-[UIApplication sendAction:to:from:forEvent:] + 119
frame #19: 0x0039b799 UIKit`-[UIControl sendAction:to:forEvent:] + 67
frame #20: 0x0039dc2b UIKit`-[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
frame #21: 0x0039c7d8 UIKit`-[UIControl touchesEnded:withEvent:] + 458
frame #22: 0x0032fded UIKit`-[UIWindow _sendTouchesForEvent:] + 567
frame #23: 0x00310c37 UIKit`-[UIApplication sendEvent:] + 447
frame #24: 0x00315f2e UIKit`_UIApplicationHandleEvent + 7576
frame #25: 0x018f0992 GraphicsServices`PurpleEventCallback + 1550
frame #26: 0x00f79944 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
frame #27: 0x00ed9cf7 CoreFoundation`__CFRunLoopDoSource1 + 215
frame #28: 0x00ed6f83 CoreFoundation`__CFRunLoopRun + 979
frame #29: 0x00ed6840 CoreFoundation`CFRunLoopRunSpecific + 208
frame #30: 0x00ed6761 CoreFoundation`CFRunLoopRunInMode + 97
frame #31: 0x018ef1c4 GraphicsServices`GSEventRunModal + 217
frame #32: 0x018ef289 GraphicsServices`GSEventRun + 115
frame #33: 0x00319c93 UIKit`UIApplicationMain + 1160

One more thing which seems to be important: when underlying EAGLView is hidden then it does not occur. GLView and Popover do not share any data – interesting, is not it? I suspect it comes when pressed button (“edit”) wants to redraw/toggle to “blue” then some blending happens since popover heading is a kind of translucent. For me sounds like a simulator problem; anyone had anything like that?

Thanks for any answer,

wl

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:27:48+00:00Added an answer on May 26, 2026 at 10:27 am

    GDB gives me something like that:

        Alloc: Block address: 0x12387ff0 length: 16
        Stack - pthread: 0xa0014540 number of frames: 38
            0: 0x5fb8e in GMmalloc_zone_malloc_internal
            1: 0x5fd31 in GMmalloc_zone_malloc
            2: 0x60327 in GMmalloc_zone_calloc
            3: 0x60375 in GMcalloc
            4: 0x132a2d4 in class_createInstance
            5: 0xec65d8 in +[NSObject(NSObject) allocWithZone:]
            6: 0x48218e in +[UIColor allocWithZone:]
            7: 0xec63da in +[NSObject(NSObject) alloc]
            8: 0x4812c6 in +[UIColor clearColor]
            9: 0x15b1d in -[EAGLView initWithCoder:]
    

    As we can see EAGLView is involved…

    …and in fact after some digging I figured out the problem was to do with EAGLLayer background color. I declared it as follows:

        eaglLayer.backgroundColor = (CGColorRef) [UIColor clearColor];
    

    This generally worked fine until then.

    I fixed it with:

        CGColorSpaceRef rgb = CGColorSpaceCreateDeviceRGB();
        const CGFloat clearColor[] = {0.0, 0.0, 0.0, 0.0};
        eaglLayer.backgroundColor = CGColorCreate(rgb, clearColor);
        CGColorSpaceRelease(rgb); 
    

    or shorter:

        eaglLayer.backgroundColor = [UIColor clearColor].CGColor;
    

    Since then no exception.

    @chown: thanks for your tip.

    wl

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting this error but only very occasionally. 99.9% of the time it
Our application is occasionally getting a BUS_ADRALN. Looking at the crash log it shows
We've occasionally been getting problems whereby our long-running server processes (running on Windows Server
I am getting deadlocks occasionally in sql server. I created a function for locking
I am getting ORA-02049 occasionally for some long-running and/or intensive transactions. There is seemingly
With the follow code, the latest tweet is only occasionally showing in Chrome but
I am occasionally getting flash popup this error: Error #2044: Unhandled error:. text= My
In production, I'm occasionally getting the following error: Errno::ETIMEDOUT: Connection timed out - connect(2)
I've got this line of code: if request.user_agent.include?(iPhone) then But I'm occasionally getting this
We are using Microsoft's sqljdbc driver 1.2 in combination with Hibernate under Windows. Occasionally

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.