Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
I can open a file with blanks from the Inspector but not from the finder.
Sample on gihtub
I cannot add a log file from the error, because there is none with the error from the finder.
I reproduced and saw the following in the client log:
[Critical][00:00:30.8921570] AppDomain: unhandled exception: System.Exception: Could not initialize an instance of the type 'Foundation.NSUrl': the native 'initWithString:' method returned nil.
It is possible to ignore this condition by setting MonoTouch.ObjCRuntime.Class.ThrowOnInitFailure to false.
at Foundation.NSObject.InitializeHandle (IntPtr handle, System.String initSelector) <0x114b97310 + 0x001b0> in <filename unknown>:0
at Foundation.NSUrl..ctor (System.String urlString) <0x11d99bd80 + 0x000b0> in <filename unknown>:0
at Xamarin.Inspector.Mac.Client.AppDelegate.OpenFile (AppKit.NSApplication sender, System.String filename) <0x11d99bcb0 + 0x00082> in <filename unknown>:0
at (wrapper managed-to-native) AppKit.NSApplication:NSApplicationMain (int,string)
at AppKit.NSApplication.Main (System.String args) <0x1103f3520 + 0x000c3> in <filename unknown>:0
at Xamarin.Inspector.Mac.Client.Entry.Main (System.String args) <0x10d30ae40 + 0x00025> in <filename unknown>:0
It looks like we are failing to urlencode the path string before passing to NSUrl. Thanks for finding this.
This was fixed around 0.8.0.