mapscii icon indicating copy to clipboard operation
mapscii copied to clipboard

Unimplemented type: 4

Open harriott opened this issue 4 years ago • 4 comments

Steps to reproduce linux 5.7.4.arch1-1, in either urxvt or xterm:

$ npx mapscii
Welcome to MapSCII! Use your cursors to navigate, a/z to zoom, q to quit.Error: Unimplemented type: 4
    at Pbf.skip (/usr/lib/node_modules/mapscii/node_modules/pbf/index.js:211:20)
    at Pbf.readFields (/usr/lib/node_modules/mapscii/node_modules/pbf/index.js:46:45)
    at new VectorTile (/usr/lib/node_modules/mapscii/node_modules/@mapbox/vector-tile/lib/vectortile.js:8:23)
    at Tile._loadTile (/usr/lib/node_modules/mapscii/src/Tile.js:33:17)
    at /usr/lib/node_modules/mapscii/src/Tile.js:24:19
renderer is busy

and nothing more appears - no map. Exactly the same when I run mapscii installed from AUR.

harriott avatar Jun 20 '20 11:06 harriott

I have been getting this same error on a Raspberry Pi Zero. It occurs when zoom is between 2 and 3, then it works fine, then it stops again at 4.

Quillbert avatar May 04 '21 23:05 Quillbert

Same issue on Ubuntu 20.04 with mapscii v0.3.1 installed via snap.

NeilsC avatar May 05 '21 15:05 NeilsC

PBF is a file format for map tiles used by MapSCII. A few tiles at those zoom levels contain data of an optional type 4 (info). https://github.com/rastapasta/mapscii/issues/71#issuecomment-512737220

  1. Long-term this type should get supported or ignored in the upstream dependency pbf.
  2. Generally, it would be good to catch errors while loading tiles and display them somewhere.

The map data is a static snapshot from a few years back. Clearing the cache won't help until the map data is updated.

This affects all platforms and current versions.

jaller94 avatar May 11 '21 17:05 jaller94

I have this too; what is the state of fixing this?

dreirund avatar Jul 19 '23 08:07 dreirund