mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #3334] Browser freezes ocasionally when generating bigger code #13227
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Fusseldieb on GitHub (Jun 20, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3334
Bug Report
Description
Bug Summary:
When generating code with GPT-4o, it looks like it generates so fast that it sometimes can't keep up with the syntax highlighting, locks up and freezes the browser for half a minute. This does only happen ocasionally, but is very annoying when it does.
See additional information.
Steps to Reproduce:
Expected Behavior:
Actual Behavior:
Environment
Open WebUI Version: 0.3.5
Ollama (if applicable): -
Operating System: Debian
Browser (if applicable): Edge 125.0 x64
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
-
Docker Container Logs:
-
Screenshots (if applicable):
-
Installation Method
Managed under a docker container, installed like recommended instructions.
Additional Information
It looks like it only happens while code highlighting. You can actually see it getting progressively slower and outputting 3-4 lines at once, and eventually the browser can't keep up and freezes for some seconds. Sometimes it even gets to the "Wait for the page?" dialog, where you can wait and it eventually recovers.
However, there are times when it's getting slower and slower, and then the code ends, and it IMMEDIATELY springs back to normal speed, what leads me to believe it has do to with code highlighting.
Maybe triggering the code highlighting too often/too fast?
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@morgendigital commented on GitHub (Jun 20, 2024):
+1, we see similar issues, exactly as you described.
@tjbck commented on GitHub (Jun 20, 2024):
Just pushed an optimisation refac for code block in latest dev, I'd greatly appreciate if you could test it out and see if that did anything for you! 🙌
@morgendigital commented on GitHub (Jun 21, 2024):
@tjbck works much better now, no hanging at all for me - thank you for the quick fix!
@AdyTech99 commented on GitHub (Nov 7, 2024):
Is this ever going to come out in the release?
@Fusseldieb commented on GitHub (Nov 7, 2024):
@AdyTech99 It has improved for several versions now. Are you on the latest?
@AdyTech99 commented on GitHub (Nov 7, 2024):
@Fusseldieb Yes, 0.3.35. I'm on Safari, so maybe it's a browser problem? Safari does tend to lag on large webpages
@Fusseldieb commented on GitHub (Nov 7, 2024):
@AdyTech99 Very large code still lags here and then, but things have definitively changed.
@gaby commented on GitHub (Mar 20, 2025):
Having same issue. OpenWebUI takes over a minute to render code sent back by the gpu