Remco;15510 wrote:jschreuder;15509 wrote:
Thanks Remco. Unrelated to source generators as I'm not using them, but on this build the engine process is crashing almost immediately after loading all projects (in both VS2019 and VS2021). I've submitted a bug report via the menu.
Thanks for sharing these reports. You may have just saved a great many people a lot of pain.
I'm sifting through the logs but cannot find a clear reason for why the engine process is crashing on you. I think this might be something more systemic. If this is still happening consistently for you, could you check the memory consumption of the process during your initialisation, and examine the contents of your windows event viewer to see if there is more detailed error information? I'm wondering if this might be an OutOfMemoryException or something similarly traumatic.
It would also be great if you could confirm whether this build of NCrunch works for you on different solutions (i.e. smaller ones). We aren't able to reproduce this issue on our side, so right now the focus is on narrowing it down. I really appreciate your help on this. I was hoping to release 4.9 today but will hold it back until we can be sure of shipping it without a critical crash issue.
Reinstall and reboot didn't help - I initially suspected it might be due to the file locking issue I got when installing originally but it seems not.
There's nothing in Event Viewer when the process ends, so maybe it's not crashing?
Memory usage seems unlikely - system memory is sitting at 40% used.
I have tried a couple of smaller solutions in 2022 and both work without any issue.
My other thought was that maybe it was a corrupt cache or something, so I wiped the NCrunch cache directory completely, but the issue still happens on this particular solution of about 90 projects. The .crunchsolution.cache file did get generated before the process dies if that helps?
Based on the UI, it seems like it's dying at the "building..." stage, at least based on what the tests panel is telling me.
I'm going to try .1/.2 in 2019 and see if that narrows it down at all for you