Skip to content

High memory usage (limits maximum Python file size) #843

@Viele

Description

@Viele

I have a problem with a python process all of a sudden taking up all 24GB of RAM. That only happens when i point the autocompletion to the location where the stubs from the Autodesk Maya devkit are (containing pyMel, PySide2 and OpenMaya). In total these stub files are 60MB.
I've tried this with SublimeText/Anaconda and Atom/autocomplete-python. Both use Jedi.

As soon as I do something like this

import pymel.core as pm
pm.

the python process takes um all RAM and creates cache files in \AppData\Roaming\Jedi up to ~12GB
After that the process decreases RAM usage but still stays around 3GB of RAM usage.

I've also tried deleting all but 1 stub file. While it is considerably faster, it still creates 60MB of cache out of a 600KB file using about 800MB of RAM while doing so.
I have the same problem on my desk PC as well as my Laptop
I've attached the single stub file, in hope this is reproduceable. (All the
stubs can be downloaded freely in the Autodesk Maya 2017 devkit)
py.zip

Win10
Autodesk Maya 2017
version is 0.10.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions