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

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

Closed
obayhan opened this issue Nov 29, 2020 · 5 comments
Closed

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

obayhan opened this issue Nov 29, 2020 · 5 comments
Labels
Milestone

Comments

@obayhan
Copy link

obayhan commented Nov 29, 2020

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.

@sebastinas
Copy link
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?

@sebastinas sebastinas added the bug label Dec 3, 2020
@sebastinas sebastinas added this to the release-0.21 milestone Dec 3, 2020
@domdfcoding
Copy link

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.

@sebastinas
Copy link
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.

@obayhan
Copy link
Author

obayhan commented Dec 10, 2020

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

@robobenklein
Copy link

robobenklein commented Apr 27, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants