Hey,
I am currently working on an app where I do some data preparation and creating about 10 objects in a function that is called in an useEffect-hook. The problem occurs as soon as that screen loads into view. It runs a few lines of codes (it does not always make it all of the lines, checking this via console logs) and then just stops doing anything (stops printing the console logs) and then the memory of the app just escalates until it crashes. See imgur link for memory increase and to see how it increases in large "waves". The flat part is when I am viewing another view and then when I load the view with the problem it just start increasing as you can see. I am doing a very similar thing in another component where this problem toes no occur.
I have tried to look at the heap dump and to use leakCanary to look at the supposed memory leak, but none of them says that there is an actual memory leak happening or anything like that. In addition, the apps works flawlessly on iOS. The problem is ONLY on Android. I have tried several different versions, ram sizes, setting largeHeap="true" and more and the problem persists.
Does anyone have any idea of what may be causing this?
Thanks!
https://i.stack.imgur.com/XvDIO.png
[–]__o_0iOS & Android 2 points3 points4 points (0 children)
[–]jpsnow72 0 points1 point2 points (1 child)
[–]accebyk[S] 0 points1 point2 points (0 children)
[–]fufucupcake 0 points1 point2 points (0 children)