freeCodeCamp / freeCodeCamp/devdocs

Bug: Lag / Stack Overflow on Phoenix Search Result

Abierto
#1,689 3 comentarios 1 reacción 0 asignados Ver en GitHub
bug/search
Lenguaje dominante
Ruby
Estrellas
39.5k
Forks
2.6k
Merge medio
4 d 32 min
PR fusionados (30 d)
13

Descripción

**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**
![Screen Shot 2022-01-10 at 11 35 35](https://user-images.githubusercontent.com/23065557/148803220-20922967-6641-443d-85a5-7ce052c76221.png)

**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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
ruby
Área
performance, search
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.