Navigation Memory leak
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- ios, javascript
- Área
- mobile-dev, performance
Línea de trabajo
Comienza reproduciendo el problema en una app creada con el ns create template, usando el ejemplo de Frame.topmost().navigate y las versiones indicadas de iOS, ns-cli, ns-core e ios-runtime. Perfila la navegación entre las páginas descritas en un iPhone y compara el comportamiento de la memoria con y sin el cambio intentado de GC(). Se considera terminado cuando la fuga de navegación está corregida y la memoria ya no se acumula hasta que la app se bloquea.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
ns-v8ios since version 7 I think have this issue. Where garbage collector is not operating as intended. I think there's a duplicate about this topic in the issue list, but it's easier to create one for myself with all necessary details.
So the leak is happening even on the app that you can install with ns create. If you create one using the template where this code exists
Frame.topmost().navigate({
moduleName: componentRoute,
transition: {
name: 'fade',
},
})
I've tried to modify it in a way to use util GC(). It helped, by a tiny bit, but it's still not enough. I've made a video where I profile hello world app on iPhone and show on screen what is happening on my device. I'm basically jumping between template heavy pages that have bunch of
<GridLayout class="page__content">
<Label class="page__content-icon far" text=""></Label>
<Label class="page__content-placeholder" text="<!-- Page content goes here -->"></Label>
</GridLayout>
duplicated. On one page 300 lines, on the second one 6000 lines. And it's clearly visible that memory is being released by accumulates much much more.
Why so much lines is just to display that GC is clearly broken, but even in live app that I have, I have "complex" layouts because we're using NS-Vue and components approach create a lot of templates, even if they are flat. So our app crashing our clients devices quite easily, especially the ones that have only 2-3GB of RAM and the solution to make design more flat might not be a solution for us at all, unfortunately.
Version of xcode: 13.1
Version of ns-cli: 8.1.4
Version of ns-core: 8.1.1
Version of ios-runetime: 8.1.0
We would like to "invest" into this problem, to fix it ASAP, as our product suffers from this.
Here's there link to a video where I show the error https://drive.google.com/file/d/1Qz8jYFE6N4TVvS0G_8rrvmVzUe-KtKFC/view?usp=sharing
- Lenguaje dominante
- JavaScript
- Estrellas
- 150
- Forks
- 43
- Merge medio
- 3 d 10 h
- PR fusionados (30 d)
- 22
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NativeScript/ios
-
isImplementedInClass leaks the losing sample instance on re-entrant or racing cache population Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
NativeScript/ios#459 · 1 comentario ·
-
worker.terminate() is a no-op during entry evaluation, and terminating there wedges teardown Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
NativeScript/ios#445 ·
-
Dificultad 3/5 3-5 días Aptitud para principiantes 66/100
NativeScript/ios#414 ·
-
question
Dificultad 4/5 3-5 días Aptitud para principiantes 34/100
NativeScript/ios#364 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
NativeScript/ios#355 ·
Todos los issues de NativeScript/ios
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
avniproject/avni-client#2135 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
babalae/bettergi-scripts-list#3674 ·
-
A-Release-Notes C-Editing D-Modest S-Ready-For-Implementation
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
bevyengine/bevy-website#2595 ·
-
ecosystem wording
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
matrix-org/matrix.org#3649 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
vadimdemedes/ink#1029 ·