Hello!
I have implemented MapBox for online displaying of maps and added some layers on top of it. When running the debug app the Logcat show a lot of waning/info messages related to the map displayed. The messages are displayed when moving the map or zooming in/out and the SDK has to download new parts of the map.
I have attached part of the log:
2019-08-08 13:45:24.157 V/Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).
2019-08-08 13:45:45.815 V/Mbgl-ConnectivityReceiver: connected - true
2019-08-08 13:45:46.782 V/Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).
2019-08-08 13:45:46.842 V/Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).
2019-08-08 13:45:46.862 I/Mbgl-HttpRequest: Request failed due to a connection error: Socket closed
2019-08-08 13:45:46.866 I/Mbgl-HttpRequest: Request failed due to a connection error: Socket closed
2019-08-08 13:45:46.869 W/Mbgl-HttpRequest: Request failed due to a permanent error: Canceled
2019-08-08 13:45:46.996 V/Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).
2019-08-08 13:45:52.355 V/Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).
2019-08-08 13:45:52.466 I/Mbgl-HttpRequest: Request failed due to a connection error: Socket closed
2019-08-08 13:45:52.469 I/Mbgl-HttpRequest: Request failed due to a connection error: Socket closed
2019-08-08 13:45:52.499 I/.mapbox.com/...: type=1400 audit(0.0:16176): avc: denied { write } for name="perfd" dev="dm-0" ino=274160 scontext=u:r:untrusted_app:s0:c142,c257,c512,c768 tcontext=u:object_r:shell_data_file:s0 tclass=dir permissive=1
2019-08-08 13:45:52.499 I/.mapbox.com/...: type=1400 audit(0.0:16177): avc: denied { add_name } for name="perfa_okhttp.dex.arm64.flock" scontext=u:r:untrusted_app:s0:c142,c257,c512,c768 tcontext=u:object_r:shell_data_file:s0 tclass=dir permissive=1
2019-08-08 13:45:52.499 I/.mapbox.com/...: type=1400 audit(0.0:16178): avc: denied { create } for name="perfa_okhttp.dex.arm64.flock" scontext=u:r:untrusted_app:s0:c142,c257,c512,c768 tcontext=u:object_r:shell_data_file:s0:c142,c257,c512,c768 tclass=file permissive=1
2019-08-08 13:45:52.506 I/Mbgl-HttpRequest: Request failed due to a connection error: Socket is closed
2019-08-08 13:45:52.509 I/.mapbox.com/...: type=1400 audit(0.0:16179): avc: denied { remove_name } for name="perfa_okhttp.dex.arm64.flock" dev="dm-0" ino=361871 scontext=u:r:untrusted_app:s0:c142,c257,c512,c768 tcontext=u:object_r:shell_data_file:s0 tclass=dir permissive=1
2019-08-08 13:45:52.509 I/.mapbox.com/...: type=1400 audit(0.0:16180): avc: denied { unlink } for name="perfa_okhttp.dex.arm64.flock" dev="dm-0" ino=361871 scontext=u:r:untrusted_app:s0:c142,c257,c512,c768 tcontext=u:object_r:shell_data_file:s0:c142,c257,c512,c768 tclass=file permissive=1
2019-08-08 13:45:52.529 W/Mbgl-HttpRequest: Request failed due to a permanent error: Canceled
2019-08-08 13:45:52.539 I/Mbgl-HttpRequest: Request failed due to a connection error: Socket closed
2019-08-08 13:45:52.586 I/Mbgl-HttpRequest: Request failed due to a connection error: Socket closed
2019-08-08 13:45:52.711 V/Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).
2019-08-08 13:46:27.140 W/Mbgl-HttpRequest: Request failed due to a permanent error: Canceled
2019-08-08 13:46:27.313 I/Mbgl-HttpRequest: Request failed due to a connection error: Socket closed
2019-08-08 13:46:27.368 W/Mbgl-HttpRequest: Request failed due to a permanent error: Canceled
2019-08-08 13:46:27.634 V/Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).
2019-08-08 13:46:27.656 V/Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).
Is this normal behaviour?
Running the app on a OnePlus 3T with OxygenOS 9.0.3 (based on Android 9.0). The behaviour is similar on other devices I have tested the debug app on.
I don't think this is anything out of ordinary, is that right @ian29 @tmpsantos?
I don't think this is anything out of ordinary, is that right @ian29 @tmpsantos?
Is the connection unstable?
The connection is stable and the ”Canceled” is just random. But, I think it has to do with the requests to the server, maybe? Too many requests when zooming in or out or to another region?
Is this normal behaviour?
when you interact with the map (scrolling/zooming) and a tile, that we requested earlier, is no longer visible we will cancel that request. You can disable this logging with HttpRequestUtil.setLogEnabled(false) and note that this is always disabled for release builds.
Closing as not actionable.
Most helpful comment
when you interact with the map (scrolling/zooming) and a tile, that we requested earlier, is no longer visible we will cancel that request. You can disable this logging with
HttpRequestUtil.setLogEnabled(false)and note that this is always disabled for release builds.Closing as not actionable.