open-webui icon indicating copy to clipboard operation
open-webui copied to clipboard

issue: Browser Freezes When Pasting Large Content

Open chalitbkb opened this issue 8 months ago • 4 comments

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

  1. Select large-sized content.
  2. Place these data in “…/workspace/knowledge/xxxx.”
  3. 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

Image

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

chalitbkb avatar Mar 26 '25 13:03 chalitbkb

I don't know if related, but if

  1. you use native tool calling
  2. call a tool
  3. tool returns 100k tokens
  4. expand the tool call (Click on the little drop down / expand) then: 5) browser freezes

Classic298 avatar Mar 27 '25 09:03 Classic298

This is similar to what happens with syntax highlighting.

Related https://github.com/open-webui/open-webui/discussions/11924

gaby avatar Mar 27 '25 12:03 gaby

I’ve had a few users report something similar. It often is due to browser extensions they have enabled

jrkropp avatar Apr 02 '25 07:04 jrkropp

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.

spammenotinoz avatar Apr 23 '25 11:04 spammenotinoz

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

Monniasza avatar Jun 01 '25 16:06 Monniasza

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.

chrisoutwright avatar Jul 10 '25 17:07 chrisoutwright

The performance may be improved by capping all message lengths and loading only messages that are visible.

Monniasza avatar Jul 11 '25 10:07 Monniasza