You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
I've tried both plain npm install mapbox-gl-native and downloading/building the code. npm test passes, but when I pull the test code (from "renders image") out, it does segfault also, that's just not reflected by the test results.
It does write image.png but it's not an actual PNG and can't be opened.
Oops, yea, thought this was a different issue. map.render used to return a PNG, looks like the examples were never updated to reflect that it returns raw RGBA now.
Sorry for the slow response, finally got some time to look into this and I was able to reproduce the segfault you're seeing - it looks like we're not cleaning up properly when the script exits and trying to improperly Reset() a v8::Persistent in the NodeLog destructor.
Activity
mikemorris commentedon Jan 25, 2016
I think this was an issue introduced in v3.0.0, I'm working on tracking this down.
jfirebaugh commentedon Jan 25, 2016
There's a bug in the node README that presumably got propagated to the script.
This doesn't write a valid PNG file, because
map.renderproduces a raw RGBA buffer. You need to encode it to the desired image format yourself.mikemorris commentedon Jan 25, 2016
Oops, yea, thought this was a different issue.
map.renderused to return a PNG, looks like the examples were never updated to reflect that it returns raw RGBA now.buchanae commentedon Feb 9, 2016
Thanks guys. I am able to write an image now (although it took me awhile to find an image library that worked. I ended up with picha)
Still segfaults though.
mikemorris commentedon Apr 7, 2016
Sorry for the slow response, finally got some time to look into this and I was able to reproduce the segfault you're seeing - it looks like we're not cleaning up properly when the script exits and trying to improperly
Reset()av8::Persistentin theNodeLogdestructor.