Powershell Studio crashed continuously

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 11 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
carlodidier
Posts: 11
Last visit: Mon Oct 25, 2021 5:05 am

Powershell Studio crashed continuously

Post by carlodidier »

Since my recent update to version 3.1.10, I have frequent crashes.
System is Windows 7 Enterprise 64bit, 8GB RAM, run with an admin account (because I need the admin context for what the scripts should do).

Two events are logged in the application log:

Log Name: Application
Source: .NET Runtime
Date: 17/10/2012 10:01:25
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: (name removed)
Description:
Application: PowerShell Studio.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at ..(System.String, System.String, System.String, System.String)
at ..(System.String)
at ..()
at ..(.)
at ..(System.Object, System.EventArgs)
at System.Windows.Forms.Timer.OnTick(System.EventArgs)
at System.Windows.Forms.Timer+TimerNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
at ..(System.String[])

Event Xml:
1026200x8000000000000022435Application(name removed)Application: PowerShell Studio.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at ..(System.String, System.String, System.String, System.String)
at ..(System.String)
at ..()
at ..(.)
at ..(System.Object, System.EventArgs)
at System.Windows.Forms.Timer.OnTick(System.EventArgs)
at System.Windows.Forms.Timer+TimerNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
at ..(System.String[])


And:

Log Name: Application
Source: Application Error
Date: 17/10/2012 10:01:27
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: (name removed)
Description:
Faulting application name: PowerShell Studio.exe, version: 3.1.10.0, time stamp: 0x50784896
Faulting module name: CRYPT32.dll, version: 6.1.7601.17827, time stamp: 0x4f962bf6
Exception code: 0xc0000005
Fault offset: 0x0000e25b
Faulting process id: 0x850
Faulting application start time: 0x01cdac3b8038606f
Faulting application path: C:Program Files (x86)SAPIEN Technologies, IncPowerShell Studio 2012PowerShell Studio.exe
Faulting module path: C:Windowssyswow64CRYPT32.dll
Report Id: d9a443de-1830-11e2-99f7-2c41380ca6aa
Event Xml:



1000
2
100
0x80000000000000

22436
Application
(name removed)



PowerShell Studio.exe
3.1.10.0
50784896
CRYPT32.dll
6.1.7601.17827
4f962bf6
c0000005
0000e25b
850
01cdac3b8038606f
C:Program Files (x86)SAPIEN Technologies, IncPowerShell Studio 2012PowerShell Studio.exe
C:Windowssyswow64CRYPT32.dll
d9a443de-1830-11e2-99f7-2c41380ca6aa

User avatar
Alexander Riedel
Posts: 8488
Last visit: Tue Apr 16, 2024 8:42 am
Answers: 20
Been upvoted: 37 times

Powershell Studio crashed continuously

Post by Alexander Riedel »

Can you tell us at what action this happened? Or was it just sitting there?
On a side note, there is no need to start PowerShell Studio elevated. All scripts launched from PowerShell Studio run in their own process and can be launched elevated.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
carlodidier
Posts: 11
Last visit: Mon Oct 25, 2021 5:05 am

Powershell Studio crashed continuously

Post by carlodidier »

Hi!
It happens quite randomly and not only when editing a specific script or project.
It can happen while editing, while running or even when I don't do anything in Studio.
No other application has crashed on me.
I also get a strange error when working on simple scripts (not on form projects).
When I want to save the script, it always throws the attached error, but it is saved and runs fine.
I'm running Studio with the account that will be used later to run the scripts as scheduled jobs because it has the needed access rights to shares, AD, etc, so that makes it simplest to test and debug in that context. It's not really a general admin account, but it has admin rights on my PC.

Attached files
User avatar
Alexander Riedel
Posts: 8488
Last visit: Tue Apr 16, 2024 8:42 am
Answers: 20
Been upvoted: 37 times

Powershell Studio crashed continuously

Post by Alexander Riedel »

Ok, thanks. The guys will take a look first thing in the morning.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Powershell Studio crashed continuously

Post by davidc »

We have questions for you:

Do you have the Auto Save feature enabled?
Do you have the Automatic Sign when saving option enabled?

Thank you,

David
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Powershell Studio crashed continuously

Post by davidc »

If you are Script signing please replace your current SignScript.dll with this version and see if it makes a difference.

David

Attached files /FileUpload/53/d2741e7e13c49c89781117495f7442.zip (4.7 KB)
David
SAPIEN Technologies, Inc.
User avatar
carlodidier
Posts: 11
Last visit: Mon Oct 25, 2021 5:05 am

Powershell Studio crashed continuously

Post by carlodidier »

Hi David!
I'll test if it still crashes. Yes, I had auto save and auto sign active (and I'll leave it for the testing). Speaking about signing, I still have to sign manually. The automatic signing gives contradictory messages and the script/package isn't signed afterwards:

SAPIEN Script Packager 3.2 (c) 2005 - 2012 SAPIEN Technologies, Inc.

Adding C:Users(removed)AppDataRoamingSAPIENPowerShell Studio 2012Temp5fe7d8e299ca454a8b213d3969d8e330WakeOnLAN-GUI.Main.ps1
Writing scripts to (removed)ScriptsGeneralWakeOnLanWakeOnLAN-GUIWakeOnLAN-GUI.exe
Embedding default manifest...
Unable to sign (removed)ScriptsGeneralWakeOnLanWakeOnLAN-GUIWakeOnLAN-GUI.exe
Executable file signed
Package completed
User avatar
Alexander Riedel
Posts: 8488
Last visit: Tue Apr 16, 2024 8:42 am
Answers: 20
Been upvoted: 37 times

Powershell Studio crashed continuously

Post by Alexander Riedel »

Please get us the exact file version number on script2exe.exe in your installation folder.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
carlodidier
Posts: 11
Last visit: Mon Oct 25, 2021 5:05 am

Powershell Studio crashed continuously

Post by carlodidier »

That's 3.2.22.0 from 12/10/2012 16:45
User avatar
carlodidier
Posts: 11
Last visit: Mon Oct 25, 2021 5:05 am

Powershell Studio crashed continuously

Post by carlodidier »

Ah, btw: since I installed the new SignScript.dll, I haven't got any new crashes.
This topic is 11 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.