0

I am getting the "wait_fences: failed to receive reply: 10004003" during the application:didFinishLaunchingWithOptions: method.

I have subclassed UIWindow and overridden the drawRect method which is what is causing the error. However, I have no idea what the error is trying to tell me, why it is occurring and how to fix it.

- (BOOL) application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {

        window_ = [[OoviumWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
        [window_ makeKeyAndVisible];
        controller_ = [[AetherController alloc] init];  
        [window_ setRootViewController:controller_];

        return YES;
    }



    @implementation OoviumWindow

    - (id) initWithFrame:(CGRect)rect {
        if (self = [super initWithFrame:rect]) {
            _image = [[UIImage imageNamed:@"Default-Portrait.png"] retain];
        }
        return self;
    }
    // UIWindow ======================================================================================
    - (void) drawRect:(CGRect)rect {
        [_image drawInRect:_rect blendMode:kCGBlendModeNormal alpha:.05];
    }

    @end
aepryus
  • 4,715
  • 5
  • 28
  • 41
  • possible duplicate of ["wait_fences: failed to receive reply: 10004003"?](http://stackoverflow.com/questions/1371346/wait-fences-failed-to-receive-reply-10004003) – bbum May 22 '12 at 20:42

1 Answers1

0

This looks like it is effectively a duplicate of "wait_fences: failed to receive reply: 10004003"?

Your symptoms are slightly different in that you are using application:didFinishLaunchingWithOptions:, but the end result is that you are triggering rendering operations too early in the app lifecycle.

Community
  • 1
  • 1
bbum
  • 162,346
  • 23
  • 271
  • 359
  • Unfortunately, none of those solutions are relevant. And given my code, it isn't clear that I'm triggering any rendering operations. Obviously, something is causing the UIWindow to render, but I'm not sure what I can do about it, since it's not being triggered by my code. – aepryus May 22 '12 at 20:48
  • @aepryus: `makeKeyAndVisible` will cause your window to be drawn -- how else would it become visible? – jscs May 22 '12 at 20:55
  • Fair enough.. But isn't it required that that method be called during application:didFinishLaunchingWithOptions: ? – aepryus May 22 '12 at 21:00