Comments (12)
It is a framework issue:
https://issuetracker.google.com/issues/139738913
from chucker.
It seems to be not Chucker issue: square/leakcanary#1594
from chucker.
Closing as an issue not related to the library.
from chucker.
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.
@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.
@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.
@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.
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.
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.
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.
@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.
Thanks for letting me know @vbuberen
from chucker.
Related Issues (20)
- Chucker working fine in react native debug build. how to enable in release build? HOT 3
- With notifications disabled, Chucker will still ask for notification permission when launching the activity HOT 5
- body is empty in the Request Body even though the log shows the actual request body (see screenshot) HOT 3
- Chucker not working in React native latest version
- Control what to show/ hide in request/ response bodies HOT 3
- Allow tracking of all network calls HOT 3
- IllegalStateException when open single API request information on release build. HOT 6
- The large JSON data is corrupted. I cannot see or export large JSON file (3.2mb)
- Aaa
- chucker/4.0.0 build faild on jitpack HOT 2
- Can not force ltr in RTL languages HOT 1
- Chucker not working on some devices but is working on others
- Localization HOT 1
- Toolbar subtitle (app name) gets truncated on device OnePlus7 Pro (OS 12)
- Duplicate class com.chuckerteam.chucker.api.Chucker found in modules jetified-library-4.0.0-runtime HOT 5
- 7016
- Ignore domains and paths from interceptor HOT 7
- Method skipPaths on builder does not work as expected HOT 1
- Global Interceptor adding HOT 1
- Support for `ktor` networking library using in `android` and `kmp` projects. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chucker.