You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem description:
I use AI Image Analyzer as a dependency to Omnisearch. Omnisearch appears to get stuck in AI image analysis regularly. Restarting Obsidian does not help, only restarting the Ollama Server helps, but after a few minutes, the whole issue repeats.
When I go to the Network tab in the developer tools (Ctrl-Shift-i) I can see the chat requests pouring in. All looks good, but after a while, a chat request will remain in pending state for eternity. There's nothing special about the image being analyzed (a png just like many others in my vault). I then checked what Ollama is doing:
C:\Users\foobar>ollama ps
NAME ID SIZE PROCESSOR UNTIL
llava-llama3:latest 44c161b1f465 7.2 GB 28%/72% CPU/GPU Stopping...
Looks like it's trying to stop because no new request came in for a few minutes. But it never actually stops. It remains in this state for hours if I let it, while continuing to consume CPU & GPU:
If I kill the Ollama_llama_server.exe, AI Image Analyzer seems to automatically restart it and continue to analyze a bunch of images before stopping again.
Interestingly, after the server restarts, the response to the initial request does arrive. This looks like magic to me - I'd expect the request to fail and then the plugin would either retry or just head on to the next image. But that doesn't seem to be what's happening. The server restarts and then the original request returns:
Even more funny is that when I look up the resulting cache item it looks as if Ollama or AI Image Analyer have been stuck in an infinite loop only interrupted by me killing the server:
Very interesting. Because Ollama tries stopping the server I would guess the Problem is on the Plugin side...
I will have a look into the queuing process and response handling.
Problem description:
I use AI Image Analyzer as a dependency to Omnisearch. Omnisearch appears to get stuck in AI image analysis regularly. Restarting Obsidian does not help, only restarting the Ollama Server helps, but after a few minutes, the whole issue repeats.
When I go to the Network tab in the developer tools (Ctrl-Shift-i) I can see the chat requests pouring in. All looks good, but after a while, a chat request will remain in pending state for eternity. There's nothing special about the image being analyzed (a png just like many others in my vault). I then checked what Ollama is doing:
Looks like it's trying to stop because no new request came in for a few minutes. But it never actually stops. It remains in this state for hours if I let it, while continuing to consume CPU & GPU:
![Image](https://private-user-images.githubusercontent.com/81649473/406730087-8f849114-d4d4-4c9c-a37a-38a8ec0d9e74.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMzQ5OTksIm5iZiI6MTczOTAzNDY5OSwicGF0aCI6Ii84MTY0OTQ3My80MDY3MzAwODctOGY4NDkxMTQtZDRkNC00YzljLWEzN2EtMzhhOGVjMGQ5ZTc0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDE3MTEzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzNTQzMjUxZTEzMTBlNzdkYmJmNWUxYWEyYzlhNGVlZTE0OTczMjZlNTE4YjAzZDRlNGUxOWIxMDBmZDYxNmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.gYl8-JVfdValSYn0arzr9rG2yuYf3q_-FKlzTZWpH-8)
If I kill the Ollama_llama_server.exe, AI Image Analyzer seems to automatically restart it and continue to analyze a bunch of images before stopping again.
Interestingly, after the server restarts, the response to the initial request does arrive. This looks like magic to me - I'd expect the request to fail and then the plugin would either retry or just head on to the next image. But that doesn't seem to be what's happening. The server restarts and then the original request returns:
![Image](https://private-user-images.githubusercontent.com/81649473/406730577-98e093fe-361a-4eab-94d2-a5054da04a63.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMzQ5OTksIm5iZiI6MTczOTAzNDY5OSwicGF0aCI6Ii84MTY0OTQ3My80MDY3MzA1NzctOThlMDkzZmUtMzYxYS00ZWFiLTk0ZDItYTUwNTRkYTA0YTYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDE3MTEzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRlYTM0OGU2NzVhZTAzMWMzZTIzYTZlMjZkNGZkNzlhOTMyYTFhZjY2MjFjYTQ0ZTdiNzhlYjZlM2M4ZWZiNzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.g-1EQuhEw5x0YzWHBboRQRzRtU2RjLZU3lA-7U4Xj-k)
Even more funny is that when I look up the resulting cache item it looks as if Ollama or AI Image Analyer have been stuck in an infinite loop only interrupted by me killing the server:
(Note: It doesn't actually say
Zaphod Beeblebrox
- there's a name of someone I know and this name is also written on the image)Environment:
The text was updated successfully, but these errors were encountered: