WebExtension / port.postMessage Memory Leak
Categories
(GeckoView :: Extensions, defect, P3)
Tracking
(Not tracked)
People
(Reporter: matthew, Unassigned)
Details
Steps to reproduce:
I created a test app which loads up GeckoView, and installs a simple content script extension which passes stringified JSON data back and forth from Kotlin to a webpage whose files exist locally on the Android device. After some time, memory usage will gradually increase and the app will crash. I have tried using a background script as well but that does not fix the issue.
I call port.postMessage() with the stringified JSON data every 5-10 seconds. As a result, memory will gradually climb over time, and seems to crash at around the 8-12 hour mark.
Actual results:
Memory will rise and garbage collector will run but not free up all memory, and Geckoview will consume so much memory that the application crashes.
Expected results:
GeckoView should not leak memory and not crash.
Comment 1•1 year ago
|
||
The severity field is not set for this bug.
:amejia, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Comment 2•1 year ago
|
||
The severity field is not set for this bug.
:amejia, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Description
•