Disappearing frames - Help

Hi, I have been working on an animation for almost a year now and I finally finished it. I was polishing off some parts going frame by frame to make everything was perfect until I click to the next frame and it is empty. So are the next 100 frames, and a bit later another 30 frames. The bitmap layers didn’t delete and neither did the frames, they are there, but just blank. I had 4 bitmap layers showing at the same time, lineart, colour, background lineart and background colour. Everything from the 4 layers has disappeared. I need this animation to be done by the end of this month and I doubt I can redraw everything again. Is it possible I missed something and the frames are hiding somewhere? There is no layer on top of these that is just white. I really need help.

PS: I have a copy of the animation that I made yesterday, it is only missing all the work I did yesterday and today. I checked yesterday and it had everything it should have. After the frames mentioned disappeared I opened the copy in case I could copy paste the missing frames but they also disappeared from the copy which shouldn’t be possible, as I had not opened it since I made the copy where I had checked it had all the frames there were.

UPDATE: After closing down the animation(s), opening again, being presented with the same problem, closing down and opening again, the frames that have disappeared are back. Yesterday I had worked for multiple hours, these are not the frames that had disappeared. The frames I had worked on have not disappeared, they have been deleted. Seems like I lost everything I worked on yesterday + today.

I have not had any problems with the software for the whole year I’ve been using it until now. Is there a reason for this happening?

UPDATE2: Sorry, I am kind of stressed out because of this not working. Somehow after closing the main animation file and opening it again the work from today and yesterday came back. I opened the copy and had to close and open couple times but I finally got it to where it originally was and made sure I saved it. Now every time I open the main file it seems alright with all the work I have done but I am presented with a message saying “the file didn’t save correctly. Want to restore your work?”, however, if I click “open” it takes my progress back and deletes the progress made today and yesterday. If I click “discard” everything disappears (except around 2 seconds of it).

UPDATE3: Okay I think I may have saved the file with disappearing frames on top of my original one. My copy file now only has the frames that had disappeared to start with but the other frames are now the ones that have disappeared. Knowing that I have been working on this for a year and right when I thought I was all done it all breaks down is very upsetting. I don’t think I will be using this software anymore, unless I am contacted with a solution but I don’t think that is possible.

@lbruun Hi Laura. I’m sorry to learn of your your current issue with the software.

I’ll reply from two P.O.V’s One as a Pencil2D team support mod, and another one as an animator myself.

Support POV

Pencil2D losing frames randomly (Potential causes & solutions)

First off it’s important to explain that this is not a simple Pencil2D bug. And this doesn’t happen to everyone.

Most reports we have got in the last few years in regards to this, are related to third party apps, or even the same operating system, wiping clean the operating system’s %TEMP% (or temporary files) folder which Pencil2D uses to deploy the open document on any given work session.

Basically When you create a new file in Pencil2D or open an existing file. All the Project folder contents will be dumped into the temporary files folder so the software can work off them easily.

Once you save a file it will take the same folder and package it into the “save file” you name and locate somewhere else.

So what happens is that for reasons that we can’t control (at least so far), the files are getting deleted by a third party (that is, not by you, not by Pencil2D) in the temp folder.

Once the files are deleted, the reference that exists in your Pencil2D document, will still be kept, but it will be pointing to a non-existent image. In this case when you save the work back to the actual file, you’re saving basically empty frames back into the file, because the app can’t locate the image resources, but since the actual frame containers are still created (and probably cached on the RAM or computer memory) that’s why it gives the illusion that the project is still functional so it’s harder to notice during the actual work and until you open the file again.

While you may or may not have a 3rd party app that does this, it is the most likely related issue.

