Giter VIP home page Giter VIP logo

Comments (12)

mrenouf avatar mrenouf commented on August 23, 2024 6

It is a framework issue:
https://issuetracker.google.com/issues/139738913

from chucker.

vbuberen avatar vbuberen commented on August 23, 2024 3

It seems to be not Chucker issue: square/leakcanary#1594

from chucker.

vbuberen avatar vbuberen commented on August 23, 2024 1

Closing as an issue not related to the library.

from chucker.

cortinico avatar cortinico commented on August 23, 2024

Thanks for the report @niltsiar
I'm leaving this opened and free to pickup if someone wants to investigate more what's going on.

from chucker.

addiittya2006 avatar addiittya2006 commented on August 23, 2024

@niltsiar is this reproducible? I was unable to reproduce this on Android Q beta 7.
@cortinico my guess is activity was destroyed while viewpager was still in transaction. this is a bleak possibilty.

from chucker.

niltsiar avatar niltsiar commented on August 23, 2024

@adtyx it's reproducible every time using Android Q Beta 6, with my own projects and with Chucker sample. As far as I know there is no such beta 7, at least for Pixel devices.

I've made a test just leaving setContentView as the only thing the MainActivity does and also removing the ViewPager from the XML. The leak still appears.

from chucker.

cortinico avatar cortinico commented on August 23, 2024

@niltsiar is this reproducible? I was unable to reproduce this on Android Q beta 7.

@adtyx I saw it happening from time to time on a Pixel3, latest Android Q beta. I haven't really investigated on this but I'll be happy to assign this issue to a volunteer :)

from chucker.

niltsiar avatar niltsiar commented on August 23, 2024

I've tested it again with the new final version of Android 10. I've also updated my local copy of Chucker sample to use the latest LeakCanary-2.0-beta-3 and the issue is still happening.

from chucker.

caiodev avatar caiodev commented on August 23, 2024

On the last update of Android 10 on OnePlus 7 this leak is not being reported anymore. So there's a great chance it's been fixed. I had to uninstall the app and reinstall it though

from chucker.

aoben10 avatar aoben10 commented on August 23, 2024

I'm still seeing this issue.

Known leak pattern: instance field android.app.Activity$1#this$0
Description: Android Q added a new android.app.IRequestFinishCallback$Stub class. android.app.Activity creates an implementation of that interface as an anonymous subclass. That anonymous subclass has a reference to the activity. Another process is keeping the android.app.IRequestFinishCallback$Stub reference alive long after Activity.onDestroyed() has been called, causing the activity to leak.
338984 bytes retained
┬
├─ android.app.Activity$1
│    Leaking: UNKNOWN
│    Anonymous subclass of android.app.IRequestFinishCallback$Stub
│    GC Root: Global variable in native code
│    ↓ Activity$1.this$0
│                 ~~~~~~
╰→ com.chuckerteam.chucker.api.internal.ui.MainActivity
​     Leaking: YES (Activity#mDestroyed is true and ObjectWatcher was watching this)
​     key = 274de02a-4a5e-4767-8367-3db4c6b397c1
​     watchDurationMillis = 5124
​     retainedDurationMillis = 120


METADATA

Build.VERSION.SDK_INT: 29
Build.MANUFACTURER: Google
LeakCanary version: 2.0
App process name: com.myapp
Analysis duration: 5785 ms

from chucker.

cortinico avatar cortinico commented on August 23, 2024

@aoben10 thanks for the LeakCanary report. From which version of Chucker is this related? Can I ask you to try using the latest SNAPSHOT from develop and confirm that is happening again?

from chucker.

aoben10 avatar aoben10 commented on August 23, 2024

Thanks for letting me know @vbuberen

from chucker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.