0xbad1d3a5 / Kaku

画 - Japanese OCR Dictionary
https://kaku.fuwafuwa.ca/
BSD 3-Clause "New" or "Revised" License
203 stars 36 forks source link

Shutting down Kaku's service does not completely kill the service #13

Open 0xbad1d3a5 opened 5 years ago

0xbad1d3a5 commented 5 years ago

Not sure if this is just Android behavior or not with services. But onDestroy does get called and I'm pretty sure I'm disposing of every object properly. Regardless, this is causing us to leak a little bit of memory each time this happens. After 40+ open/close cycles in rapid succession it starts to affect system performance.

Force stopping the Kaku service through Android's Apps screen / service screen will reclaim lost memory and return performance back to normal on the device though.

0xbad1d3a5 commented 5 years ago

Tested this again last night. Surprisingly wasn't able to repo the issue anymore...

Will probably try again to repro a couple times before closing this issue.