Collect: Ensure leak canary is enabled for the debug build or remove it

Created on 4 Oct 2019  路  8Comments  路  Source: getodk/collect

According to https://github.com/opendatakit/collect/issues/3366#issuecomment-537500260, Leak Canary is not enabled for the debug build. It should either be or should be removed entirely.

I think it's been helpful in the past and would be good to enable for the debug build.

Todos:

All 8 comments

This pr https://github.com/opendatakit/collect/pull/3370 has enabled it but today I heard from @mmarciniak90 that it's a big hassle so I would remove it. We can enable it in the future once we have time to investigate reported issues instead of having it enabled all the time.

Got it -- that makes sense, removing TestCollect from the debug manifest means that Collect is used instead which enables Leak Canary. I didn't realize that this was a side effect of the PR when reviewing.

Can you or @mmarciniak90 say more about what makes it a hassle? I'm not immediately seeing any issues with master but I also don't have the LeakCanary app installed. Is it that it is actually identifying leaks (perhaps #2716?)?

I haven't tested it after merging #3370 but @mmarciniak90 said that she was receiving many alerts/messages and it was even closing or crashing the app so it was a problem during testing.

Is it that it is actually identifying leaks (perhaps #2716?)?

right.

@mmarciniak90 Do you have the Leak Canary app installed? Maybe the thing to do is to file issues for the problems it flags and then uninstall it unless specifically looking for leaks?

I can confirm that LeakCanary is enabled for debug builds and is reporting memory leaks.

Screenshot_1571557975
Screenshot_1571558234

Thanks, @shobhitagarwal1612! I talked to @mmarciniak90 and the problem is that while I thought the Leak Canary app could get uninstalled, it's impossible without also uninstalling the Collect debug build. In the short term, @grzesiek2010 has agreed to do a time-boxed exploration of the current leaks and see whether they can be quickly fixed. I believe #2716 is the most disruptive since it does happen often.

Hello @grzesiek2010, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 15 days.

You can reclaim this issue or claim any other issue by commenting @opendatakit-bot claim on that issue.

Thanks for your contributions, and hope to see you again soon!

There's a note in the contribution guide, the most common leaks have been addressed, and we're back on track with a process to file issues and address leaks as they're identified so we can close this issue.

Was this page helpful?
0 / 5 - 0 ratings