nomic-ai / gpt4all

GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
https://nomic.ai/gpt4all
MIT License
70.84k stars 7.71k forks source link

Chat saving only works sometimes #3145

Open Starfiresg1 opened 4 weeks ago

Starfiresg1 commented 4 weeks ago

Bug Report

When closing the app some chats are not saved. I haven't been able to see a pattern. Some chats are saved, others are lost. The settings to save chat context is enabled.

Steps to Reproduce

  1. Create multiple chats throughout the day (observed using different models)
  2. Close the app
  3. Wait till it finishes closing
  4. Reopen the app -> Some chats are completely missing. Some chats that where continued from a previous session, have lost any added information from the newest session (Note: So far I haven't had any continued chats saved succesfully, maybe these always get lost?)

I've monitored the folder where the chats are stored and observed the following. During closing several 0 byte .tmp files appear - some files will get a size and the .tmp extension removed -> this chat is saved and visible on next opening Other 0 byte .tmp files simply disappear -> this chat is lost

Expected Behavior

All chats are saved and restored, with none missing or incomplete

Your Environment

Starfiresg1 commented 1 week ago

Additional info:

I noticed there is always a crash logged when not all chats are saved upon closing the app:

AppName chat.exe AppVersion 0.0.0.0 AppTimeStamp 670fde0b ModuleName unknown ModuleVersion 0.0.0.0 ModuleTimeStamp 00000000 ExceptionCode c0000005 FaultingOffset 0000000000000000 ProcessId 0x6670 ProcessCreationTime 0x1db36acf2a0a4e6 AppPath chat.exe ModulePath unknown IntegratorReportId e220e06f-9570-4c80-bc1f-683409e18b54 PackageFullName
PackageRelativeAppId