Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ObjC @try @catch cause internal compiler error #160

Closed
mlfarrell opened this issue Sep 5, 2015 · 2 comments
Closed

ObjC @try @catch cause internal compiler error #160

mlfarrell opened this issue Sep 5, 2015 · 2 comments

Comments

@mlfarrell
Copy link

Code that craps out:

  @try
  {
    [target mirrorSketch];
  }
  @catch(NSException *e)
  {
#ifdef DEBUG
    NSLog(@"Exception: %@", e);
#endif
    NSString *message = NSLocalizedString(@"The generated mesh will be too complex to be efficiently edited by this software.", nil);
    NSString *title = NSLocalizedString(@"Mesh too complex", nil);
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title message:message 
                                                   delegate:nil cancelButtonTitle:NSLocalizedString(@"Ok", nil) otherButtonTitles:nil];
    [target restartSketch];
    [alert show];
  }
  @finally
  {  
    [[EAGLView sharedGLView] drawView:nil];  
  }
@PooyaZv
Copy link

PooyaZv commented Feb 18, 2016

Can you please try with ARC turned off? (Project > Properties > Clang > General > Enable Objective-C ARC = No)

Also, please see #354 and #405 . If the issue turns out to persist after the latter is fixed as well, please follow up with us :) Thank you.

@DHowett-MSFT
Copy link

Fixed with #2869

@DHowett-MSFT DHowett-MSFT self-assigned this May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants