Hello, I'm using Kotlin in Nativescript and I was ...
# javascript
h
Hello, I'm using Kotlin in Nativescript and I was having a problem with garbage collection. I have made a simple example to reproduce this issue. In the example, accessing to the kotlin library and forcing gc (It happens also without forcing it) makes the app hang and use ~100% of cpu. I don’t know if it could be a v8 issue or a kotlin.js problem. I would like some advice on how to solve it, because this is making my app unresponsive during undetermined time when a garbage collection happens. Here is a link to the project, It should be visible using and emulator, and clearly a problem in a real device: https://drive.google.com/open?id=0Bx_IBINpIoEKcmtHbEdiLUdoU2c
A github repo with the example: https://github.com/hiperbou/testNSgc
b
@hiperbou looks like https://github.com/NativeScript/NativeScript is better place to report this issue
h
I already asked there, now I'm just waiting them to tell me to ask to kotlin devs 🙂 https://discourse.nativescript.org/t/garbage-collector-hangs-app-in-android/2948
👍 1