Open clemensmol opened 1 year ago
This also happens on Android, but not as bad as on iOS it seems
The first pink is a press on the start button (in the repro app) and the second pink dot is a press on the stop button. Notice how memory only increases between start and stop
any updates on this? still a valid issue in 0.72.5
+1 0.72.4 also
it seems to be related to the hermes, using demo provided above in 0.69 is not leading to memory leak, but if hermes is turned on, on same 0.69 issue is back
There's an update from Hermes team that bug occurs in RN code: https://github.com/facebook/hermes/issues/1147#issuecomment-1756478479
Any fix for this issue?
Easily reproducible on the 0.73.2
as well doing something like this in a loop with big video files:
const formData = new FormData()
formData.append('video', {
uri: partFileUrl.replace('file://', ''),
type: 'video/quicktime',
name: `${partNumber}.mov`,
})
const response = await fetch('https://example.com/upload', {
method: 'POST',
body: formData,
})
I have also tried switching to JSC from Hermes or calling gc
, both didn't help.
Description
I have encountered a memory leak issue when using the fetch function in my React Native application. The memory usage gradually increases over time in iOS, leading to performance degradation and potential crashes.
React Native Version
0.72.4
Output of
npx react-native info
Steps to reproduce
Snack, screenshot, or link to a repository
minimal example: https://github.com/clemensmol/rn-fetch-memoryleak