Skip to content

Fills RAM until it makes my PC/Laptop locked #866

Closed

Description

@obayhan

Memory usage increases until it fills my RAM and locks my PC/Laptop

Here is my screen record to show it:

https://www.youtube.com/watch?v=B3_0iTqkqkg

CPU architecture: 64 bit Intel
OS:Linux/Manjaro/KDE
Python version: 3.8.6
bpython version: 0.18, 0.19, 0.20 (didnt tested with older versions)

Same thing appears with my laptop too.

Activity

  1. sebastinas commented on Dec 3, 2020

    @sebastinas
    Contributor

    I suspect this has to do with the new module discovery code. Could you maybe produce a log with strace so that we can see what it tries to crawl and if ends up in a loop?

  2. added this to the release-0.21 milestone on Dec 3, 2020
  3. domdfcoding commented on Dec 10, 2020

    @domdfcoding

    I've encountered this too. I couldn't get strace to output to a file without hanging, but here's the last bit of the output before I stopped it after 5 minutes: https://gist.github.com/domdfcoding/0aea640a1ae3fefa0d046bfdd9ea70c2

    The output was pretty much the same before this.

    In those 5 minutes the memory usage the memory usage rose from 20MB to over 100MB. When I first noticed this it had been running for about an hour and ended up using 13GB of memory.

  4. sebastinas commented on Dec 10, 2020

    @sebastinas
    Contributor

    Thanks. Looks like we have to try to deal with mount points or at least blacklist some paths - including wine specific paths, /sys, /proc.

  5. obayhan commented on Dec 10, 2020

    @obayhan
    Author

    Sorry for late response. Same strace output with @domdfcoding

    stat("./PlayOnLinux's virtual drives/HOI/drive_c/users/ozgur/Desktop/workspaces/AndroidStudio/AndroidTVappTutorial/app/build/generated/not_namespaced_r_class_sources/debug/r/androidx/drawerlayout", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0

  6. robobenklein commented on Apr 27, 2021

    @robobenklein

    Still appears to be an issue for me, I use a variety of tools including Proton and Lutris.

    Steam seemed to have an infinite depth wine prefix scanning problem in ValveSoftware/steam-for-linux#7372 (comment) which may be related.

    I think there should be some upper hard limit at which point no more modules are discovered, say if more than 500MB of memory is consumed then the scanning should be disabled since something clearly went wrong.

    Edit: Nevermind, apt package (outdated) was shadowing user-installed v0.21, fixed once I uninstalled the (outdated) system bpython.

  7. added a commit that references this issue on Feb 25, 2026
    8d91453
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions