Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

IntentFilter warnings on each network requests #1159

Open
LukasPaczos opened this issue Aug 6, 2019 · 3 comments
Open

IntentFilter warnings on each network requests #1159

LukasPaczos opened this issue Aug 6, 2019 · 3 comments

Comments

@LukasPaczos
Copy link
Contributor

When scrolling the map, each network requests sent from core results in a warning log:

1180-5873/? W/ActivityManager: Receiver with filter android.content.IntentFilter@fe11c8c already registered for pid 13630, callerPackage is com.mapbox.mapboxandroiddemo.debug
13630-13766/com.mapbox.mapboxandroiddemo.debug V/Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).
1180-5873/? W/ActivityManager: Receiver with filter android.content.IntentFilter@9d3ffd5 already registered for pid 13630, callerPackage is com.mapbox.mapboxandroiddemo.debug
13630-13763/com.mapbox.mapboxandroiddemo.debug V/Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).
1180-3691/? W/ActivityManager: Receiver with filter android.content.IntentFilter@af503ea already registered for pid 13630, callerPackage is com.mapbox.mapboxandroiddemo.debug
13630-13766/com.mapbox.mapboxandroiddemo.debug V/Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).
1180-3691/? W/ActivityManager: Receiver with filter android.content.IntentFilter@28026db already registered for pid 13630, callerPackage is com.mapbox.mapboxandroiddemo.debug
13630-13763/com.mapbox.mapboxandroiddemo.debug V/Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).

It feels like a red-herring but definitely correlates. I wasn't able to narrow down where do those logs come from.

@langsmith
Copy link
Contributor

Comes from #1012, where setUpTileLoadingMeasurement() was added to the MapboxApplication class: https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/src/global/java/com/mapbox/mapboxandroiddemo/MapboxApplication.java#L44-L48

Will work on a pr to adjust if possible

@langsmith
Copy link
Contributor

Comes from #1012, where setUpTileLoadingMeasurement() was added to the MapboxApplication class

The filter warning doesn't appear in the logcat when I comment out this method, fresh install on my phone, open an example, and then pan around to load tiles.

@langsmith
Copy link
Contributor

I haven't found much. The ActivityManager: Receiver with filter.... log message seems to come from ActivityManagerService#registerReceiver():

https://android.googlesource.com/platform/frameworks/base/+/master/services/core/java/com/android/server/am/ActivityManagerService.java#14539

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants