Open qqaatw opened 2 months ago
The LlamaIndex docs might be crashing Chrome tabs due to certain JavaScript files or CSS causing memory leaks or excessive resource usage. Specifically, the extra_javascript
section includes javascript/mendablesearch.js
, which could be a potential culprit.
To resolve this issue, you can try the following steps:
Disable the JavaScript File: Temporarily remove or comment out the extra_javascript
entry in your mkdocs.yml
file to see if the issue persists.
extra_javascript:
# - javascript/mendablesearch.js
Check for Updates: Ensure that all included JavaScript and CSS files are up-to-date and compatible with the latest version of Chrome.
Debug the JavaScript: Use Chrome's Developer Tools to identify any potential issues or errors in the JavaScript execution.
Optimize Resources: Ensure that the included resources are optimized and not causing excessive memory usage.
By following these steps, you should be able to identify and resolve the issue causing the Chrome tabs to crash [1].
To continue talking to Dosu, mention @dosu.
Pretty sure this is due to the search bar building the search index client side locally
If your laptop/computer/phone is lacking RAM, it could crash
Been meaning to disable search and possibly replace with algolia, but it hasn't been as widespread to motivate that change yet
FWIW, I'm using an M1 mac with 64GB unified memory, so I would assume that the indexing is memory hungry. I do not run into this issue with other websites at least lately.
Every single tab consumes ~800mb memory.
Bug Description
LlamaIndex docs keep crashing chrome tabs as follows:
When a tab of Llamaindex crashes, the other pages that open Llamaindex docs crash as well.
Tabs not opening Llamaindex docs remain intact.
Version
stable docs
Steps to Reproduce
Don't have a consistent way to reproduce it. It happens kinda randomly.
Chrome's version:
Version 127.0.6533.120 (Official Build) (arm64)
The docs pages that I opened (Included but not limited to): https://docs.llamaindex.ai/en/stable/examples/customization/prompts/chat_prompts/ https://docs.llamaindex.ai/en/stable/module_guides/loading/documents_and_nodes/usage_documents/ https://docs.llamaindex.ai/en/stable/api_reference/indices/document_summary/ https://docs.llamaindex.ai/en/stable/module_guides/workflow/#working-with-global-contextstate https://docs.llamaindex.ai/en/stable/examples/workflow/function_calling_agent/Relevant Logs/Tracbacks