Note that there are some explanatory texts on larger screens.

plurals
  1. PONSInvalidArgumentException Reason - [xxxx backdropView:willChangeToGraphicsQuality]
    text
    copied!<p>I am using Xamarin and after updating to iOS 7 sdk my application keeps crashing...I have a function that I pass into my second view controller from my first view controller as an action that simply is:</p> <pre><code> public void Dismiss() { try{ this.PresentedViewController.DismissViewController (false, null); } catch(Exception ex) { string filePath = Path.Combine(path, "log.txt"); File.AppendAllText(filePath,"\n" + DateTime.Now + "\tISSUE:\t Closing colletions detail tab...\n\n" + ex.Message + " " + ex.StackTrace); } } </code></pre> <p>Now the application is crashes even after catching the exception. What gets printed in my log is:</p> <pre><code>Objective-C exception thrown. Name: NSInvalidArgumentException Reason: [UILabel backdropView:willChangeToGraphicsQuality:]: unrecognized selector sent to instance 0x18c8ee40 at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSendSuper_bool_IntPtr (intptr,intptr, bool, intptr) at MonoTouch.UIKit.UIViewController.DismissViewController(Boolean animated, MonoTouch.Foundation.NSAction completionHandler) [0x00057] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIViewController.g.cs 747 at YltraRoute.MainViewController.CloseCollectionDetailTab()[0x00011]... </code></pre> <p>I don't even know where to start with this. There is not much help out there.</p> <p>Oh and its not always [UILabel backdropView... its sometime UIScrollViewPanGuestureRecognizer </p> <p>So I have done more searching and it seems that this may be a memory issue (object already garbage collected). </p> <p>I got that info from <a href="http://imlocation.wordpress.com/2007/09/13/strange-objects-nscftype-indicate-memory-management-bugs/" rel="nofollow">here</a> as another version of the fault was:</p> <pre><code>Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[__NSCFType backdropView:willChangeToGraphicsQuality:]: unrecognized selector sent to instance 0x1eb3ad70 </code></pre> <p>So if this is truly the case how do I go about this. There is no way that the presenting view controller could be released already right? And the presented view controller is declared globally in my class as well.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload