bitbof / klecks

Community funded painting tool powering Kleki.com
https://klecks.org
MIT License
235 stars 74 forks source link

Random Clearing #103

Open KAi251162 opened 1 year ago

KAi251162 commented 1 year ago

Sometimes, at random, Kleki would just randomly clear out my entire drawing. Like one moment, I would have a wonderful drawing I worked hours on, and the next, the screen would black out and when it pops back on, my entire drawing would be completely missing. However, I could still draw. Drawing and undo-ing causes some of my art to pop up again, but not the whole thing, leaving a mess, but this doesn't always work. The drawing erasement and black out doesn't happen with any other tab/drawing app.

I haven't yet tried to wait it out to see if it would return after a period of waiting because my browser would refresh the tab after some time. And in case you were wondering why I don't save, it's because the save prompt tells me to save it as a PDF but I need it to have seperate layers in order to continue drawing effectively. And then I forget to go to the "File" tab to save it.

By now, the random clearings has happened many times and I am getting kinda tired of it. I'm in the middle of the drawing and it disappears.

I hope you can maybe explain whats happening here.

Thank you so much!

bitbof commented 1 year ago

Thanks for your report. Sounds similar to #2, #98, #101. Which browser do you use?

Drawing and undo-ing causes some of my art to pop up again I'm curious what this looks like, if you can provide a screenshot

It does not ask you to save as "PDF", it asks you to save as "PSD" (Photoshop Document). This is a document format that keeps layer information. Try saving as "PSD" and then loading that file again. All layers will be restored.

image

As an explanation why: My current theory is that it's an issue with HTMLCanvas in Chrome (Chromium). There have been similar reports where the image corrupts that I've verified myself and reported to their developers. Another theory is that it's a memory leak, which leads canvases to corrupt after a while because the computer is running out of memory.