mapbox / mapbox-maps-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL.
https://www.mapbox.com/mobile-maps-sdk
Other
477 stars 134 forks source link

OfflineRegionManager (legacy) createOfflineRegion callback does not get called #1718

Closed mysport12 closed 2 years ago

mysport12 commented 2 years ago

Environment

Observed behavior and steps to reproduce

Followed the legacy region download example here and cannot get the createOfflineRegion callback to fire. We were able to get the new download method working properly, however the 750 tile limit is a dealbreaker for us. Kotlin is not a strong suit so it may just be an oversight on our end, but we are at our wits end trying to understand what we are missing (if anything). To provide some additional context, we are patching this functionality into the React Native wrapper. Any help would be greatly appreciated.

Expected behavior

Callback will be called so the observer can be set and the status changed to 'ACTIVE'

Notes / preliminary analysis

Here is a stripped down version of our file with just the relevant download code included...

@ReactModule(name = RCTMGLOfflineModule.REACT_CLASS)
class RCTMGLOfflineModule(private val mReactContext: ReactApplicationContext) :
    ReactContextBaseJavaModule(
        mReactContext
    ) {
    private var offlineManagerLegacy: OfflineRegionManager? = null
    private var offlineRegionLegacy: OfflineRegion? = null
    var tileRegionPacks = HashMap<String, TileRegionPack>()
    private var mProgressEventThrottle = 300.0
    override fun getName(): String {
        return REACT_CLASS
    }

    private fun getOfflineManagerLegacy(): OfflineRegionManager? {
        if (offlineManagerLegacy == null) {
            offlineManagerLegacy = OfflineRegionManager(MapInitOptions.getDefaultResourceOptions(mReactContext))
        }
        return offlineManagerLegacy
    }

    private val callback: OfflineRegionCreateCallback = OfflineRegionCreateCallback { expected ->
            UiThreadUtil.runOnUiThread(object : Runnable {
                override fun run() {
                    if (expected.isValue) {
                        expected.value?.let {
                            it.setOfflineRegionObserver(object : OfflineRegionObserver {
                                var prevStatus: OfflineRegionStatus? = null
                                var timestamp: Long = System.currentTimeMillis()
                                override fun mapboxTileCountLimitExceeded(limit: Long) {
                                    val message = String.format(
                                        Locale.getDefault(),
                                        "Mapbox tile limit exceeded %d",
                                        limit
                                    )
                                    sendEvent(
                                        makeErrorEvent(
                                            name,
                                            EventTypes.OFFLINE_TILE_LIMIT,
                                            message
                                        )
                                    )
                                }

                                override fun responseError(error: ResponseError) {
                                    Log.d(
                                        "OFFLINE DOWNLOAD",
                                        "onError: ${error.reason}, ${error.message}"
                                    )
                                    it.setOfflineRegionDownloadState(OfflineRegionDownloadState.INACTIVE)
                                    sendEvent(
                                        makeErrorEvent(
                                            name,
                                            EventTypes.OFFLINE_ERROR,
                                            error.message
                                        )
                                    )
                                }

                                override fun statusChanged(status: OfflineRegionStatus) {
                                    val update = shouldSendUpdate(System.currentTimeMillis(), status)
                                    Log.d(
                                        "OFFLINE DOWNLOAD",
                                        "$update update value in status change handler"
                                    )
                                    if (update) {
                                        sendEvent(makeStatusEventLegacy(name, status))
                                        timestamp = System.currentTimeMillis()
                                    }
                                    prevStatus = status
                                }

                                fun shouldSendUpdate(
                                    currentTimestamp: Long,
                                    curStatus: OfflineRegionStatus
                                ): Boolean {
                                    if (prevStatus?.downloadState != curStatus.downloadState) {
                                        return true
                                    }
                                    if (currentTimestamp - timestamp > mProgressEventThrottle) {
                                        return true
                                    }
                                    return false
                                }
                            })
                            it.setOfflineRegionDownloadState(OfflineRegionDownloadState.ACTIVE)
                        }
                    } else {
                        expected.error?.let {
                            Log.e("OFFLINE DOWNLOAD", it)
                        }
                    }
                }
            })
    }

    @ReactMethod
    @Throws(JSONException::class)
    fun createPackLegacy(options: ReadableMap, promise: Promise) {
        try {
            val _this = this
            val name = ConvertUtils.getString("name", options, "")
            val manager = getOfflineManagerLegacy()
            val latLngBounds = getBoundsFromOptions(options)
            val definition = OfflineRegionTilePyramidDefinition.Builder()
                .bounds(latLngBounds.toBounds())
                .glyphsRasterizationMode(GlyphsRasterizationMode.IDEOGRAPHS_RASTERIZED_LOCALLY)
                .styleURL((options.getString("styleURL"))!!)
                .minZoom(options.getInt("minZoom").toDouble())
                .maxZoom(options.getInt("maxZoom").toDouble())
                .pixelRatio(mReactContext.resources.displayMetrics.scaledDensity)
                .build()
            manager!!.createOfflineRegion(definition, callback)
            val metadataStr = options.getString("metadata")
            promise.resolve(fromOfflineRegion(latLngBounds, metadataStr))
        } catch (e: Exception) {
            Log.d("OFFLINE DOWNLOAD", "$e...create pack failed due to an exception")
        }
    }

    @ReactMethod
    fun setTileCountLimitLegacy(tileCountLimit: Int) {
        val offlineManagerLegacy = getOfflineManagerLegacy()
        offlineManagerLegacy!!.setOfflineMapboxTileCountLimit(tileCountLimit.toLong())
    }

    @ReactMethod
    fun setProgressEventThrottle(eventThrottle: Double) {
        mProgressEventThrottle = eventThrottle
    }

    private fun getBoundsFromOptions(options: ReadableMap): LatLngBounds {
        val featureCollectionJSONStr = ConvertUtils.getString("bounds", options, "{}")
        val featureCollection = FeatureCollection.fromJson(featureCollectionJSONStr)
        return GeoJSONUtils.toLatLngBounds(featureCollection)
    }

Additional links and references

mysport12 commented 2 years ago

I also got the example test app up and running and I am seeing this...

10-03 13:21:21.030  1738  3034 I ActivityTaskManager: START u0 {cmp=com.mapbox.maps.testapp/.examples.LegacyOfflineActivity} from uid 10025
10-03 13:21:21.032  1738  3034 D CompatibilityChangeReporter: Compat change id reported: 174042980; UID 10025; state: DISABLED
10-03 13:21:21.033  1738  3034 D CompatibilityChangeReporter: Compat change id reported: 184838306; UID 10025; state: DISABLED
10-03 13:21:21.033  1738  3034 D CompatibilityChangeReporter: Compat change id reported: 185004937; UID 10025; state: DISABLED
10-03 13:21:21.034  1738  3034 D CompatibilityChangeReporter: Compat change id reported: 181136395; UID 10025; state: DISABLED
10-03 13:21:21.034  1738  3034 D CompatibilityChangeReporter: Compat change id reported: 174042936; UID 10025; state: DISABLED
10-03 13:21:21.036  1738  3034 D CompatibilityChangeReporter: Compat change id reported: 197654537; UID 10025; state: DISABLED
10-03 13:21:21.038  1738  3034 D CompatibilityChangeReporter: Compat change id reported: 168419799; UID 10025; state: DISABLED
10-03 13:21:21.043  1738  3034 W ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (123332427)
10-03 13:21:21.085 24026 24079 I Mapbox  : [MapboxReachability]: Application permission for ACCESS_NETWORK_STATE granted
10-03 13:21:21.092 24026 24026 D StrictMode: StrictMode policy violation; ~duration=10 ms: android.os.strictmode.DiskReadViolation
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1659)
10-03 13:21:21.092 24026 24026 D StrictMode:    at libcore.io.BlockGuardOs.access(BlockGuardOs.java:74)
10-03 13:21:21.092 24026 24026 D StrictMode:    at libcore.io.ForwardingOs.access(ForwardingOs.java:128)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ActivityThread$AndroidOs.access(ActivityThread.java:7747)
10-03 13:21:21.092 24026 24026 D StrictMode:    at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:281)
10-03 13:21:21.092 24026 24026 D StrictMode:    at java.io.File.exists(File.java:813)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ContextImpl.ensurePrivateDirExists(ContextImpl.java:751)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ContextImpl.ensurePrivateDirExists(ContextImpl.java:742)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ContextImpl.getFilesDir(ContextImpl.java:787)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.content.ContextWrapper.getFilesDir(ContextWrapper.java:261)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.mapbox.common.CoreInitializer$Companion.createSystemInformation(CoreInitializer.kt:51)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.mapbox.common.CoreInitializer.createSystemInformation(Unknown Source:2)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.mapbox.maps.OfflineRegionManager.initialize(Native Method)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.mapbox.maps.OfflineRegionManager.<init>(OfflineRegionManager.java:25)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.mapbox.maps.testapp.examples.LegacyOfflineActivity.onCreate(LegacyOfflineActivity.kt:59)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.Activity.performCreate(Activity.java:8057)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.Activity.performCreate(Activity.java:8037)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1341)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3688)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3864)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2253)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.os.Handler.dispatchMessage(Handler.java:106)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.os.Looper.loopOnce(Looper.java:201)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.os.Looper.loop(Looper.java:288)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ActivityThread.main(ActivityThread.java:7870)
10-03 13:21:21.092 24026 24026 D StrictMode:    at java.lang.reflect.Method.invoke(Native Method)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
10-03 13:21:21.092 24026 24026 D StrictMode: StrictMode policy violation; ~duration=9 ms: android.os.strictmode.DiskReadViolation
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1659)
10-03 13:21:21.092 24026 24026 D StrictMode:    at libcore.io.BlockGuardOs.access(BlockGuardOs.java:74)
10-03 13:21:21.092 24026 24026 D StrictMode:    at libcore.io.ForwardingOs.access(ForwardingOs.java:128)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ActivityThread$AndroidOs.access(ActivityThread.java:7747)
10-03 13:21:21.092 24026 24026 D StrictMode:    at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:281)
10-03 13:21:21.092 24026 24026 D StrictMode:    at java.io.File.exists(File.java:813)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ContextImpl.ensurePrivateDirExists(ContextImpl.java:751)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ContextImpl.ensurePrivateCacheDirExists(ContextImpl.java:747)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ContextImpl.getCacheDir(ContextImpl.java:858)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.content.ContextWrapper.getCacheDir(ContextWrapper.java:301)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.mapbox.common.CoreInitializer$Companion.createSystemInformation(CoreInitializer.kt:54)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.mapbox.common.CoreInitializer.createSystemInformation(Unknown Source:2)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.mapbox.maps.OfflineRegionManager.initialize(Native Method)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.mapbox.maps.OfflineRegionManager.<init>(OfflineRegionManager.java:25)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.mapbox.maps.testapp.examples.LegacyOfflineActivity.onCreate(LegacyOfflineActivity.kt:59)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.Activity.performCreate(Activity.java:8057)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.Activity.performCreate(Activity.java:8037)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1341)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3688)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3864)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2253)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.os.Handler.dispatchMessage(Handler.java:106)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.os.Looper.loopOnce(Looper.java:201)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.os.Looper.loop(Looper.java:288)
10-03 13:21:21.092 24026 24026 D StrictMode:    at android.app.ActivityThread.main(ActivityThread.java:7870)
10-03 13:21:21.092 24026 24026 D StrictMode:    at java.lang.reflect.Method.invoke(Native Method)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
10-03 13:21:21.092 24026 24026 D StrictMode:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
10-03 13:21:21.126  1738  1843 I ActivityTaskManager: Displayed com.mapbox.maps.testapp/.examples.LegacyOfflineActivity: +95ms
10-03 13:21:21.133 14249 14249 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3274 
10-03 13:21:21.133 14249 14249 I GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2166 repeatCheckTimes = 0, unlocked = true
10-03 13:21:21.133 14249 14249 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1957 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=com.mapbox.maps.testapp fieldId=-1 fieldName=null extras=null}, false)
10-03 13:21:21.133 14249 14249 I GoogleInputMethodService: GoogleInputMethodService.shouldHideHeaderOnInitialState():4078 ShouldHideHeaderOnInitialState = false
10-03 13:21:21.134 14249 14249 I GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2166 repeatCheckTimes = 2, unlocked = true
10-03 13:21:21.134  1738  2257 D ConnectivityService: NetReassign [no changes]
10-03 13:21:21.330  1089  1223 D VSC     : @ 123361.798: [WO] Proposed rotation: 4, flat angle threshold: 65
10-03 13:21:21.331  1089  1223 D VSC     : @ 123361.798: [WO] orientation angle 346, orientation 4
10-03 13:21:21.331  1089  1223 D VSC     : @ 123361.798: [WO] Gyro angle integrated: 6.518840
10-03 13:21:21.331  1089  1223 D VSC     : @ 123361.798: [WO] Gyro angle integrated: 6.518840
10-03 13:21:21.835  1738  2257 D ConnectivityService: NetReassign [no changes]
10-03 13:21:21.926  1426 19537 D LOWI-8.6.0.75: [LOWI-Scan] wait_event:Wait done with Cmd 103
10-03 13:21:21.926  1326  1326 I wificond: Regulatory domain changed to country: US on wiphy_index: 0
10-03 13:21:21.926  1426 19537 D LOWI-8.6.0.75: [LOWI-Scan] do_listen_events: Rcvd valid Netlink Cmd 0 Err 0
10-03 13:21:21.926  1738  3034 D WifiNl80211Manager: OnRegDomainChanged US
10-03 13:21:21.926  1738  3034 D WifiNative: onCountryCodeChanged: US
10-03 13:21:21.926  1363  1363 I cnss-daemon: nl80211 response handler invoked
10-03 13:21:21.926  1363  1363 I cnss-daemon: nl80211_response_handler: cmd 103, vendorID 4980, subcmd 10  received
10-03 13:21:21.927  1098  3045 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xa
10-03 13:21:21.929  3087  3087 I wpa_supplicant: wlan0: CTRL-EVENT-AVOID-FREQ ranges=5785-5825
10-03 13:21:21.930  3087  3087 I wpa_supplicant: wlan0: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=COUNTRY alpha2=US
10-03 13:21:21.932  1326  1326 I wificond: 2.4Ghz frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462
10-03 13:21:21.932  1326  1326 I wificond: 5Ghz non-DFS frequencies: 5180 5200 5220 5240 5745 5765 5785 5805 5825
10-03 13:21:21.932  1326  1326 I wificond: 5Ghz DFS frequencies: 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5720
10-03 13:21:21.932  1326  1326 I wificond: 6Ghz frequencies:
10-03 13:21:21.932  1326  1326 I wificond: 60Ghz frequencies:
10-03 13:21:23.149  1089  1223 D CHRE    : @ 123363.617: [ActivityPlatform] type 4, confidence 61
10-03 13:21:23.331  1089  1223 D VSC     : @ 123363.798: [WO] Proposed rotation: 0, flat angle threshold: 65
10-03 13:21:23.331  1089  1223 D VSC     : @ 123363.798: [WO] orientation angle 0, orientation 0
10-03 13:21:23.331  1089  1223 D VSC     : @ 123363.798: [WO] Gyro angle integrated: 0.995805
10-03 13:21:23.331  1089  1223 D VSC     : @ 123363.798: [WO] Gyro angle integrated: 0.995805
10-03 13:21:23.597 24026 24044 D LeakCanary: Setting up flushing for Thread[ConnectivityThread,5,main]
10-03 13:21:23.597 24026 24044 D LeakCanary: Setting up flushing for Thread[queued-work-looper,5,main]
10-03 13:21:24.866  1738  2257 D ConnectivityService: NetReassign [no changes]
10-03 13:21:25.184 24026 24026 W ox.maps.testap: Accessing hidden field Landroid/graphics/Typeface;->sSystemFontMap:Ljava/util/Map; (unsupported, reflection, allowed)
10-03 13:21:25.184 24026 24026 I Mbgl-FontUtils: Couldn't map font family for local ideograph, using sans-serif instead
10-03 13:21:25.208 24026 24026 W Mapbox  : [TelemetryUtils]: java.lang.SecurityException: getDataNetworkTypeForSubscriber: uid 10025 does not have android.permission.READ_PHONE_STATE.
10-03 13:21:25.214 24026 24081 W Mapbox  : [config_service]: No configuration options found stored on the disk.
10-03 13:21:25.214 24026 24080 W Mapbox  : [config_service]: No configuration options found stored on the disk.
10-03 13:21:25.221 24026 24080 W Mapbox  : [config_service]: Update request 12 in progress
10-03 13:21:25.266 24026 24106 I Mapbox  : [maps-android\Mbgl-EGLConfigChooser]: In emulator: false
10-03 13:21:25.266 24026 24106 I Mapbox  : [maps-android\Mbgl-EGLConfigChooser]: In emulator: false
10-03 13:21:25.268 24026 24106 I Mapbox  : [maps-android\Mbgl-EglCore]: EGLContext created, client version 3
10-03 13:21:25.268 24026 24106 I Mapbox  : [maps-core]: Using OpenGL render backend
10-03 13:21:25.278 24026 24121 I Mapbox  : [maps-core]: {MapboxRenderThr}[General]: GPU Identifier: Adreno (TM) 640
10-03 13:21:25.278 24026 24026 I Mapbox  : [LifecycleUtils]: Task: TaskInfo{userId=0 taskId=8 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.mapbox.maps.testapp/.ExampleOverviewActivity } baseActivity=ComponentInfo{com.mapbox.maps.testapp/com.mapbox.maps.testapp.ExampleOverviewActivity} topActivity=ComponentInfo{com.mapbox.maps.testapp/com.mapbox.maps.testapp.examples.LegacyOfflineActivity} origActivity=null realActivity=ComponentInfo{com.mapbox.maps.testapp/com.mapbox.maps.testapp.ExampleOverviewActivity} numActivities=2 lastActiveTime=123359190 supportsSplitScreenMultiWindow=true supportsMultiWindow=true resizeMode=1 isResizeable=true token=WCT{android.window.IWindowContainerToken$Stub$Proxy@588e7eb} topActivityType=1 pictureInPictureParams=PictureInPictureParams( aspectRatio=null sourceRectHint=null hasSetActions=false isAutoPipEnabled=false isSeamlessResizeEnabled=true) displayCutoutSafeInsets=null topActivityInfo=ActivityInfo{cb68948 com.mapbox.maps.testapp.examples.LegacyOfflineActivity} launchCookies=[android.os.BinderProxy@d3c93e1] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=true isVisible=true isSleeping=false topActivityInSizeCompat=false locusId=null displayAreaFeatureId=1}
10-03 13:21:25.293 24026 24026 I Mapbox  : [LifecycleUtils]: Task: TaskInfo{userId=0 taskId=8 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.mapbox.maps.testapp/.ExampleOverviewActivity } baseActivity=ComponentInfo{com.mapbox.maps.testapp/com.mapbox.maps.testapp.ExampleOverviewActivity} topActivity=ComponentInfo{com.mapbox.maps.testapp/com.mapbox.maps.testapp.examples.LegacyOfflineActivity} origActivity=null realActivity=ComponentInfo{com.mapbox.maps.testapp/com.mapbox.maps.testapp.ExampleOverviewActivity} numActivities=2 lastActiveTime=123359190 supportsSplitScreenMultiWindow=true supportsMultiWindow=true resizeMode=1 isResizeable=true token=WCT{android.window.IWindowContainerToken$Stub$Proxy@1e2e66} topActivityType=1 pictureInPictureParams=PictureInPictureParams( aspectRatio=null sourceRectHint=null hasSetActions=false isAutoPipEnabled=false isSeamlessResizeEnabled=true) displayCutoutSafeInsets=null topActivityInfo=ActivityInfo{7e105a7 com.mapbox.maps.testapp.examples.LegacyOfflineActivity} launchCookies=[android.os.BinderProxy@d3c93e1] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=true isVisible=true isSleeping=false topActivityInSizeCompat=false locusId=null displayAreaFeatureId=1}
10-03 13:21:25.330  1089  1223 D VSC     : @ 123365.798: [WO] Proposed rotation: 4, flat angle threshold: 65
10-03 13:21:25.330  1089  1223 D VSC     : @ 123365.798: [WO] orientation angle 351, orientation 4
10-03 13:21:25.330  1089  1223 D VSC     : @ 123365.798: [WO] Gyro angle integrated: 3.310940
10-03 13:21:25.330  1089  1223 D VSC     : @ 123365.798: [WO] Gyro angle integrated: 3.310940
10-03 13:21:26.349  1089  1223 D CHRE    : @ 123366.817: [ActivityPlatform] type 4, confidence 46
10-03 13:21:26.600 24026 24044 D LeakCanary: Setting up flushing for Thread[MapboxRenderThread,5,main]
10-03 13:21:26.600 24026 24044 D LeakCanary: Setting up flushing for Thread[WifiManagerThread,5,main]
10-03 13:21:26.600 24026 24044 D LeakCanary: Setting up flushing for Thread[GoogleApiHandler,10,main]
10-03 13:21:27.330  1089  1223 D VSC     : @ 123367.798: [WO] Proposed rotation: 4, flat angle threshold: 65
10-03 13:21:27.330  1089  1223 D VSC     : @ 123367.798: [WO] orientation angle 359, orientation 4
10-03 13:21:27.330  1089  1223 D VSC     : @ 123367.798: [WO] Gyro angle integrated: 1.859263
10-03 13:21:27.330  1089  1223 D VSC     : @ 123367.798: [WO] Gyro angle integrated: 1.859263
10-03 13:21:27.650  1738  1759 D ConnectivityService: requestNetwork for uid/pid:10328/23562 activeRequest: null callbackRequest: 11069 [NetworkRequest [ REQUEST id=11070, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10328 RequestorUid: 10328 RequestorPkg: com.Slack UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647
10-03 13:21:27.651  1738  2257 D ConnectivityService: NetReassign [11070 : null → 102]
10-03 13:21:27.656  1738  2243 D WifiNetworkFactory: got request NetworkRequest [ REQUEST id=11070, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10328 RequestorUid: 10328 RequestorPkg: com.Slack UnderlyingNetworks: Null] ]
10-03 13:21:27.656  1738  2243 D UntrustedWifiNetworkFactory: got request NetworkRequest [ REQUEST id=11070, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10328 RequestorUid: 10328 RequestorPkg: com.Slack UnderlyingNetworks: Null] ]
10-03 13:21:27.656  1738  2243 D OemPaidWifiNetworkFactory: got request NetworkRequest [ REQUEST id=11070, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10328 RequestorUid: 10328 RequestorPkg: com.Slack UnderlyingNetworks: Null] ]
10-03 13:21:27.656  1738  2243 D MultiInternetWifiNetworkFactory: got request NetworkRequest [ REQUEST id=11070, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10328 RequestorUid: 10328 RequestorPkg: com.Slack UnderlyingNetworks: Null] ]
10-03 13:21:27.886  1738  2257 D ConnectivityService: NetReassign [no changes]
10-03 13:21:29.331  1089  1223 D VSC     : @ 123369.798: [WO] Proposed rotation: 0, flat angle threshold: 65
10-03 13:21:29.331  1089  1223 D VSC     : @ 123369.798: [WO] orientation angle 0, orientation 0
10-03 13:21:29.331  1089  1223 D VSC     : @ 123369.798: [WO] Gyro angle integrated: 0.001235
10-03 13:21:29.331  1089  1223 D VSC     : @ 123369.798: [WO] Gyro angle integrated: 0.001235
10-03 13:21:29.550  1089  1223 D CHRE    : @ 123370.018: [ActivityPlatform] type 4, confidence 59
10-03 13:21:30.107  1738  1738 D CompatibilityChangeReporter: Compat change id reported: 168419799; UID 10173; state: DISABLED
10-03 13:21:30.120 23564 24138 W Turbo.PowerBrainMaintenanceWindowImpl: PB was not active.
10-03 13:21:30.175  1089  1223 D VSC     : @ 123370.637: [Significant Motion] Stop motion_detect
10-03 13:21:30.176  1089  1223 W SEE     : @ 123370.639: instance avail d_s = 0x0 sensor = 0x100
10-03 13:21:30.176  1089  1223 W SEE     : @ 123370.639: removing req from Q sensor=49082 req=0xb201c0d8 msg=514
10-03 13:21:30.176  1089  1223 W SEE     : @ 123370.639: skip removing req from Q sensor=49082 req=0xb2019de8 msg=514
10-03 13:21:30.176  1089  1223 D VSC     : @ 123370.639: [Significant Motion] Request accel, interval 20.0 ms, latency 3200.0 ms
10-03 13:21:30.176  1089  1223 W SEE     : @ 123370.640: instance avail d_s = 0x0 sensor = 0x200
10-03 13:21:30.176  1089  1223 W SEE     : @ 123370.640: adding req to Q sensor=512 req=0xb201f008 msg=514
10-03 13:21:30.182  1089  1223 W SEE     : @ 123370.648: adding req to Q sensor=1 req=0xb201f6f8 msg=513
10-03 13:21:30.182  1089  1223 W SEE     : @ 123370.649: instance avail d_s = 0x200 sensor = 0x100
10-03 13:21:30.185  1089  1223 W SEE     : @ 123370.652: adding req to Q sensor=2 req=0xb201f058 msg=513
10-03 13:21:30.260  1089  1223 D ASH     : @ 123370.727: SensorType 195 resampler quality 1
10-03 13:21:30.260  1089  1223 D ASH     : @ 123370.727: SensorType 195 resampler quality 1
10-03 13:21:30.914  1738  2257 D ConnectivityService: NetReassign [no changes]
10-03 13:21:31.301  1089  1223 D VSC     : @ 123371.768: [WO] Proposed rotation: 0, flat angle threshold: 65
10-03 13:21:31.301  1089  1223 D VSC     : @ 123371.768: [WO] orientation angle 11, orientation 0
10-03 13:21:31.301  1089  1223 D VSC     : @ 123371.768: [WO] Gyro angle integrated: 4.440715
10-03 13:21:31.301  1089  1223 D VSC     : @ 123371.768: [WO] Gyro angle integrated: 4.440715
10-03 13:21:32.134  2463  2463 D PowerNotificationWarningsGoogleImpl: onReceive: android.intent.action.BATTERY_CHANGED
10-03 13:21:32.134  2692  2692 D Oslo.StatusSensor: Received intent android.intent.action.BATTERY_CHANGED
10-03 13:21:32.136  2463  2463 D BatteryInfoBroadcast: onReceive: android.intent.action.BATTERY_CHANGED isPowerSaveMode: false
10-03 13:21:32.136  2463  2463 D BatteryDefenderNotification: isPlugged: true | isOverheated: false | defenderEnabled: false | isCharged: true
10-03 13:21:32.137  2463  3139 D PowerUI : can't show warning due to - plugged: true status unknown: false
10-03 13:21:32.228  1738  1948 D DisplayWhiteBalanceController: Display cct: 6470.0894 Latest ambient cct: 6375.887 Latest ambient lux: 35.278072 Latest low light bias: 0.6319518 Latest high light bias: 0.0
10-03 13:21:32.228  1738  1948 D ColorDisplayService: setDisplayWhiteBalanceTemperatureMatrix: cct = 6470 matrix = 
10-03 13:21:32.228  1738  1948 D ColorDisplayService:        0.978361-0.000521-0.000077 0.000000 0.021294 0.947415-0.000142 0.000000 0.000345-0.000299 0.960570 0.000000 0.000000 0.000000 0.000000 1.000000
10-03 13:21:32.791  1089  1223 D CHRE    : @ 123373.259: [ActivityPlatform] type 4, confidence 44
10-03 13:21:33.381  1089  1223 D VSC     : @ 123373.848: [WO] Proposed rotation: 0, flat angle threshold: 65
10-03 13:21:33.381  1089  1223 D VSC     : @ 123373.848: [WO] orientation angle 11, orientation 0
10-03 13:21:33.381  1089  1223 D VSC     : @ 123373.848: [WO] Gyro angle integrated: 2.893243
10-03 13:21:33.381  1089  1223 D VSC     : @ 123373.848: [WO] Gyro angle integrated: 2.893243
10-03 13:21:33.931  1738  2257 D ConnectivityService: NetReassign [no changes]
10-03 13:21:35.241  1738  1846 D ColorDisplayService: DisplayWhiteBalanceTintController Animation cancelled: false to matrix: 
10-03 13:21:35.241  1738  1846 D ColorDisplayService:        0.978361-0.000521-0.000077 0.000000 0.021294 0.947415-0.000142 0.000000 0.000345-0.000299 0.960570 0.000000 0.000000 0.000000 0.000000 1.000000 min matrix coefficients: 
10-03 13:21:35.241  1738  1846 D ColorDisplayService:        0.977336-0.000546-0.000107 0.000000 0.021294 0.944851-0.000142 0.000000 0.000310-0.000299 0.952277 0.000000 0.000000 0.000000 0.000000 1.000000 max matrix coefficients: 
10-03 13:21:35.241  1738  1846 D ColorDisplayService:        0.978361 0.000000 0.000000 0.000000 0.022353 0.947415 0.000000 0.000000 0.000345 0.000000 0.960570 0.000000 0.000000 0.000000 0.000000 1.000000
10-03 13:21:35.374  1089  1223 D VSC     : @ 123375.842: [WO] Proposed rotation: 0, flat angle threshold: 65
10-03 13:21:35.374  1089  1223 D VSC     : @ 123375.842: [WO] orientation angle 11, orientation 0
10-03 13:21:35.374  1089  1223 D VSC     : @ 123375.842: [WO] Gyro angle integrated: 5.251152
10-03 13:21:35.374  1089  1223 D VSC     : @ 123375.842: [WO] Gyro angle integrated: 5.251152
10-03 13:21:35.711  1738  1948 D DisplayWhiteBalanceController: Display cct: 6516.522 Latest ambient cct: 6456.3667 Latest ambient lux: 38.36237 Latest low light bias: 0.70905924 Latest high light bias: 0.0
10-03 13:21:35.712  1738  1948 D ColorDisplayService: setDisplayWhiteBalanceTemperatureMatrix: cct = 6516 matrix = 
10-03 13:21:35.712  1738  1948 D ColorDisplayService:        0.979369-0.000496-0.000046 0.000000 0.020251 0.949939-0.000160 0.000000 0.000380-0.000430 0.968805 0.000000 0.000000 0.000000 0.000000 1.000000
10-03 13:21:36.000  1089  1223 I CHRE    : @ 123376.466: [AR] inconsistent: 41.176471
10-03 13:21:36.000  1089  1223 D CHRE    : @ 123376.467: [ActivityPlatform] type 6, confidence 41
10-03 13:21:36.291   708   732 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:36.295  2463  3164 I OpenGLRenderer: Davey! duration=476530ms; Flags=1, FrameTimelineVsyncId=683229, IntendedVsync=122897793160079, Vsync=122897793160079, InputEventId=0, HandleInputStart=122897793451592, AnimationStart=122897793452998, PerformTraversalsStart=122897793543832, DrawStart=122897803987999, FrameDeadline=122897824771190, FrameInterval=122897793446227, FrameStartTime=11111111, SyncQueued=122897804110031, SyncStart=122897804221281, IssueDrawCommandsStart=122897804309353, SwapBuffers=122897805473729, FrameCompleted=123374323351563, DequeueBufferDuration=257500, QueueBufferDuration=970209, GpuCompleted=123374323351563, SwapBuffersCompleted=122897807149562, DisplayPresentTime=-3205275537225410490, 
10-03 13:21:36.316   708  3086 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:36.318   708  3086 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:36.942  1738  2257 D ConnectivityService: NetReassign [no changes]
10-03 13:21:37.086  1094  1131 D rlsservice: MonitorDisplayStatus client num 1, display status 1, sensor status 1
10-03 13:21:37.368  1089  1223 D VSC     : @ 123377.836: [WO] Proposed rotation: 0, flat angle threshold: 65
10-03 13:21:37.368  1089  1223 D VSC     : @ 123377.836: [WO] orientation angle 13, orientation 0
10-03 13:21:37.368  1089  1223 D VSC     : @ 123377.836: [WO] Gyro angle integrated: 6.177680
10-03 13:21:37.368  1089  1223 D VSC     : @ 123377.836: [WO] Gyro angle integrated: 6.177680
10-03 13:21:38.725  1738  1846 D ColorDisplayService: DisplayWhiteBalanceTintController Animation cancelled: false to matrix: 
10-03 13:21:38.725  1738  1846 D ColorDisplayService:        0.979369-0.000496-0.000046 0.000000 0.020251 0.949939-0.000160 0.000000 0.000380-0.000430 0.968805 0.000000 0.000000 0.000000 0.000000 1.000000 min matrix coefficients: 
10-03 13:21:38.725  1738  1846 D ColorDisplayService:        0.978361-0.000521-0.000077 0.000000 0.020251 0.947415-0.000160 0.000000 0.000345-0.000430 0.960570 0.000000 0.000000 0.000000 0.000000 1.000000 max matrix coefficients: 
10-03 13:21:38.725  1738  1846 D ColorDisplayService:        0.979369 0.000000 0.000000 0.000000 0.021294 0.949939 0.000000 0.000000 0.000380 0.000000 0.968805 0.000000 0.000000 0.000000 0.000000 1.000000
10-03 13:21:39.207  1089  1223 D CHRE    : @ 123379.675: [ActivityPlatform] type 6, confidence 41
10-03 13:21:39.362  1089  1223 D VSC     : @ 123379.829: [WO] Proposed rotation: 0, flat angle threshold: 65
10-03 13:21:39.362  1089  1223 D VSC     : @ 123379.829: [WO] orientation angle 11, orientation 0
10-03 13:21:39.362  1089  1223 D VSC     : @ 123379.829: [WO] Gyro angle integrated: 2.490704
10-03 13:21:39.362  1089  1223 D VSC     : @ 123379.829: [WO] Gyro angle integrated: 2.490704
10-03 13:21:39.966  1738  2257 D ConnectivityService: NetReassign [no changes]
10-03 13:21:40.215  1738  1948 D DisplayWhiteBalanceController: Display cct: 6562.85 Latest ambient cct: 6526.0723 Latest ambient lux: 41.223633 Latest low light bias: 0.78059083 Latest high light bias: 0.0
10-03 13:21:40.216  1738  1948 D ColorDisplayService: setDisplayWhiteBalanceTemperatureMatrix: cct = 6562 matrix = 
10-03 13:21:40.216  1738  1948 D ColorDisplayService:        0.980362-0.000471-0.000016 0.000000 0.019222 0.952427-0.000178 0.000000 0.000415-0.000562 0.976983 0.000000 0.000000 0.000000 0.000000 1.000000
10-03 13:21:41.213  1738  5853 D ConnectivityService: requestNetwork for uid/pid:10328/23562 activeRequest: null callbackRequest: 11071 [NetworkRequest [ REQUEST id=11072, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10328 RequestorUid: 10328 RequestorPkg: com.Slack UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647
10-03 13:21:41.214  1738  2257 D ConnectivityService: NetReassign [11072 : null → 102]
10-03 13:21:41.217  1738  2243 D WifiNetworkFactory: got request NetworkRequest [ REQUEST id=11072, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10328 RequestorUid: 10328 RequestorPkg: com.Slack UnderlyingNetworks: Null] ]
10-03 13:21:41.218  1738  2243 D UntrustedWifiNetworkFactory: got request NetworkRequest [ REQUEST id=11072, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10328 RequestorUid: 10328 RequestorPkg: com.Slack UnderlyingNetworks: Null] ]
10-03 13:21:41.219  1738  2243 D OemPaidWifiNetworkFactory: got request NetworkRequest [ REQUEST id=11072, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10328 RequestorUid: 10328 RequestorPkg: com.Slack UnderlyingNetworks: Null] ]
10-03 13:21:41.219  1738  2243 D MultiInternetWifiNetworkFactory: got request NetworkRequest [ REQUEST id=11072, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10328 RequestorUid: 10328 RequestorPkg: com.Slack UnderlyingNetworks: Null] ]
10-03 13:21:41.441  1089  1223 D VSC     : @ 123381.909: [WO] Proposed rotation: 0, flat angle threshold: 65
10-03 13:21:41.441  1089  1223 D VSC     : @ 123381.909: [WO] orientation angle 16, orientation 0
10-03 13:21:41.441  1089  1223 D VSC     : @ 123381.909: [WO] Gyro angle integrated: 3.871859
10-03 13:21:41.441  1089  1223 D VSC     : @ 123381.909: [WO] Gyro angle integrated: 3.871859
10-03 13:21:42.411  1089  1223 D CHRE    : @ 123382.879: [ActivityPlatform] type 6, confidence 41
10-03 13:21:42.985  1738  2257 D ConnectivityService: NetReassign [no changes]
10-03 13:21:43.230  1738  1846 D ColorDisplayService: DisplayWhiteBalanceTintController Animation cancelled: false to matrix: 
10-03 13:21:43.230  1738  1846 D ColorDisplayService:        0.980362-0.000471-0.000016 0.000000 0.019222 0.952427-0.000178 0.000000 0.000415-0.000562 0.976983 0.000000 0.000000 0.000000 0.000000 1.000000 min matrix coefficients: 
10-03 13:21:43.230  1738  1846 D ColorDisplayService:        0.979369-0.000496-0.000046 0.000000 0.019222 0.949939-0.000178 0.000000 0.000380-0.000562 0.968805 0.000000 0.000000 0.000000 0.000000 1.000000 max matrix coefficients: 
10-03 13:21:43.230  1738  1846 D ColorDisplayService:        0.980362 0.000000 0.000000 0.000000 0.020251 0.952427 0.000000 0.000000 0.000415 0.000000 0.976983 0.000000 0.000000 0.000000 0.000000 1.000000
10-03 13:21:43.434  1089  1223 D VSC     : @ 123383.901: [WO] Proposed rotation: 0, flat angle threshold: 65
10-03 13:21:43.434  1089  1223 D VSC     : @ 123383.902: [WO] orientation angle 15, orientation 0
10-03 13:21:43.434  1089  1223 D VSC     : @ 123383.902: [WO] Gyro angle integrated: 11.431558
10-03 13:21:43.434  1089  1223 D VSC     : @ 123383.902: [WO] Gyro angle integrated: 11.431558
10-03 13:21:45.428  1089  1223 D VSC     : @ 123385.895: [WO] Proposed rotation: 0, flat angle threshold: 65
10-03 13:21:45.428  1089  1223 D VSC     : @ 123385.895: [WO] orientation angle 16, orientation 0
10-03 13:21:45.428  1089  1223 D VSC     : @ 123385.895: [WO] Gyro angle integrated: 7.617096
10-03 13:21:45.428  1089  1223 D VSC     : @ 123385.895: [WO] Gyro angle integrated: 7.617096
10-03 13:21:45.618  1089  1223 D CHRE    : @ 123386.086: [ActivityPlatform] type 6, confidence 41
10-03 13:21:46.005  1738  2257 D ConnectivityService: NetReassign [no changes]
10-03 13:21:46.888  1738  1858 E DiscreteRegistry: Deleting file 1664731260975tl
10-03 13:21:47.271 13228 13276 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=1060fd8c-ccf4-468c-9613-c0b41ea95298, tags={ com.google.apps.tiktok.contrib.work.TikTokListenableWorker, TikTokWorker#com.google.android.apps.wellbeing.powerstate.impl.PowerStateManagerImpl } ]
10-03 13:21:47.286 13228 13276 I WM-WorkerWrapper: Worker result SUCCESS for Work [ id=c4d0aa8e-a3a6-48c4-896a-95151ee86eee, tags={ com.google.apps.tiktok.contrib.work.TikTokListenableWorker, TikTokWorker#com.google.android.apps.wellbeing.fences.FenceRecovery } ]
10-03 13:21:47.420  1089  1223 D VSC     : @ 123387.888: [WO] Proposed rotation: 0, flat angle threshold: 65
10-03 13:21:47.420  1089  1223 D VSC     : @ 123387.888: [WO] orientation angle 15, orientation 0
10-03 13:21:47.420  1089  1223 D VSC     : @ 123387.888: [WO] Gyro angle integrated: 13.756047
10-03 13:21:47.420  1089  1223 D VSC     : @ 123387.888: [WO] Gyro angle integrated: 13.756047
10-03 13:21:47.897  1738  1948 D DisplayWhiteBalanceController: Display cct: 6609.0244 Latest ambient cct: 6573.581 Latest ambient lux: 44.517174 Latest low light bias: 0.86292934 Latest high light bias: 0.0
10-03 13:21:47.897  1738  1948 D ColorDisplayService: setDisplayWhiteBalanceTemperatureMatrix: cct = 6609 matrix = 
10-03 13:21:47.897  1738  1948 D ColorDisplayService:        0.981363-0.000447 0.000015 0.000000 0.018187 0.954932-0.000197 0.000000 0.000451-0.000695 0.985281 0.000000 0.000000 0.000000 0.000000 1.000000
10-03 13:21:48.488  2587  2632 D NetlinkTracker/wlan0: addressUpdated: fde1:36eb:79f7:41b9:5c44:8ff:fe5d:50e5/64 on wlan0 flags 256 scope 0
10-03 13:21:48.488  2587  2632 D NetlinkTracker/wlan0: addressUpdated: fde1:36eb:79f7:41b9:b1a0:2f4a:759d:d0b6/64 on wlan0 flags 1 scope 0
10-03 13:21:48.825  1089  1223 I CHRE    : @ 123389.292: [AR] walking: 77.647056
10-03 13:21:48.825  1089  1223 I CHRE    : @ 123389.292: [AR] transition: still exit
10-03 13:21:48.825  1089  1223 I CHRE    : @ 123389.292: [AR] transition: walking enter
10-03 13:21:48.825  1089  1223 I CHRE    : @ 123389.292: [AR] send to host, reason=2, sampleSize=111, transitionSize=2, lastAccelTime = 123386850, lastAudioTime = 0 
10-03 13:21:48.825  1089  1223 I CHRE    : @ 123389.293: [NanoMinion] sent MSG Type 0x72, Version 0, 1716 bytes, MessageId 18
10-03 13:21:48.825  1089  1223 D CHRE    : @ 123389.293: [ActivityPlatform] type 2, confidence 77
10-03 13:21:48.837  1071  1071 V ContextHubHal: queryApps
10-03 13:21:48.838  1089  1223 D CHRE    : @ 123389.306: Nanoapp list request from client ID 1
10-03 13:21:48.840  1071  1071 V ContextHubHal: queryApps
10-03 13:21:48.841  1089  1223 D CHRE    : @ 123389.309: Nanoapp list request from client ID 1
10-03 13:21:48.847  1071  1071 V ContextHubHal: queryApps
10-03 13:21:48.847  1089  1223 D CHRE    : @ 123389.315: Nanoapp list request from client ID 1
10-03 13:21:48.849  1071  1071 V ContextHubHal: queryApps
10-03 13:21:48.850  1089  1223 D CHRE    : @ 123389.318: Nanoapp list request from client ID 1
10-03 13:21:48.853  1071  1071 V ContextHubHal: queryApps
10-03 13:21:48.854  1089  1223 D CHRE    : @ 123389.322: Nanoapp list request from client ID 1
10-03 13:21:48.862  1738  2878 W AppOps  : Noting op not finished: uid 10190 pkg com.google.android.googlequicksearchbox code 79 startTime of in progress event=1664807261916
10-03 13:21:48.864  1738  2878 W AppOps  : Noting op not finished: uid 10146 pkg com.google.android.apps.scone code 79 startTime of in progress event=1664807261924
10-03 13:21:48.905  1738  2243 D WifiConnectivityManager: PNO Scan Interval changed to 20000 ms.
10-03 13:21:48.908  2767  2767 D GRIL-S  : [0105]> UPDATE_SCONE_INFO Mobility:2 Battery:2 Thermal:0 Screen:1
10-03 13:21:48.909  2767  3590 D GRIL-S  : [0105]< UPDATE_SCONE_INFO 
10-03 13:21:49.021  1738  2257 D ConnectivityService: NetReassign [no changes]
10-03 13:21:49.414  1089  1223 D VSC     : @ 123389.882: [WO] Proposed rotation: 0, flat angle threshold: 65
10-03 13:21:49.414  1089  1223 D VSC     : @ 123389.882: [WO] orientation angle 1, orientation 0
10-03 13:21:49.414  1089  1223 D VSC     : @ 123389.882: [WO] Gyro angle integrated: 63.490726
10-03 13:21:49.414  1089  1223 D VSC     : @ 123389.882: [WO] Gyro angle integrated: 63.490726
10-03 13:21:49.414  1089  1223 D VSC     : @ 123389.882: [WO] Rejected by swing_time. Last detected 0 ms ago.
10-03 13:21:49.951  1738  1948 D DisplayWhiteBalanceController: Display cct: 6546.29 Latest ambient cct: 6472.498 Latest ambient lux: 41.51256 Latest low light bias: 0.7878141 Latest high light bias: 0.0
10-03 13:21:49.952  1738  1948 D ColorDisplayService: setDisplayWhiteBalanceTemperatureMatrix: cct = 6546 matrix = 
10-03 13:21:49.952  1738  1948 D ColorDisplayService:        0.980019-0.000480-0.000026 0.000000 0.019578 0.951566-0.000172 0.000000 0.000403-0.000516 0.974145 0.000000 0.000000 0.000000 0.000000 1.000000
10-03 13:21:49.953  1738  1846 D ColorDisplayService: DisplayWhiteBalanceTintController Animation cancelled: true to matrix: 
10-03 13:21:49.953  1738  1846 D ColorDisplayService:        0.980019-0.000480-0.000026 0.000000 0.019578 0.951566-0.000172 0.000000 0.000403-0.000516 0.974145 0.000000 0.000000 0.000000 0.000000 1.000000 min matrix coefficients: 
10-03 13:21:49.953  1738  1846 D ColorDisplayService:        0.980362-0.000471-0.000016 0.000000 0.018261 0.952427-0.000196 0.000000 0.000415-0.000685 0.976983 0.000000 0.000000 0.000000 0.000000 1.000000 max matrix coefficients: 
10-03 13:21:49.953  1738  1846 D ColorDisplayService:        0.981290 0.000000 0.000012 0.000000 0.019222 0.954752 0.000000 0.000000 0.000448 0.000000 0.984683 0.000000 0.000000 0.000000 0.000000 1.000000
10-03 13:21:51.494  1089  1223 D VSC     : @ 123391.962: [WO] Proposed rotation: 0, flat angle threshold: 65
10-03 13:21:51.494  1089  1223 D VSC     : @ 123391.962: [WO] orientation angle 14, orientation 0
10-03 13:21:51.494  1089  1223 D VSC     : @ 123391.962: [WO] Gyro angle integrated: 94.585266
10-03 13:21:51.494  1089  1223 D VSC     : @ 123391.962: [WO] Gyro angle integrated: 94.585266
10-03 13:21:52.011   708   732 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.020  1738  3034 I InputDispatcher: Monitor edge-swipe (server) is stealing touch from [186eedd com.mapbox.maps.testapp/com.mapbox.maps.testapp.examples.LegacyOfflineActivity (server), ]
10-03 13:21:52.026  2463 14420 I OpenGLRenderer: Davey! duration=15748ms; Flags=1, FrameTimelineVsyncId=717312, IntendedVsync=123374309548178, Vsync=123374309548178, InputEventId=0, HandleInputStart=123374309865208, AnimationStart=123374309866614, PerformTraversalsStart=123374309867551, DrawStart=123374321584480, FrameDeadline=123374341159289, FrameInterval=123374309859478, FrameStartTime=11111111, SyncQueued=123374321739688, SyncStart=123374321915365, IssueDrawCommandsStart=123374322020678, SwapBuffers=123374322884740, FrameCompleted=123390058490162, DequeueBufferDuration=27812, QueueBufferDuration=703021, GpuCompleted=123390058490162, SwapBuffersCompleted=123374324156772, DisplayPresentTime=3744106295419698519, 
10-03 13:21:52.031  1089  1223 D CHRE    : @ 123392.499: [ActivityPlatform] type 2, confidence 79
10-03 13:21:52.044   708   732 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.044  1738  2257 D ConnectivityService: NetReassign [no changes]
10-03 13:21:52.055   708  2905 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.066   708   855 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.077   708  3086 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.088   708   732 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.100   708  2905 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.112   708  2905 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.134   708   732 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.136   708   732 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.144   708  2905 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.156   708  3086 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.167   708  2905 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.178   708  3086 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.189   708  2905 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.201   708   855 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.212   708   732 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.234   708   855 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.235   708   855 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.245   708  3086 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.257   708   855 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.268   708   855 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.301   708  2905 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.346   708  2905 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.358   708  3086 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.380   708  3086 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.400   708  3086 I BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
10-03 13:21:52.406 14249 14249 I GoogleInputMethodService: GoogleInputMethodService.onKeyDown():2513 Received KEYCODE_BACK. isAllViewsInvisible=true
10-03 13:21:52.468 14249 14249 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3274 
10-03 13:21:52.468 14249 14249 I GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2166 repeatCheckTimes = 0, unlocked = true
10-03 13:21:52.468 14249 14249 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1957 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName=com.mapbox.maps.testapp fieldId=-1 fieldName=null extras=null}, false)
10-03 13:21:52.469 14249 14249 I GoogleInputMethodService: GoogleInputMethodService.shouldHideHeaderOnInitialState():4078 ShouldHideHeaderOnInitialState = false
10-03 13:21:52.469 14249 14249 I GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2166 repeatCheckTimes = 2, unlocked = true
10-03 13:21:52.862 24026 24026 I Mapbox  : [maps-android\Mbgl-RenderThread]: RenderThread : surface destroyed
10-03 13:21:52.874 24026 24026 I Mapbox  : [maps-android\Mbgl-Renderer]: onDestroy
10-03 13:21:52.875 24026 24106 I Mapbox  : [maps-android\Mbgl-Renderer]: Destroy renderer
10-03 13:21:52.889 24026 24026 D LeakCanary: Watching instance of androidx.fragment.app.FragmentManagerViewModel (androidx.fragment.app.FragmentManagerViewModel received ViewModel#onCleared() callback) with key e4832cdd-0d6d-4b84-a893-cad7c11a5471
10-03 13:21:52.890 24026 24026 D LeakCanary: Watching instance of androidx.lifecycle.SavedStateHandlesVM (androidx.lifecycle.SavedStateHandlesVM received ViewModel#onCleared() callback) with key caf514ff-3e06-40c5-9aa8-d37124d4b0d6
10-03 13:21:52.890 24026 24026 D LeakCanary: Watching instance of leakcanary.internal.ViewModelClearedWatcher (leakcanary.internal.ViewModelClearedWatcher received ViewModel#onCleared() callback) with key 151a43e7-2b92-4aab-a545-41dc9280dda0
10-03 13:21:52.890 24026 24026 D LeakCanary: Watching instance of androidx.lifecycle.ReportFragment (androidx.lifecycle.ReportFragment received Fragment#onDestroy() callback) with key 07f5d34b-4c45-4fe6-807f-06d12ca18c2b
10-03 13:21:52.890 24026 24026 D LeakCanary: Watching instance of com.mapbox.maps.testapp.examples.LegacyOfflineActivity (com.mapbox.maps.testapp.examples.LegacyOfflineActivity received Activity#onDestroy() callback) with key 43035f4c-a193-469d-b9f6-f208bde63d6b
10-03 13:21:52.894  1738  8194 W InputManager-JNI: Input channel object '186eedd com.mapbox.maps.testapp/com.mapbox.maps.testapp.examples.LegacyOfflineActivity (client)' was disposed without first being removed with the input manager!
ZiZasaurus commented 2 years ago

@mysport12 when running the offline region manager example in the examples app I'm not experiencing any issues getting the createOfflineRegion method to fire. Also, it looks like you're using react native, is that the case?

mysport12 commented 2 years ago

We are yes

mysport12 commented 2 years ago

@ZiZasaurus Had some success this morning with both the example app and our React Native app.

The example app issue was just a configuration issue on our end.

The React Native issue was simply an issue with where the runOnUiThread method was being called. Needed to move it up around the createOfflineRegion call instead of in the callback.

UiThreadUtil.runOnUiThread(object: Runnable {
    override fun run() {
        manager!!.createOfflineRegion(definition, callback)
    }
})

Now we are getting a 401 status error when downloading which we need to figure out.

ZiZasaurus commented 2 years ago

Sounds good, glad you were able to get it working. I will respond in the other ticket and close this one out.