open-event-attendee-android: App crashes after surfing events a lot
Describe the bug Basically, I just open an event detail and come back to main events fragment, do it all over again and after a while, the app starts to slow down my phone and at some point, it cannot render the views and crashes.
Screenshots I couldn’t event record the crashes because the whole phone was really laggy.
Smartphone Info: Old Honor 7, API 24
Additional context
I don’t know what is the cause of the problem but from the logs, it seems like the app crashes when the app cache a lot of information. Some printed logs that I think might be significant to this issue:
Increasing code cache capacity to 7MB
. (It crashes when the code cache goes to around 6 - 7MB).
Skipped XX frames! The application may be doing too much work on its main thread.
Would you like to work on the issue? Yes, if someone can please give me some advices on this Also, I think if someone can fix this then please feel free to send a PR
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (17 by maintainers)
Commits related to this issue
- fix: Remove click listeners to remove memory leaks (#1766) Detail: - Clear click listener inside adapter Fixes: #1705 — committed to fossasia/open-event-attendee-android by anhanh11001 5 years ago
This is fixed now when I deleted the use of Scope and use normal way to set up adapter/recycler view in EventsFragment. I’m closing this issue now. However, based on Leak Canary, the current way of setting up adapter/recyclerView in some other fragments still create leaks. I will investigate this and open a new issue