go-spatial / tegola

Tegola is a Mapbox Vector Tile server written in Go
http://tegola.io/
MIT License
1.29k stars 196 forks source link

Fatal error on [IO wait] #561

Open stvno opened 5 years ago

stvno commented 5 years ago

While running the official tegola docker 0.8.1 with the data in postgis and an S3 cache (digital oceans spaces) I get seemingly random fatal failures when seeding my cache. I'm using a tilelist to seed about 400k tiles and this is the second time Tegola crashed with an [IO wait] message. This time I did get the entire stacktace, see below. If I rerun the seed it wil continue beyond the last tile before the crash, as such I do not think it is a data issue

runtime: s.allocCount= 127 s.nelems= 128                                                                                                                                     
fatal error: s.allocCount != s.nelems && freeIndex == s.nelems                                                                                                                        

goroutine 128773459 [running]:                                                                                                                                                  
runtime.throw(0xdae3ad, 0x31)                                                                                                                                           
        /usr/local/go/src/runtime/panic.go:608 +0x72 fp=0xc000071760 sp=0xc000071730 pc=0x433142                                                                        
runtime.(*mcache).nextFree(0x7ff4bcd89880, 0xb, 0x1, 0x0, 0x1)                                                                                                               
        /usr/local/go/src/runtime/malloc.go:746 +0x250 fp=0xc0000717b8 sp=0xc000071760 pc=0x413d80                                                               
runtime.mallocgc(0x40, 0xd45460, 0x1, 0x2)                                                                                                                                      
        /usr/local/go/src/runtime/malloc.go:903 +0x793 fp=0xc000071858 sp=0xc0000717b8 pc=0x414533                                                                 
runtime.makeslice(0xd45460, 0x0, 0x4, 0xc05da786e0, 0x2, 0x100000000000020)                                                                                              
        /usr/local/go/src/runtime/slice.go:70 +0x77 fp=0xc000071888 sp=0xc000071858 pc=0x448f07                                                                    
github.com/go-spatial/tegola/maths/makevalid/plyg.(*Builder).CurrentRing(0xc000071dc0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x19, 0x40e0d2aaaaaaaaab, 0x40c334aaaaaaaaab, 0x1735301, ...)  
        /go/src/github.com/go-spatial/tegola/maths/makevalid/plyg/builder.go:38 +0xc6 fp=0xc000071990 sp=0xc000071888 pc=0x9c8cf6                                 
github.com/go-spatial/tegola/maths/makevalid/plyg.(*Builder).AddPts(0xc000071dc0, 0x40e0d2aaaaaaaa02, 0xc034003410, 0x2, 0xf, 0xc034003510, 0x1, 0xf, 0x0, 0x0, ...)           
        /go/src/github.com/go-spatial/tegola/maths/makevalid/plyg/builder.go:109 +0x5f4 fp=0xc000071a90 sp=0xc000071990 pc=0x9c9c84                                      
github.com/go-spatial/tegola/maths/makevalid/plyg.(*RingCol).addPts(0xc000071e60, 0xe94540, 0xc07e5b6d00, 0xc000071dc0, 0xc034003410, 0x2, 0xf, 0xc034003510, 0x1, 0xf)      
        /go/src/github.com/go-spatial/tegola/maths/makevalid/plyg/ring.go:174 +0x26b fp=0xc000071c18 sp=0xc000071a90 pc=0x9cb85b                                               
github.com/go-spatial/tegola/maths/makevalid/plyg.BuildRingCol(0xe9f400, 0xc0001f4300, 0xe94540, 0xc07e5b6d00, 0xc034003400, 0x4, 0x10, 0xc034003500, 0x4, 0x10, ...)           
        /go/src/github.com/go-spatial/tegola/maths/makevalid/plyg/ring.go:556 +0x2bb fp=0xc000071e08 sp=0xc000071c18 pc=0x9cdb0b                                               
github.com/go-spatial/tegola/maths/makevalid.destructure5.func2(0xb, 0xe9f400, 0xc0001f4300)                                                                                   
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:255 +0x2c4 fp=0xc000071fc8 sp=0xc000071e08 pc=0x9d6eb4                                                                        
runtime.goexit()                                                                                                                                                               
        /usr/local/go/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc000071fd0 sp=0xc000071fc8 pc=0x460001                                                                            
created by github.com/go-spatial/tegola/maths/makevalid.destructure5                                                                                                         
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:283 +0x6ba              

goroutine 1 [select]:                                                                                                                                                                                   [689/49552]
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork(0xe9f400, 0xc0001f4300, 0xc000310050, 0xc00019a070, 0x1, 0x1, 0xc, 0xc000344100, 0x1, 0x2)                            
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:187 +0x334                                                                                       
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.tileListCommand(0x16cad20, 0xc00020e930, 0x1, 0x7, 0x0, 0x0)                                                  
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/tile_list.go:96 +0x2e2                                                                         
github.com/go-spatial/tegola/vendor/github.com/go-spatial/cobra.(*Command).execute(0x16cad20, 0xc00020e8c0, 0x7, 0x7, 0x16cad20, 0xc00020e8c0)                      
        /go/src/github.com/go-spatial/tegola/vendor/github.com/go-spatial/cobra/command.go:762 +0x473                                                             
github.com/go-spatial/tegola/vendor/github.com/go-spatial/cobra.(*Command).ExecuteC(0x16c9ee0, 0x1, 0xd8f053, 0x1)                                                                    
        /go/src/github.com/go-spatial/tegola/vendor/github.com/go-spatial/cobra/command.go:852 +0x2fd                                                     
github.com/go-spatial/tegola/vendor/github.com/go-spatial/cobra.(*Command).Execute(0x16c9ee0, 0x1b, 0x16ca3a0)                                                                  
        /go/src/github.com/go-spatial/tegola/vendor/github.com/go-spatial/cobra/command.go:800 +0x2b                                                         
main.main()                                                                                                                                                                    
        /go/src/github.com/go-spatial/tegola/cmd/tegola/main.go:13 +0x3f                                                                                                 

goroutine 5 [syscall, 87 minutes]:                                                                                                                                             
os/signal.signal_recv(0x0)                                                                                                                                               
        /usr/local/go/src/runtime/sigqueue.go:139 +0x9c                                                                                                                        
os/signal.loop()                                                                                                                                                               
        /usr/local/go/src/os/signal/signal_unix.go:23 +0x22                                                                                                                  
created by os/signal.init.0                                                                                                                                                    
        /usr/local/go/src/os/signal/signal_unix.go:29 +0x41                                                                                                                     

goroutine 39 [select, 87 minutes]:                                                                                                                                               
github.com/go-spatial/tegola/internal/cmd.(*contextType).signalHandler(0xc000124080)                                                                                         
        /go/src/github.com/go-spatial/tegola/internal/cmd/main.go:132 +0xdd                                                                                         
created by github.com/go-spatial/tegola/internal/cmd.NewContext                                                                                                                 
        /go/src/github.com/go-spatial/tegola/internal/cmd/main.go:174 +0x1a1                                                                                                 

goroutine 40 [select, 87 minutes]:                                                                                                                                              
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.tileListCommand.func1(0xe9f400, 0xc0001f4300, 0xc00026a0d0)                                                                   
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/tile_list.go:77 +0xc2                                                                                 
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.tileListCommand                                                                                            
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/tile_list.go:76 +0x144                                                                                     

goroutine 41 [select]:                                                                                                                                                          
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.generateTilesForTileList.func1(0xc000310050, 0xe954a0, 0xc00031a010, 0x1, 0x2, 0x0, 0xd8f8a7, 0x1, 0x1, 0x0, ...)
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/tile_list.go:126 +0x35f                                                                                
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.generateTilesForTileList                                                                              
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/tile_list.go:105 +0x135                                                                                      

goroutine 42 [select]:                                                                                                                                                         
net/http.(*persistConn).roundTrip(0xc005f746c0, 0xc085f43230, 0x0, 0x0, 0x0)                                                                                             
        /usr/local/go/src/net/http/transport.go:2101 +0x56a                                                                                                                  
net/http.(*Transport).roundTrip(0x16c9540, 0xc03627e700, 0x203021, 0xc055c25260, 0x6fb50d)                                                                                     
        /usr/local/go/src/net/http/transport.go:465 +0x9b1                                                                                                                      
net/http.(*Transport).RoundTrip(0x16c9540, 0xc03627e700, 0x16c9540, 0x0, 0x0)                                                                                                  
        /usr/local/go/src/net/http/roundtrip.go:17 +0x35                                                                                                                       
net/http.send(0xc03627e700, 0xe95180, 0x16c9540, 0x0, 0x0, 0x0, 0xc0105168f0, 0x0, 0xc055c252f0, 0x1)                                                                                              
        /usr/local/go/src/net/http/client.go:250 +0x14b                                                                                                                        
net/http.(*Client).send(0x1734440, 0xc03627e700, 0x0, 0x0, 0x0, 0xc0105168f0, 0x0, 0x1, 0x0)                                                                                   
        /usr/local/go/src/net/http/client.go:174 +0xfa                                                                                                                       
net/http.(*Client).do(0x1734440, 0xc03627e700, 0x0, 0x0, 0x0)                                                                                                    
        /usr/local/go/src/net/http/client.go:641 +0x2a8                                                                                                                         
net/http.(*Client).Do(0x1734440, 0xc03627e700, 0x9, 0x0, 0xc055c25500)                                                                                           
        /usr/local/go/src/net/http/client.go:509 +0x35
github.com/go-spatial/tegola/vendor/github.com/aws/aws-sdk-go/aws/corehandlers.sendFollowRedirects(0xc033c39c00, 0xc085f43170, 0x0, 0x0)                                    
        /go/src/github.com/go-spatial/tegola/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go:134 +0x3b                                            
github.com/go-spatial/tegola/vendor/github.com/aws/aws-sdk-go/aws/corehandlers.glob..func3(0xc033c39c00)                                                         
        /go/src/github.com/go-spatial/tegola/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers.go:126 +0x80                                                
github.com/go-spatial/tegola/vendor/github.com/aws/aws-sdk-go/aws/request.(*HandlerList).Run(0xc033c39d90, 0xc033c39c00)                                          
        /go/src/github.com/go-spatial/tegola/vendor/github.com/aws/aws-sdk-go/aws/request/handlers.go:195 +0x98                                                                       
github.com/go-spatial/tegola/vendor/github.com/aws/aws-sdk-go/aws/request.(*Request).Send(0xc033c39c00, 0x0, 0x0)                                         
        /go/src/github.com/go-spatial/tegola/vendor/github.com/aws/aws-sdk-go/aws/request/request.go:515 +0x168                                                                 
