-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Memory leak in RCTView #4268
Comments
Thank you for your issue report. Please note that the following information is missing or incomplete:
Please update your issue with this information to help us address it more effectively.
|
This issue is stale because it has been open for 30 days with no activity. If there won't be any activity in the next 14 days, this issue will be closed automatically. |
@Varuzh1 I have the same issue. Do you have any solutions? |
@Varuzh1 can you please open a pr with your changes, I would be happy to review it quickly! |
I tried the code you provided, but it didn’t work:
I’m facing a serious issue where the device (IOS) heats up after watching videos multiple times. The reason seems to be that the memory isn’t released properly. Can you take a look at this issue, @freeboub ? I would really appreciate it. |
Version
6.7.0
What platforms are you having the problem on?
iOS
System Version
18
On what device are you experiencing the issue?
Real device
Architecture
Old architecture
What happened?
RCTVideo has a memory leak due to two retain cycles:
_imaAdsManager = RCTIMAAdsManager(video: self, pipEnabled: isPipEnabled)
isPipEnabled closure should be called on weak selfReproduction Link
repository link
Reproduction
Step to reproduce this bug are: Unmount any video component and verify that the deinit function in RCTVideo is not being called.
The text was updated successfully, but these errors were encountered: