Wing Python using most of the memory leads to system crash

  • retag add tags

I'm using WingIDE V:6.0.12-1  and python 2.7. While running a project, python 2.7 uses only 95MB of memory. Sometimes later, memory usage is increasing and uses most of the memory(up to 7GB) and at last, system freezes out of memory.

Jayashankar V R's avatar
1
Jayashankar V R
asked 2018-07-10 23:35:00 -0500
Wingware Admin's avatar
231
Wingware Admin
updated 2019-03-07 08:22:53 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Is this the debug process or Wing itself?

Wingware Support's avatar Wingware Support (2018-07-11 08:07:00 -0500) edit

I'm always executing projects with debug process. I think, its the debug process.

Jayashankar V R's avatar Jayashankar V R (2018-07-11 08:40:00 -0500) edit

Wing uses python2.7 internally (to run itself) so it's possible it's Wing, depending on which OS you're on.  Would be easy to confirm by terminating debug and restarting the Python Shell from its Options menu to see if the large process goes away.Assuming it's the debug process or Python Shell process, some questions:  * Do you have any of the following enabled under the Debugger > Advanced group in preferences?  Resolve Properties, Allows Calls on Data Inspection, Call Python __repr__ methods.  If so, try disabling them.* How long is it running?* Does it occur while paused in the debugger or free-running?* Does it grow faster during any particular activity, such as viewing data in the debugger?* Is it using any of matplotlib, pylab, Jupyter or Django?

Wingware Support's avatar Wingware Support (2018-07-11 09:02:00 -0500) edit

Thank you for your reply.Restarting the python inside the wing is not releasing the used memory.My OS: Ubuntu 17.10Call Python __repr__ Methods was checked.It only runs for about 3 hours. after that, the system freezes. I can see the python2.7 increases the memory usage about 5MB/Second.it occurs on free-runningit doesn't increase in any particular activity.I'm currently working on a TurboGears project.

Jayashankar V R's avatar Jayashankar V R (2018-07-12 00:16:00 -0500) edit

I suspect this is Wing itself that's increasing memory (it runs python2.7 internally and on Linux its process is reported under that name).  Can you please collect a profile as follows?* Use Edit -> Command By Name and enter: internal-profile-start * Use Wing and wait for about a minute without doing anything else in the IDE * Use Edit -> Command By Name and enter: internal-profile-stop * Then submit a bug report from Wing's help menu and check the box to include the error-log. Hopefully that will point us in the right direction to solving this.Thanks!

Wingware Support's avatar Wingware Support (2018-07-12 08:51:00 -0500) edit
add a comment see more comments