github.com/go-spatial/tegola/vendor/github.com/aws/aws-sdk-go/service/s3.(*S3).PutObject(0xc00000e5f0, 0xc081b88e00, 0xe99480, 0xc091012720, 0x16)           
        /go/src/github.com/go-spatial/tegola/vendor/github.com/aws/aws-sdk-go/service/s3/api.go:5768 +0x4d                                                                     
github.com/go-spatial/tegola/cache/s3.(*Cache).Set(0xc00027f800, 0xc033a6d480, 0xc04059c000, 0xac4f, 0x12f10, 0x401025fd8adab9f5, 0x4049fa786c22680a)                    
        /go/src/github.com/go-spatial/tegola/cache/s3/s3.go:283 +0x394                                                                                          
github.com/go-spatial/tegola/atlas.(*Atlas).SeedMapTile(0x1734400, 0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:96 +0x26e                                                                                                    
github.com/go-spatial/tegola/atlas.SeedMapTile(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:215 +0xa9                                                                                                          
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.seedWorker.func1(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0xc00273a3f0, 0x0, 0x0)                                        
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/worker.go:83 +0x235                                                                                          
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork.func1(0xc00009e900, 0xc000322360, 0xc00026a1d0, 0xc000344100, 0xe9f400, 0xc0001f4300, 0xc0002a60c0, 0x0)               
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:143 +0x14c                                                                               
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork                                                                                                              
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:132 +0x171                                                                                        

goroutine 43 [runnable]:                                                                                                                                                        
github.com/go-spatial/tegola/maths.(*XYOrderedEventPtr).Less(0xc00920f200, 0x41946, 0x43f04, 0x43a01)                                                                        
        <autogenerated>:1 +0x81                                                                                                                                                       
sort.doPivot(0xe9d180, 0xc00920f200, 0x41946, 0x45bb1, 0x13, 0x45bb2)                                                                                                           
        /usr/local/go/src/sort/sort.go:123 +0x1a7                                                                                                                               
sort.quickSort(0xe9d180, 0xc00920f200, 0x41946, 0x45bb1, 0x22)                                                                                                          
        /usr/local/go/src/sort/sort.go:190 +0x9a                                                                                                                        
sort.quickSort(0xe9d180, 0xc00920f200, 0x1f1ca, 0x4e50f, 0x24)                                                                                                               
        /usr/local/go/src/sort/sort.go:197 +0x133                                                                                                                
sort.Sort(0xe9d180, 0xc00920f200)                                                                                                                                               
        /usr/local/go/src/sort/sort.go:218 +0x79                                                                                                                   
github.com/go-spatial/tegola/maths.NewEventQueue(0xc01ece8000, 0x6ad9e, 0x6c700, 0x2, 0x0, 0x20)                                                                         
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:61 +0x1bf                                                                                     
github.com/go-spatial/tegola/maths.FindIntersects(0xc01ece8000, 0x6ad9e, 0x6c700, 0xc055c20a38)                                                                                
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:464 +0x43                                                                                    
github.com/go-spatial/tegola/maths/makevalid.splitPoints(0xe9f400, 0xc0001f4300, 0xc01ece8000, 0x6ad9e, 0x6c700, 0xc0a7c2c000, 0x6ad9e, 0x6ad9e, 0x10, 0xc059d07250)           
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:52 +0x2a3                                                                                      
github.com/go-spatial/tegola/maths/makevalid.splitSegments(0xe9f400, 0xc0001f4300, 0xc01ece8000, 0x6ad9e, 0x6c700, 0xc03a139280, 0x6c700, 0x7ff4bcd89f40, 0x0, 0x45b310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:88 +0x74                                                                                             
github.com/go-spatial/tegola/maths/makevalid.destructure5(0xe9f400, 0xc0001f4300, 0xe94540, 0xc037de8400, 0xc05c9ac120, 0xc090bba000, 0x18f, 0x18f, 0x4eeacb, 0xc0001f4310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:188 +0x15f                                                                                                
github.com/go-spatial/tegola/maths/makevalid.MakeValid(0xe9f400, 0xc0001f4300, 0xe94540, 0xc037de8400, 0xc05c9ac120, 0xc05af32000, 0x18f, 0x200, 0x0, 0xc000090a80, ...)       
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:311 +0xac                                                                                                                     
github.com/go-spatial/tegola/maths/validate.makePolygonValid(0xe9f400, 0xc0001f4300, 0xc037de8400, 0xc05c9ac120, 0xc0201ac600, 0x11c, 0x11c, 0x0, 0x0, 0x0, ...)               
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:58 +0x13d                                                                                              
github.com/go-spatial/tegola/maths/validate.CleanGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc07c4bb9c0, 0xc05517e320, 0xc07c4bb9c0, 0x2, 0x18, 0xc8ece0)                   
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:118 +0x610                                                                               
github.com/go-spatial/tegola/mvt.encodeGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc0541b7b60, 0xc0016ce230, 0x0, 0xc09fdfd560, 0xc0b4b6fba0, 0x6, 0x8, ...)                   
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:597 +0x271                                                                                           
github.com/go-spatial/tegola/mvt.(*Feature).VTileFeature(0xc09fdfd560, 0xe9f400, 0xc0001f4300, 0xc037de8080, 0x4, 0x4, 0xc018b7e100, 0xf, 0x10, 0xc0016ce230, ...)             
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:98 +0x158                                                                                                       
github.com/go-spatial/tegola/mvt.(*Layer).VTileLayer(0xc055c21648, 0xe9f400, 0xc0001f4300, 0xc0016ce230, 0x0, 0x20, 0xc0b3a0e020)                               
        /go/src/github.com/go-spatial/tegola/mvt/layer.go:87 +0x2ef                                                                                              
github.com/go-spatial/tegola/mvt.(*Tile).VTile(0xc09fdfd858, 0xe9f400, 0xc0001f4300, 0xc0016ce230, 0x0, 0x0, 0xc00023d918)                                          
        /go/src/github.com/go-spatial/tegola/mvt/tile.go:47 +0x150                                                                                                
github.com/go-spatial/tegola/atlas.Map.Encode(0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, 0xc07ba51200, 0xb, ...)             
        /go/src/github.com/go-spatial/tegola/atlas/map.go:225 +0x2f8                                                                                      
github.com/go-spatial/tegola/atlas.(*Atlas).SeedMapTile(0x1734400, 0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, ...) 
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:83 +0x117                                                                                        
github.com/go-spatial/tegola/atlas.SeedMapTile(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:215 +0xa9                                                                                                    
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.seedWorker.func1(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0xc000f75230, 0x0, 0x0)                           
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/worker.go:83 +0x235                                                                                          
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork.func1(0xc00009e900, 0xc000322360, 0xc00026a1d0, 0xc000344100, 0xe9f400, 0xc0001f4300, 0xc0002a60c0, 0x1)        
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:143 +0x14c                                                                                          
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork                                                                                                            
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:132 +0x171                                                                                        

goroutine 44 [semacquire]:                                                                                                                                                      
sync.runtime_Semacquire(0xc014d92d48)                                                                                                                               
        /usr/local/go/src/runtime/sema.go:56 +0x39                                                                                                                               
sync.(*WaitGroup).Wait(0xc014d92d40)                                                                                                                                         
        /usr/local/go/src/sync/waitgroup.go:130 +0x64                                                                                                               
github.com/go-spatial/tegola/maths/makevalid/plyg.GenerateMultiPolygon(0xc09ecc8000, 0x489, 0x489, 0x1, 0xc0001f4300, 0x489)                                                    
        /go/src/github.com/go-spatial/tegola/maths/makevalid/plyg/ring.go:977 +0x240                                                                                         
github.com/go-spatial/tegola/maths/makevalid.destructure5(0xe9f400, 0xc0001f4300, 0xe94540, 0xc07e83abc0, 0xc084a23680, 0xc0b4b72380, 0x23, 0x23, 0x4eeacb, 0xc0001f4310, ...)        
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:300 +0x882                                                                                                 
github.com/go-spatial/tegola/maths/makevalid.MakeValid(0xe9f400, 0xc0001f4300, 0xe94540, 0xc07e83abc0, 0xc084a23680, 0xc02b218c00, 0x23, 0x40, 0x0, 0xc000578000, ...)          
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:311 +0xac                                                                                          
github.com/go-spatial/tegola/maths/validate.makePolygonValid(0xe9f400, 0xc0001f4300, 0xc07e83abc0, 0xc084a23680, 0xc0138da160, 0x1, 0x1, 0x0, 0x0, 0x0, ...)            
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:58 +0x13d                                                                                            
github.com/go-spatial/tegola/maths/validate.CleanGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc0479efc80, 0xc084a23660, 0xc0479efc80, 0x1, 0x10, 0xc8ece0)       
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:118 +0x610                                                                                              
github.com/go-spatial/tegola/mvt.encodeGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc037d42000, 0xc0a7c2a070, 0x0, 0xc09fdfb560, 0xc04479ce20, 0x4, 0x4, ...)      
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:597 +0x271                                                                                                   
github.com/go-spatial/tegola/mvt.(*Feature).VTileFeature(0xc09fdfb560, 0xe9f400, 0xc0001f4300, 0xc044b12080, 0x2, 0x2, 0xc044b1c000, 0x36, 0x40, 0xc0a7c2a070, ...)
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:98 +0x158                                                                                                          
github.com/go-spatial/tegola/mvt.(*Layer).VTileLayer(0xc09fdfb648, 0xe9f400, 0xc0001f4300, 0xc0a7c2a070, 0x3, 0xc044b12060, 0x2)                                  
        /go/src/github.com/go-spatial/tegola/mvt/layer.go:87 +0x2ef                                                                                                            
github.com/go-spatial/tegola/mvt.(*Tile).VTile(0xc09fdfb858, 0xe9f400, 0xc0001f4300, 0xc0a7c2a070, 0x0, 0x0, 0xc00023d918)                                               
        /go/src/github.com/go-spatial/tegola/mvt/tile.go:47 +0x150                                                                                                           
github.com/go-spatial/tegola/atlas.Map.Encode(0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, 0xc08406c600, 0xb, ...)      
        /go/src/github.com/go-spatial/tegola/atlas/map.go:225 +0x2f8                                                                                                            
github.com/go-spatial/tegola/atlas.(*Atlas).SeedMapTile(0x1734400, 0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:83 +0x117                                                                                                          
github.com/go-spatial/tegola/atlas.SeedMapTile(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, ...)                    
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:215 +0xa9                                                                                                          
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.seedWorker.func1(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0xc03eb44300, 0x0, 0x0)                                          
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/worker.go:83 +0x235                                                                                        
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork.func1(0xc00009e900, 0xc000322360, 0xc00026a1d0, 0xc000344100, 0xe9f400, 0xc0001f4300, 0xc0002a60c0, 0x2)
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:143 +0x14c                                                                                           
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork                                                                                              
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:132 +0x171                                                                                                                                                                                  
goroutine 45 [runnable]:                                                                                                                                        
github.com/go-spatial/tegola/maths.(*XYOrderedEventPtr).Less(0xc07d340460, 0x0, 0x90be7, 0x6ad01)                                                                
        <autogenerated>:1 +0x81                                                                                                                                     
sort.doPivot(0xe9d180, 0xc07d340460, 0x0, 0xd5b3c, 0x5cc15e, 0xc0159d0000)                                                                                        
        /usr/local/go/src/sort/sort.go:123 +0x1a7                                                                                                                                     
sort.quickSort(0xe9d180, 0xc07d340460, 0x0, 0xd5b3c, 0x28)                                                                                                
        /usr/local/go/src/sort/sort.go:190 +0x9a                                                                                                                                
sort.Sort(0xe9d180, 0xc07d340460)                                                                                                                            
        /usr/local/go/src/sort/sort.go:218 +0x79                                                                                                                               
github.com/go-spatial/tegola/maths.NewEventQueue(0xc0d4406000, 0x6ad9e, 0x6c700, 0x0, 0xffffffffffffffff, 0x100)                                                         
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:61 +0x1bf                                                                                  
github.com/go-spatial/tegola/maths.FindIntersects(0xc0d4406000, 0x6ad9e, 0x6c700, 0xc0664aca38)                                                                                
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:464 +0x43                                                                                           
github.com/go-spatial/tegola/maths/makevalid.splitPoints(0xe9f400, 0xc0001f4300, 0xc0d4406000, 0x6ad9e, 0x6c700, 0xc06f354000, 0x6ad9e, 0x6ad9e, 0x10, 0xc02e80fe90)           
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:52 +0x2a3                                                                                            
github.com/go-spatial/tegola/maths/makevalid.splitSegments(0xe9f400, 0xc0001f4300, 0xc0d4406000, 0x6ad9e, 0x6c700, 0xc06d640480, 0x6c700, 0x7ff4bcd876c0, 0x0, 0x45b310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:88 +0x74                                                                                             
github.com/go-spatial/tegola/maths/makevalid.destructure5(0xe9f400, 0xc0001f4300, 0xe94540, 0xc001c9d5c0, 0xc003d92820, 0xc090bc3800, 0x18f, 0x18f, 0x4eeacb, 0xc0001f4310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:188 +0x15f                                                                                     
github.com/go-spatial/tegola/maths/makevalid.MakeValid(0xe9f400, 0xc0001f4300, 0xe94540, 0xc001c9d5c0, 0xc003d92820, 0xc000983000, 0x18f, 0x200, 0xc05b249db8, 0xc048fe8d00, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:311 +0xac                                                                                               
github.com/go-spatial/tegola/maths/validate.makePolygonValid(0xe9f400, 0xc0001f4300, 0xc001c9d5c0, 0xc003d92820, 0xc05b248c00, 0x11c, 0x11c, 0x0, 0x0, 0x0, ...)    
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:58 +0x13d                                                                                               
github.com/go-spatial/tegola/maths/validate.CleanGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc0382469a0, 0xc03bce4000, 0xc0382469a0, 0x2, 0x18, 0xc8ece0)                   
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:118 +0x610                                                                                                    
github.com/go-spatial/tegola/mvt.encodeGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc02a9c6820, 0xc05d8f7960, 0x0, 0xc0664ad560, 0xc07c688500, 0x6, 0x8, ...)                   
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:597 +0x271                                                                                                          
github.com/go-spatial/tegola/mvt.(*Feature).VTileFeature(0xc0664ad560, 0xe9f400, 0xc0001f4300, 0xc001e46c00, 0x4, 0x4, 0xc03627ec00, 0xf, 0x10, 0xc05d8f7960, ...)      
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:98 +0x158                                                                                                   
github.com/go-spatial/tegola/mvt.(*Layer).VTileLayer(0xc0664ad648, 0xe9f400, 0xc0001f4300, 0xc05d8f7960, 0x0, 0x20, 0xc037535840)                                            
        /go/src/github.com/go-spatial/tegola/mvt/layer.go:87 +0x2ef                                                                                              
github.com/go-spatial/tegola/mvt.(*Tile).VTile(0xc0664ad858, 0xe9f400, 0xc0001f4300, 0xc05d8f7960, 0x0, 0x0, 0xc00023d918)                                                      
        /go/src/github.com/go-spatial/tegola/mvt/tile.go:47 +0x150                                                                                                 
github.com/go-spatial/tegola/atlas.Map.Encode(0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, 0xc060c92600, 0xb, ...)
        /go/src/github.com/go-spatial/tegola/atlas/map.go:225 +0x2f8                                                                                               
github.com/go-spatial/tegola/atlas.(*Atlas).SeedMapTile(0x1734400, 0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:83 +0x117                                                                                             
github.com/go-spatial/tegola/atlas.SeedMapTile(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:215 +0xa9                                                                                                    
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.seedWorker.func1(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0xc0492649c0, 0x0, 0x0)                                        
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/worker.go:83 +0x235                                                                                          
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork.func1(0xc00009e900, 0xc000322360, 0xc00026a1d0, 0xc000344100, 0xe9f400, 0xc0001f4300, 0xc0002a60c0, 0x3)               
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:143 +0x14c                                                                                          
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork                                                                                                            
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:132 +0x171                                                                                                              

goroutine 46 [runnable]:                                                                                                                                                       
sort.Sort(0xe9d740, 0xc00440b6a0)                                                                                                                                            
        /usr/local/go/src/sort/sort.go:216 +0x88                                                                                                                 
sort.Ints(0xc05e02c1e0, 0x1e, 0x1e)                                                                                                                                             
        /usr/local/go/src/sort/sort.go:307 +0x6d                                                                                                                 
github.com/go-spatial/tegola/maths.FindIntersectsWithEventQueue(0xc0d6e0c000, 0xc0de3bc000, 0xd5b3c, 0xd5b3c, 0xc0d6e0c000, 0x6ad9e, 0x6c700, 0xc007406a38)                        
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:188 +0x2ff                                                                                             
github.com/go-spatial/tegola/maths.FindIntersects(0xc0d6e0c000, 0x6ad9e, 0x6c700, 0xc007406a38)                                                                 
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:465 +0x92                                                                                   
github.com/go-spatial/tegola/maths/makevalid.splitPoints(0xe9f400, 0xc0001f4300, 0xc0d6e0c000, 0x6ad9e, 0x6c700, 0xc0d7b9a000, 0x6ad9e, 0x6ad9e, 0x10, 0xc04f32c250)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:52 +0x2a3                                                                               
github.com/go-spatial/tegola/maths/makevalid.splitSegments(0xe9f400, 0xc0001f4300, 0xc0d6e0c000, 0x6ad9e, 0x6c700, 0xc054b32160, 0x6c700, 0x7ff4bcd9a1e8, 0xc0004ffb00, 0x45b310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:88 +0x74                                                                        
github.com/go-spatial/tegola/maths/makevalid.destructure5(0xe9f400, 0xc0001f4300, 0xe94540, 0xc000bf0180, 0xc0cfe0d5e0, 0xc0d4110000, 0x18f, 0x18f, 0x4eeacb, 0xc0001f4310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:188 +0x15f                                                                              
github.com/go-spatial/tegola/maths/makevalid.MakeValid(0xe9f400, 0xc0001f4300, 0xe94540, 0xc000bf0180, 0xc0cfe0d5e0, 0xc020e77000, 0x18f, 0x200, 0x0, 0xc0004d2380, ...)       
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:311 +0xac                                                                                           
github.com/go-spatial/tegola/maths/validate.makePolygonValid(0xe9f400, 0xc0001f4300, 0xc000bf0180, 0xc0cfe0d5e0, 0xc038170c00, 0x11c, 0x11c, 0x0, 0x0, 0x0, ...)
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:58 +0x13d                                                                                              
github.com/go-spatial/tegola/maths/validate.CleanGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc002158700, 0xc0cfe0d4c0, 0xc002158700, 0x2, 0x18, 0xc8ece0)               
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:118 +0x610                                                                                             
github.com/go-spatial/tegola/mvt.encodeGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc00136e420, 0xc00020e3f0, 0x0, 0xc007407560, 0xc02b7750a0, 0x6, 0x8, ...)                  
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:597 +0x271                                                                                                       
github.com/go-spatial/tegola/mvt.(*Feature).VTileFeature(0xc007407560, 0xe9f400, 0xc0001f4300, 0xc0006d8100, 0x4, 0x4, 0xc00f586100, 0xd, 0x10, 0xc00020e3f0, ...)             
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:98 +0x158                                                                                                           
github.com/go-spatial/tegola/mvt.(*Layer).VTileLayer(0xc007407648, 0xe9f400, 0xc0001f4300, 0xc00020e3f0, 0x0, 0x20, 0xc05a418020)                                   
        /go/src/github.com/go-spatial/tegola/mvt/layer.go:87 +0x2ef                                                                                                              
github.com/go-spatial/tegola/mvt.(*Tile).VTile(0xc007407858, 0xe9f400, 0xc0001f4300, 0xc00020e3f0, 0x0, 0x0, 0xc00023d918)                                                   
        /go/src/github.com/go-spatial/tegola/mvt/tile.go:47 +0x150                                                                                                  
github.com/go-spatial/tegola/atlas.Map.Encode(0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, 0xc085ee9200, 0xb, ...)       
        /go/src/github.com/go-spatial/tegola/atlas/map.go:225 +0x2f8                                                                                                         
github.com/go-spatial/tegola/atlas.(*Atlas).SeedMapTile(0x1734400, 0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, ...)       
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:83 +0x117                                                                                                           
github.com/go-spatial/tegola/atlas.SeedMapTile(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, ...) 
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:215 +0xa9                                                                                                   
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.seedWorker.func1(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0xc04358d470, 0x0, 0x0)                                   
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/worker.go:83 +0x235                                                                                        
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork.func1(0xc00009e900, 0xc000322360, 0xc00026a1d0, 0xc000344100, 0xe9f400, 0xc0001f4300, 0xc0002a60c0, 0x4)
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:143 +0x14c                                                                                           
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork                                                                                                
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:132 +0x171                                                                                    

goroutine 47 [runnable]:                                                                                                                                                       
github.com/go-spatial/tegola/maths/hitmap.(*segEvents).Less(0xc0453c0060, 0x0, 0x1497, 0xe01)                                                                     
        <autogenerated>:1 +0x81                                                                                                                                                
sort.doPivot(0xe9d200, 0xc0453c0060, 0x0, 0x1ded, 0x99898e, 0xc054e76000)                                                                                                
        /usr/local/go/src/sort/sort.go:123 +0x1a7                                                                                                                            
sort.quickSort(0xe9d200, 0xc0453c0060, 0x0, 0x1ded, 0x1a)                                                                                                                      
        /usr/local/go/src/sort/sort.go:190 +0x9a                                                                                                                                
sort.Sort(0xe9d200, 0xc0453c0060)                                                                                                                                              
        /usr/local/go/src/sort/sort.go:218 +0x79                                                                                                                               
github.com/go-spatial/tegola/maths/hitmap.NewSegment(0xd15a01, 0xe95a00, 0xc060df7300, 0xc12c58f400000000, 0xc136935600000000, 0xc1201ea400000000, 0xc131e1d000000000, 0x1, 0x1, 0xc054e76000, ...)
        /go/src/github.com/go-spatial/tegola/maths/hitmap/hitmap.go:214 +0x28e                                                                                                 
github.com/go-spatial/tegola/maths/hitmap.NewFromPolygon(0xe95a40, 0xc07c3b2120, 0xc0b5574f80, 0x5e, 0x5e, 0x0, 0x0, 0x0, 0x0, 0x0)                                            
        /go/src/github.com/go-spatial/tegola/maths/hitmap/hitmap.go:284 +0x207                                                                                               
github.com/go-spatial/tegola/maths/hitmap.NewFromMultiPolygon(0xe95a20, 0xc07c3b2080, 0xc07c382d00, 0x11, 0x20, 0x0, 0x0, 0x0, 0x0, 0x0)                         
        /go/src/github.com/go-spatial/tegola/maths/hitmap/hitmap.go:292 +0x149                                                                                                  
github.com/go-spatial/tegola/maths/hitmap.NewFromGeometry(0xd15600, 0xc07c3b2080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)                                        
        /go/src/github.com/go-spatial/tegola/maths/hitmap/hitmap.go:304 +0xf9                                                     
github.com/go-spatial/tegola/maths/validate.CleanGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc054164700, 0xc002dfb0c0, 0xc054164700, 0x2, 0x18, 0xc8ece0)                  
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:117 +0x557                                                                              
github.com/go-spatial/tegola/mvt.encodeGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc0c554ef00, 0xc000138230, 0x0, 0xc0664b1560, 0xc002dfb0a0, 0x6, 0x8, ...)    
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:597 +0x271                                                                                              
github.com/go-spatial/tegola/mvt.(*Feature).VTileFeature(0xc0664b1560, 0xe9f400, 0xc0001f4300, 0xc00635e180, 0x4, 0x4, 0xc08e4ab200, 0xd, 0x10, 0xc000138230, ...)
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:98 +0x158                                                                                                                 
github.com/go-spatial/tegola/mvt.(*Layer).VTileLayer(0xc0664b1648, 0xe9f400, 0xc0001f4300, 0xc000138230, 0x0, 0x20, 0xc08c214580)                         
        /go/src/github.com/go-spatial/tegola/mvt/layer.go:87 +0x2ef                                                                                                             
github.com/go-spatial/tegola/mvt.(*Tile).VTile(0xc0664b1858, 0xe9f400, 0xc0001f4300, 0xc000138230, 0x0, 0x0, 0xc00023d918)                                   
        /go/src/github.com/go-spatial/tegola/mvt/tile.go:47 +0x150                                                                                                             
github.com/go-spatial/tegola/atlas.Map.Encode(0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, 0xc05c17a000, 0xb, ...)
        /go/src/github.com/go-spatial/tegola/atlas/map.go:225 +0x2f8                                                                                            
github.com/go-spatial/tegola/atlas.(*Atlas).SeedMapTile(0x1734400, 0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:83 +0x117                                                                                                    
github.com/go-spatial/tegola/atlas.SeedMapTile(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:215 +0xa9                                                                                                          
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.seedWorker.func1(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0xc005c13950, 0x0, 0x0)                                        
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/worker.go:83 +0x235                                                                                          
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork.func1(0xc00009e900, 0xc000322360, 0xc00026a1d0, 0xc000344100, 0xe9f400, 0xc0001f4300, 0xc0002a60c0, 0x5)               
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:143 +0x14c                                                                               
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork                                                                                                              
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:132 +0x171                                                                                        

goroutine 48 [runnable]:                                                                                                                                                        
github.com/go-spatial/tegola/maths.FindIntersectsWithEventQueue(0xc0bff2e000, 0xc0d5a02000, 0xd5b3c, 0xd5b3c, 0xc0bff2e000, 0x6ad9e, 0x6c700, 0xc08870aa38)                  
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:168 +0xf1                                                                                                        
github.com/go-spatial/tegola/maths.FindIntersects(0xc0bff2e000, 0x6ad9e, 0x6c700, 0xc08870aa38)                                                                                 
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:465 +0x92                                                                                                  
github.com/go-spatial/tegola/maths/makevalid.splitPoints(0xe9f400, 0xc0001f4300, 0xc0bff2e000, 0x6ad9e, 0x6c700, 0xc07c788000, 0x6ad9e, 0x6ad9e, 0x10, 0xc02e80e000)    
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:52 +0x2a3                                                                                     
github.com/go-spatial/tegola/maths/makevalid.splitSegments(0xe9f400, 0xc0001f4300, 0xc0bff2e000, 0x6ad9e, 0x6c700, 0xc06cc41180, 0x6c700, 0x7ff4bcd99468, 0x0, 0x45b310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:88 +0x74                                                                               
github.com/go-spatial/tegola/maths/makevalid.destructure5(0xe9f400, 0xc0001f4300, 0xe94540, 0xc0626a2300, 0xc002a90cc0, 0xc090bbec00, 0x18f, 0x18f, 0x4eeacb, 0xc0001f4310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:188 +0x15f                                                                                    
github.com/go-spatial/tegola/maths/makevalid.MakeValid(0xe9f400, 0xc0001f4300, 0xe94540, 0xc0626a2300, 0xc002a90cc0, 0xc071ac5000, 0x18f, 0x200, 0x0, 0xc0005eca80, ...) 
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:311 +0xac                                                                                     
github.com/go-spatial/tegola/maths/validate.makePolygonValid(0xe9f400, 0xc0001f4300, 0xc0626a2300, 0xc002a90cc0, 0xc01fe82600, 0x11c, 0x11c, 0x0, 0x0, 0x0, ...)               
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:58 +0x13d                                                                                 
github.com/go-spatial/tegola/maths/validate.CleanGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc009551820, 0xc0897e4d00, 0xc009551820, 0x2, 0x18, 0xc8ece0)                     
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:118 +0x610                                                                                       
github.com/go-spatial/tegola/mvt.encodeGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc065a705c0, 0xc002986070, 0x0, 0xc08870b560, 0xc02107f7a0, 0x6, 0x8, ...)                
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:597 +0x271                                                                                                         
github.com/go-spatial/tegola/mvt.(*Feature).VTileFeature(0xc08870b560, 0xe9f400, 0xc0001f4300, 0xc0c8a37900, 0x4, 0x4, 0xc02eec8000, 0xd, 0x10, 0xc002986070, ...)              
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:98 +0x158                                                                                                          
github.com/go-spatial/tegola/mvt.(*Layer).VTileLayer(0xc08870b648, 0xe9f400, 0xc0001f4300, 0xc002986070, 0x0, 0xc08870b670, 0x4600c4)                                          
        /go/src/github.com/go-spatial/tegola/mvt/layer.go:87 +0x2ef                                                                                                                                
github.com/go-spatial/tegola/mvt.(*Tile).VTile(0xc08870b858, 0xe9f400, 0xc0001f4300, 0xc002986070, 0x0, 0x0, 0xc00023d918)                                                     
        /go/src/github.com/go-spatial/tegola/mvt/tile.go:47 +0x150                                                                                                             
github.com/go-spatial/tegola/atlas.Map.Encode(0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, 0xc08406c000, 0xb, ...)    
        /go/src/github.com/go-spatial/tegola/atlas/map.go:225 +0x2f8                                                                                             
github.com/go-spatial/tegola/atlas.(*Atlas).SeedMapTile(0x1734400, 0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, ...) 
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:83 +0x117                                                                                            
github.com/go-spatial/tegola/atlas.SeedMapTile(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, ...)              /go/src/github.com/go-spatial/tegola/atlas/atlas.go:215 +0xa9                                                                                                       
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.seedWorker.func1(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0xc03b6b0000, 0x0, 0x0)                           
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/worker.go:83 +0x235                                                                            
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork.func1(0xc00009e900, 0xc000322360, 0xc00026a1d0, 0xc000344100, 0xe9f400, 0xc0001f4300, 0xc0002a60c0, 0x6)   
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:143 +0x14c                                                                             
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork                                                                                                                   
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:132 +0x171                                                                     

goroutine 49 [runnable]:                                                                                                                                     
github.com/go-spatial/tegola/maths.(*XYOrderedEventPtr).Less(0xc03bfde500, 0x0, 0x131aa, 0x1a300)                                                                              
        <autogenerated>:1 +0x81                                                                                                                                          
sort.doPivot(0xe9d180, 0xc03bfde500, 0x0, 0x347a3, 0xf, 0x347a4)                                                                                                
        /usr/local/go/src/sort/sort.go:121 +0x149                                                                                                                              
sort.quickSort(0xe9d180, 0xc03bfde500, 0x0, 0x347a3, 0x26)                                                                                                               
        /usr/local/go/src/sort/sort.go:190 +0x9a                                                                                                                               
sort.quickSort(0xe9d180, 0xc03bfde500, 0x0, 0xd5b3c, 0x27)                                                                                                                     
        /usr/local/go/src/sort/sort.go:194 +0xf8                                                                                                                             
sort.Sort(0xe9d180, 0xc03bfde500)                                                                                                                                              
        /usr/local/go/src/sort/sort.go:218 +0x79                                                                                                                                
github.com/go-spatial/tegola/maths.NewEventQueue(0xc0cbbcc000, 0x6ad9e, 0x6c700, 0x2, 0x0, 0x20)                                                                    
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:61 +0x1bf                                                                                                   
github.com/go-spatial/tegola/maths.FindIntersects(0xc0cbbcc000, 0x6ad9e, 0x6c700, 0xc02ada4a38)                                                                              
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:464 +0x43                                                                                      
github.com/go-spatial/tegola/maths/makevalid.splitPoints(0xe9f400, 0xc0001f4300, 0xc0cbbcc000, 0x6ad9e, 0x6c700, 0xc061972000, 0x6ad9e, 0x6ad9e, 0x10, 0xc02e80fe80)            
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:52 +0x2a3                                                                                          
github.com/go-spatial/tegola/maths/makevalid.splitSegments(0xe9f400, 0xc0001f4300, 0xc0cbbcc000, 0x6ad9e, 0x6c700, 0xc07848eb40, 0x6c700, 0x7ff4bcd891c0, 0xc0004d4600, 0x45b310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:88 +0x74                                                                                              
github.com/go-spatial/tegola/maths/makevalid.destructure5(0xe9f400, 0xc0001f4300, 0xe94540, 0xc048292380, 0xc013f96860, 0xc084790600, 0x18f, 0x18f, 0x4eeacb, 0xc0001f4310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:188 +0x15f                                                                                         
github.com/go-spatial/tegola/maths/makevalid.MakeValid(0xe9f400, 0xc0001f4300, 0xe94540, 0xc048292380, 0xc013f96860, 0xc0c2305000, 0x18f, 0x200, 0x0, 0xc000578000, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:311 +0xac                                                                                               
github.com/go-spatial/tegola/maths/validate.makePolygonValid(0xe9f400, 0xc0001f4300, 0xc048292380, 0xc013f96860, 0xc08661f900, 0x11c, 0x11c, 0x0, 0x0, 0x0, ...) 
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:58 +0x13d                                                                                               
github.com/go-spatial/tegola/maths/validate.CleanGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc01a44e840, 0xc05c9ac000, 0xc01a44e840, 0x2, 0x18, 0xc8ece0)         
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:118 +0x610                                                                                       
github.com/go-spatial/tegola/mvt.encodeGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc06cad0320, 0xc002986150, 0x0, 0xc02ada5560, 0xc0063201c0, 0x6, 0x8, ...)      
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:597 +0x271                                                                                                         
github.com/go-spatial/tegola/mvt.(*Feature).VTileFeature(0xc02ada5560, 0xe9f400, 0xc0001f4300, 0xc065ab24c0, 0x4, 0x4, 0xc0950c0300, 0xf, 0x10, 0xc002986150, ...)
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:98 +0x158                                                                                                          
github.com/go-spatial/tegola/mvt.(*Layer).VTileLayer(0xc02ada5648, 0xe9f400, 0xc0001f4300, 0xc002986150, 0x0, 0x20, 0xc06346e140)                                        
        /go/src/github.com/go-spatial/tegola/mvt/layer.go:87 +0x2ef                                                                                                          
github.com/go-spatial/tegola/mvt.(*Tile).VTile(0xc02ada5858, 0xe9f400, 0xc0001f4300, 0xc002986150, 0x0, 0x0, 0xc00023d918)                                                     
        /go/src/github.com/go-spatial/tegola/mvt/tile.go:47 +0x150                                                                                                              
github.com/go-spatial/tegola/atlas.Map.Encode(0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, 0xc08d219200, 0xb, ...)      
        /go/src/github.com/go-spatial/tegola/atlas/map.go:225 +0x2f8                                                                                                           
github.com/go-spatial/tegola/atlas.(*Atlas).SeedMapTile(0x1734400, 0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, ...)                    
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:83 +0x117                                                                                                          
github.com/go-spatial/tegola/atlas.SeedMapTile(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:215 +0xa9                                                                                                        
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.seedWorker.func1(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0xc001758720, 0x0, 0x0)                            
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/worker.go:83 +0x235                                                                                           
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork.func1(0xc00009e900, 0xc000322360, 0xc00026a1d0, 0xc000344100, 0xe9f400, 0xc0001f4300, 0xc0002a60c0, 0x7)
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:143 +0x14c                                                                                             
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork                                                                                                         
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:132 +0x171                                                                           

goroutine 66 [runnable]:                                                                                                                                            
github.com/go-spatial/tegola/maths.(*XYOrderedEventPtr).Less(0xc07f214640, 0x9fe30, 0xa0154, 0xa0000)                                                             
        <autogenerated>:1 +0x81                                                                                                                                                       
sort.doPivot(0xe9d180, 0xc07f214640, 0x9fe30, 0xa026f, 0x14, 0xa0270)                                                                                     
        /usr/local/go/src/sort/sort.go:121 +0x149                                                                                                                               
sort.quickSort(0xe9d180, 0xc07f214640, 0x9fe30, 0xa026f, 0x1c)                                                                                               
        /usr/local/go/src/sort/sort.go:190 +0x9a                                                                                                                               
sort.quickSort(0xe9d180, 0xc07f214640, 0x9ec42, 0xa270d, 0x20)                                                                                                           
        /usr/local/go/src/sort/sort.go:194 +0xf8                                                                                                                
sort.quickSort(0xe9d180, 0xc07f214640, 0x9d2fc, 0xbb355, 0x23)                                                                                                                 
        /usr/local/go/src/sort/sort.go:194 +0xf8                                                                                                                         
sort.quickSort(0xe9d180, 0xc07f214640, 0x4b716, 0xd5b3c, 0x26)                                                                                                                 
        /usr/local/go/src/sort/sort.go:197 +0x133                                                                                                                              
sort.Sort(0xe9d180, 0xc07f214640)                                                                                                                                            
        /usr/local/go/src/sort/sort.go:218 +0x79                                                                                                                               
github.com/go-spatial/tegola/maths.NewEventQueue(0xc050fa8000, 0x6ad9e, 0x6c700, 0x2, 0x0, 0x20)                                                                                
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:61 +0x1bf                                                                                      
github.com/go-spatial/tegola/maths.FindIntersects(0xc050fa8000, 0x6ad9e, 0x6c700, 0xc09a730a38)                                                                                  
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:464 +0x43                                                                                               
github.com/go-spatial/tegola/maths/makevalid.splitPoints(0xe9f400, 0xc0001f4300, 0xc050fa8000, 0x6ad9e, 0x6c700, 0xc084ba2000, 0x6ad9e, 0x6ad9e, 0x10, 0xc065940000)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:52 +0x2a3                                                                                             
github.com/go-spatial/tegola/maths/makevalid.splitSegments(0xe9f400, 0xc0001f4300, 0xc050fa8000, 0x6ad9e, 0x6c700, 0xc081d42420, 0x6c700, 0x7ff4bcd99b28, 0x0, 0x45b310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:88 +0x74                                                                                                    
github.com/go-spatial/tegola/maths/makevalid.destructure5(0xe9f400, 0xc0001f4300, 0xe94540, 0xc065ab2380, 0xc06346e100, 0xc090bc1200, 0x18f, 0x18f, 0x4eeacb, 0xc0001f4310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:188 +0x15f                                                                                                 
github.com/go-spatial/tegola/maths/makevalid.MakeValid(0xe9f400, 0xc0001f4300, 0xe94540, 0xc065ab2380, 0xc06346e100, 0xc06acde000, 0x18f, 0x200, 0x0, 0xc000186a80, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:311 +0xac                                                                                          
github.com/go-spatial/tegola/maths/validate.makePolygonValid(0xe9f400, 0xc0001f4300, 0xc065ab2380, 0xc06346e100, 0xc062b99300, 0x11c, 0x11c, 0x0, 0x0, 0x0, ...)             
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:58 +0x13d                                                                                
github.com/go-spatial/tegola/maths/validate.CleanGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc02d310b00, 0xc02bc17b40, 0xc02d310b00, 0x0, 0x18, 0xc8ece0)                      
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:118 +0x610                                                                                 
github.com/go-spatial/tegola/mvt.encodeGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc056a31240, 0xc0025b0c40, 0x0, 0xc09a731560, 0xc03c4b8820, 0x6, 0x8, ...)            
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:597 +0x271                                                                                             
github.com/go-spatial/tegola/mvt.(*Feature).VTileFeature(0xc09a731560, 0xe9f400, 0xc0001f4300, 0xc0885ca8c0, 0x4, 0x4, 0xc0c5425500, 0xf, 0x10, 0xc0025b0c40, ...)             
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:98 +0x158                                                                                             
github.com/go-spatial/tegola/mvt.(*Layer).VTileLayer(0xc09a731648, 0xe9f400, 0xc0001f4300, 0xc0025b0c40, 0x0, 0x20, 0xc03e750360)                                              
        /go/src/github.com/go-spatial/tegola/mvt/layer.go:87 +0x2ef                                                                                                      
github.com/go-spatial/tegola/mvt.(*Tile).VTile(0xc09a731858, 0xe9f400, 0xc0001f4300, 0xc0025b0c40, 0x0, 0x0, 0xc00023d918)                                                   
        /go/src/github.com/go-spatial/tegola/mvt/tile.go:47 +0x150                                                                                                             
github.com/go-spatial/tegola/atlas.Map.Encode(0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, 0xc07ba50600, 0xb, ...)       
        /go/src/github.com/go-spatial/tegola/atlas/map.go:225 +0x2f8                                                                                                           
github.com/go-spatial/tegola/atlas.(*Atlas).SeedMapTile(0x1734400, 0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:83 +0x117                                                                                                                              
github.com/go-spatial/tegola/atlas.SeedMapTile(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:215 +0xa9                                                                                                          
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.seedWorker.func1(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0xc06bd101b0, 0x0, 0x0)                                        
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/worker.go:83 +0x235                                                                            
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork.func1(0xc00009e900, 0xc000322360, 0xc00026a1d0, 0xc000344100, 0xe9f400, 0xc0001f4300, 0xc0002a60c0, 0x8)               
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:143 +0x14c                                                                            
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork                                                                                                                     
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:132 +0x171                                                                                       

goroutine 67 [runnable]:                                                                                                                                         
sort.(*IntSlice).Less(0xc00fff22a0, 0x29, 0x35, 0xc00fff2201)                                                                                                       
        <autogenerated>:1 +0x81                                                                                                                                   
sort.medianOfThree(0xe9d740, 0xc00fff22a0, 0x35, 0x2f, 0x29)                                                                                                                          
        /usr/local/go/src/sort/sort.go:80 +0x7f                                                                                                           
sort.doPivot(0xe9d740, 0xc00fff22a0, 0x0, 0x36, 0x4e069e, 0xc07fd0ddc0)                                                                                                         
        /usr/local/go/src/sort/sort.go:103 +0x658                                                                                                            
sort.quickSort(0xe9d740, 0xc00fff22a0, 0x0, 0x36, 0xc)                                                                                                                         
        /usr/local/go/src/sort/sort.go:190 +0x9a                                                                                                                         
sort.Sort(0xe9d740, 0xc00fff22a0)                                                                                                                               
        /usr/local/go/src/sort/sort.go:218 +0x79                                                                                                                               
sort.Ints(0xc07fd0ddc0, 0x36, 0x36)                                                                                                                                      
        /usr/local/go/src/sort/sort.go:307 +0x6d                                                                                                                               
github.com/go-spatial/tegola/maths.FindIntersectsWithEventQueue(0xc0dd62e000, 0xc023bb4000, 0xd5b3c, 0xd5b3c, 0xc0dd62e000, 0x6ad9e, 0x6c700, 0xc00740ca38)                    
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:188 +0x2ff                                                                                              
github.com/go-spatial/tegola/maths.FindIntersects(0xc0dd62e000, 0x6ad9e, 0x6c700, 0xc00740ca38)                                                                                
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:465 +0x92                                                                                                  
github.com/go-spatial/tegola/maths/makevalid.splitPoints(0xe9f400, 0xc0001f4300, 0xc0dd62e000, 0x6ad9e, 0x6c700, 0xc080104000, 0x6ad9e, 0x6ad9e, 0x10, 0xc091012000)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:52 +0x2a3                                                                                              
github.com/go-spatial/tegola/maths/makevalid.splitSegments(0xe9f400, 0xc0001f4300, 0xc0dd62e000, 0x6ad9e, 0x6c700, 0xc0bfd50ae0, 0x6c700, 0x7ff4bcd89f40, 0x0, 0x45b310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:88 +0x74                                                                                  
github.com/go-spatial/tegola/maths/makevalid.destructure5(0xe9f400, 0xc0001f4300, 0xe94540, 0xc03c2182c0, 0xc065b5c0c0, 0xc08478e000, 0x18f, 0x18f, 0x4eeacb, 0xc0001f4310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:188 +0x15f                                                                                              
github.com/go-spatial/tegola/maths/makevalid.MakeValid(0xe9f400, 0xc0001f4300, 0xe94540, 0xc03c2182c0, 0xc065b5c0c0, 0xc08db33000, 0x18f, 0x200, 0x0, 0xc000090a80, ...)              
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:311 +0xac                                                                                                  
github.com/go-spatial/tegola/maths/validate.makePolygonValid(0xe9f400, 0xc0001f4300, 0xc03c2182c0, 0xc065b5c0c0, 0xc0061ff300, 0x11c, 0x11c, 0x0, 0x0, 0x0, ...)                
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:58 +0x13d                                                                                       
github.com/go-spatial/tegola/maths/validate.CleanGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc00cdb6b40, 0xc05e48e000, 0xc00cdb6b40, 0x2, 0x18, 0xc8ece0)              
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:118 +0x610                                                                                           
github.com/go-spatial/tegola/mvt.encodeGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc00dc0c9a0, 0xc059662620, 0x0, 0xc00740d560, 0xc05bf791c0, 0x6, 0x8, ...)    
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:597 +0x271                                                                                                          
github.com/go-spatial/tegola/mvt.(*Feature).VTileFeature(0xc00740d560, 0xe9f400, 0xc0001f4300, 0xc004240600, 0x4, 0x4, 0xc07c2cc000, 0xd, 0x10, 0xc059662620, ...) 
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:98 +0x158                                                                                                    
github.com/go-spatial/tegola/mvt.(*Layer).VTileLayer(0xc00740d648, 0xe9f400, 0xc0001f4300, 0xc059662620, 0x0, 0x20, 0xc013906460)                                  
        /go/src/github.com/go-spatial/tegola/mvt/layer.go:87 +0x2ef                                                                                                            
github.com/go-spatial/tegola/mvt.(*Tile).VTile(0xc00740d858, 0xe9f400, 0xc0001f4300, 0xc059662620, 0x0, 0x0, 0xc00023d918)                                        
        /go/src/github.com/go-spatial/tegola/mvt/tile.go:47 +0x150                                                                                                             
github.com/go-spatial/tegola/atlas.Map.Encode(0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, 0xc0d59f3800, 0xb, ...)
        /go/src/github.com/go-spatial/tegola/atlas/map.go:225 +0x2f8                                                                                                         
github.com/go-spatial/tegola/atlas.(*Atlas).SeedMapTile(0x1734400, 0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:83 +0x117                                                                                                           
github.com/go-spatial/tegola/atlas.SeedMapTile(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:215 +0xa9                                                                                                          
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.seedWorker.func1(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0xc00273b0e0, 0x0, 0x0)                                                              
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/worker.go:83 +0x235                                                                                          
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork.func1(0xc00009e900, 0xc000322360, 0xc00026a1d0, 0xc000344100, 0xe9f400, 0xc0001f4300, 0xc0002a60c0, 0x9)              
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:143 +0x14c                                                                                        
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork                                                                                              
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:132 +0x171                                                                                           

goroutine 68 [runnable]:                                                                                                                                                                                                               
github.com/go-spatial/tegola/maths/makevalid.destructure5(0xe9f400, 0xc0001f4300, 0xe94540, 0xc07e5b6d00, 0xc00dec2480, 0xc0294dd3a0, 0x1, 0x1, 0x4eeacb, 0xc0001f4310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:286 +0x7ba                                                                                 
github.com/go-spatial/tegola/maths/makevalid.MakeValid(0xe9f400, 0xc0001f4300, 0xe94540, 0xc07e5b6d00, 0xc00dec2480, 0xc0294dd380, 0x1, 0x1, 0x0, 0x17353e0, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:311 +0xac                                                                                      
github.com/go-spatial/tegola/maths/validate.makePolygonValid(0xe9f400, 0xc0001f4300, 0xc07e5b6d00, 0xc00dec2480, 0xc0004c2f50, 0x1, 0x1, 0x0, 0x0, 0x0, ...)      
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:58 +0x13d                                                                                                     
github.com/go-spatial/tegola/maths/validate.CleanGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc0294dd220, 0xc00dec2460, 0xc0294dd220, 0x2, 0x18, 0xc8ece0)
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:118 +0x610                                                                                              
github.com/go-spatial/tegola/mvt.encodeGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc03fda9d40, 0xc0001f2460, 0x0, 0xc000627560, 0xc00dec2440, 0x6, 0x8, ...)
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:597 +0x271                                                                                                         
github.com/go-spatial/tegola/mvt.(*Feature).VTileFeature(0xc000627560, 0xe9f400, 0xc0001f4300, 0xc05b3f0b80, 0x3, 0x4, 0xc0192dd000, 0x78, 0x80, 0xc0001f2460, ...)      
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:98 +0x158                                                                                           
github.com/go-spatial/tegola/mvt.(*Layer).VTileLayer(0xc000627648, 0xe9f400, 0xc0001f4300, 0xc0001f2460, 0x2, 0xc0004aa810, 0x1)                                               
        /go/src/github.com/go-spatial/tegola/mvt/layer.go:87 +0x2ef                                                                                                      
github.com/go-spatial/tegola/mvt.(*Tile).VTile(0xc000627858, 0xe9f400, 0xc0001f4300, 0xc0001f2460, 0x0, 0x0, 0xc00023d918)                                                     
        /go/src/github.com/go-spatial/tegola/mvt/tile.go:47 +0x150                                                                                                             
github.com/go-spatial/tegola/atlas.Map.Encode(0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, 0xc0d59f3200, 0xb, ...)    
        /go/src/github.com/go-spatial/tegola/atlas/map.go:225 +0x2f8                                                                                                           
github.com/go-spatial/tegola/atlas.(*Atlas).SeedMapTile(0x1734400, 0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, ...) 
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:83 +0x117                                                                                               
github.com/go-spatial/tegola/atlas.SeedMapTile(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, ...)  
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:215 +0xa9                                                                                                        
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.seedWorker.func1(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0xc0b56a6000, 0x0, 0x0)                               
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/worker.go:83 +0x235                                                                                           
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork.func1(0xc00009e900, 0xc000322360, 0xc00026a1d0, 0xc000344100, 0xe9f400, 0xc0001f4300, 0xc0002a60c0, 0xa)            
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:143 +0x14c                                                                                                 
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork                                                                                                             
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:132 +0x171                                                                                           

goroutine 69 [runnable]:                                                                                                                                                
sort.(*IntSlice).Less(0xc07d74f7e0, 0x1f, 0x2a, 0x1)                                                                                                                         
        <autogenerated>:1 +0x81                                                                                                                                  
sort.doPivot(0xe9d740, 0xc07d74f7e0, 0x1f, 0x2d, 0xa, 0x1f)                                                                                                                     
        /usr/local/go/src/sort/sort.go:123 +0x1a7                                                                                                                  
sort.quickSort(0xe9d740, 0xc07d74f7e0, 0x1f, 0x2d, 0xa)                                                                                                                  
        /usr/local/go/src/sort/sort.go:190 +0x9a                                                                                                                   
sort.quickSort(0xe9d740, 0xc07d74f7e0, 0x0, 0x2d, 0xb)                                                                                                                         
        /usr/local/go/src/sort/sort.go:197 +0x133                                                                                                                 
sort.Sort(0xe9d740, 0xc07d74f7e0)                                                                                                                                              
        /usr/local/go/src/sort/sort.go:218 +0x79                                                                                                                         
sort.Ints(0xc04815a480, 0x2d, 0x2d)                                                                                                                                          
        /usr/local/go/src/sort/sort.go:307 +0x6d                                                                                                                               
github.com/go-spatial/tegola/maths.FindIntersectsWithEventQueue(0xc0d0cc4000, 0xc0ac08a000, 0xd5b3c, 0xd5b3c, 0xc0d0cc4000, 0x6ad9e, 0x6c700, 0xc047928a38)                     
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:188 +0x2ff                                                                                                
github.com/go-spatial/tegola/maths.FindIntersects(0xc0d0cc4000, 0x6ad9e, 0x6c700, 0xc047928a38)                                                                                
        /go/src/github.com/go-spatial/tegola/maths/line_intersect.go:465 +0x92                                                                                                                     
github.com/go-spatial/tegola/maths/makevalid.splitPoints(0xe9f400, 0xc0001f4300, 0xc0d0cc4000, 0x6ad9e, 0x6c700, 0xc0230dc000, 0x6ad9e, 0x6ad9e, 0x10, 0xc00023e010)           
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:52 +0x2a3                                                                                            
github.com/go-spatial/tegola/maths/makevalid.splitSegments(0xe9f400, 0xc0001f4300, 0xc0d0cc4000, 0x6ad9e, 0x6c700, 0xc06bd330e0, 0x6c700, 0x7ff4bcd99468, 0x0, 0x45b310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/makevalid.go:88 +0x74                                                                               
github.com/go-spatial/tegola/maths/makevalid.destructure5(0xe9f400, 0xc0001f4300, 0xe94540, 0xc08d6422c0, 0xc008508020, 0xc084792c00, 0x18f, 0x18f, 0x4eeacb, 0xc0001f4310, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:188 +0x15f                                                                                  
github.com/go-spatial/tegola/maths/makevalid.MakeValid(0xe9f400, 0xc0001f4300, 0xe94540, 0xc08d6422c0, 0xc008508020, 0xc034e02000, 0x18f, 0x200, 0x0, 0xc0004fc000, ...)        
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:311 +0xac                                                                                              
github.com/go-spatial/tegola/maths/validate.makePolygonValid(0xe9f400, 0xc0001f4300, 0xc08d6422c0, 0xc008508020, 0xc0001cd900, 0x11c, 0x11c, 0x0, 0x0, 0x0, ...)
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:58 +0x13d                                                                                
github.com/go-spatial/tegola/maths/validate.CleanGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc076d9c2e0, 0xc003ae3160, 0xc076d9c2e0, 0x2, 0x18, 0xc8ece0)          
        /go/src/github.com/go-spatial/tegola/maths/validate/validate.go:118 +0x610                                                                                
github.com/go-spatial/tegola/mvt.encodeGeometry(0xe9f400, 0xc0001f4300, 0xd15600, 0xc0178945a0, 0xc0001f6620, 0x0, 0xc09a735560, 0xc0202e4780, 0x6, 0x8, ...)                         
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:597 +0x271                                                                                    
github.com/go-spatial/tegola/mvt.(*Feature).VTileFeature(0xc09a735560, 0xe9f400, 0xc0001f4300, 0xc0782dd5c0, 0x4, 0x4, 0xc095ae1800, 0xd, 0x10, 0xc0001f6620, ...)              
        /go/src/github.com/go-spatial/tegola/mvt/feature.go:98 +0x158                                                                                        
github.com/go-spatial/tegola/mvt.(*Layer).VTileLayer(0xc047929648, 0xe9f400, 0xc0001f4300, 0xc0001f6620, 0x0, 0x20, 0xc04d016e60)                                              
        /go/src/github.com/go-spatial/tegola/mvt/layer.go:87 +0x2ef                                                                                                      
github.com/go-spatial/tegola/mvt.(*Tile).VTile(0xc09a735858, 0xe9f400, 0xc0001f4300, 0xc0001f6620, 0x0, 0x0, 0xc00023d918)                                      
        /go/src/github.com/go-spatial/tegola/mvt/tile.go:47 +0x150                                                                                                             
github.com/go-spatial/tegola/atlas.Map.Encode(0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, 0xc004688600, 0xb, ...)
        /go/src/github.com/go-spatial/tegola/atlas/map.go:225 +0x2f8                                                                                                           
github.com/go-spatial/tegola/atlas.(*Atlas).SeedMapTile(0x1734400, 0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:83 +0x117                                                                                                        
github.com/go-spatial/tegola/atlas.SeedMapTile(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0x0, 0x0, 0x16d4460, 0x401025fd8adab9f5, 0x4049fa786c22680a, 0x4028000000000000, ...)
        /go/src/github.com/go-spatial/tegola/atlas/atlas.go:215 +0xa9                                                                                                           
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.seedWorker.func1(0xe9f400, 0xc0001f4300, 0xc00023d918, 0x5, 0xc094f14000, 0x0, 0x0)                               
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/worker.go:83 +0x235                                                                                            
github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork.func1(0xc00009e900, 0xc000322360, 0xc00026a1d0, 0xc000344100, 0xe9f400, 0xc0001f4300, 0xc0002a60c0, 0xb)            
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:143 +0x14c                                                                               
created by github.com/go-spatial/tegola/cmd/tegola/cmd/cache.doWork                                                                                                             
        /go/src/github.com/go-spatial/tegola/cmd/tegola/cmd/cache/cache.go:132 +0x171                                                                                        

goroutine 128773449 [runnable]:                                                                                                                                                 
github.com/go-spatial/tegola/maths/makevalid.destructure5.func2(0x1, 0xe9f400, 0xc0001f4300)                                                                                    
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:240                                                                                                
created by github.com/go-spatial/tegola/maths/makevalid.destructure5                                                                                                    
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:283 +0x6ba                                                                                              

goroutine 128773455 [runnable]:                                                                                                                                                 
github.com/go-spatial/tegola/maths/makevalid.destructure5.func2(0x7, 0xe9f400, 0xc0001f4300)                                                                       
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:240                                                                                                 
created by github.com/go-spatial/tegola/maths/makevalid.destructure5                                                                                               
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:283 +0x6ba                                                                                                

goroutine 128773454 [runnable]:                                                                                                                                                
github.com/go-spatial/tegola/maths/makevalid.destructure5.func2(0x6, 0xe9f400, 0xc0001f4300)                                                                             
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:240                                                                                                     
created by github.com/go-spatial/tegola/maths/makevalid.destructure5                                                                                                           
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:283 +0x6ba                                                                                                 

goroutine 128623378 [IO wait]:                                                                                                                                                 
internal/poll.runtime_pollWait(0x7ff4bccb8540, 0x72, 0xc0004b4858)                                                                                                                                 
        /usr/local/go/src/runtime/netpoll.go:173 +0x66                                                                                                                         
internal/poll.(*pollDesc).wait(0xc090ad6b18, 0x72, 0xffffffffffffff00, 0xe96940, 0x16d3360)                                                                                    
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:85 +0x9a                                                                                                          
internal/poll.(*pollDesc).waitRead(0xc090ad6b18, 0xc00fc1f800, 0x400, 0x400)                                                                                     
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d                                                                                                             
internal/poll.(*FD).Read(0xc090ad6b00, 0xc00fc1f800, 0x400, 0x400, 0x0, 0x0, 0x0)                                                                                
        /usr/local/go/src/internal/poll/fd_unix.go:169 +0x179                                                                                                                         
net.(*netFD).Read(0xc090ad6b00, 0xc00fc1f800, 0x400, 0x400, 0x410f7b, 0xc00001e000, 0xcb7400)                                                                               
        /usr/local/go/src/net/fd_unix.go:202 +0x4f                                                                                                              
net.(*conn).Read(0xc000656100, 0xc00fc1f800, 0x400, 0x400, 0x0, 0x0, 0x0)                                                                                        
        /usr/local/go/src/net/net.go:177 +0x68                                                                                                                      
crypto/tls.(*block).readFromUntil(0xc000b94780, 0xe95100, 0xc000656100, 0x5, 0xc000656100, 0x450f21)                                                              
        /usr/local/go/src/crypto/tls/conn.go:492 +0x89                                                                                                                                
crypto/tls.(*Conn).readRecord(0xc00d662a80, 0xdbf117, 0xc00d662ba0, 0x45cbf0)                                                                             
        /usr/local/go/src/crypto/tls/conn.go:593 +0xdd                                                                                                                          
crypto/tls.(*Conn).Read(0xc00d662a80, 0xc021350000, 0x1000, 0x1000, 0x0, 0x0, 0x0)                                                                           
        /usr/local/go/src/crypto/tls/conn.go:1145 +0xf1                                                                                                                        
net/http.(*persistConn).Read(0xc005f746c0, 0xc021350000, 0x1000, 0x1000, 0xc0004b4c70, 0x40d575, 0xc033aeb6e0)                                                           
        /usr/local/go/src/net/http/transport.go:1497 +0x75                                                                                                      
bufio.(*Reader).fill(0xc02ef3bc80)                                                                                                                                             
        /usr/local/go/src/bufio/bufio.go:100 +0x106                                                                                                                      
bufio.(*Reader).Peek(0xc02ef3bc80, 0x1, 0x0, 0x0, 0x1, 0xc00db38ea0, 0x0)                                                                                                      
        /usr/local/go/src/bufio/bufio.go:132 +0x3f                                                                                                                             
net/http.(*persistConn).readLoop(0xc005f746c0)                                                                                                                               
        /usr/local/go/src/net/http/transport.go:1645 +0x1a2                                                                                                                    
created by net/http.(*Transport).dialConn                                                                                                                                       
        /usr/local/go/src/net/http/transport.go:1338 +0x941                                                                                                         

goroutine 128773451 [runnable]:                                                                                                                                              
github.com/go-spatial/tegola/maths/makevalid.destructure5.func2(0x3, 0xe9f400, 0xc0001f4300)                                                                        
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:240                                                                                                        
created by github.com/go-spatial/tegola/maths/makevalid.destructure5                                                                                                         
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:283 +0x6ba                                                                                                       

goroutine 128623379 [select]:                                                                                                                                                   
net/http.(*persistConn).writeLoop(0xc005f746c0)                                                                                                                         
        /usr/local/go/src/net/http/transport.go:1885 +0x113                                                                                                             
created by net/http.(*Transport).dialConn                                                                                                                                    
        /usr/local/go/src/net/http/transport.go:1339 +0x966                                                                                                      

goroutine 128773448 [runnable]:                                                                                                                                    
github.com/go-spatial/tegola/maths/makevalid.destructure5.func2(0x0, 0xe9f400, 0xc0001f4300)                                                                             
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:240                                                                                           
created by github.com/go-spatial/tegola/maths/makevalid.destructure5                                                                                                           
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:283 +0x6ba                                                                                   

goroutine 128773458 [runnable]:                                                                                                                                          
github.com/go-spatial/tegola/maths/makevalid.destructure5.func2(0xa, 0xe9f400, 0xc0001f4300)                                                                                 
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:240                                                                                                       
created by github.com/go-spatial/tegola/maths/makevalid.destructure5                                                                                                            
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:283 +0x6ba                                                                                                

goroutine 128707630 [IO wait]:                                                                                                                                                                     
internal/poll.runtime_pollWait(0x7ff4bccb8130, 0x72, 0xc02b45a858)                                                                                                             
        /usr/local/go/src/runtime/netpoll.go:173 +0x66                                                                                                                         
internal/poll.(*pollDesc).wait(0xc0c50bbe98, 0x72, 0xffffffffffffff00, 0xe96940, 0x16d3360)                                                                                  
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:85 +0x9a                                                                                              
internal/poll.(*pollDesc).waitRead(0xc0c50bbe98, 0xc03fb1cc00, 0x400, 0x400)                                                                                                    
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d                                                                                              
internal/poll.(*FD).Read(0xc0c50bbe80, 0xc03fb1cc00, 0x400, 0x400, 0x0, 0x0, 0x0)                                                                                                   
        /usr/local/go/src/internal/poll/fd_unix.go:169 +0x179                                                                                                               
net.(*netFD).Read(0xc0c50bbe80, 0xc03fb1cc00, 0x400, 0x400, 0x410f7b, 0xc00001e000, 0xcb7400)                                                                   
        /usr/local/go/src/net/fd_unix.go:202 +0x4f                                                                                                               
net.(*conn).Read(0xc000602be8, 0xc03fb1cc00, 0x400, 0x400, 0x0, 0x0, 0x0)                                                                                           
        /usr/local/go/src/net/net.go:177 +0x68                                                                                                                    
crypto/tls.(*block).readFromUntil(0xc07b7aa7b0, 0xe95100, 0xc000602be8, 0x5, 0xc000602be8, 0x450f21)                                                                                  
        /usr/local/go/src/crypto/tls/conn.go:492 +0x89                                                                                                    
crypto/tls.(*Conn).readRecord(0xc000478700, 0xdbf117, 0xc000478820, 0x45cbf0)                                                                                                   
        /usr/local/go/src/crypto/tls/conn.go:593 +0xdd                                                                                                       
crypto/tls.(*Conn).Read(0xc000478700, 0xc0458cb000, 0x1000, 0x1000, 0x0, 0x0, 0x0)                                                                                             
        /usr/local/go/src/crypto/tls/conn.go:1145 +0xf1                                                                                                                  
net/http.(*persistConn).Read(0xc001572ea0, 0xc0458cb000, 0x1000, 0x1000, 0xc02b45ac70, 0x40d575, 0xc02e5a7200)                                                  
        /usr/local/go/src/net/http/transport.go:1497 +0x75                                                                                                                     
bufio.(*Reader).fill(0xc046374f00)                                                                                                                                       
        /usr/local/go/src/bufio/bufio.go:100 +0x106                                                                                                                            
bufio.(*Reader).Peek(0xc046374f00, 0x1, 0x0, 0x0, 0x1, 0xc0a04e6120, 0x0)                                                                                                      
        /usr/local/go/src/bufio/bufio.go:132 +0x3f                                                                                                                           
net/http.(*persistConn).readLoop(0xc001572ea0)                                                                                                                                 
        /usr/local/go/src/net/http/transport.go:1645 +0x1a2                                                                                                                     
created by net/http.(*Transport).dialConn                                                                                                                           
        /usr/local/go/src/net/http/transport.go:1338 +0x941                                                                                                                      

goroutine 128707631 [select]:                                                                                                                                       
net/http.(*persistConn).writeLoop(0xc001572ea0)                                                                                                                                 
        /usr/local/go/src/net/http/transport.go:1885 +0x113                                                                                                                  
created by net/http.(*Transport).dialConn                                                                                                                                             
        /usr/local/go/src/net/http/transport.go:1339 +0x966                                                                                                                     

goroutine 128773456 [runnable]:                                                                                                                                         
github.com/go-spatial/tegola/maths/makevalid.destructure5.func2(0x8, 0xe9f400, 0xc0001f4300)                                                                            
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:240                                                                                                     
created by github.com/go-spatial/tegola/maths/makevalid.destructure5                                                                                             
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:283 +0x6ba                                                                                                 

goroutine 128773453 [runnable]:                                                                                                                                          
github.com/go-spatial/tegola/maths/makevalid.destructure5.func2(0x5, 0xe9f400, 0xc0001f4300)                                                                       
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:240                                                                                                       
created by github.com/go-spatial/tegola/maths/makevalid.destructure5                                                                                              
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:283 +0x6ba                                                                                                

goroutine 128773450 [runnable]:                                                                                                                                              
github.com/go-spatial/tegola/maths/makevalid.destructure5.func2(0x2, 0xe9f400, 0xc0001f4300)                                                                                   
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:240                                                                                                        
created by github.com/go-spatial/tegola/maths/makevalid.destructure5                                                                                                           
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:283 +0x6ba                                                                                                

goroutine 128773452 [runnable]:                                                                                                                                                
github.com/go-spatial/tegola/maths/makevalid.destructure5.func2(0x4, 0xe9f400, 0xc0001f4300)                                                                                   
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:240                                                                                                     
created by github.com/go-spatial/tegola/maths/makevalid.destructure5                                                                                             
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:283 +0x6ba                                                                                                 

goroutine 128703966 [IO wait]:                                                                                                                                                     
internal/poll.runtime_pollWait(0x7ff4bccb8c90, 0x72, 0xc02b45d858)                                                                                                          
        /usr/local/go/src/runtime/netpoll.go:173 +0x66                                                                                                          
internal/poll.(*pollDesc).wait(0xc046710c98, 0x72, 0xffffffffffffff00, 0xe96940, 0x16d3360)                                                                      
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:85 +0x9a                                                                                                 
internal/poll.(*pollDesc).waitRead(0xc046710c98, 0xc05bd1a800, 0x400, 0x400)                                                                                      
        /usr/local/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d                                                                                                                   
internal/poll.(*FD).Read(0xc046710c80, 0xc05bd1a800, 0x400, 0x400, 0x0, 0x0, 0x0)                                                                         
        /usr/local/go/src/internal/poll/fd_unix.go:169 +0x179                                                                                                                   
net.(*netFD).Read(0xc046710c80, 0xc05bd1a800, 0x400, 0x400, 0x410f7b, 0xc00001e000, 0xcb7400)                                                                
        /usr/local/go/src/net/fd_unix.go:202 +0x4f                                                                                                                             
net.(*conn).Read(0xc000602088, 0xc05bd1a800, 0x400, 0x400, 0x0, 0x0, 0x0)                                                                                                
        /usr/local/go/src/net/net.go:177 +0x68                                                                                                                  
crypto/tls.(*block).readFromUntil(0xc000725b90, 0xe95100, 0xc000602088, 0x5, 0xc000602088, 0x450f21)                                                                           
        /usr/local/go/src/crypto/tls/conn.go:492 +0x89                                                                                                                   
crypto/tls.(*Conn).readRecord(0xc0004e1180, 0xdbf117, 0xc0004e12a0, 0x45cbf0)                                                                                                  
        /usr/local/go/src/crypto/tls/conn.go:593 +0xdd                                                                                                                         
crypto/tls.(*Conn).Read(0xc0004e1180, 0xc01b7df000, 0x1000, 0x1000, 0x0, 0x0, 0x0)                                                                                           
        /usr/local/go/src/crypto/tls/conn.go:1145 +0xf1                                                                                                                        
net/http.(*persistConn).Read(0xc09fd157a0, 0xc01b7df000, 0x1000, 0x1000, 0xc02b45dc70, 0x40d575, 0xc071b27f80)                                                                  
        /usr/local/go/src/net/http/transport.go:1497 +0x75                                                                                                          
bufio.(*Reader).fill(0xc04f6949c0)                                                                                                                                               
        /usr/local/go/src/bufio/bufio.go:100 +0x106                                                                                                                          
bufio.(*Reader).Peek(0xc04f6949c0, 0x1, 0x0, 0x0, 0x1, 0xc09ffc4120, 0x0)                                                                                           
        /usr/local/go/src/bufio/bufio.go:132 +0x3f                                                                                                                              
net/http.(*persistConn).readLoop(0xc09fd157a0)                                                                                                                               
        /usr/local/go/src/net/http/transport.go:1645 +0x1a2                                                                                                                           
created by net/http.(*Transport).dialConn                                                                                                                                       
        /usr/local/go/src/net/http/transport.go:1338 +0x941                                                                                                                     

goroutine 128703967 [select]:                                                                                                                                           
net/http.(*persistConn).writeLoop(0xc09fd157a0)                                                                                                                              
        /usr/local/go/src/net/http/transport.go:1885 +0x113                                                                                                      
created by net/http.(*Transport).dialConn                                                                                                                                       
        /usr/local/go/src/net/http/transport.go:1339 +0x966                                                                                                        

goroutine 128773457 [runnable]:                                                                                                                                    
github.com/go-spatial/tegola/maths/makevalid.destructure5.func2(0x9, 0xe9f400, 0xc0001f4300)                                                                                   
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:240                                                                                          
created by github.com/go-spatial/tegola/maths/makevalid.destructure5                                                                                                           
        /go/src/github.com/go-spatial/tegola/maths/makevalid/main.go:283 +0x6ba                                                                                          

goroutine 128711326 [runnable]:                                                                                                                                                
type..hash.github.com/go-spatial/tegola/maths.Pt(0xc09fdf94a8, 0x3e624f8b, 0x4fdf9c7612f840e9)                                                                                  
        <autogenerated>:1 +0x51                                                                                                                                                
github.com/go-spatial/tegola/maths/makevalid/plyg.merge2AdjectRC(0xc0540dea00, 0x1f, 0x20, 0xc084000000000000, 0x40dc598000000000, 0xc0c0e21e00, 0x8, 0x8, 0xc000a11c00, 0xa, ...)
        /go/src/github.com/go-spatial/tegola/maths/makevalid/plyg/ring.go:741 +0x18fe                                                                                                              
github.com/go-spatial/tegola/maths/makevalid/plyg.MergeCols(0xc09ecc8000, 0x489, 0x489, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)                                                
        /go/src/github.com/go-spatial/tegola/maths/makevalid/plyg/ring.go:931 +0xe9                                                                                            
github.com/go-spatial/tegola/maths/makevalid/plyg.GenerateMultiPolygon.func1(0x0)                                                                                            
        /go/src/github.com/go-spatial/tegola/maths/makevalid/plyg/ring.go:945 +0x260                                                                             
created by github.com/go-spatial/tegola/maths/makevalid/plyg.GenerateMultiPolygon                                                                                               
        /go/src/github.com/go-spatial/tegola/maths/makevalid/plyg/ring.go:956 +0x147                                                                                   
gdey commented 5 years ago

Okay the crash seems to be happening in the runtime allocator when trying to make allocate enough memory for the new ring here:

https://github.com/go-spatial/tegola/blob/master/maths/makevalid/plyg/builder.go#L38


ring.Points = make([]maths.Pt, 0, len(b.parts[0])+len(b.parts[1]))

I'm not sure what we can do about this, not even sure if we can catch this type of panic. It's getting thrown here: https://github.com/golang/go/blob/master/src/runtime/malloc.go#L784

I'm looking to see if there are any google entries on it. I could force a GC run right before it?

gdey commented 5 years ago

Just relevent information for this:

Go version used to compile: 1.11.2 Travis build link: https://travis-ci.org/go-spatial/tegola/jobs/453088789

ARolek commented 5 years ago

@gdey yeah this is the same issue we researched before. Catching out of memory errors is not currently possible. I don't know if forcing a GC run is right either (though we're doing that in the seeding code). I think as we have more time to optimize the memory usage of the processing algo this should naturally be addressed.