Open-event-droidgen: DayScheduleFragment leaked 109 KB

Created on 6 May 2017  Â·  13Comments  Â·  Source: fossasia/open-event-droidgen

Actual Behaviour

After using the app for a while i get a notification as seen below for the information leakage.

Expected Behaviour

Adding appropriate permissions in the manifest file to avoid that.

Steps to reproduce it

  1. Use the app for several minutes.
  2. While doing so go to different items like tracks, location, schedule etc.
  3. You will get a notification of information leaked.

LogCat for the issue

-

Screenshots of the issue

18361852_10211217388265000_881712396_o

Would you like to work on the issue?

Yes

Most helpful comment

resolved the issue. working fine on my device.
submitting the pr in a while.
Thanks for help @iamareebjamal !

All 13 comments

@arp95 This is the message from LeakCanary. Once you click on the notification, it'll ask for the permission to access storage once and after that you can see the leaks in the app called Leaks on your device. This was working as expected on Nougat when I last tested. Is your app behaving differently than expected?

@iamareebjamal
actually i tried to open the app different times but after a while i get that leak notifcation.
In the Android Monitor it shows we have to add permission for writing external storage.

It is just a warning because the library manifest declares that permission and the app doesn't.

We should not add that permission in production code because leak canary won't be shipped in release builds and it will add an unnecessary permission to our app.

I recommend you to wait for another leak or make it happen temporarily and it will be shown just fine. If not, we can look into it

I have also observed same notification and observed that the leak is
because of DayScheduleFragment instance

On Sat, May 6, 2017, 5:36 PM Areeb Jamal notifications@github.com wrote:

It is just a warning because the library manifest declares that permission
and the app doesn't.

We should not add that permission in production code because leak canary
won't be shipped in release builds and it will add an unnecessary
permission to our app.

I recommend you to wait for another leak or make it happen temporarily and
it will be shown just fine. If not, we can look into it

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/fossasia/open-event-android/issues/1489#issuecomment-299635577,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARaybJwiT7C6O6PWibR2kUZ25dIvPJYHks5r3GJbgaJpZM4NSqJP
.

True. I removed the SwipeRefreshListener in onDestroyView but it is still leaking somewhere. Fixing that issue will non conventionally fix this issue as well @arp95

@iamareebjamal
are you facing this issue?

Screen shot for the same :
leak

The issue is not about the permission, but the memory being leaked which is being reported by leak canary

Details can be seen when you open the notification
device-2017-05-06-175139

Try to remain at schedule fragment for a period of time, it should show up

@iamareebjamal
yeah was getting this. although the solution might not be as you said will have to look up on the android monitor for further details

The solution to the leak or permission problem?

what i meant is you might be right permission might not be a solution for this.

resolved the issue. working fine on my device.
submitting the pr in a while.
Thanks for help @iamareebjamal !

Great!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dr0pdb picture dr0pdb  Â·  3Comments

mahikaw picture mahikaw  Â·  7Comments

iamareebjamal picture iamareebjamal  Â·  8Comments

shreyasnbhat picture shreyasnbhat  Â·  8Comments

iamareebjamal picture iamareebjamal  Â·  7Comments