Cache Builder Crash when debugging Pester Test

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 5 years and 7 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
VereinigungHH
Posts: 6
Last visit: Wed Feb 07, 2024 9:10 am

Cache Builder Crash when debugging Pester Test

Post by VereinigungHH »

Product, version and build: PowerShell Studio 2018 v5.5.153
32 or 64 bit version of product: 64 bit
Operating system: Win7 64 bit

Hello,

when I start a pester Test in Debug Mode i get an UAE:
PowerShell Cache Builder
PowerShell Cache Builder funktioniert nicht mehr

See
Unbenannt.JPG
Unbenannt.JPG (57.04 KiB) Viewed 3322 times
This only happens when i start pester Tests.

Any Idea?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Cache Builder Crash when debugging Pester Test

Post by davidc »

CacheBuilder creates a cache of PowerShell module, which is used for syntax coloring and PrimalSense.

1. Are you testing a module project? Because when you build a module project, PowerShell Studio kicks off the caching process.

2. Can you copy the complete contents of the error message / event log?

3. And if the crash happens again, please zip and upload the contents of the following folder:

C:\Users\(username)\AppData\Roaming\SAPIEN\CachedData 2018\Local Machine

Hopefully it will give us a hint as to what is happening.
David
SAPIEN Technologies, Inc.
User avatar
VereinigungHH
Posts: 6
Last visit: Wed Feb 07, 2024 9:10 am

Re: Cache Builder Crash when debugging Pester Test

Post by VereinigungHH »

Yes, I`m testing a Powershell Module. The Windows EventLog contains:
Name der fehlerhaften Anwendung: CacheBuilder64.exe, Version: 2.4.33.0, Zeitstempel: 0x5acab27c
Name des fehlerhaften Moduls: CacheBuilder64.exe, Version: 2.4.33.0, Zeitstempel: 0x5acab27c
Ausnahmecode: 0xc0000005
Fehleroffset: 0x0000000000002890
ID des fehlerhaften Prozesses: 0x1454
Startzeit der fehlerhaften Anwendung: 0x01d42fc0a1740b83
Pfad der fehlerhaften Anwendung: C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2018\CacheBuilder64\CacheBuilder64.exe
Pfad des fehlerhaften Moduls: C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2018\CacheBuilder64\CacheBuilder64.exe
Berichtskennung: dfeb3943-9bb3-11e8-be24-8851fb5f6ac8
I added the foldercontent in the attached file. Thx for your effort :D
Attachments
CacheBuilderError.zip
(22.56 KiB) Downloaded 84 times
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Cache Builder Crash when debugging Pester Test

Post by davidc »

All the logs end with the SQLPS module, so I suspect that particular module is causing the issue. Can you temporarily remove the module and see if the cache completes?
David
SAPIEN Technologies, Inc.
User avatar
VereinigungHH
Posts: 6
Last visit: Wed Feb 07, 2024 9:10 am

Re: Cache Builder Crash when debugging Pester Test

Post by VereinigungHH »

Hello David,

I deactivated SQLPS in the Cache:
1_SapienCacheEdit.JPG
1_SapienCacheEdit.JPG (144.68 KiB) Viewed 3100 times
Then i run the Pester Test in my psm1 project (1). The error appears again (2). When clicking Edit Cache the Window is empty (3):
2_SapienCacheEdit.JPG
2_SapienCacheEdit.JPG (206.96 KiB) Viewed 3100 times
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Cache Builder Crash when debugging Pester Test

Post by davidc »

You will need to disable the module by moving it so that is not discoverable (in a PSModulePath). CacheEdit only works off of preset cache, it doesn't actually disable the module on your system.
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Cache Builder Crash when debugging Pester Test

Post by davidc »

Also can you expand the error details and post the contents?

Thank you
David
SAPIEN Technologies, Inc.
User avatar
VereinigungHH
Posts: 6
Last visit: Wed Feb 07, 2024 9:10 am

Re: Cache Builder Crash when debugging Pester Test

Post by VereinigungHH »

Ok, so this is the expanded Errortext
Problemsignatur:
Problemereignisname: APPCRASH
Anwendungsname: CacheBuilder64.exe
Anwendungsversion: 2.4.33.0
Anwendungszeitstempel: 5acab27c
Fehlermodulname: CacheBuilder64.exe
Fehlermodulversion: 2.4.33.0
Fehlermodulzeitstempel: 5acab27c
Ausnahmecode: c0000005
Ausnahmeoffset: 0000000000002890
Betriebsystemversion: 6.1.7601.2.1.0.256.48
Gebietsschema-ID: 1031
Zusatzinformation 1: d41c
Zusatzinformation 2: d41c71eea2ea4ea38fd2580539ce3dcc
Zusatzinformation 3: 0c92
Zusatzinformation 4: 0c92f73f84b0d6f3530e4907913efd76

Lesen Sie unsere Datenschutzbestimmungen online:
http://go.microsoft.com/fwlink/?linkid= ... cid=0x0407

Wenn die Onlinedatenschutzbestimmungen nicht verfügbar sind, lesen Sie unsere Datenschutzbestimmungen offline:
C:\Windows\system32\de-DE\erofflps.txt
Later i removed the SQLPS Folder from "C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules" but the error is still thrown.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Cache Builder Crash when debugging Pester Test

Post by davidc »

After removing the SQLPS module, can you post the ModuleV*_**bit.log files?

C:\Users\(username)\AppData\Roaming\SAPIEN\CachedData 2018\Local Machine

We will also try testing the SQL Server modules on our end.
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Cache Builder Crash when debugging Pester Test

Post by davidc »

Please try the latest build of PowerShell Studio (v5.5.154) and let us know if the issue persists.
David
SAPIEN Technologies, Inc.
This topic is 5 years and 7 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.