Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

" The kernel appears to have died. It will restart automatically" #205

Open
ricsatjr opened this issue Oct 12, 2022 · 0 comments
Open

" The kernel appears to have died. It will restart automatically" #205

ricsatjr opened this issue Oct 12, 2022 · 0 comments
Labels
question Further information is requested

Comments

@ricsatjr
Copy link

Describe the bug
Extracting an initialized country-level OSM object (output of OSM()) causes kernel to die with the message, "The kernel appears to have died. It will restart automatically", when I attempt to extract features from it (e.g., osm.get_boundaries()', osm.get_pois()`).

The extraction works if I extract from an initialized city-level OSM object. But when I try to extract the country-level OSM object using a bbox of the city level, the kernel still dies.

To Reproduce
Steps to reproduce the behavior:
from pyrosm import get_data
from pyrosm.pyrosm import OSM
pbf_dir="/home/.../PlanetOSM/
pbf_name="czech_republic
fp=get_data(pbf_name,directory=pbf_dir)
osm=OSM(fp)
#successful so far at this point, but kernel dies after executing any of the commands below
boundaries = osm.get_boundaries()
pois= osm.get_pois(custom_filter={'amenity': True, "shop": True})

If we use pbf_name="Prag" (city-level), the above commands are successful.
But if we use pbf_name=czech_republic, and a bbox OSM(fp,bbox=[min x, min y, max x, max y]), representing the Prag total boundaries, the get_boundaries() and get_pois() commands fail.`

Expected behavior
I expect the extraction of boundaries and pois to be successful even for the country-level pbf files. (I got a 16GB RAM, which I think should be fine for the job.
Moreso, when I use the bbox (equivalent to the city), I should be able to extract those features since the data is smaller (and I was previously successful with working on the city-level pbf).

Environment:

  • OS: Lubuntu 21.10
  • Python package source: conda-forge
  • Versions of Python (3.10.6), Pyrosm (0.6.1)
@HTenkanen HTenkanen added the question Further information is requested label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants