Skip to content

EOFError with multithreaded mbtiles writing #15

@bitphage

Description

@bitphage

I tried to generate mbtiles file using the following command:

polytiles.py -z 3 19 -m taxsee.mbtiles -s project.xml --host postgres-osm -d gis -u osm -a 0 --threads 4

And after ~20 seconds I've got an error:

13 5582 2497
13 5579 2497
11 1394 626
Process ThreadedWriterWrapper-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "../polytiles/polytiles.py", line 237, in run
    req, args = self.pipe.recv()
EOFError

Everything stuck then. Using --threads 1 solves the problem.
Also, issue doesn't shows up whether use plain tiles output to png files (not mbtiles).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions