freeCodeCamp / freeCodeCamp/devdocs
Bug: Lag / Stack Overflow on Phoenix Search Result
- 主要语言
- Ruby
- 星标
- 39.5k
- 派生
- 2.6k
- 平均合并
- 4 天 32 分钟
- 30 天内合并 PR
- 13
描述
**Describe the bug**
Stack overflow on long search result.
**To Reproduce**
Steps to reproduce the behavior:
1. Add Phoenix as a source.
2. Search for `testing-librar` (problem occurs when typing the second `r`)
Result:
Page lags for a while, then an error shows in the console. I can continue to interact with the page, but every action takes several seconds, until I delete the search term and the page becomes responsive again.
It freezes every time I search with `testing-librar` but does not reliably freeze when finding the same search result by searching for other terms.
**Expected behavior**
No lagging, text in search results is trimmed.
A clear and concise description of what you expected to happen.
**Screenshots**

**Desktop (please complete the following information):**
- OS: macOS Big Sur
- Browser: Firefox 95.0.1
**Additional context**
I recently started trying DevDocs for the first time. I added a few sources, and tried searching for a few terms, but it's otherwise a fresh state.
贡献指南
调研方向
Reproduce the issue by adding Phoenix as a source and searching for `testing-librar`, especially when typing the second `r`, while checking the browser console for the stack overflow. Done means the search remains responsive and long result text is trimmed without the reported error.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ruby
- 领域
- performance, search
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100