You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't reproduce this now, but several times on the "Android 14.0 (Google APIs)" emulator I saw the map remain blank, and I could only fix it by restarting the process. In the logs it printed this message hundreds of times:
D/OsmDroid: TileLoader failed to load tile due to mWriter being null (map shutdown?)
Followed by this:
W/python.stderr: Error in handler: Attempt to invoke virtual method 'android.content.Context org.osmdroid.views.MapView.getContext()' on a null object reference
W/python.stderr: at org.osmdroid.views.MapViewRepository.getDefaultMarkerIcon(MapViewRepository.java:74)
W/python.stderr: at org.osmdroid.views.overlay.Marker.setDefaultIcon(Marker.java:139)
W/python.stderr: at org.osmdroid.views.overlay.Marker.<init>(Marker.java:114)
W/python.stderr: at org.osmdroid.views.overlay.Marker.<init>(Marker.java:92)
W/python.stderr: at com.chaquo.python.PyObject.callAttrThrowsNative(Native Method)
W/python.stderr: at com.chaquo.python.PyObject.callAttrThrows(PyObject.java:232)
W/python.stderr: at com.chaquo.python.PyInvocationHandler.invoke(PyInvocationHandler.java:31)
W/python.stderr: at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
W/python.stderr: at $Proxy8.onLocationChanged(Unknown Source)
W/python.stderr: at android.location.LocationManager$LocationListenerTransport$1.operate(LocationManager.java:3277)
W/python.stderr: at android.location.LocationManager$LocationListenerTransport$1.operate(LocationManager.java:3274)
W/python.stderr: at com.android.internal.listeners.ListenerExecutor.lambda$executeSafely$0(ListenerExecutor.java:127)
W/python.stderr: at com.android.internal.listeners.ListenerExecutor$$ExternalSyntheticLambda0.run(Unknown Source:8)
W/python.stderr: at android.os.Handler.handleCallback(Handler.java:958)
W/python.stderr: at android.os.Handler.dispatchMessage(Handler.java:99)
W/python.stderr: at android.os.Looper.loopOnce(Looper.java:205)
W/python.stderr: at android.os.Looper.loop(Looper.java:294)
W/python.stderr: at android.app.ActivityThread.main(ActivityThread.java:8177)
W/python.stderr: at java.lang.reflect.Method.invoke(Native Method)
W/python.stderr: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
W/python.stderr: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
W/python.stderr: Traceback (most recent call last):
W/python.stderr: File "/data/data/org.beeware.examples.hardware/files/chaquopy/AssetFinder/requirements/toga/handlers.py", line 80, in _handler
W/python.stderr: File "/data/data/org.beeware.examples.hardware/files/chaquopy/AssetFinder/app/hardware/app.py", line 121, in location_changed
W/python.stderr: File "/data/data/org.beeware.examples.hardware/files/chaquopy/AssetFinder/requirements/toga/widgets/mapview.py", line 104, in add
W/python.stderr: File "/data/data/org.beeware.examples.hardware/files/chaquopy/AssetFinder/requirements/toga_android/widgets/mapview.py", line 97, in add_pin
W/python.stderr: File "class.pxi", line 135, in java.chaquopy.JavaClass.__call__
W/python.stderr: File "class.pxi", line 209, in java.chaquopy.setup_object_class.JavaObject.__init__
W/python.stderr: File "class.pxi", line 972, in java.chaquopy.JavaMultipleMethod.__get__.lambda3
W/python.stderr: File "class.pxi", line 1010, in java.chaquopy.JavaMultipleMethod.__call__
W/python.stderr: File "class.pxi", line 789, in java.chaquopy.JavaMethod.__call__
W/python.stderr: File "class.pxi", line 837, in java.chaquopy.JavaMethod.call_constructor
W/python.stderr: File "env.pxi", line 110, in java.chaquopy.CQPEnv.NewObjectA
W/python.stderr: File "env.pxi", line 546, in java.chaquopy.CQPEnv.check_exception
This looks like it might be an issue with OSMDroid. The error was generated by the Toga Hardware demo app.
The text was updated successfully, but these errors were encountered:
Originally posted by @mhsmith in #2462 (comment)
I can't reproduce this now, but several times on the "Android 14.0 (Google APIs)" emulator I saw the map remain blank, and I could only fix it by restarting the process. In the logs it printed this message hundreds of times:
Followed by this:
This looks like it might be an issue with OSMDroid. The error was generated by the Toga Hardware demo app.
The text was updated successfully, but these errors were encountered: