Skip to content

Instantly share code, notes, and snippets.

@wilhelmberg
wilhelmberg / Part 1 - Debug Mapbox Studio.md
Last active August 29, 2015 14:16
Part 1: Debug Mapbox Studio.md

Initial diagnosis

All instructions assume 64bit version of Mapbox Studio.

Things to try frist

  • make sure, there are no running mapbox-studio-exe or node.exe processes. If there are, terminate them.
  • Open %USERPROFILE%\.mapbox-studio (paste this into address bar of Explorer).
    • Is there an app.db.compacted? If yes, delete it.
  • Is there an app.log? If yes, send it to us.
@wilhelmberg
wilhelmberg / convert-to-utf-8.bat
Created November 29, 2014 16:54
Convert Western Europe ISO-8859-1 1252 shapefiles to utf-8
@echo off
CALL "C:\Program Files\QGIS Brighton\OSGeo4W.bat"
::http://ss64.com/nt/syntax-args.html
::d=drive
::p=path
::n=name without extension
for /R %%f in (*.shp) do (
@wilhelmberg
wilhelmberg / create-cpg.bat
Created November 25, 2014 13:00
Recursively create CPG files for your shapefiles to get correct encoding when opening them
@echo off
::http://ssrebelious.blogspot.co.at/2012/03/qgis-and-gdal19-encoding-issue.html
::http://plugins.qgis.org/plugins/shapefile_encoding_fixer/
::https://github.com/borysiasty/shapefile_encoding_fixer
::http://en.wikipedia.org/wiki/Character_encoding#Common_character_encodings
::http://en.wikipedia.org/wiki/Code_page#Noteworthy_code_pages
::1250 - Central European
::1251 - Cyrillic
@wilhelmberg
wilhelmberg / Part 2 - Debug Mapbox Studio.md
Last active May 15, 2019 14:26
Part 2: Debug MapBox Studio on Windows using WinDbg

Links:

Get WinDbg

  • goto WDK and WinDbg downloads
  • scroll down to Standalone Debugging Tools for Windows (WinDbg)
  • Get the standalone debugging tools (WinDbg) as part of Windows 8.1 SDK
  • execute sdksetup.exe
  • just select Debugging Tools for Windows