nomic-ai / gpt4all

gpt4all: run open-source LLMs anywhere

Home Page:https://gpt4all.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installing a stable-diffusion.cpp model crashes GPT4All

Tipzy480 opened this issue · comments

Windows event error : Faulting application name: chat.exe, version: 0.0.0.0, time stamp: 0x65f312fd
Faulting module name: ucrtbase.dll, version: 10.0.22621.3374, time stamp: 0xdf382650
Exception code: 0xc0000409
Fault offset: 0x000000000007f6be
Faulting process id: 0x0x3D0C
Faulting application start time: 0x0x1DA9B6189C14F70
Faulting application path: C:\Users\deion\gpt4all\bin\chat.exe
Faulting module path: C:\Windows\System32\ucrtbase.dll
Report Id: 242f3002-b7ea-4491-92b4-fc07a260e5dd
Faulting package full name:
Faulting package-relative application ID:

Also downloaded the Debug Version and it gets to this and then immediately fails :

QML debugging is enabled. Only use this in a safe environment.
[Debug] (Tue Apr 30 17:57:49 2024): deserializing chats took: 1 ms
WARNING: Behavior may be unexpected when allocating 0 bytes for ggml_malloc!
GGML_ASSERT: C:\msys64\home\Jared\gpt4all-jonarser-1\gpt4all-backend\llama.cpp-mainline\ggml.c:20370: key_id >= 0 && key_id < gguf_get_n_kv(ctx)

This was all after I installed a forgotten model and since then I've tried installing and uninstalling older/newer versions of the program and I've restarted and updated my windows. Also originally before errors I had 2.7.4 running fine until the initial crash!

I'd try re-installing Visual C++ (ucrtbase.dll).

https://answers.microsoft.com/en-us/windows/forum/all/ucrtbasedll-not-found-error-stopping-programs-from/f66b09d9-3ece-4242-b5e5-40e3be4454c3

Tried that and there seems to be no change in both errors. Even did a windows update lol

Bummer. These kind of issues are always frustrating.

We've talked about this on Discord and last I heard it was resolved. Let's summarise in case someone else stumbles on this and for reproducing the problem.

Correct me if I'm wrong in any of these, please. I have not tried to reproduce the issue locally.

  • Although this has not been confirmed, I think the system is probably Windows 11 (deduced from versions in OP).

  • Exception code 0xc0000409 means STATUS_STACK_BUFFER_OVERRUN.

  • The failing GGML_ASSERT points to somewhere around here in ggml.c, although there are several functions with this kind of assert there (so it's not entirely clear which one, and I don't have the insight for this part of the codebase).

  • I suggested to create a new, empty download folder and edit the GPT4All.ini config and change modelPath to point to the empty folder.

    • The .ini file didn't even have that line for the default folder, so that wasn't entirely helpful.
  • The problem was resolved by deleting the whole nomic.ai folder in ...\AppData\Local\.

  • Likely problem: The configuration file had a sole entry of a Stable Diffusion file with .gguf ending, like:

    [model-stable_diffusion-....q4_1.gguf]
    filename=stable_diffusion-....q4_1.gguf
  • Discord conversation starting here.