Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The PowerShell runner does not load #239

Closed
dstj opened this issue Dec 22, 2015 · 7 comments
Closed

The PowerShell runner does not load #239

dstj opened this issue Dec 22, 2015 · 7 comments
Assignees
Labels

Comments

@dstj
Copy link

dstj commented Dec 22, 2015

Hi,

The powershell module for Pickles crashes my Powershell process on Windows 10.

Just running the following command in a PS1 script and get the "Windows PowerShell has stopped working" popup. Regardless of the actual files in the doc-temp folder. Even empty or non-existent folder crashes.

Import-Module <path>\PicklesDoc.Pickles.PowerShell.dll
Pickle-Features -FeatureDirectory "c:\temp\doc-temp" -OutputDirectory "c:\temp\doc"

When clicking Debug, this is the exception visible in Visual Studio:

Unhandled exception at 0x00007FFB452C492E (ntdll.dll) in powershell.exe: 0xC0000005: Access violation writing location 0x0000000837700FD0.

My PowerShell version table is:

C:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.0.10586.0
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.10586.0
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Any helps or ideas? Thanks.

@dirkrombauts
Copy link
Member

Hi,

I'm sorry you ran into troubles; thank you for taking the time to report them.

I just released a new version of Pickles with a bug fix - could you please try again with the new version? If the problem still exists I will do my best to fix it in the next couple of days.

@dstj
Copy link
Author

dstj commented Dec 23, 2015

Hi,

Thanks for the quick follow-up! Unfortunately, the problem is still there with version 2.0.3. The "Debug" message is a bit different (the dll name), but that may be unrelated, I do not know:

Unhandled exception at 0x00007FFB2A19A397 (clr.dll) in powershell.exe: 0xC0000005: Access violation writing location 0x000000474DD40F00.

@dstj
Copy link
Author

dstj commented Dec 23, 2015

Before the Powershell window crashes, I get the following output: Process is terminated due to StackOverflowException.

@dirkrombauts
Copy link
Member

I have some news here: I was able to reproduce the problem. It seems to be a loading issue with the assemblies that are compiled into the pickles assembly as resources.

I will try and create a new version that does not compile external assemblies as resources.

@dirkrombauts dirkrombauts self-assigned this Dec 27, 2015
@dirkrombauts dirkrombauts changed the title Powershell crashing The PowerShell runner does not load Dec 27, 2015
@dirkrombauts
Copy link
Member

Hi,

I released a new version. Could you try and verify whether this new version solves your problem? Thanks!

@dstj
Copy link
Author

dstj commented Dec 28, 2015

Hi Dirk,
It works now. Thanks for fixing it quickly! 👍

@dstj dstj closed this as completed Dec 28, 2015
@dirkrombauts
Copy link
Member

You're welcome, glad I could help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants