-
Notifications
You must be signed in to change notification settings - Fork 277
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
Comments
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. |
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. |
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?) |
I'm on it. |
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. |
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
The text was updated successfully, but these errors were encountered: