Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created June 9, 2015 00:10
Show Gist options
  • Save springmeyer/5c74e53607a9f5ee258c to your computer and use it in GitHub Desktop.
Save springmeyer/5c74e53607a9f5ee258c to your computer and use it in GitHub Desktop.
~/projects/mbstudio[mapnik-up]$ lldb -- node ./index.js
(lldb) target create "node"
Current executable set to 'node' (x86_64).
(lldb) settings set -- target.run-args "./index.js"
(lldb) r
Process 68273 launched: '/Users/dane/.nvm/v0.10.38/bin/node' (x86_64)
<Tue, 09 Jun 2015 00:06:35 GMT> Mapbox Studio @ http://localhost:3000/
Process 68273 stopped
* thread #10: tid = 0x154f10, 0x0000000104a9ad60 mapnik.node`ClipperLib::OutRec1RightOfOutRec2(outRec1=0x0000000000000000, outRec2=0x000000012aa51f50) + 16 at clipper.cpp:2346, stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
frame #0: 0x0000000104a9ad60 mapnik.node`ClipperLib::OutRec1RightOfOutRec2(outRec1=0x0000000000000000, outRec2=0x000000012aa51f50) + 16 at clipper.cpp:2346
2343 {
2344 do
2345 {
-> 2346 outRec1 = outRec1->FirstLeft;
2347 if (outRec1 == outRec2) return true;
2348 } while (outRec1);
2349 return false;
(lldb) bt
* thread #10: tid = 0x154f10, 0x0000000104a9ad60 mapnik.node`ClipperLib::OutRec1RightOfOutRec2(outRec1=0x0000000000000000, outRec2=0x000000012aa51f50) + 16 at clipper.cpp:2346, stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
* frame #0: 0x0000000104a9ad60 mapnik.node`ClipperLib::OutRec1RightOfOutRec2(outRec1=0x0000000000000000, outRec2=0x000000012aa51f50) + 16 at clipper.cpp:2346
frame #1: 0x0000000104a9979d mapnik.node`ClipperLib::Clipper::AppendPolygon(this=0x00000001075cc498, e1=0x000000012aa6e218, e2=0x000000012aa6e190) + 157 at clipper.cpp:2369
frame #2: 0x0000000104a996f4 mapnik.node`ClipperLib::Clipper::AddLocalMaxPoly(this=0x00000001075cc498, e1=0x000000012aa6e190, e2=0x000000012aa6e218, Pt=0x000000012aa6e1b0) + 196 at clipper.cpp:1896
frame #3: 0x0000000104a9c8c6 mapnik.node`ClipperLib::Clipper::ProcessHorizontal(this=0x00000001075cc498, horzEdge=0x000000012aa6e190) + 6614 at clipper.cpp:2732
frame #4: 0x0000000104a96afb mapnik.node`ClipperLib::Clipper::ProcessHorizontals(this=0x00000001075cc498) + 59 at clipper.cpp:2511
frame #5: 0x0000000104a9727b mapnik.node`ClipperLib::Clipper::ProcessEdgesAtTopOfScanbeam(this=0x00000001075cc498, topy=-64) + 1275 at clipper.cpp:3063
frame #6: 0x0000000104a9607c mapnik.node`ClipperLib::Clipper::ExecuteInternal(this=0x00000001075cc498) + 924 at clipper.cpp:1581
frame #7: 0x0000000104a94c36 mapnik.node`ClipperLib::Clipper::Execute(this=0x00000001075cc498, clipType=ctIntersection, solution=0x00000001075cc448, subjFillType=pftNonZero, clipFillType=pftNonZero) + 230 at clipper.cpp:1520
frame #8: 0x0000000104a94b3d mapnik.node`ClipperLib::Clipper::Execute(this=0x00000001075cc498, clipType=ctIntersection, solution=0x00000001075cc448, fillType=pftNonZero) + 45 at clipper.cpp:1498
frame #9: 0x00000001048787c9 mapnik.node`mapnik::vector_tile_impl::encoder_visitor<mapnik::vector_tile_impl::backend_pbf>::operator(this=0x00000001075cdbf0, geom=0x00000001075cdf78)(mapnik::geometry::polygon<long long>&) + 6809 at vector_tile_processor.ipp:1032
frame #10: 0x0000000104873a95 mapnik.node`mapnik::vector_tile_impl::processor<mapnik::vector_tile_impl::backend_pbf>::handle_geometry(mapnik::feature_impl const&, mapnik::util::variant<mapnik::geometry::geometry_empty, mapnik::geometry::point<double>, mapnik::geometry::line_string<double>, mapnik::geometry::polygon<double>, mapnik::geometry::multi_point<double>, mapnik::geometry::multi_line_string<double>, mapnik::geometry::multi_polygon<double>, mapnik::util::recursive_wrapper<mapnik::geometry::geometry_collection<double> > > const&, mapnik::proj_transform const&, mapnik::box2d<double> const&) + 247 at variant.hpp:318
frame #11: 0x000000010487399e mapnik.node`mapnik::vector_tile_impl::processor<mapnik::vector_tile_impl::backend_pbf>::handle_geometry(mapnik::feature_impl const&, mapnik::util::variant<mapnik::geometry::geometry_empty, mapnik::geometry::point<double>, mapnik::geometry::line_string<double>, mapnik::geometry::polygon<double>, mapnik::geometry::multi_point<double>, mapnik::geometry::multi_line_string<double>, mapnik::geometry::multi_polygon<double>, mapnik::util::recursive_wrapper<mapnik::geometry::geometry_collection<double> > > const&, mapnik::proj_transform const&, mapnik::box2d<double> const&) + 401 at variant.hpp:322
frame #12: 0x000000010487380d mapnik.node`mapnik::vector_tile_impl::processor<mapnik::vector_tile_impl::backend_pbf>::handle_geometry(mapnik::feature_impl const&, mapnik::util::variant<mapnik::geometry::geometry_empty, mapnik::geometry::point<double>, mapnik::geometry::line_string<double>, mapnik::geometry::polygon<double>, mapnik::geometry::multi_point<double>, mapnik::geometry::multi_line_string<double>, mapnik::geometry::multi_polygon<double>, mapnik::util::recursive_wrapper<mapnik::geometry::geometry_collection<double> > > const&, mapnik::proj_transform const&, mapnik::box2d<double> const&) + 401 at variant.hpp:322
frame #13: 0x000000010487367c mapnik.node`mapnik::vector_tile_impl::processor<mapnik::vector_tile_impl::backend_pbf>::handle_geometry(mapnik::feature_impl const&, mapnik::util::variant<mapnik::geometry::geometry_empty, mapnik::geometry::point<double>, mapnik::geometry::line_string<double>, mapnik::geometry::polygon<double>, mapnik::geometry::multi_point<double>, mapnik::geometry::multi_line_string<double>, mapnik::geometry::multi_polygon<double>, mapnik::util::recursive_wrapper<mapnik::geometry::geometry_collection<double> > > const&, mapnik::proj_transform const&, mapnik::box2d<double> const&) + 386 at variant.hpp:322
frame #14: 0x00000001048734fa mapnik.node`mapnik::vector_tile_impl::processor<mapnik::vector_tile_impl::backend_pbf>::handle_geometry(mapnik::feature_impl const&, mapnik::util::variant<mapnik::geometry::geometry_empty, mapnik::geometry::point<double>, mapnik::geometry::line_string<double>, mapnik::geometry::polygon<double>, mapnik::geometry::multi_point<double>, mapnik::geometry::multi_line_string<double>, mapnik::geometry::multi_polygon<double>, mapnik::util::recursive_wrapper<mapnik::geometry::geometry_collection<double> > > const&, mapnik::proj_transform const&, mapnik::box2d<double> const&) [inlined] decltype(v=0x00000001075cdf70, f=encoder_visitor<mapnik::vector_tile_impl::backend_pbf> at 0x00000001075cda50)) mapnik::util::variant<mapnik::geometry::geometry_empty, mapnik::geometry::point<long long>, mapnik::geometry::line_string<long long>, mapnik::geometry::polygon<long long>, mapnik::geometry::multi_point<long long>, mapnik::geometry::multi_line_string<long long>, mapnik::geometry::multi_polygon<long long>, mapnik::util::recursive_wrapper<mapnik::geometry::geometry_collection<long long> > >::visit<mapnik::vector_tile_impl::encoder_visitor<mapnik::vector_tile_impl::backend_pbf>, mapnik::util::variant<mapnik::geometry::geometry_empty, mapnik::geometry::point<long long>, mapnik::geometry::line_string<long long>, mapnik::geometry::polygon<long long>, mapnik::geometry::multi_point<long long>, mapnik::geometry::multi_line_string<long long>, mapnik::geometry::multi_polygon<long long>, mapnik::util::recursive_wrapper<mapnik::geometry::geometry_collection<long long> > > >(mapnik::util::variant<mapnik::geometry::geometry_empty, mapnik::geometry::point<long long>, mapnik::geometry::line_string<long long>, mapnik::geometry::polygon<long long>, mapnik::geometry::multi_point<long long>, mapnik::geometry::multi_line_string<long long>, mapnik::geometry::multi_polygon<long long>, mapnik::util::recursive_wrapper<mapnik::geometry::geometry_collection<long long> > >&, mapnik::vector_tile_impl::encoder_visitor<mapnik::vector_tile_impl::backend_pbf>) + 126 at variant.hpp:772
frame #15: 0x000000010487347c mapnik.node`mapnik::vector_tile_impl::processor<mapnik::vector_tile_impl::backend_pbf>::handle_geometry(mapnik::feature_impl const&, mapnik::util::variant<mapnik::geometry::geometry_empty, mapnik::geometry::point<double>, mapnik::geometry::line_string<double>, mapnik::geometry::polygon<double>, mapnik::geometry::multi_point<double>, mapnik::geometry::multi_line_string<double>, mapnik::geometry::multi_polygon<double>, mapnik::util::recursive_wrapper<mapnik::geometry::geometry_collection<double> > > const&, mapnik::proj_transform const&, mapnik::box2d<double> const&) [inlined] decltype(f=encoder_visitor<mapnik::vector_tile_impl::backend_pbf> at 0x00000001075cda08, v=0x00000001075cdf70)) mapnik::util::apply_visitor<mapnik::util::variant<mapnik::geometry::geometry_empty, mapnik::geometry::point<long long>, mapnik::geometry::line_string<long long>, mapnik::geometry::polygon<long long>, mapnik::geometry::multi_point<long long>, mapnik::geometry::multi_line_string<long long>, mapnik::geometry::multi_polygon<long long>, mapnik::util::recursive_wrapper<mapnik::geometry::geometry_collection<long long> > >, mapnik::vector_tile_impl::encoder_visitor<mapnik::vector_tile_impl::backend_pbf> >(mapnik::vector_tile_impl::encoder_visitor<mapnik::vector_tile_impl::backend_pbf>, mapnik::util::variant<mapnik::geometry::geometry_empty, mapnik::geometry::point<long long>, mapnik::geometry::line_string<long long>, mapnik::geometry::polygon<long long>, mapnik::geometry::multi_point<long long>, mapnik::geometry::multi_line_string<long long>, mapnik::geometry::multi_polygon<long long>, mapnik::util::recursive_wrapper<mapnik::geometry::geometry_collection<long long> > >&) + 126 at variant.hpp:838
frame #16: 0x00000001048733fe mapnik.node`mapnik::vector_tile_impl::processor<mapnik::vector_tile_impl::backend_pbf>::handle_geometry(this=0x00000001075cfd00, feature=0x000000012aa6d7c8, geom=0x000000012aa6d7f8, prj_trans=0x00000001075ce7b0, buffered_query_ext=0x00000001075ce770) + 4558 at vector_tile_processor.ipp:1256
frame #17: 0x0000000104871978 mapnik.node`mapnik::vector_tile_impl::processor<mapnik::vector_tile_impl::backend_pbf>::apply_to_layer(this=0x00000001075cfd00, lay=0x0000000101069200, proj0=0x00000001075cfb80, scale=4.7773142678197473, scale_denom=17061.836670784814, width=256, height=256, extent=0x00000001075cfda8, buffer_size=256) + 10792 at vector_tile_processor.ipp:797
frame #18: 0x000000010486ca51 mapnik.node`mapnik::vector_tile_impl::processor<mapnik::vector_tile_impl::backend_pbf>::apply(this=0x00000001075cfd00, scale_denom=17061.836670784814) + 929 at vector_tile_processor.ipp:624
frame #19: 0x0000000104868783 mapnik.node`Map::EIO_RenderVectorTile(req=0x0000000128d7fa70) + 419 at mapnik_map.cpp:1966
frame #20: 0x00000001004484d6 node`worker + 90
frame #21: 0x000000010043eaea node`uv__thread_start + 25
frame #22: 0x00007fff8c2bf268 libsystem_pthread.dylib`_pthread_body + 131
frame #23: 0x00007fff8c2bf1e5 libsystem_pthread.dylib`_pthread_start + 176
frame #24: 0x00007fff8c2bd41d libsystem_pthread.dylib`thread_start + 13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment