r/KoboldAI • u/TyeDyeGuy21 • 18h ago
Crashing after Fresh Windows Install
Hello all, as the title suggests, I am struggling to get KoboldCPP to remain stable after reinstalling it on a fresh Windows 11 installation since the old one became corrupted after many years.
Either KoboldCPP crashes, or my graphics card (RTX5090) goes into its safe state where it doesn't transmit to my monitors and the fans whir at full speed. I have never had these problems until now, and I am using the exact same model (a Gemma 4 31B finetune) and settings as I had before my Windows reinstall. I use SillyTavern as my frontend, and it does not crash when KoboldCPP does, nor does anything else. This crash happens after a couple generations or after a hundred.
Attempted fixes: Run as administrator, reverting to previous KoboldCPP versions, reinstalled the graphics driver, reinstalled Visual C++, and changed the number of GPU layers the model uses. I ran Memtest86 on my 64gb of RAM, and it come back clean. SFC /ScanNow, Chkdsk, and DISM all returned clean results. I even swapped power sticks. RAM is not overclocked.
Event viewer gives me information when only the application crashes:
Application error 0xc0000409
Exception code: 0xc0000005
Faulting module name: VCRUNTIME140.dll (OR, because sometimes it says this other one) Faulting module name: ucrtbase.dll
Which seems to point me at Visual C++ and memory issues, but this only began after my Windows reinstall and the computer is otherwise stable under heavy game loads. I'm stumped. Perhaps I'm missing a requirement that KoboldCPP uses?

