Comments (5)
ok, so when I downgrade to [email protected]
this goes away.
from osm-read.
On a clean clone
this also makes the test suite fail:
> mocha test/*.js
․․․․
3 passing (12ms)
1 failing
1) when manyNodes.pbf is parsed "before all" hook:
Uncaught TypeError: Cannot read property 'byteLength' of undefined
at Object.blobDataToBuffer (/tmp/osm-read/lib/nodejs/buffer.js:38:34)
at Object.inflateBlob (/tmp/osm-read/lib/nodejs/zlib.js:5:22)
at /tmp/osm-read/lib/pbfParser.js:479:22
at Object.readPBFElementFromBuffer (/tmp/osm-read/lib/nodejs/buffer.js:15:12)
at /tmp/osm-read/lib/nodejs/fsReader.js:36:20
at callback (/tmp/osm-read/node_modules/mocha/node_modules/glob/node_modules/graceful-fs/polyfills.js:207:17)
at Object.wrapper [as oncomplete] (fs.js:454:17)
I'll see if I can find a fix
from osm-read.
I'm a little confused that the test suite fails on a clean clone... when I use the master branch from the repo and run npm test I get 72 passing tests?!?
I guess you have put the osm planet file somehow into the test after the clean clone?
Also I'm using mocha v1.19.0... maybe we got different versions here?
To minimize the impact of wrong library versions I've set the dependency versions in package.json to single version values. Maybe you can pull the latest changes and run the test suite again?
from osm-read.
Thanks, your latest commit has resolved the issue. It seems to be due to a dependency conflict and can only be reliably reproduced by killing the node_modules
directory before executing npm install
.
If you're interested, you can reproduce the issue on a fresh clone with node v0.10.26
by running the following commands:
git checkout ee27e7950f42514ad5f79c357647df5073013c41;
rm -rf node_modules;
npm install;
npm test;
from osm-read.
Check this out, pretty cool :)
http://runnable.com/U8VFY1uvsWoQaJ1A/osm-read-26-for-shell-and-bash
from osm-read.
Related Issues (20)
- lat lon are not in WSG84 format HOT 5
- Relations HOT 2
- Relation members output format HOT 6
- number instead of string for id, uid and ref? HOT 3
- Pause/Resume HOT 12
- Parser getting stuck HOT 1
- Example pbf.html is Broken HOT 6
- Too Much Recursion HOT 4
- Get tag "center" from overpass-api response xml HOT 2
- Invalid typed array length in arrayBufferReader Line 12 HOT 1
- Allocation failed - process out of memory HOT 1
- Tags unresolved HOT 3
- Vulnerability in protobuf dependencies HOT 2
- pbfParser in node.js and "TypeError: Invalid non-string/buffer chunk" HOT 9
- Is it possible to do any progress indication HOT 1
- Module not found: Error: Can't resolve '../../node_modules/zlibjs/bin/inflate.min.js' HOT 1
- Would exposing an async iterator API suit this library? HOT 3
- Why not store IDs as BigInt? HOT 4
- primitivegroup.length - Is it always 1? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osm-read.