Cache Builder Crash when debugging Pester Test

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
User avatar
VereinigungHH
Posts: 5
Joined: Wed Dec 17, 2014 8:33 am

Cache Builder Crash when debugging Pester Test

Post by VereinigungHH » Thu Aug 02, 2018 6:32 am

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 1141 times
This only happens when i start pester Tests.

Any Idea?

User avatar
davidc
Posts: 5437
Joined: Thu Aug 18, 2011 4:56 am

Re: Cache Builder Crash when debugging Pester Test

Post by davidc » Thu Aug 02, 2018 7:03 am

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: 5
Joined: Wed Dec 17, 2014 8:33 am

Re: Cache Builder Crash when debugging Pester Test

Post by VereinigungHH » Thu Aug 09, 2018 2:49 am

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 7 times

User avatar
davidc
Posts: 5437
Joined: Thu Aug 18, 2011 4:56 am

Re: Cache Builder Crash when debugging Pester Test

Post by davidc » Thu Aug 09, 2018 7:41 am

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: 5
Joined: Wed Dec 17, 2014 8:33 am

Re: Cache Builder Crash when debugging Pester Test

Post by VereinigungHH » Fri Aug 10, 2018 1:50 am

Hello David,

I deactivated SQLPS in the Cache:
1_SapienCacheEdit.JPG
1_SapienCacheEdit.JPG (144.68 KiB) Viewed 919 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 919 times

User avatar
davidc
Posts: 5437
Joined: Thu Aug 18, 2011 4:56 am

Re: Cache Builder Crash when debugging Pester Test

Post by davidc » Fri Aug 10, 2018 7:06 am

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: 5437
Joined: Thu Aug 18, 2011 4:56 am

Re: Cache Builder Crash when debugging Pester Test

Post by davidc » Fri Aug 10, 2018 7:07 am

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

Thank you
David
SAPIEN Technologies, Inc.

User avatar
VereinigungHH
Posts: 5
Joined: Wed Dec 17, 2014 8:33 am

Re: Cache Builder Crash when debugging Pester Test

Post by VereinigungHH » Mon Aug 13, 2018 1:07 am

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: 5437
Joined: Thu Aug 18, 2011 4:56 am

Re: Cache Builder Crash when debugging Pester Test

Post by davidc » Tue Aug 14, 2018 8:15 am

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: 5437
Joined: Thu Aug 18, 2011 4:56 am

Re: Cache Builder Crash when debugging Pester Test

Post by davidc » Thu Aug 16, 2018 2:53 pm

Please try the latest build of PowerShell Studio (v5.5.154) and let us know if the issue persists.
David
SAPIEN Technologies, Inc.