Bug 32533 - System.Diagnostics.Process.GetProcesses () in Mac sketches crashes XS
Summary: System.Diagnostics.Process.GetProcesses () in Mac sketches crashes XS
Status: NEW
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Sketches ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Sketches Dev List
URL:
Depends on:
Blocks:
 
Reported: 2015-07-28 13:12 UTC by Manish Sinha
Modified: 2015-07-28 13:12 UTC (History)
2 users (show)

Tags:
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 for Bug 32533 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Manish Sinha 2015-07-28 13:12:43 UTC
Steps to reproduce

1. Open XS from master build
2. Create a new Mac sketch
3. To the sketch add the line

> System.Diagnostics.Process.GetProcesses ()

Expected: The sketch is executed, and the number of processes show up on the side

Actual: XS crashes with Ide.log


INFO [2015-07-28 12:28:04Z]: Starting Xamarin Studio 5.10 (build 450)
INFO [2015-07-28 12:28:04Z]: Running on Mono 4.0.3 ((detached/e4f44c1)
INFO [2015-07-28 12:28:04Z]: Operating System: Mac OS X 10.10.4
Darwin Manishs-MacBook-Pro.local 14.4.0 Darwin Kernel Version 14.4.0
    Thu May 28 11:35:04 PDT 2015
    root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64
INFO [2015-07-28 12:28:04Z]: Using GTK+ 2.24.23
INFO [2015-07-28 12:28:05Z]: Add-in loaded: MonoDevelop.Core
INFO [2015-07-28 12:28:05Z]: Add-in loaded: MonoDevelop.Ide
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.MacPlatform
INFO [2015-07-28 12:28:06Z]: Initializing Runtime Mono 4.0.3
Starting Xamarin Studio
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.Debugger
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.SourceEditor2
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.DesignerSupport
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.Xml
INFO [2015-07-28 12:28:06Z]: Add-in loaded: Xamarin.Forms.Addin
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.TextTemplating
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.AspNet
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.Refactoring
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.CSharpBinding
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.PackageManagement
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.Xamarin.Ide
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.Xamarin.Ide.Mac
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.VersionControl
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.MacDev
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.NUnit
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.FSharpBinding
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.VBBinding
INFO [2015-07-28 12:28:06Z]: Add-in loaded: Xamarin.TestCloud
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.Debugger.Soft
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.IPhone
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.MonoAndroid
INFO [2015-07-28 12:28:06Z]: Add-in loaded: Xamarin.Sketches
INFO [2015-07-28 12:28:06Z]: Add-in loaded: MonoDevelop.AddinMaker
INFO [2015-07-28 12:28:08Z]: Add-in loaded: MonoDevelop.GtkCore
INFO [2015-07-28 12:28:08Z]: Add-in loaded: MonoDevelop.Deployment
INFO [2015-07-28 12:28:08Z]: Add-in loaded: MonoDevelop.MonoMac
INFO [2015-07-28 12:28:08Z]: Add-in loaded: MonoDevelop.WebReferences
INFO [2015-07-28 12:28:08Z]: Add-in loaded: Xamarin.TestCloud.NUnit
INFO [2015-07-28 12:28:08Z]: Add-in loaded: MonoDevelop.Deployment.Linux
INFO [2015-07-28 12:28:08Z]: Add-in loaded: MonoDevelop.CBinding
   Loading Workbench
INFO [2015-07-28 12:28:08Z]: Add-in loaded: MonoDevelop.AssemblyBrowser
INFO [2015-07-28 12:28:08Z]: Add-in loaded: MonoDevelop.VersionControl.Git
INFO [2015-07-28 12:28:08Z]: Add-in loaded: MonoDevelop.DocFood
INFO [2015-07-28 12:28:08Z]: Add-in loaded: MonoDevelop.RegexToolkit
INFO [2015-07-28 12:28:08Z]: Add-in loaded: ShowInGithub.ShowInGithub
INFO [2015-07-28 12:28:09Z]: ANDROID: Found Xamarin.Android 5.1.5
INFO [2015-07-28 12:28:09Z]: ANDROID: Found Android SDK. API levels: 10, 15, 16, 17, 19, 20, 21, 22
INFO [2015-07-28 12:28:09Z]: Initial entitlements: Android Business 2015-07-29 18:25:09Z
INFO [2015-07-28 12:28:09Z]: Running license sync for Android
INFO [2015-07-28 12:28:09Z]: Found Xcode, version 6.4 (7720).
INFO [2015-07-28 12:28:09Z]: Found MonoMac.
INFO [2015-07-28 12:28:09Z]: Found Xamarin.Mac, version 2.0.2.102.
INFO [2015-07-28 12:28:09Z]: Initial entitlements: Mac Business 2015-07-29 18:25:09Z
INFO [2015-07-28 12:28:09Z]: Running license sync for Mac
INFO [2015-07-28 12:28:09Z]: Found Xamarin.iOS, version 8.10.4.27.
INFO [2015-07-28 12:28:09Z]: Initial entitlements: iOS Business 2015-07-29 18:25:09Z
INFO [2015-07-28 12:28:09Z]: Running license sync for iOS
      Initializing Main Window
INFO [2015-07-28 12:28:09Z]: Creating DefaultWorkbench
INFO [2015-07-28 12:28:10Z]: Updating Welcome Page from 'https://software.xamarin.com/Service/News'.
INFO [2015-07-28 12:28:10Z]: Updating Prebuilt Apps from 'https://xamarin.com/PrebuiltApps.xml'.
INFO [2015-07-28 12:28:11Z]: Add-in loaded: MonoDevelop.ILAsmBinding
INFO [2015-07-28 12:28:11Z]: Add-in loaded: MonoDevelop.VersionControl.Subversion
INFO [2015-07-28 12:28:11Z]: Add-in loaded: MonoDevelop.VersionControl.Subversion.Unix
INFO [2015-07-28 12:28:13Z]: Updated license: Mac Business 7/29/2015 6:25:09 PM
INFO [2015-07-28 12:28:13Z]: Updated license: iOS Business 7/29/2015 6:25:09 PM
INFO [2015-07-28 12:28:13Z]: Prebuilt Apps image already up-to-date.
INFO [2015-07-28 12:28:13Z]: Welcome Page updated.
INFO [2015-07-28 12:28:13Z]: Prebuilt Apps image already up-to-date.
INFO [2015-07-28 12:28:13Z]: Prebuilt Apps image already up-to-date.
INFO [2015-07-28 12:28:13Z]: Updated license: Android Business 7/29/2015 6:25:09 PM
INFO [2015-07-28 12:28:13Z]: Prebuilt Apps image already up-to-date.
INFO [2015-07-28 12:28:13Z]: Prebuilt Apps already up-to-date.
INFO [2015-07-28 12:28:13Z]: Prebuilt Apps updated.
INFO [2015-07-28 12:28:31Z]: Add-in loaded: MonoDevelop.HexEditor
INFO [2015-07-28 12:28:39Z]: AgentProcess: reg server says: FwQSAHcAAABYYW1hcmluLkludGVyYWN0aXZlLkNvcmUuQWdlbnRJZGVudGl0eSwgWGFtYXJpbi5JbnRlcmFjdGl2ZS5Db3JlLCBWZXJzaW9uPTAuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbBIAAgAAAElkEgESAAkAAABBZ2VudFR5cGUYCBIAcwAAAFhhbWFyaW4uSW50ZXJhY3RpdmUuQ29yZS5BZ2VudFR5cGUsIFhhbWFyaW4uSW50ZXJhY3RpdmUuQ29yZSwgVmVyc2lvbj0wLjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPW51bGwACQAAAE1hY19Db2NvYQUAAwAAABIACAAAAERldmljZUlkEgAkAAAANDA0ZjUyNTctZDBiZC00Y2ZmLWE0NTMtMDhiMWIwYzBiMjAyEgAKAAAARGV2aWNlTmFtZRIBEgAPAAAAQXBwbGljYXRpb25OYW1lEgAOAAAAWGFtYXJpbiBTa2V0Y2gSABIAAABBcHBsaWNhdGlvblZlcnNpb24SARIABAAAAEhvc3QSARIABAAAAFBvcnQEAJHsEgAJAAAAUHJvY2Vzc0lkBQDjCwEAAAI=
[Agent 68539] [Debug][00:00:01.6247730] XipServer: Accept: connection closed
[Agent 68539] [Debug][00:00:01.6237690] XipServer: Accept: closing connection
[Agent 68539] [Debug][00:00:01.6329710] XipServer: AcceptLoop: AcceptTcpClientAsync continuation
[Agent 68539] [Debug][00:00:01.6332200] XipServer: AcceptLoop: AcceptTcpClientAsync
[Agent 68539] [Debug][00:00:01.6337140] XipServer: Accept: received message: Xamarin.Interactive.Core.SwitchSessionRequest
[Agent 68539] [Debug][00:00:01.6341210] XipServer: Accept: connection closed
[Agent 68539] [Debug][00:00:01.6340910] XipServer: Accept: closing connection
INFO [2015-07-28 12:28:39Z]: DocumentCache: Scanning /Users/manish/Library/Caches/XamarinStudio-5.0/Temp/xamarin.sketches/ef9bdadb-a0d9-41aa-bd51-2f84b0f63911.sketchcs.Resources/ for resources to upload...
INFO [2015-07-28 12:28:39Z]: DocumentCache: 0 resources to process
[Agent 68539] [Debug][00:00:01.6461020] XipServer: AcceptLoop: AcceptTcpClientAsync
[Agent 68539] [Debug][00:00:01.6460750] XipServer: AcceptLoop: AcceptTcpClientAsync continuation
[Agent 68539] [Debug][00:00:01.6479120] XipServer: Accept: received message: Xamarin.Interactive.Core.ResourceClearRequest
[Agent 68539] [Debug][00:00:01.6487870] XipServer: Accept: connection closed
[Agent 68539] [Debug][00:00:01.6487640] XipServer: Accept: closing connection
[Agent 68539] [Debug][00:00:02.6583900] XipServer: AcceptLoop: AcceptTcpClientAsync continuation
[Agent 68539] [Debug][00:00:02.6584240] XipServer: AcceptLoop: AcceptTcpClientAsync
[Agent 68539] [Debug][00:00:02.6597150] XipServer: Accept: received message: Xamarin.Interactive.Compiler.EvaluateRequest
[Agent 68539] [Debug][00:00:02.6602450] XipEvaluator: Timeout received: 00:00:30 seconds
[Agent 68539] [Debug][00:00:02.8376540] XipServer: Accept: closing connection
[Agent 68539] [Debug][00:00:02.8376890] XipServer: Accept: connection closed
INFO [2015-07-28 12:28:54Z]: CodeTemplateService: No user templates, reading default templates.
[Agent 68539] [Debug][00:00:23.0393520] XipServer: AcceptLoop: AcceptTcpClientAsync continuation
[Agent 68539] [Debug][00:00:23.0394280] XipServer: AcceptLoop: AcceptTcpClientAsync
[Agent 68539] [Debug][00:00:23.0396180] XipEvaluator: Timeout received: 00:00:30 seconds
[Agent 68539] [Debug][00:00:23.0395830] XipServer: Accept: received message: Xamarin.Interactive.Compiler.EvaluateRequest
ERROR [2015-07-28 12:29:00Z]: An unhandled exception has occured. Terminating Xamarin Studio? True
System.InvalidOperationException: No process is associated with this object.
  at System.Diagnostics.Process.get_ProcessName () [0x000b0] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/System/System.Diagnostics/Process.cs:573 
  at System.Diagnostics.Process.ToString () [0x00000] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/System/System.Diagnostics/Process.cs:1219 
  at Xamarin.Sketches.Gui.PrettyPrint.ToString (System.Text.StringBuilder builder, System.Object value) [0x002af] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/PrettyPrint.cs:77 
  at Xamarin.Sketches.Gui.PrettyPrint.ToString (System.Text.StringBuilder builder, System.Object value) [0x0021b] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/PrettyPrint.cs:69 
  at Xamarin.Sketches.Gui.PrettyPrint.ToString (System.Object value) [0x00009] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/PrettyPrint.cs:20 
  at Xamarin.Sketches.Gui.InlineResultView+ResultCell.RenderText (Cairo.Context cr, System.Object text, Boolean quote) [0x00066] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/InlineResultView.cs:228 
  at Xamarin.Sketches.Gui.InlineResultView+ResultCell.Render (Cairo.Context cr, Gtk.Widget widget) [0x000f6] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/InlineResultView.cs:215 
  at Xamarin.Sketches.Gui.InlineResultView.RenderResultLine (Cairo.Context cr, Double y, Double height, Int32 line, Xamarin.Interactive.Compiler.EvaluationGroup evaluationGroup) [0x00150] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/InlineResultView.cs:763 
  at Xamarin.Sketches.Gui.InlineResultView.RenderLines (Cairo.Context cr) [0x000e9] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/InlineResultView.cs:736 
  at Xamarin.Sketches.Gui.InlineResultView.OnExposeEvent (Gdk.EventExpose evnt) [0x000a5] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/InlineResultView.cs:703 
  at Gtk.Widget.exposeevent_cb (IntPtr widget, IntPtr evnt) [0x00016] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/gtk-sharp-2.12.21/gtk/generated/Widget.cs:1113 
[Agent 68539] [Debug][00:00:23.2691840] XipServer: Accept: connection closed
[Agent 68539] [Debug][00:00:23.2524440] XipServer: Accept: closing connection
ERROR [2015-07-28 12:29:00Z]: An unhandled exception has occured. Terminating Xamarin Studio? True
System.InvalidOperationException: No process is associated with this object.
  at System.Diagnostics.Process.get_ProcessName () [0x000b0] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/System/System.Diagnostics/Process.cs:573 
  at System.Diagnostics.Process.ToString () [0x00000] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.3/mcs/class/System/System.Diagnostics/Process.cs:1219 
  at Xamarin.Sketches.Gui.PrettyPrint.ToString (System.Text.StringBuilder builder, System.Object value) [0x002af] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/PrettyPrint.cs:77 
  at Xamarin.Sketches.Gui.PrettyPrint.ToString (System.Text.StringBuilder builder, System.Object value) [0x0021b] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/PrettyPrint.cs:69 
  at Xamarin.Sketches.Gui.PrettyPrint.ToString (System.Object value) [0x00009] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/PrettyPrint.cs:20 
  at Xamarin.Sketches.Gui.InlineResultView+ResultCell.RenderText (Cairo.Context cr, System.Object text, Boolean quote) [0x00066] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/InlineResultView.cs:228 
  at Xamarin.Sketches.Gui.InlineResultView+ResultCell.Render (Cairo.Context cr, Gtk.Widget widget) [0x000f6] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/InlineResultView.cs:215 
  at Xamarin.Sketches.Gui.InlineResultView.RenderResultLine (Cairo.Context cr, Double y, Double height, Int32 line, Xamarin.Interactive.Compiler.EvaluationGroup evaluationGroup) [0x00150] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/InlineResultView.cs:763 
  at Xamarin.Sketches.Gui.InlineResultView.RenderLines (Cairo.Context cr) [0x000e9] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/InlineResultView.cs:736 
  at Xamarin.Sketches.Gui.InlineResultView.OnExposeEvent (Gdk.EventExpose evnt) [0x000a5] in /Users/builder/data/lanes/432/83b20708/source/md-addins/external/interactive/Xamarin.Sketches/Gui/InlineResultView.cs:703 
  at Gtk.Widget.exposeevent_cb (IntPtr widget, IntPtr evnt) [0x00016] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr3/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/gtk-sharp-2.12.21/gtk/generated/Widget.cs:1113