"A new guard page for the stack cannot be created" when triggering intellisense
Describe the bug
On a specific prg file, when triggering intellisense (typing SELF:) VS freezes and after a while crashes with a "OK" dialog box saying "a new guard page for the stack cannot be created"
Even if I disable completion in X# options it still crashs as soon as I type SELF, not even using tab, nor adding the :
The only way I can edit the file is outside of VS as it seems I can't disable intellisense.
It wasn't crashing in 2.18 though intellisense was not working because of my machine (ARM)
XS : 2.19.0.1 Windows : Windows11-ARM VS : VisualStudio 2022 Community 17.8.5
Can i enable/find more logs about what's happenning ?
Basile, You can enable (file) logging by going to (or adding) the registry key HKEY_CURRENT_USER\Software\XSharpBV\XSharp and then add a (DWORD) value Log2File with the value 1
You will find the log files in your temp folder, under the XSharp.Intellisense subfolder.
I've enabled the logs. Got big quite quickly, when the crash occurs I have about 15k times the same line :
2024-01-19 13:05:08.646 +01:00 [INF] 0009 XModel.File -->> SetTypes() C:\xxx\Calcul Dispo.prg
2024-01-19 13:05:08.646 +01:00 [INF] 0009 XModel.File <<-- SetTypes() C:\xxx\Calcul Dispo.prg (Types: 2, Entities: 75)
Last crash, still same "little" project this time the log file went to 300Mb and last line are still about the same file :
2024-01-24 13:00:05.179 +01:00 [INF] 0036 XDatabase :Read File info for file C:\xxxx\Calcul Dispo.prg
2024-01-24 13:00:05.179 +01:00 [INF] 0036 XModel.SourceWalker -->> Parse() C:\xxx\Calcul Dispo.prg locals False )
2024-01-24 13:00:05.179 +01:00 [INF] 0036 XModel.SourceWalker -->> Lex() C:\xxx\Calcul Dispo.prg (8785)
These lines make sense, each time you type something in the editor, the source is parsed and the result is stored in the intellisense database.
But 300Mb (while all the other logs are about 2-8mb, and for a bigger project) and I haven't even typed 3 characters and hit the overflow ("A new guard page....")
Basile, Maybe there is something wrong, but to confirm that I need to have the source of the project and the assemblies that it references.
I could but it feels more like it's platform related as my colleague do not have that issue with those sources... I can provide you with an access again or enable more debugging ? It really only happens on that project, and it's a very small one compared to our main application.