Bug 409373 - Krita crashes when Background and Layer 1 are present in Timeline box at the same time
Summary: Krita crashes when Background and Layer 1 are present in Timeline box at the ...
Status: RESOLVED REMIND
Alias: None
Product: krita
Classification: Applications
Component: Animation (show other bugs)
Version: 4.2.2
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-01 15:20 UTC by starlightlovestodraw
Modified: 2019-09-02 09:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of Krita with Layer Docker and Timeline Docker (115.94 KB, image/png)
2019-07-03 10:44 UTC, starlightlovestodraw
Details
Simple 12 frame animation moving circle (295.57 KB, application/binary)
2019-07-03 19:08 UTC, Ahab Greybeard
Details
kritarc-faulty-A (44.63 KB, text/plain)
2019-07-06 09:30 UTC, starlightlovestodraw
Details
kritarc-good-C (24.78 KB, text/plain)
2019-07-08 16:57 UTC, starlightlovestodraw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description starlightlovestodraw 2019-07-01 15:20:10 UTC
SUMMARY
When I have background layer and layer 1 on the Timeline box present at the same time, Krita crashes few seconds after.

STEPS TO REPRODUCE
1. Animation Workbench should be selected when following the steps.
2. Create a new layer (either in the Layer box or in the Timeline). 
3. Press the button next to the speaker to 'add existing layer' (which would be Layer 1) to the Timeline. Both Layer 1 and Background layer should be present in the Timeline.
4. Both onion skin off and on give out the same result so it doesn't matter if it's on/ off.
5. Create a key frame on Layer 1 and draw on it. Create another key frame next to the first one or the one after that and draw on it. If nothing is happening in the first 30 seconds, create another key frame slightly further away from the first two.
6. Krita should freeze and then crash at least within around 15 seconds to 2 minutes.

OBSERVED RESULT
After drawing on the second/ third key frame, Krita freezes after a few seconds and then crashes, closing the program.

EXPECTED RESULT
Should be able to have any layers on the Timeline at the same time and be able to freely draw on the key frames.

SOFTWARE/OS VERSIONS
Windows: 10 64-bit 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version:
Comment 1 Ahab Greybeard 2019-07-01 19:42:42 UTC
I don't get this with the installed version of krita 4.2.2 on Windows 10, after trying various ways of doing it.

There are some things about your description that puzzle me:

Why do you Create a new layer if you're only using Layer 1 and the Background layer?

If you're creating keyframes in Layer 1, then Layer 1 will be in the timeline so you don't need to add it to the Timeline.

If you're creating keyframes in Layer 1, it's the Background layer that needs to be added to the Timeline in order to have them both in the Timeline.

