Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

Crashes randomly at different times, with local sources - windows 7 64bit #1394

Closed
freewheelCarto opened this issue Jun 24, 2015 · 6 comments
Milestone

Comments

@freewheelCarto
Copy link

I am running in to an issue where Mapbox Studio crashes at random times, but consistently. Often, it occurs when trying to upload a local source to Mapbox account, but sometimes it crashes during any part of using the 'local source' functionality. Using shapefiles as the source.

I have uninstalled and installed. I looked through other issues that mentioned crashing. I've run Studio as admin and on my regular work domain/user. I tested with small shapefiles, same result. Only got one successful upload to Mapbox without Studio crashing, out of approximately 20 attempts.

Nothing is written to the app.log in C:\Users.mapbox-studio.

Is there something in my source that could be causing this? Shapefiles were modified and saved via QGIS.

@springmeyer
Copy link
Contributor

First thing to try would be to reproject your shapefiles to EPSG:3857 or EPSG:4326. Then try loading into a fresh project. Let me know if you still experience crashes after doing that. The reason I recommend this is we are aware of a crash possible on windows during reprojection from source projections that are not the two above.

@springmeyer springmeyer added this to the v0.2.8 milestone Jun 24, 2015
@wilhelmberg
Copy link
Contributor

@freewheelCarto

You can reproject your shapefiles in QGIS:

  • right click on layer -> Save as...
  • click on the icon that looks like a globe with a hat on it
  • type 3857 in the new dialog
  • click WGS84 / Pseudo Mercator -> OK

The Save vector layer as... should then look like this:
image

Or, if you prefer the command line:

ogr2ogr -f "ESRI Shapefile" your-input.shp webmerc-output.shp -t_srs EPSG:3857

Also, could you share one of your smaller shape files, that we can take a look at the file and its projection?

@freewheelCarto
Copy link
Author

Thanks for the responses, Indeed my sources are in different projection. I will save as the recommended and confirm if that solves my issues.

@freewheelCarto
Copy link
Author

This appears to have solved the issue. Thanks, closing issue.

@springmeyer
Copy link
Contributor

Great to hear. Thanks for testing @freewheelCarto. For now I'm going to re-open this issue as the crash when reprojecting is not yet fixed. Will close this once we have a solution to that over at mapbox/mapnik-vector-tile#127.

@springmeyer springmeyer reopened this Jun 26, 2015
@wilhelmberg
Copy link
Contributor

Cause of reprojecting crash was fixed in proj4:
OSGeo/PROJ@2b5b979

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants