Skip to content

Instantly share code, notes, and snippets.

@wilhelmberg
Last active August 29, 2015 14:16
Show Gist options
  • Save wilhelmberg/6385afd9f6e240eeb074 to your computer and use it in GitHub Desktop.
Save wilhelmberg/6385afd9f6e240eeb074 to your computer and use it in GitHub Desktop.
Part 1: Debug Mapbox Studio.md
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\mapbox-studio.exe]
"DumpType"=dword:00000002
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\node.exe]
"DumpType"=dword:00000002

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.
    • Is there a shell.log? If yes, send it to us.
  • make a backup of %USERPROFILE%\.mapbox-studio
  • delete %USERPROFILE%\.mapbox-studio
  • does Mapbox Studio still crash? If yes, continue below.

Basic Information

To start with, let us know a little bit about your environment:

  • Operating system:
    • Windows 7, 8.1?
    • 32bit, 64bit?
  • Mapbox Studio:
    • version?
    • 32bit, 64bit?

Environment Variables

  • press Windows-Key + R
  • type cmd, press Enter
  • enter those commands one at a time
ECHO %GDAL_DATA%
ECHO %PROJ_LIB%
ECHO %ICU_DATA%
  • share the output, e.g. via a gist or a screenshot

Enable local dumps

The next time Mapbox Studio crashes, the crash information will be written to a file with a name like: %LOCALAPPDATA%\CrashDumps\mapbox-studio.exe.NNNN.dmp and/or %LOCALAPPDATA%\CrashDumps\node.exe.NNNN.dmp.

  • the DMP files can be huge, but they compress really well with 7z (www.7-zip.org) and compression set to Ultra.

  • share the 7-zipped DMP files

If this procedure does not create any dump files, try ProcDump:

ProcDump

  • download and extract Windows Sysinternals ProcDump to a directory of your choice.
  • cd into that directory on a command prompt:
    • press Windows-Key + R
    • type cmd, press Enter
    • type cd <FULL-PATH-TO-EXTRACTED-PROCDUMP>, press Enter
  • start ProcDump:
    • type procdump -w -ma -e 1 -l -t node.exe, press Enter
    • you should see

image

  • start Mapbox Studio
    • when Mapbox Studio crashes you should see something like this:

image

  • the DMP files can be huge, but they compress really well with 7z (www.7-zip.org) and compression set to Ultra.

  • share the 7-zipped DMP files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment