Android1500 / GpsSetter

Xposed module which will set location where you want without effect mock location.
321 stars 44 forks source link

gpssetter silently crashes when "set location" button is clicked #66

Open modularanne opened 1 year ago

modularanne commented 1 year ago

Stack trace posted following.

"DEADLINE_EXCEEDED: deadline exceeded after 4.912916000s" is the most noteworthy part of the log.

Tried 1.2.8, 1.2.10… 1.30-beta - all with same. Silent error.

FATAL EXCEPTION: main Process: com.android1500.gpssetter, PID: 2767 java.io.IOException: efjr: DEADLINE_EXCEEDED: deadline exceeded after 4.912916000s. [closed=[], open=[[buffered_nanos=4913157308, waiting_for_connection]]] at android.location.Geocoder$GeocodeListener.getResults(Geocoder.java:246) at android.location.Geocoder.getFromLocation(Geocoder.java:134) at com.android1500.gpssetter.utils.ext.Ext_LatLngKt$getAddress$2$1.invokeSuspend(Ext+LatLng.kt:16) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@941653e, Dispatchers.Main.immediate]

Android1500 commented 1 year ago

Stack trace posted following.

"DEADLINE_EXCEEDED: deadline exceeded after 4.912916000s" is the most noteworthy part of the log.

Tried 1.2.8, 1.2.10… 1.30-beta - all with same. Silent error.

`FATAL EXCEPTION: main

Process: com.android1500.gpssetter, PID: 2767

java.io.IOException: efjr: DEADLINE_EXCEEDED: deadline exceeded after 4.912916000s. [closed=[], open=[[buffered_nanos=4913157308, waiting_for_connection]]]

at android.location.Geocoder$GeocodeListener.getResults(Geocoder.java:246)

at android.location.Geocoder.getFromLocation(Geocoder.java:134)

at com.android1500.gpssetter.utils.ext.Ext_LatLngKt$getAddress$2$1.invokeSuspend(Ext+LatLng.kt:16)

at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)

at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)

at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)

at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)

at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)

at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)

at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)

at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@941653e, Dispatchers.Main.immediate]`

Thanks to give log i will take a look into this

7errie commented 1 year ago

Not sure if this helps, but I had the same issue once. But I figured out that it will keep happening unless you clear the app data (SD Maid).

It feels like the error might cause some memory leak of some sort. Maybe garbage collection is needed if the app fails to set a position?

L0caler commented 1 year ago

same problem. Ressetting Data in settings or in the app SD Maid didnt help. Also except for the very first time when i opened it, the map is grey and the location buttons dont do anything. Doesnt matter if i reset the app or uninstall the module, still grey. image