For example we had another user whose work mimics pixel art game animation, so they had to import a lot of image resource, and used to have this problem A LOT. My recommendation to them Is the same I’ll give to you as follows:

  1. Never save over the same file thrice. Seems a bit extreme but this applies to commercial software like Toonboom Harmony or Adoble Animate which use similar text-based files to save references to the actual drawing resources.

    Quite frankly file save overwrites can get to a point where text files being modified will become corrupted or messed up after saving too many times, so it’s up to us, the artists, to have a habit of saving backup files.

    That doesn’t mean Pencil2D shouldn’t assist in this process, and we are looking into having at some point a backup system for animation files, but we’re not on that timeline yet :pensive:

  2. I always recommend to either save numbered files e.g my_animation_001.pclx or use a file versioning system (FVS).

    Windows has one called File History embed, but I personally have used SVN and GIT which are made for programmers, but can be easily used by artists to keep a personal, chronological record of your file changes (at least if you’re disciplined enough)

  3. Save the project as a Project Folder instead of a Project Package: Pencil2D has two types of save files:
    - The *.PCL file format (Project Folder)
    - The *.PCLX file format (Project Package)

    Saving as a *.PCL will save the original project folder with all the actual elements you drew and imported inside a .data folder within a location of your choice (e.g desktop)

    This is similar to how professional apps work like Toonboom Harmony (saves to a project folder by default), or even Adobe Animate, with their XFL file format.

    The advantage of this is that it works really well with a FVS, and you can edit the image resources directly with other apps for quick edits.

    The apparent downside (since I’m not entirely sure) is that if the app crashes you might not have access to the primitive crash recovery system we currently have (but I’ll have to confirm that later).

    Other than that most issues related to the TEMP folder should be addressed with this method

  4. Regarding file corruption we have a dedicated guide to handle this.

Most of the tips and procedures could help recover work that should be locked by a corrupted file, but 90% of the time ppl have to redraw the artwork like you already did.

Animator POV

Workflow considerations

First I’ll discuss some workflow tips from a personal position, not as a Pencil2D forum mod but as a professional animator.

To be honest there are many hints in your text that tell me that you might be working on a project that is bigger than what it’s expected from regular Pencil2D users to create. And in that sense I can only applaud your mettle and dedication :muscle:

In such case, it’s of course not only the responsibility of the tool but also the user to look for a better workflow, regardless of the tool.

