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
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
I'm attempting to build the android-mason branch on my Samsung Galaxy S4 via the instructions on the README.md. So far so good. I got it all to compile and build on the phone.
It builds and the app opens when I run it, but the map fragment is blank, no tiles are loaded. It can't find the style file.
12-12 07:55:12.978 9780-9794/com.mapbox.mapboxgl.app E/Setup﹕ loading style failed: -1 (URL using bad/illegal format or missing URL)
12-12 07:55:13.018 9780-9799/com.mapbox.mapboxgl.app E/Setup﹕ loading style failed: 404 (No such file)
I tried loading the bright-v6.json from my own server at http://spatialserver.spatialdev.com/tmp/styles/bright-v6.json. We're getting the basic zoom level rendered, but as I zoom in, the deeper zoom levels do not render.
I still see the error: 12-12 08:17:40.318 13959-13986/com.mapbox.mapboxgl.app E/Setup﹕ loading style failed: -1 (URL using bad/illegal format or missing URL)
I'm working on a project that integrates the ability to select openstreetmap features and edit their attributes in an open data kit survey for the American Red Cross.
Ideally I'd like to use mapbox vector tiles rather than old school pngs. Im aware that it's a WIP, but if it's close enough to release I may be able to assist. I have good familiarity with vector tiles:
Feel free to look into the issue but the bug is in the C++ native layer in case you are not familiar with native development.
I hope we will be able to merge but I am currently being held up by bugs caused by stuff that keeps changing in master. It is a bit of a cat and mouse with merging latest master than fixing all the new bugs.
I will be putting in a lot more time from January so you should see a lot more progress then.
Activity
hallahan commentedon Dec 12, 2014
I pasted the styles/styles/* of the repo into the styles asset folder, and I'm still getting:
hallahan commentedon Dec 12, 2014
I tried loading the bright-v6.json from my own server at
http://spatialserver.spatialdev.com/tmp/styles/bright-v6.json. We're getting the basic zoom level rendered, but as I zoom in, the deeper zoom levels do not render.I still see the error: 12-12 08:17:40.318 13959-13986/com.mapbox.mapboxgl.app E/Setup﹕ loading style failed: -1 (URL using bad/illegal format or missing URL)
ljbade commentedon Dec 16, 2014
@hallahan You need to run
git submodules updatefirst to load all the git submodules which includes the styles dir.Note that android-mason is very much WIP and is frequently breaking as we work on fixing all the bugs and getting in merged into the master branch.
Watch #676 to see when we get Android GL merged.
For more info on your particular bugs see #691.
I will be doing more work on Android GL in the next few days.
hallahan commentedon Dec 16, 2014
Hi @ljbade
I'm working on a project that integrates the ability to select openstreetmap features and edit their attributes in an open data kit survey for the American Red Cross.
Ideally I'd like to use mapbox vector tiles rather than old school pngs. Im aware that it's a WIP, but if it's close enough to release I may be able to assist. I have good familiarity with vector tiles:
https://github.com/SpatialServer/Leaflet.MapboxVectorTile
ljbade commentedon Dec 16, 2014
Feel free to look into the issue but the bug is in the C++ native layer in case you are not familiar with native development.
I hope we will be able to merge but I am currently being held up by bugs caused by stuff that keeps changing in master. It is a bit of a cat and mouse with merging latest master than fixing all the new bugs.
I will be putting in a lot more time from January so you should see a lot more progress then.
hallahan commentedon Dec 16, 2014
Cool. I'm excited about the work you're doing. Im looking forward to the day this is the dominant mobile mapping framework.
ljbade commentedon Dec 18, 2014
@hallahan Do you mind testing 40f859e
It appears to have fixed the crash and tile loading problem on my phone.
hallahan commentedon Dec 18, 2014
I did git
pull origin android-masonand also agit submodule updateI'm still getting:
hallahan commentedon Dec 18, 2014
I also tried to re make android and still the same error.
ljbade commentedon Dec 18, 2014
hmm
ljbade commentedon Dec 18, 2014
@hallahan can you gist the full log?
hallahan commentedon Dec 18, 2014
https://gist.github.com/hallahan/6cb21723f2c7cb83b5bd
ljbade commentedon Dec 18, 2014
@hallahan I can't see why you are getting that errors.
Have you tried
make cleanthenmake androidfollowed by a Build -> Rebuild Project in Android Studio?Did you change any files other than MapFragment for the access token?
8 remaining items
hallahan commentedon Dec 22, 2014
Here's some more possible relevant logs. Logcat is very verbose...
ljbade commentedon Dec 22, 2014
Do you have log output from earlier than the crash? You may need to filter by com.mapbox.mapboxgl.app
hallahan commentedon Dec 22, 2014
Lemme try again and output stdout to a file...
hallahan commentedon Dec 22, 2014
OK, well I found this earlier:
hallahan commentedon Dec 22, 2014
The app stays alive until the user pinch zooms in.
ljbade commentedon Dec 22, 2014
I think that last output is just a result of the app being killed.
So there is no output that begins with something like
D/com.mapbox.mapboxgl.app?You may just want to copy the whole log into a gist so I can work through it.
hallahan commentedon Dec 22, 2014
https://gist.github.com/hallahan/dd836a3176d9c298751c
ljbade commentedon Dec 22, 2014
Hmm OK, can't see any hint in there as to why it crashes.
I will build you an APK with
BUILDTYPE=Debugwhich enables more logging and should also reveal line numbers in the crash backtrace.ljbade commentedon Jan 5, 2015
@hallahan Can try this debug build: https://www.dropbox.com/s/rg13hvsecbolwoz/app-release.apk?dl=0
hallahan commentedon Jan 6, 2015
Your new APK Build is also failing. When I pinch to zoom in, the app crashes.
https://gist.github.com/hallahan/4dd07df4e3fbcc7e4c47
ljbade commentedon Jan 7, 2015
Hmm looks like I am going to have to mess around with GDB to map the crash location back to the source line.
It is a strange crash as everything seems to load normally.
ljbade commentedon Jan 13, 2015
@hallahan I made a new build that has the line numbers in it.
If you can get the crash log from this: https://www.dropbox.com/s/awwwji00r0ysts9/app-debug.apk?dl=0
Then I can run it through
addr2lineto see where the crash is.ljbade commentedon Jan 19, 2015
Since I haven't heard an update on this I am going to close it.
Feel free to reopen if you wish to continue on this.