You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Infrequently in a script I have, I receive the following exception after everything has run sucessfully and the fake script is just about to exit.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an
object.
at Fake.ProcessHelper.killAllCreatedProcesses$cont@483(Unit unitVar) in C:\code\fake\src\app\FakeLib\ProcessHelper.fs:line 485
at Fake.TargetHelper.run$cont@511(String targetName, Unit unitVar) in C:\code\fake\src\app\FakeLib\TargetHelper.fs:line 560
at Fake.TargetHelper.run(String targetName) in C:\code\fake\src\app\FakeLib\TargetHelper.fs:line 511
at Fake.AdditionalSyntax.RunTargetOrDefault(String defaultTarget) in C:\code\fake\src\app\FakeLib\AdditionalSyntax.fs:line 29
at <StartupCode$FSI_0005>.$FSI_0005_Build$fsx.main@()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Fake.FSIHelper.runScriptCached@313.Invoke(Unit unitVar0) in C:\code\fake\src\app\FakeLib\FSIHelper.fs:line 321
This does not happen every time.
Repro steps
I have not ever seen this exception until I added a bunch of async code to my script. Specifically, I ExecProcess quite a few TopShelf based services in parallel with code like this below to stop/start/install/uninstall services.
The code works as expected, but as the FAKE script is exiting, I sometimes, not very often, get the error reported above. I'm not 100% sure this caused it, but as the exception is showing the failure in code that is trying to killAllCreatedProcesses, I'm guessing the error is at least somewhat related to all these ExecProcesses.
I haven't had any time to look at the Fake code to see if I could tell what was happening.
Expected behavior
No Exception
Actual behavior
Exception
Related information
Windows 10
Last FAKE release pulled from nuget on 8Sept2016
.Net 4.6
The text was updated successfully, but these errors were encountered:
Description
Infrequently in a script I have, I receive the following exception after everything has run sucessfully and the fake script is just about to exit.
This does not happen every time.
Repro steps
I have not ever seen this exception until I added a bunch of async code to my script. Specifically, I ExecProcess quite a few TopShelf based services in parallel with code like this below to stop/start/install/uninstall services.
The code works as expected, but as the FAKE script is exiting, I sometimes, not very often, get the error reported above. I'm not 100% sure this caused it, but as the exception is showing the failure in code that is trying to killAllCreatedProcesses, I'm guessing the error is at least somewhat related to all these ExecProcesses.
I haven't had any time to look at the Fake code to see if I could tell what was happening.
Expected behavior
No Exception
Actual behavior
Exception
Related information
The text was updated successfully, but these errors were encountered: