mapsme / omim

🗺️ MAPS.ME — Offline OpenStreetMap maps for iOS and Android
Apache License 2.0
4.58k stars 1.15k forks source link

[iOS] open source app crashes on startup #12391

Open kconger opened 4 years ago

kconger commented 4 years ago

After you go through the initial welcome screens and permissions the current git build of the open-source iOS client crashes on startup.

LOG TID(1) INFO      40.2992 storage/storage.cpp:1295 DownloadNode() Downloading US_Colorado_Denver
2019-12-27 21:58:42.242601-0700 maps.me dbg[440:25175] Task <1CA9EB37-7C88-476A-977A-64159D111EC0>.<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x281340090 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, NSErrorFailingURLStringKey=, NSErrorFailingURLKey=, NSLocalizedDescription=unsupported URL}
LOG TID(7) DEBUG     40.3033 platform/http_client_apple.mm:182 RunHttpRequest Error:  -1002 : unsupported URL while connecting to 
LOG TID(7) ERROR     40.3047 platform/servers_list.cpp:29 ParseServerList() Can't parse server list json: 1 '[' or '{' expected near end of file 
TID(7) ASSERT FAILED
base/logging.cpp:98
CHECK(level < g_LogAbortLevel) 3 3 Abort. Log level is too serious 3
Assertion failed: (false), function LogMessageDefault, file /Users/keithconger/Projects/omim/base/logging.cpp, line 98.
tatiana-yan commented 4 years ago

Hello! See https://github.com/mapsme/omim/issues/11856 .

kconger commented 4 years ago

Hi @tatiana-yan

Thanks, I've modified the code to get around this. Is this the preferred approach if the goal is to contribute back to MAPS.ME?

Thanks