Skip to content

Instantly share code, notes, and snippets.

@gswallow
Created October 28, 2013 18:28
Show Gist options
  • Save gswallow/7202044 to your computer and use it in GitHub Desktop.
Save gswallow/7202044 to your computer and use it in GitHub Desktop.
I have an mzconvert process that crashes. shows up as "having stopped working" in Windows. But the "responding" attribute of the process object is "true."
foreach ($sample in (Get-ChildItem -Path $holdfolder | Where-Object { $_.Name -match "(.d|.wiff)$" })) {
$samplefolder = $holdfolder + "\" + $sample
try {
Start-Process -FilePath 'c:\Program Files (x86)\indigobiosystems\adr\mzconvert\mzconvert.exe' -ArgumentList "-f $samplefolder -d $holdsfolder\test"
} catch {
write-host "Caught an exception:" -ForegroundColor Red
write-host "Exception Type: $($_.Exception.GetType().FullName)" -ForegroundColor Red
write-host "Exception Message: $($_.Exception.Message)" -ForegroundColor Red
Write-Host "Sample was $sample" -Foregroundcolor Blue
}
}
This doesn't work, but it does start a bunch of mzconvert.exe processes in parallel.
So I tried this:
Get-Process | Where-Object { $_.ProcessName -eq "MzConvert" } | Select *
And I got:
__NounName : Process
Name : MzConvert
Handles : 195
VM : 622198784
WS : 27721728
PM : 23543808
NPM : 32600
Path :
Company :
CPU : 2.7456176
FileVersion :
ProductVersion :
Description :
Product :
Id : 3180
PriorityClass : Normal
HandleCount : 195
WorkingSet : 27721728
PagedMemorySize : 23543808
PrivateMemorySize : 23543808
VirtualMemorySize : 622198784
TotalProcessorTime : 00:00:02.7456176
BasePriority : 8
ExitCode :
HasExited : False
ExitTime :
Handle : 4336
MachineName : .
MainWindowHandle : 1378076
MainWindowTitle : C:\Program Files (x86)\indigobiosystems\adr\mzconvert\mzconvert.exe
MainModule :
MaxWorkingSet : 1413120
MinWorkingSet : 204800
Modules :
NonpagedSystemMemorySize : 32600
NonpagedSystemMemorySize64 : 32600
PagedMemorySize64 : 23543808
PagedSystemMemorySize : 309608
PagedSystemMemorySize64 : 309608
PeakPagedMemorySize : 47280128
PeakPagedMemorySize64 : 47280128
PeakWorkingSet : 47607808
PeakWorkingSet64 : 47607808
PeakVirtualMemorySize : 631758848
PeakVirtualMemorySize64 : 631758848
PriorityBoostEnabled : True
PrivateMemorySize64 : 23543808
PrivilegedProcessorTime : 00:00:00.3744024
ProcessName : MzConvert
ProcessorAffinity : 1
Responding : True
SessionId : 1
StartInfo : System.Diagnostics.ProcessStartInfo
StartTime : 10/28/2013 2:11:07 PM
SynchronizingObject :
Threads : {4732, 4368, 7092, 4880...}
UserProcessorTime : 00:00:02.3712152
VirtualMemorySize64 : 622198784
EnableRaisingEvents : False
StandardInput :
StandardOutput :
StandardError :
WorkingSet64 : 27721728
Site :
Container :
Basically, I want to find this process, which will quit when I click on the "close the program" button and get the stack trace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment