nomic-ai / gpt4all

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

GPT4All can restore its window geometry to somewhere off-screen #2564

Open AsisYu opened 2 months ago

AsisYu commented 2 months ago

Bug Report

gpt4all appears to be running in the task manager, but I can't see any Windows. My computer is an amdR7800hCPU laptop.

Steps to Reproduce

1.Double click run

Expected Behavior

The program should appear in a window

PixPin_2024-07-05_16-34-27

Your Environment

barbarrista commented 2 months ago

I have the same error

Pc9898 commented 2 months ago

I have the same error

bkaestner commented 1 month ago

I had the same issue and solved it by removing the %APPDATA%\nomic.ai folder. Turns out that the GPT4All.ini had some very weird settings for x, y, width and height and was therefore shown off-screen.

Try to edit or remove the GPT4All.ini.

AsisYu commented 1 month ago

I had the same issue and solved it by removing the %APPDATA%\nomic.ai folder. Turns out that the GPT4All.ini had some very weird settings for x, y, width and height and was therefore shown off-screen.

Try to edit or remove the GPT4All.ini.

Well, thank you very much for your help

cosmic-snow commented 1 month ago

@bkaestner That's interesting and good that you could fix it for yourself. 👍

Do you have an idea how that could have happened? It should simply store previous screen coordinates, so that it opens again in the same position with the same size. Maybe something to do with multiple monitors?

bkaestner commented 1 month ago

Do you have an idea how that could have happened? It should simply store previous screen coordinates, so that it opens again in the same position with the same size. Maybe something to do with multiple monitors?

That might be the issue. I have a high DPI display with 250% scaling (laptop screen, need to look up the actual resolution) and a 3440x1400 secondary screen (100% scaling). I can try a fresh re-install on Monday to reproduce the issue. In case I manage to get a "wrong" GPT4All.ini again I'll post its contents.

Update: not able to reproduce the issue on the same machine anymore.

barbarrista commented 1 month ago

%APPDATA%\nomic.ai

i can't find this directory :( not exists

cosmic-snow commented 1 month ago

i can't find this directory :( not exists

You can open a console and write: echo %APPDATA% and you should see the path.

Typically, the full path on Windows is C:\Users\<your-name>\AppData\Roaming\nomic.ai\GPT4All.ini

Pc9898 commented 1 month ago

I reinstalled the program several times, but the nomic-ai folder did not appear in the roaming folder.

cosmic-snow commented 1 month ago

It's nomic.ai with a dot. Also, you might have to start it once after reinstalling for it to get created (again), not sure.

You can of course also try searching for GPT4All.ini in the whole user folder, it should turn up at some point.

bkaestner commented 1 month ago

I reinstalled the program several times, but the nomic-ai folder did not appear in the roaming folder.

The folder only gets created after you've run GPT4All for the first time.

barbarrista commented 5 days ago

Any updates? nomic.ai directory is missing in Roaming GPT4All.ini file is also missing. Reinstalling does not fix this