Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created October 24, 2012 21:30
Show Gist options
  • Save springmeyer/3949029 to your computer and use it in GitHub Desktop.
Save springmeyer/3949029 to your computer and use it in GitHub Desktop.
node-mapnik grid rendering errors and crash on lucid
devseed@gai-gain:~/danetest/mapnik$ node -v
v0.8.9
devseed@gai-gain:~/danetest/mapnik$ mapnik-config -v
2.1.0
devseed@gai-gain:~/danetest/mapnik$ which mapnik-config
/usr/bin/mapnik-config
devseed@gai-gain:~/danetest/mapnik$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.3 LTS
Release: 10.04
Codename: lucid
devseed@gai-gain:~/danetest/mapnik$ make test
mapnik.Expression
✓ should throw with invalid usage
✓ should accept complex expressions
✓ should support evaluation to js types
mapnik fonts
✓ should auto-register DejaVu fonts
✓ should auto-register a system font like Times Regular on OS X
✓ should find new fonts when registering all system fonts
✓ should not register hidden fonts file names
✓ should not register hidden fonts face-names
mapnik.Projection
✓ should throw with invalid usage
✓ should initialize properly
mapnik constants
✓ should have valid settings
✓ should have valid version info
✓ should expose Geometry enums
mapnik.Map
✓ should throw with invalid usage
✓ should be initialized properly
✓ should have settable properties
✓ should load a stylesheet
✓ should allow access to layers
mapnik sync rendering
✓ should render to a file (53ms)
mapnik grid rendering
1) should match expected output (sync rendering)
2) should match expected output (async rendering)
3) should match expected output (async rendering view)
4) should match expected output (async rendering view subsetted)
✓ should match expected output if __id__ is not the grid key (52ms)
5) should match expected output if __id__ both the grid key and in the attributes with others
6) should match expected output if __id__ the grid key and the only attributes
mapnik.Datasource
✓ should throw with invalid usage
✓ should validate with known shapefile
✓ should validate with known geojson (176ms)
mapnik.Color
✓ should throw with invalid usage
✓ should be green via keyword
✓ should be gray via rgb
✓ should be gray via rgba
✓ should be gray via rgba %
mapnik async rendering
✓ should render to a file
✓ should render to an image (41ms)
mapnik rendering
✓ should render async (blank)
✓ should render async (real data) (81ms)
✓ should render async to file (png) (83ms)
✓ should render async to file (cairo format) (252ms)
✓ should render async to file (guessing format) (70ms)
✓ should render async and throw with invalid format
mapnik.Grid
✓ should throw with invalid usage
✓ should be initialized properly
✓ should not be painted after rendering
✓ should be have background applied after rendering
✓ should be painted after rendering2
mapnik.compositeOp
✓ should blend image correctly with op:clear
✓ should blend image correctly with op:src
✓ should blend image correctly with op:dst
✓ should blend image correctly with op:src_over
✓ should blend image correctly with op:dst_over
✓ should blend image correctly with op:src_in
✓ should blend image correctly with op:dst_in
✓ should blend image correctly with op:src_out
✓ should blend image correctly with op:dst_out
✓ should blend image correctly with op:src_atop
✓ should blend image correctly with op:dst_atop
✓ should blend image correctly with op:xor
✓ should blend image correctly with op:plus
✓ should blend image correctly with op:minus
✓ should blend image correctly with op:multiply
✓ should blend image correctly with op:screen
✓ should blend image correctly with op:overlay
✓ should blend image correctly with op:darken
✓ should blend image correctly with op:lighten
✓ should blend image correctly with op:color_dodge
✓ should blend image correctly with op:color_burn
✓ should blend image correctly with op:hard_light
✓ should blend image correctly with op:soft_light
✓ should blend image correctly with op:difference
✓ should blend image correctly with op:exclusion
✓ should blend image correctly with op:contrast
✓ should blend image correctly with op:invert
✓ should blend image correctly with op:invert_rgb
mapnik.Image
✓ should throw with invalid usage
✓ should be initialized properly
✓ should not be painted after rendering
✓ should have background set after rendering
✓ should be painted after rendering
✓ should support setting the alpha channel based on the amount of gray
mapnik.queryPoint
✓ should throw with invalid usage
✓ should return a feature if geo coords are used
✓ should return a feature if screen coords are used
✓ should return a feature if multiple layers are queried
✓ should return a feature if multiple layers are queried
mapnik.Parameters
✓ should be accessible from map
✓ should be settable on map
mapnik.GridView
✓ should be solid
✓ should have zero value for pixel
✓ should be painted after rendering
mapnik.ProjTransform
✓ should throw with invalid usage
✓ should initialize properly
✓ should forward coords properly (no-op)
✓ should forward coords properly (no-op)
✓ should forward coords properly (4326 -> 3857)
✓ should backward coords properly (3857 -> 4326)
✓ should throw with invalid coords (4326 -> 3857)
✓ should forward bbox properly (4326 -> 3857)
✓ should backward bbox properly (3857 -> 4326)
✓ should throw with invalid bbox (4326 -> 3857)
mapnik.Layer
✓ should throw with invalid usage
✓ should initialize properly
mapnik.ImageView
✓ should throw with invalid usage
✓ should be initialized properly
mapnik.Palette
✓ should throw with invalid usage
✓ should be initialized property
✓ should support 64 color ACT palettes
✓ should support 256 color ACT palettes
✓ should support rendering (124ms)
mapnik.Feature
✓ should throw with invalid usage
✓ should match known features (40ms)
✖ 6 of 112 tests failed:
*** glibc detected *** node: free(): invalid pointer: 0x0000000003732a93 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x2b4660dfd5b6]
/lib/libc.so.6(cfree+0x73)[0x2b4660e03e83]
/home/devseed/danetest/mapnik/lib/_mapnik.node(_ZN5boost6detail18sp_counted_impl_pdIPN6mapnik12rgba_paletteENS0_13sp_ms_deleterIS3_EEE7disposeEv+0x35)[0x2b40bc58fd65]
/home/devseed/danetest/mapnik/lib/_mapnik.node(_ZN7PaletteD0Ev+0x92)[0x2b40bc58eba2]
node(_ZN2v88internal13GlobalHandles31PostGarbageCollectionProcessingENS0_16GarbageCollectorE+0x17f)[0x73db5f]
node(_ZN2v88internal4Heap24PerformGarbageCollectionENS0_16GarbageCollectorEPNS0_8GCTracerE+0x189)[0x74bc89]
node(_ZN2v88internal4Heap14CollectGarbageENS0_15AllocationSpaceENS0_16GarbageCollectorEPKcS5_+0xd3)[0x74c2a3]
node(_ZN2v88internal7Runtime9PerformGCEPNS0_6ObjectE+0xbb)[0x8488fb]
[0x31590fe06214]
======= Memory map: ========
00400000-00bdf000 r-xp 00000000 ca:01 1654998 /home/devseed/nvm/v0.8.9/bin/node
00ddf000-00de0000 r--p 007df000 ca:01 1654998 /home/devseed/nvm/v0.8.9/bin/node
00de0000-00df1000 rw-p 007e0000 ca:01 1654998 /home/devseed/nvm/v0.8.9/bin/node
00df1000-00dfb000 rw-p 00000000 00:00 0
021b5000-06088000 rw-p 00000000 00:00 0 [heap]
9b7becdb000-9b7becdc000 r-xp 00000000 00:00 0
9bbb0b00000-9bbb0b25000 rw-p 00000000 00:00 0
e8db2a00000-e8db2b00000 rw-p 00000000 00:00 0
ee4ce9aa000-ee4ce9ab000 r-xp 00000000 00:00 0
12a9b4df3000-12a9b4df4000 r-xp 00000000 00:00 0
184857b00000-184857b35000 rw-p 00000000 00:00 0
1d09c6140000-1d09c6340000 rw-p 00000000 00:00 0
21ce62000000-21ce62e00000 ---p 00000000 00:00 0
21ce62e00000-21ce63000000 rw-p 00000000 00:00 0
21ce63000000-21ce63e00000 ---p 00000000 00:00 0
21ce63e00000-21ce64000000 rw-p 00000000 00:00 0
220eb0600000-220eb0700000 rw-p 00000000 00:00 0
282a64bc3000-282a64bc4000 r-xp 00000000 00:00 0
28f38a000000-28f38a100000 rw-p 00000000 00:00 0
2a8533300000-2a8533385000 rw-p 00000000 00:00 0
2b40bc500000-2b40bc51d000 rw-p 00000000 00:00 0
2b40bc51d000-2b40bc51e000 ---p 00000000 00:00 0
2b40bc51e000-2b40bc52e000 rw-p 00000000 00:00 0
2b40bc52e000-2b40bc5d1000 r-xp 00000000 ca:01 1623695 /home/devseed/danetest/mapnik/lib/_mapnik.node
2b40bc5d1000-2b40bc7d0000 ---p 000a3000 ca:01 1623695 /home/devseed/danetest/mapnik/lib/_mapnik.node
2b40bc7d0000-2b40bc7d3000 r--p 000a2000 ca:01 1623695 /home/devseed/danetest/mapnik/lib/_mapnik.node
2b40bc7d3000-2b40bc7d5000 rw-p 000a5000 ca:01 1623695 /home/devseed/danetest/mapnik/lib/_mapnik.node
2b40bc7dd000-2b40bcdcd000 r-xp 00000000 ca:01 1986398 /usr/lib/libmapnik.so.2.1.0
2b40bcdcd000-2b40bcfcc000 ---p 005f0000 ca:01 1986398 /usr/lib/libmapnik.so.2.1.0
2b40bcfcc000-2b40bcfd6000 r--p 005ef000 ca:01 1986398 /usr/lib/libmapnik.so.2.1.0
2b40bcfd6000-2b40bcfdf000 rw-p 005f9000 ca:01 1986398 /usr/lib/libmapnik.so.2.1.0
2b40bcfdf000-2b40bcfe0000 rw-p 00000000 00:00 0
2b40bcfe0000-2b40bd060000 r-xp 00000000 ca:01 1987544 /usr/lib/libfreetype.so.6.3.22
2b40bd060000-2b40bd260000 ---p 00080000 ca:01 1987544 /usr/lib/libfreetype.so.6.3.22
2b40bd260000-2b40bd265000 r--p 00080000 ca:01 1987544 /usr/lib/libfreetype.so.6.3.22
2b40bd265000-2b40bd266000 rw-p 00085000 ca:01 1987544 /usr/lib/libfreetype.so.6.3.22
2b40bd266000-2b40bd26e000 r-xp 00000000 ca:01 1987645 /usr/lib/libltdl.so.7.2.1
2b40bd26e000-2b40bd46e000 ---p 00008000 ca:01 1987645 /usr/lib/libltdl.so.7.2.1
2b40bd46e000-2b40bd46f000 r--p 00008000 ca:01 1987645 /usr/lib/libltdl.so.7.2.1
2b40bd46f000-2b40bd470000 rw-p 00009000 ca:01 1987645 /usr/lib/libltdl.so.7.2.1
2b40bd470000-2b40bd495000 r-xp 00000000 ca:01 7700724 /lib/libpng12.so.0.42.0
2b40bd495000-2b40bd695000 ---p 00025000 ca:01 7700724 /lib/libpng12.so.0.42.0
2b40bd695000-2b40bd696000 r--p 00025000 ca:01 7700724 /lib/libpng12.so.0.42.0
2b40bd696000-2b40bd697000 rw-p 00026000 ca:01 7700724 /lib/libpng12.so.0.42.0
2b40bd697000-2b40bd6f6000 r-xp 00000000 ca:01 1987768 /usr/lib/libtiff.so.4.3.2
2b40bd6f6000-2b40bd8f6000 ---p 0005f000 ca:01 1987768 /usr/lib/libtiff.so.4.3.2
2b40bd8f6000-2b40bd8f8000 r--p 0005f000 ca:01 1987768 /usr/lib/libtiff.so.4.3.2
2b40bd8f8000-2b40bd8f9000 rw-p 00061000 ca:01 1987768 /usr/lib/libtiff.so.4.3.2
2b40bd8f9000-2b40bd90f000 r-xp 00000000 ca:01 7700747 /lib/libz.so.1.2.3.3
2b40bd90f000-2b40bdb0e000 ---p 00016000 ca:01 7700747 /lib/libz.so.1.2.3.3
2b40bdb0e000-2b40bdb0f000 r--p 00015000 ca:01 7700747 /lib/libz.so.1.2.3.3
2b40bdb0f000-2b40bdb10000 rw-p 00016000 ca:01 7700747 /lib/libz.so.1.2.3.3
2b40bdb10000-2b40bdb4f000 r-xp 00000000 ca:01 1987713 /usr/lib/libproj.so.0.6.6
2b40bdb4f000-2b40bdd4f000 ---p 0003f000 ca:01 1987713 /usr/lib/libproj.so.0.6.6
2b40bdd4f000-2b40bdd50000 r--p 0003f000 ca:01 1987713 /usr/lib/libproj.so.0.6.6
2b40bdd50000-2b40bdd52000 rw-p 00040000 ca:01 1987713 /usr/lib/libproj.so.0.6.6
2b40bdd52000-2b40bde9a000 r-xp 00000000 ca:01 1987617 /usr/lib/libicuuc.so.42.1
2b40bde9a000-2b40be09a000 ---p 00148000 ca:01 1987617 /usr/lib/libicuuc.so.42.1
2b40be09a000-2b40be0a8000 r--p 00148000 ca:01 1987617 /usr/lib/libicuuc.so.42.1
2b40be0a8000-2b40be0ab000 rw-p 00156000 ca:01 1987617 /usr/lib/libicuuc.so.42.1
2b40be0ab000-2b40be0ad000 rw-p 00000000 00:00 0
2b40be0ad000-2b40be0cb000 r-xp 00000000 ca:01 1983017 /usr/lib/libboost_filesystem.so.1.49.0
2b40be0cb000-2b40be2ca000 ---p 0001e000 ca:01 1983017 /usr/lib/libboost_filesystem.so.1.49.0
2b40be2ca000-2b40be2cb000 r--p 0001d000 ca:01 1983017 /usr/lib/libboost_filesystem.so.1.49.0
2b40be2cb000-2b40be2cc000 rw-p 0001e000 ca:01 1983017 /usr/lib/libboost_filesystem.so.1.49.0
2b40be2cc000-2b40be2cf000 r-xp 00000000 ca:01 1982630 /usr/lib/libboost_system.so.1.49.0Aborted
make: *** [test] Error 134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment