Bug 3208 - Exception when starting the profiler / unusable afterward
Summary: Exception when starting the profiler / unusable afterward
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 2.8.6
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Alan McGovern
Depends on:
Reported: 2012-02-02 16:41 UTC by Sebastien Pouliot
Modified: 2012-02-02 17:21 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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 or GitHub 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.

Related Links:

Description Sebastien Pouliot 2012-02-02 16:41:38 UTC

I can't start the profiler anymore. MD gives me a dialog with:

Can't remove file /var/folders/88/xs828t710rxdx5bq71mt_xr40000gp/T/profiler-output.mlpd

System.IO.DirectoryNotFoundException: Could not find a part of the path "/var/folders/88/xs828t710rxdx5bq71mt_xr40000gp/T/profiler-output.mlpd".
  at System.IO.File.Delete (System.String path) [0x00083] in /private/tmp/monobuild/build/BUILD/mono- 
  at MonoDevelop.Core.FileSystem.DefaultFileSystemExtension.DeleteFile (FilePath file) [0x00000] in /Users/builder/data/lanes/monodevelop-mac- 
  at MonoDevelop.Core.FileService.DeleteFile (System.String fileName) [0x00000] in /Users/builder/data/lanes/monodevelop-mac- 

I agree with the not found exception - "/var/folders/88/" does not exists. Now why does it want to remove this unexisting file ?

HeapShot does start afterward but it's impossible to take a snapshot (button grayed) using it. Note that it shows the invalid path in its status bar.

Re-starting MD did not help :(
Comment 1 Rolf Bjarne Kvinge [MSFT] 2012-02-02 17:21:22 UTC
Fixed in fcf8be34.

A workaround would be to delete the project's userprefs file.