My personal advice as an animator is the following:

  1. Never create an animation longer than a single shot length using any software. Always work in scenes or shots per file and then string them together using a video editing software. This is how it’s done in professional settings.
  2. Never save the same animation for a long period of time on a single file. Save numbered or versioned files as often as possible for each minor or major milestone. Commercial software also breaks and corrupts files, so I always save my files like MyAnimation_0001.(xxx)

    I’ve had my fair share of issues with Toonboom Harmony, TVPaint and Adobe Animate CC on paid projects where recovery was impossible and versioned backups saved my team’s work
  3. Make backup copies that won’t be overwritten or saved over This goes in hand with #2, but it’s different to have an emergency copy to continue saving over, than having a separate backup copy that won’t be touched by anyone, including yourself.

    A clean backup of your work should be copied and then opened as a copy, so you won’t write over the backup after new progress. that way in case something breaks you can go back to it and reimport missing parts like you already did.
  4. If the tool doesn’t work, find out why and how it’s breaking for you, then report the issues to the developer team.
    If the developer team of a particular tool can’t fix your issue or is unavailable (like in commercial software) then change tools to be able to finish the job for delivery. Period.

    This might sound counter intuitive, and I’m sure it might be expected of me to ask you to keep using Pencil2D, but we are not A-d-o-b-e trying to sell you yearly subs. We do this because we want people to do their work better, but it’s not always easy to keep the software working perfectly.

    Pencil2D is an open-source software maintained by unpaid volunteers, so while we are eager to help and fix issues, it might be impossible to fix problems that depend on the operating system or third party tools when we can’t replicate it. But that doesn’t mean you have to resign yourself to keep using the app if it keeps failing!

    If the workarounds I provided in the explanation at the start of the reply simply do not work, then take the animation you have, export each layer as a PNG Image Sequence (so you preserve transparency of lineart and colored parts, and then import it back into a different app.

    Since you’re about to finish the project, it might be less stressful to learn a new app reluctantly and finish for delivery than to struggle through using the old software with the risk of losing all the work. Of course this is only my personal opinion.

Pencil2D has an alternative software article that should help finding a decent tool to finish your work in the worst case scenario.

From that list, for relative simplicity vs. features you need coming from Pencil2D, I recommend Krita since you would be able to import the image sequences as separate layers and finish the job. You might need a bit of a powerful computer, but I think it shouldn’t compromise your work further.

Let us know later what works and what doesn’t. Take care.

UPDATE3: Okay I think I may have saved the file with disappearing frames on top of my original one. My copy file now only has the frames that had disappeared to start with but the other frames are now the ones that have disappeared. Knowing that I have been working on this for a year and right when I thought I was all done it all breaks down is very upsetting. I don’t think I will be using this software anymore, unless I am contacted with a solution but I don’t think that is possible.

Sorry I had not read this last part properly :cry: and I really hope I’m misunderstanding this but if I’m not, it would mean you accidentally had your newer file overwrite the backup file… :fearful:

I thought you had made an extra copy of the backup file so you could to try the recovery since it’s the most safe route to take in such cases :confounded:

Honestly I’m startled… but the thing is that if you really overwrote the backp file, by virtue of how file handling works I personally don’t know a way to properly recover overwritten files.

AFAIK It’s sort of impossible without specialized software & hardware, and even then it’s just not something that succeeds often :slightly_frowning_face:

I’m tempted to ask, do you really not have a “clean” backup copy? Maybe in a USB, GoogleDrive or OneDrive? Maybe another laptop? School computer? Office computer? OR at least an exported video of the entire project to date? maybe a few random videos on separate parts that you used for preview?

If you have a video or “videos”, you can definitely at least use those resources and import them back into an animation app to get something similar to your original workspace. If you have any hard media like that let me know and I’ll try to help to see how I can give you advice to stitch it together to at least recover more of your work than what it’s left right now.

Apart from that the only real suggestion is to check the guide I posted above (Corruption / File Recovery Guide) and check the procedure from step # 4 and #5.

From an advanced user perspective, step #7 is also worth trying. If you’re feeling confident (but also under your own risk) Try and use a free file recovery app and do a deep scan on the folders where you had the animation files as well as the Pencil2D temporary file folder (which you can open directly from the software Help menu as mentioned in the guide).

I’ve personally used recuva with very limited success… the problem with these apps is that the more time that pass and the more files that will be written on the hard drive, the less chances one has to recover anything.

Just by using a web browser you could get dozen of hundreds of sectors written in a single day, so often it’s just not possible to recover deleted or overwritten files, as such I’m afraid that by now any overwritten work might have been lost… :pensive:

Now every time I open the main file it seems alright with all the work I have done but I am presented with a message saying “the file didn’t save correctly. Want to restore your work?”, however, if I click “open” it takes my progress back and deletes the progress made today and yesterday. If I click “discard” everything disappears (except around 2 seconds of it).

When you open a project with Pencil2D, all the images from it are extracted and placed in a temporary directory. When you close a project normally, these files should be deleted. The way the built-in file recovery feature of v0.6.6 of Pencil2D works is by looking in the temporary directory for parts of a project that have not been cleaned up properly. Things you’ve been working on that haven’t been saved will not show up there. Have you been experiencing any crashes with Pencil2D? Have you force quit Pencil2D, force shutdown your computer, or had your computer shutdown due to power loss (blackout, accidentally unplugged, etc.)? If your answer to these questions are both no, then this dialog shouldn’t be coming up and perhaps there is another underlying issue.

@JoseMoreno Has covered the general recovery steps in this scenario and best practices going forward better than I can. I just wanted to explore one additional possibility. Given the sudden frequency at which you are loosing frames and the fact that it sounds like you have a very large project, one thing you may want to check is how much free space you have left on the drive that contains your temporary (%TEMP%) directory. If you’re very low on space, Pencil2D may not be able to fully open the file. It’s a situation I have not thoroughly tested, so I can’t be sure what error messages or behaviors you might see in that case, but if you’re opening a project and it is immediately wiping frames, this could be an explanation for it.

1 Like

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.