Is the Background layer only displayed in the Timeline or do you make it an animated layer?
Comment 2 starlightlovestodraw 2019-07-02 16:24:08 UTC
(In reply to Ahab Greybeard from comment #1)
> I don't get this with the installed version of krita 4.2.2 on Windows 10,
> after trying various ways of doing it.
> 
> There are some things about your description that puzzle me:
> 
> Why do you Create a new layer if you're only using Layer 1 and the
> Background layer?
> 
> If you're creating keyframes in Layer 1, then Layer 1 will be in the
> timeline so you don't need to add it to the Timeline.
> 
> If you're creating keyframes in Layer 1, it's the Background layer that
> needs to be added to the Timeline in order to have them both in the Timeline.
> 
> Is the Background layer only displayed in the Timeline or do you make it an
> animated layer?

Sorry, I'm not very good at wording myself. Also, I realised that I mixed up my terminology and meant to say Blank Frame and not Keyframe. Sorry!

1. What I meant was that after opening a new canvas, I add a new layer. So I would have Background layer and Layer 1. Sorry if this still doesn't make sense.
2/3. I'm not sure if it's my laptop but when I create a new layer (Layer 1), it doesn't show up with the Background Layer. I have to manually add the new layer.
4. The Background layer is only displayed in the Timeline unless I click on Layer 1, which swaps the layers. 

I'm sorry if this is a bit too late to say but I found out that I cannot actually animate at all. When I try creating more than 2 blank frames (either close or slightly apart from each other) on the same layer and draw on both, Krita freezes and then crashes. I had onion skin on so I'm unsure if this happens without it. Sorry if this is repetitive.
Comment 3 Ahab Greybeard 2019-07-02 20:21:40 UTC
[I've just realised that you probably have krita settings that give you only one layer (Background) on startup so that is why you create a new layer to give you Layer 1. My arrangement is different and I should have thought of that.
When you make a Blank Frame, you do make a keyframe but many people don't know what a 'keyframe' is so 'Blank Frame' is easier to understand]

If you're not animating the Background layer (it's not a good idea to animate the background layer) then there is no reason to have it in the Timeline. Are you saying that the presence of the Background layer in the Timeline is a factor that contributes to the crash?

I think that onion skins are a distraction in this situation so please turn them off to simplify the situation.

When you create a new layer, it should become the active/selected layer, as indicated by being highlighted in the Layers docker and showing in the Timeline. The active layer should always be shown in the Timeline so I'm puzzled as to why you have to manually add Layer 1 to the Timeline. When you create Layer 1, is is the active/selected layer as shown by being highlighted in the Layers docker?

When you draw in a new blank frame on Layer 1, do you use the 'normal' Freehand Brush tool or some other tool?

Were you able to create animated layers in krita 4.1.7 and/or krita 4.2.0?

Can you take a full .png screenshot showing the Layers docker and the Timeline docker and attach it to a comment?
Comment 4 Ahab Greybeard 2019-07-02 20:34:49 UTC
P.S. What is the nature of the crash? Is there an error message of any kind? Does it freeze and you have to kill it or does it freeze and then vanish?

How much RAM do you have in your laptop?

Are you running any other applications at the same time?
Comment 5 Bug Janitor Service 2019-07-03 04:33:11 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 6 starlightlovestodraw 2019-07-03 10:43:33 UTC
(In reply to Ahab Greybeard from comment #3)
> [I've just realised that you probably have krita settings that give you only
> one layer (Background) on startup so that is why you create a new layer to
> give you Layer 1. My arrangement is different and I should have thought of
> that.
> When you make a Blank Frame, you do make a keyframe but many people don't
> know what a 'keyframe' is so 'Blank Frame' is easier to understand]
> 
> If you're not animating the Background layer (it's not a good idea to
> animate the background layer) then there is no reason to have it in the
> Timeline. Are you saying that the presence of the Background layer in the
> Timeline is a factor that contributes to the crash?
> 
> I think that onion skins are a distraction in this situation so please turn
> them off to simplify the situation.
> 
> When you create a new layer, it should become the active/selected layer, as
> indicated by being highlighted in the Layers docker and showing in the
> Timeline. The active layer should always be shown in the Timeline so I'm
> puzzled as to why you have to manually add Layer 1 to the Timeline. When you
> create Layer 1, is is the active/selected layer as shown by being
> highlighted in the Layers docker?
> 
> When you draw in a new blank frame on Layer 1, do you use the 'normal'
> Freehand Brush tool or some other tool?
> 
> Were you able to create animated layers in krita 4.1.7 and/or krita 4.2.0?
> 
> Can you take a full .png screenshot showing the Layers docker and the
> Timeline docker and attach it to a comment?

1. Well, I thought at first that the background layer was the one that caused the crash but later on I tried it with only Layer 1 present in the Timeline, but I got the same crash. 
3.  Yes, it is highlighted.
4. Freehand brush tool.
5. I didn't animate in the 4.2.0 version. I got 4.2.0v a day before 4.2.1 came out so I'm unsure if it worked then. I had 4.0.1 for about a year and forgot to update it until this year so I'm unsure if this problem occurred in later versions.
Comment 7 starlightlovestodraw 2019-07-03 10:44:27 UTC
Created attachment 121301 [details]
Screenshot of Krita with Layer Docker and Timeline Docker
Comment 8 starlightlovestodraw 2019-07-03 10:53:41 UTC
(In reply to Ahab Greybeard from comment #4)
> P.S. What is the nature of the crash? Is there an error message of any kind?
> Does it freeze and you have to kill it or does it freeze and then vanish?
> 
> How much RAM do you have in your laptop?
> 
> Are you running any other applications at the same time?

1. There's no error message. It just freezes and then vanishes.
2. 8GB
3. Yes, only one. But I did test it if it did that without any other programs opened and I still got a crash.
Comment 9 Ahab Greybeard 2019-07-03 19:08:50 UTC
Created attachment 121314 [details]
Simple 12 frame animation moving circle

Just to confirm that it's not some kind of fundemental laptop performance issue (which I doubt), can you create a 4000 x 4000 image and create 4 new paint layers and scribble broadly in them all then save it as a .kra file?

I've attached a simple (and rough) 12 frame animation of a moving circle shape. Can you open that and play it?

It's alternating keyframes and held frames as you can see.

Can you select each keyframe and draw something on it then play the animation?

Can you select each held frame and make it a Blank Frame and draw something on it and play the animation?

If you have problems, go to Settings -> Configure Krita -> Performance section.
On the General tab, it should have about 4GB of RAM allocated, which is fine.
On the Animation Cache tab, it's probably set to On-disk. Can you change that to In-memory, press the OK button then restart krita and try again?
Comment 10 starlightlovestodraw 2019-07-04 12:45:33 UTC
(In reply to Ahab Greybeard from comment #9)
> Created attachment 121314 [details]
> Simple 12 frame animation moving circle
> 
> Just to confirm that it's not some kind of fundemental laptop performance
> issue (which I doubt), can you create a 4000 x 4000 image and create 4 new
> paint layers and scribble broadly in them all then save it as a .kra file?
> 
> I've attached a simple (and rough) 12 frame animation of a moving circle
> shape. Can you open that and play it?
> 
> It's alternating keyframes and held frames as you can see.
> 
> Can you select each keyframe and draw something on it then play the
> animation?
> 
> Can you select each held frame and make it a Blank Frame and draw something
> on it and play the animation?
> 
> If you have problems, go to Settings -> Configure Krita -> Performance
> section.
> On the General tab, it should have about 4GB of RAM allocated, which is fine.
> On the Animation Cache tab, it's probably set to On-disk. Can you change
> that to In-memory, press the OK button then restart krita and try again?
1. Yes.
2. I can open it but it crashes when I play it and when I don't do anything to the animation. I tried on both On-disk and In-memory and they both gave the same result.
3. I was able to draw on each of the frames but few seconds after finishing, Krita crashed.
4. I was able to create the blank frames and draw on them but when I played it, it crashed. If I don't play the animation after drawing on the frames, Krita crashes after a few seconds.
5. I changed it to In-memory and get the same result as when it's on On-disk.

I've noticed that after doing these tests, after the crash my drawing tablet stops working. I have a display tablet and the screen is still displaying my laptop screen but the pen won't move the mouse after the crash. I have to replug it into my laptop in order for it to work again.
Comment 11 starlightlovestodraw 2019-07-04 12:48:15 UTC
I did the tests without using my tablet and got the same results. I don't think it's my tablet that's causing the problem.
Comment 12 Ahab Greybeard 2019-07-04 14:19:45 UTC
Just to clarify: You're running Windows 10 64-bit?

What make and model of laptop do you have?

What make and model of display-tablet do you have?

Disconnect your display-tablet and reboot your laptop and use only your mouse/trackpad. Go to C:\Users\{your-user-name}\Application Data\Local and rename the file called 'kritarc' as 'kritarc-previous'.

Go to https://download.kde.org/stable/krita/4.1.7/krita-x64-4.1.7.zip and say OK to accept the download which is the portable/standalone version of krita 4.1.7.

Right-click it and Extract All, which will give you a folder of the same name. Go into that folder to find a shortcut called 'krita' and run it. This will not affect your existing krita installed version and krita will create a fresh default kritarc configuration file, as you'll notice from the theme, etc.

If you can't make an animation using 4.1.7 like that, then there is something wrong with your laptop configuration. I don't think it could be caused by the display-tablet drivers, which I assume you've installed, but I don't know about that subject.

If 4.1.7 does work like that with no problems, close it and delete the freshly made 'kritarc' file then rename the 'kritarc-previous' file as 'kritarc' to get back to your familar configuration. Try 4.1.7 again and if it doesn't work then it's a strange krita configuration problem and you'll need to provide the kritarc file as an attachmnent for a developer to have a look at.

If 4.1.7 does work with your original kritarc configuration file, then go to https://download.kde.org/stable/krita/4.2.2/krita-x64-4.2.2.zip to accept and download the krita 4.2.2 portable/standalone version and Extract it and use it to see if that works, still with just the laptop mouse/trackpad.
Comment 13 starlightlovestodraw 2019-07-05 12:45:03 UTC
(In reply to Ahab Greybeard from comment #12)
> Just to clarify: You're running Windows 10 64-bit?
> 
> What make and model of laptop do you have?
> 
> What make and model of display-tablet do you have?
> 
> Disconnect your display-tablet and reboot your laptop and use only your
> mouse/trackpad. Go to C:\Users\{your-user-name}\Application Data\Local and
> rename the file called 'kritarc' as 'kritarc-previous'.
> 
> Go to https://download.kde.org/stable/krita/4.1.7/krita-x64-4.1.7.zip and
> say OK to accept the download which is the portable/standalone version of
> krita 4.1.7.
> 
> Right-click it and Extract All, which will give you a folder of the same
> name. Go into that folder to find a shortcut called 'krita' and run it. This
> will not affect your existing krita installed version and krita will create
> a fresh default kritarc configuration file, as you'll notice from the theme,
> etc.
> 
> If you can't make an animation using 4.1.7 like that, then there is
> something wrong with your laptop configuration. I don't think it could be
> caused by the display-tablet drivers, which I assume you've installed, but I
> don't know about that subject.
> 
> If 4.1.7 does work like that with no problems, close it and delete the
> freshly made 'kritarc' file then rename the 'kritarc-previous' file as
> 'kritarc' to get back to your familar configuration. Try 4.1.7 again and if
> it doesn't work then it's a strange krita configuration problem and you'll
> need to provide the kritarc file as an attachmnent for a developer to have a
> look at.
> 
> If 4.1.7 does work with your original kritarc configuration file, then go to
> https://download.kde.org/stable/krita/4.2.2/krita-x64-4.2.2.zip to accept
> and download the krita 4.2.2 portable/standalone version and Extract it and
> use it to see if that works, still with just the laptop mouse/trackpad.
1. Yes
2. Lenovo ideapad 510
3. Parblo Coast 10

I can make an animation and/ or play an animation by renaming the file to "kritarc-previous" and then running 4.1.7. When I delete the new "kritarc" and change "kritarc-previous" back to "kritarc" and run 4.1.7, it crashes after I animate and/or when I play the animation after a few seconds.

Do I provide the kritarc file in this thread?
Comment 14 Ahab Greybeard 2019-07-05 14:27:29 UTC
The kritarc file isn't very big so it's ok to attach it to a comment here. The contents may (or may not) be useful for finding out what went wrong.

The next stage is to establish if your laptop has problems with 4.2.2 (or not) and then if your tablet is giving problems. (You previously said that removing the tablet still resulted in a problem but it may be that the presence of the tablet sets up some kind of faulty configuration, either in krita or in your operating system.)

Rename your current (fault giving) kritarc file as kritarc-faulty-A and attach it to a comment here.

Still with no tablet attached, download the 4.2.2.zip portable version as noted in my previous comment, do the extraction process as before, then run it from inside the resulting folder. It will recreate a fresh kritarc file as you'll notice.

You should be able to play/create an animation. If not, there is a strange incompatibility between your laptop and krita 4.2.2. Either way, close krita then make a copy of the kritarc file and rename the copy as kritarc-fresh-B, keeping it for later if needed for examination.

If the 4.2.2 portable seems to be working well with no tablet, close down the laptop, connect the display-tablet, power up the laptop and tablet, then run the 4.2.2 portable again to see if all is still ok when using the stylus to draw for an animation.

If adding the tablet and using the stylus causes problems then it's a difficult situation so I hope it doesn't come to that.
Comment 15 starlightlovestodraw 2019-07-06 09:30:01 UTC
Created attachment 121350 [details]
kritarc-faulty-A
Comment 16 starlightlovestodraw 2019-07-06 09:58:07 UTC
(In reply to Ahab Greybeard from comment #14)
> The kritarc file isn't very big so it's ok to attach it to a comment here.
> The contents may (or may not) be useful for finding out what went wrong.
> 
> The next stage is to establish if your laptop has problems with 4.2.2 (or
> not) and then if your tablet is giving problems. (You previously said that
> removing the tablet still resulted in a problem but it may be that the
> presence of the tablet sets up some kind of faulty configuration, either in
> krita or in your operating system.)
> 
> Rename your current (fault giving) kritarc file as kritarc-faulty-A and
> attach it to a comment here.
> 
> Still with no tablet attached, download the 4.2.2.zip portable version as
> noted in my previous comment, do the extraction process as before, then run
> it from inside the resulting folder. It will recreate a fresh kritarc file
> as you'll notice.
> 
> You should be able to play/create an animation. If not, there is a strange
> incompatibility between your laptop and krita 4.2.2. Either way, close krita
> then make a copy of the kritarc file and rename the copy as kritarc-fresh-B,
> keeping it for later if needed for examination.
> 
> If the 4.2.2 portable seems to be working well with no tablet, close down
> the laptop, connect the display-tablet, power up the laptop and tablet, then
> run the 4.2.2 portable again to see if all is still ok when using the stylus
> to draw for an animation.
> 
> If adding the tablet and using the stylus causes problems then it's a
> difficult situation so I hope it doesn't come to that.
I was able to create and play an animation using the 4.2.2.zip portable version with both mouse and display-tablet.
Comment 17 Ahab Greybeard 2019-07-06 12:18:57 UTC
It's looking good so far. Can you render the animation out to an animated .gif and a .mp4 file with the 4.2.2.zip portable version?

After you do that (assuming you can), make a copy of the kritarc file, rename the copy as kritarc-good-C and attach it to a comment.

The details of the kritarc files so far may be useful for figuring out what went wrong.

At the moment, you seem to have a working arrangement with the 4.2.2.zip portable. There's no reason why you shouldn't continue to use that and work it hard over the next few days to stress it and check that there are no further problems.

At this stage you may as well change the theme, settings, etc to suit your personal preferences. If it goes wrong after you do that, then provide a copy of the kritarc file as an attachment for examination. You should first make a copy for backup of your current working kritarc file so you can restore it to a know good state if and after any problems arise.

Later, if all goes well for a while, you can make another copy of the kritarc file for restoration in case of future problems. It's always a good idea to have a copy of a known good configuration file as a backup for restoration in case of problems.

If you do that and all is well for a while, you can then try the 4.2.2 installed version that you already have to see if that has any problems. It shouldn't have but strange things can happen. If it does then you can try uninstalling followed by a fresh installation. (You can use the 4.2.2.zip and future portable .zips as an alternative to an installed version of course.)

I hope we can assume that the kritarc problem was some strange random bad luck or corruption thing and that you'll have no more problems. If you do, then please report them.
Comment 18 Bug Janitor Service 2019-07-07 04:33:11 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 19 starlightlovestodraw 2019-07-08 16:57:26 UTC
Created attachment 121392 [details]
kritarc-good-C

1. Yes I can render the animation.

Ok, thank you for the help. I'll see if any problems arise after a few days.
Comment 20 Halla Rempt 2019-09-02 09:09:21 UTC
Okay, setting to resolved/remind, in case the problem comes back.