freeCodeCamp / freeCodeCamp/devdocs
Bug: Lag / Stack Overflow on Phoenix Search Result
- Lingua principale
- Ruby
- Stelle
- 39.5k
- Fork
- 2.6k
- Merge medio
- 4g 32m
- PR unite (30g)
- 13
Descrizione
**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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci il problema aggiungendo Phoenix come origine e cercando `testing-librar`, soprattutto quando digiti il secondo `r`, controllando nel frattempo nella console del browser la presenza di uno stack overflow. Il lavoro è completato quando la ricerca rimane reattiva e il testo lungo dei risultati viene troncato senza l’errore segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- ruby
- Ambito
- performance, search
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100