question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Potential memory issue when using `get_boundaries`

See original GitHub issue

Hello, I did try to use one of your examples to get the county boundaries of Great Britain

COUNTRY = "Great Britain"


def main() -> None:

    print("This is my main()")
    fp = get_data(COUNTRY)
    osm = OSM(fp)

    boundaries = osm.get_boundaries()
    boundaries.plot(facecolor=None, edgecolor="gray")

When the execution reaches osm.get_boundaries() it hangs for a while and then it crashes with this error message:

Process finished with exit code 137 (interrupted by signal 9: SIGKILL)

Which could be caused by an insufficient memory issue. Running this on an Ubuntu 20.04 machine, using a python 3.9.7 virtual environment. Has anyone encountered this issue? Thanks a lot for the help.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Zigurcommented, Nov 11, 2021

Thanks for the clarification @HTenkanen. So if I want to get the county boundaries a sensible way would be to iterate through all the counties and get each boundary, right? Giving it a try.

0reactions
acmeguycommented, Nov 15, 2022

This is still happening for me. Is this solved?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What could be causing the memory leak in my paint method?
Don't know if it will cause a memory leak or not but you should NOT be doing any file I/O in any painting...
Read more >
Understanding Memory Leaks in Java
Memory leaks are a genuine problem in Java. In this tutorial, we'll learn what the potential causes of memory leaks are, how to...
Read more >
potential memory leak and performance issue.
Hello all,. We are running Gerrit ver 2.11.4 (with one plugin 'javamelody'). We run it as a service by running `gerrit.sh run`. ......
Read more >
Facing memory leak issue while using BoundsCalculator ...
We are facing memory leak issue while using BoundCalculator class to get model object boundaries. ... GetBounds(pageModel, pageModel.
Read more >
High Memory utilization and their root causes
The key problem with caches is soft references, which have the advantage ... of a potential memory shortage; in essence, to avoid an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found