open-webui
open-webui copied to clipboard
issue: Browser Freezes When Pasting Large Content
Hello, I'm writing about this again after addressing the same issue several months ago. I encountered the same problem I previously described in another section, which has since been resolved. However, I found that adding large content to the ".../workspace/knowledge/xxxx" section causes the browser to freeze. I hope this can be fixed soon.
Check Existing Issues
- [x] I have searched the existing issues and discussions.
- [x] I am using the latest version of Open WebUI.
Installation Method
Docker
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Windows 11
Browser (if applicable)
Chrome 134.0.6998.118
Confirmation
- [x] I have read and followed all instructions in
README.md. - [x] I am using the latest version of both Open WebUI and Ollama.
- [x] I have included the browser console logs.
- [x] I have included the Docker container logs.
- [x] I have listed steps to reproduce the bug in detail.
Expected Behavior
• When placing the content into the specified box located at “…/workspace/knowledge/xxxx,” the system should be able to handle or process it without any issues.
Actual Behavior
• Even though a similar problem was previously resolved in another location, placing a large amount of content in “…/workspace/knowledge/xxxx” once again caused the same issue, indicating that the system cannot properly handle large data.
Steps to Reproduce
- Select large-sized content.
- Place these data in “…/workspace/knowledge/xxxx.”
- Observe the system’s behavior; if the previously mentioned issue reoccurs, it indicates that large files cause the system to malfunction or fail to operate correctly.
Logs & Screenshots
Additional Information
This is where I previously wrote about this issue. It might help you understand better. https://github.com/open-webui/open-webui/issues/9166#issue-2823646320
I don't know if related, but if
- you use native tool calling
- call a tool
- tool returns 100k tokens
- expand the tool call (Click on the little drop down / expand) then: 5) browser freezes
This is similar to what happens with syntax highlighting.
Related https://github.com/open-webui/open-webui/discussions/11924
I’ve had a few users report something similar. It often is due to browser extensions they have enabled
I have found three main causes, but typically only impacts a few users. a) Uncompressed images (absolutely kill the performance, these can lock-up the entire system for all users). Forcing client side compression has been my saviour. b) Browser extensions c) Large conversations (the entire conversation is stored uncompressed in the browser, just the console logs alone impact the performance) and bounces between the user and the server. Using knowledge instead of pasting text helps a lot.
Mitigation: Improving the performance of the database via pooling, can have some benefit.
I've got the logs for it. This issue occured when I accidentally pasted in a text dump of an executable. The console doesn't show any errors, but the UI hangs. Notice the huge content row. After waiting a very long time, however, the UI loads, but is still nearly unresponsive. localhost-1748793639320.log
Can something be improved with long chats (happens faster with more models side-by-side) with the lag? After 30k with three models, it is nearly impossible to continue.
The performance may be improved by capping all message lengths and loading only messages that are visible.