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

probable memory leak #253

Closed
mikshaw opened this issue Mar 12, 2014 · 5 comments
Closed

probable memory leak #253

mikshaw opened this issue Mar 12, 2014 · 5 comments
Assignees
Milestone

Comments

@mikshaw
Copy link

mikshaw commented Mar 12, 2014

Here's something i never noticed before, but while working on my current high resolution project there appears to be a huge vacuum of ram. I've been working on a simple 1-layer 56-frame animation at 1920x1080. The only thing about this particular project that is different from my previous ones is the size of the frame. I'm not adding any more frames, nor am i increasing the complexity of the drawings by any significant amount, yet ram usage by pencil2d has increased to over 3gb in the course of a few hours. This happens both in the morevna 0.5.4 debian package and recent source from git.

Sorry i have no more specific information.

EDIT: RAM use jumped by about 2gb immediately after selecting and moving the contents of a layer, so maybe that helps a little. Last night that same action resulted in my desktop becoming essentially unresponsive (some very minimal but ineffective cursor response, and sporadic short bursts of audio from the music that was playing) for half an hour before i decided to just press the power button.

Debian Testing (jessie) 64bit
Intel i5 / 6gb ram / Intel HD 4000 graphics

@chchwy chchwy added the bug label Mar 13, 2014
@mikshaw
Copy link
Author

mikshaw commented Mar 13, 2014

It's absolutely related to moving selections, regardless of the frame size. The larger the selection, no matter what amount of art is in the selection, the more quickly memory is used. The program became unresponsive after moving a selection a few times, and available ram was showing just over 260mb (from 4600mb just after Pencil was loaded, prior to making a selection) but i was able to eventually move focus to a terminal and force it to close. As before, i tested with both the morevna deb and the git source and saw similar results in both.

@mikshaw
Copy link
Author

mikshaw commented Mar 17, 2014

it may not be "absolutely related" to moving selections, although that seems to be the fastest way to soak up ram. Yesterday i did no selecting or moving--just a lot of reworking bitmap lines--and after several hours ended up with nearly all of my system ram being taken by Pencil2D. It took a much longer time compared to the moving of selections, but it still occurred just as expected.

@chchwy chchwy added this to the 6.1 milestone Nov 3, 2017
@Kaikogf
Copy link

Kaikogf commented Jan 12, 2018

I can confirm this behavior with the last build (Jan2018).

Pencil2D was sucking 3,3 GB of memory while playing an animation with several layers and 370 frames in the main one.

It is of very interest to have it improved since it is important to have Pencil2D playing smoothly for all different types of animations... well not all kind of animations at the moment but mostly for short-animations and middle-long animations (lets say 1000 frames?)
;)

@chchwy chchwy self-assigned this Mar 4, 2018
@chchwy
Copy link
Member

chchwy commented Mar 4, 2018

I'm on it.

@chchwy
Copy link
Member

chchwy commented Mar 15, 2018

Checked again, no major memory leaks detected in the latest pencil2d, and the total memory usage has been lowered down when loading a large project.

Regarding the memory bumping up on select & move, that's because the current bitmap frame is backed up for undo operations. I can confirm it's not memory leak.

@chchwy chchwy closed this as completed Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants