x/mobile: potential gomobile memory leak #59511
Labels
mobile
Android, iOS, and x/mobile
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I use gomobile bind to build shared logic for iOS and Android and it seems that sometimes gomobile doesn't break retain cycles that leads to memory leaks. Probably I use wrong architecture but in any case the behaviour is strange: in one case all created objects was dealloced and in another there was a memory leak.
To reproduce you can check demo project https://github.com/NightBlaze/GomobileDemo
What did you expect to see?
Memory doesn't leak
What did you see instead?
Memory leak
The text was updated successfully, but these errors were encountered: