Bug 465199 - App freezes when I use animation docker
Summary: App freezes when I use animation docker
Status: RESOLVED DUPLICATE of bug 464032
Alias: None
Product: krita
Classification: Applications
Component: Animation (other bugs)
Version First Reported In: 5.1.5
Platform: Android Android 13.x
: NOR crash
Target Milestone: ---
Assignee: sh_zam
URL:
Keywords:
: 468692 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-02-02 23:09 UTC by Redkitt3n14
Modified: 2023-07-14 07:40 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The copied report from krita's bug report page (56.37 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-02-02 23:09 UTC, Redkitt3n14
Details
attachment-3383446-0.html (2.17 KB, text/html)
2023-03-02 01:10 UTC, Redkitt3n14
Details
attachment-1200728-0.html (819 bytes, text/html)
2023-03-20 21:39 UTC, Redkitt3n14
Details
KritaSystemInformation.txt (6.48 KB, text/plain)
2023-03-21 21:53 UTC, Redkitt3n14
Details
attachment-1431081-0.html (1.05 KB, text/html)
2023-03-23 19:29 UTC, Redkitt3n14
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Redkitt3n14 2023-02-02 23:09:04 UTC
Created attachment 155902 [details]
The copied report from krita's bug report page

SUMMARY
When I am trying to animate on my tablet it keeps freeze crashing after short periods when interacting with animation docker, and requires a restart of app with cleared cache to work again, and happened 3 or 4 times within an hour making it near unusable.
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports (I think I did this?)
***


STEPS TO REPRODUCE
1. Use animation docker 
2. Change frames an unknown amount of times (seemed to often be between 5 and 10)
3. Crash via screen freezing

OBSERVED RESULT
Screen freezes, app fails to reopen until it is force quit AND cache is cleared

EXPECTED RESULT
Frame changes when selected

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
See attachment
Comment 1 amyspark 2023-02-03 15:28:20 UTC
Sharaf, can you take a look?
Comment 2 sh_zam 2023-02-25 06:00:42 UTC
Hi! Can you please share the file which causes this bug? If it is confidential, you can mail it to me at shzam at sdf.org.
Comment 3 Redkitt3n14 2023-02-26 20:37:08 UTC
Hiya, not confidential so here it is.

On Sat, 25 Feb 2023, 06:00 sh_zam, <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=465199
>
> --- Comment #2 from sh_zam <shzam@sdf.org> ---
> Hi! Can you please share the file which causes this bug? If it is
> confidential,
> you can mail it to me at shzam at sdf.org.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 4 sh_zam 2023-02-27 07:41:07 UTC
I think to forgot to attach the file :)
Comment 5 Redkitt3n14 2023-02-28 11:23:35 UTC
   Oops, File was too large for email, here’s a link to it in dropbox.

   https://www.dropbox.com/sh/3b8y1rqxfa77drt/AAAAc18lkqy3rbLQ3GLdwuLxa?dl=0

   *From: * sh_zam[1]
   *Sent: *27 February 2023 07:41
   *To: * marmaladeplan3t@gmail.com[2]
   *Subject: *[krita] [Bug 465199] App freezes when I use animation
   docker

   https://bugs.kde.org/show_bug.cgi?id=465199

   --- Comment #4 from sh_zam <shzam@sdf.org> ---

   I think to forgot to attach the file :)

   --

   You are receiving this mail because:

   You reported the bug.

   

   1. mailto:bugzilla_noreply@kde.org
   2. mailto:marmaladeplan3t@gmail.com
Comment 6 sh_zam 2023-03-01 06:31:06 UTC
Odd, I can't reproduce it, it opens for me and the animation runs fine, and I can change frames with much issues. Would it be possible for you to screen record the interaction with Krita? 

(The number of frames is quite large, and my device is weaker -- so maybe we can rule out the possibility that this is due to weaker device :) ).
Comment 7 Redkitt3n14 2023-03-01 15:37:49 UTC
   I will do that later today

   *From: * sh_zam[1]
   *Sent: *01 March 2023 06:31
   *To: * marmaladeplan3t@gmail.com[2]
   *Subject: *[krita] [Bug 465199] App freezes when I use animation
   docker

   https://bugs.kde.org/show_bug.cgi?id=465199

   --- Comment #6 from sh_zam <shzam@sdf.org> ---

   Odd, I can't reproduce it, it opens for me and the animation runs
   fine, and I

   can change frames with much issues. Would it be possible for you to
   screen

   record the interaction with Krita?

   (The number of frames is quite large, and my device is weaker -- so
   maybe we

   can rule out the possibility that this is due to weaker device :) ).

   --

   You are receiving this mail because:

   You reported the bug.

   

   1. mailto:bugzilla_noreply@kde.org
   2. mailto:marmaladeplan3t@gmail.com
Comment 8 Redkitt3n14 2023-03-02 01:10:40 UTC
Created attachment 156905 [details]
attachment-3383446-0.html

Sorry I think I'll have to do it tomorrow, ain't gonna get time tonight

On Wed, 1 Mar 2023, 15:37 Ash Hobba, <marmaladeplan3t@gmail.com> wrote:

> I will do that later today
>
> *From: *sh_zam <bugzilla_noreply@kde.org>
> *Sent: *01 March 2023 06:31
> *To: *marmaladeplan3t@gmail.com
> *Subject: *[krita] [Bug 465199] App freezes when I use animation docker
>
>
>
> https://bugs.kde.org/show_bug.cgi?id=465199
>
>
>
> --- Comment #6 from sh_zam <shzam@sdf.org> ---
>
> Odd, I can't reproduce it, it opens for me and the animation runs fine,
> and I
>
> can change frames with much issues. Would it be possible for you to screen
>
> record the interaction with Krita?
>
>
>
> (The number of frames is quite large, and my device is weaker -- so maybe
> we
>
> can rule out the possibility that this is due to weaker device :) ).
>
>
>
> --
>
> You are receiving this mail because:
>
> You reported the bug.
>
>
>
Comment 9 Redkitt3n14 2023-03-02 20:20:54 UTC
   Sorry if this email sent twice, I made an error the first time.

   Right, I loaded up Krita on my Tab S7 again, loaded the file in my
   animation workspace and them started drawing. I honestly thought that
   the issue might have vanished for no apparent reason, as in the past
   it was crashing within the first few minutes of use, however the crash
   did eventually come after 15 minutes. After the freeze, I stopped
   recording simply to ensure that I had captured the freeze on video,
   all I did between stopping the recording was hit the home button, then
   look at the video, after which I began recording again, where I click
   the Krita icon and it fails to open. Unlike some of the times it has
   done this before, after force closing app it managed to reopen like
   normal, however sometimes it will not load past black screen without
   cache clear. As far as I can tell, there was no apparent reason for
   the crash, I simply selected a frame and it froze. I have also
   uploaded the log file for this session, all to the same drobox link as
   the original file that was causing issues. I have not tested any other
   files for the same issue, so am not sure if the program or file is the
   cause.

   Link to dropbox:
   https://www.dropbox.com/sh/3b8y1rqxfa77drt/AAAAc18lkqy3rbLQ3GLdwuLxa?dl=0

   *From: * sh_zam[1]
   *Sent: *01 March 2023 06:31
   *To: * marmaladeplan3t@gmail.com[2]
   *Subject: *[krita] [Bug 465199] App freezes when I use animation
   docker

   https://bugs.kde.org/show_bug.cgi?id=465199

   --- Comment #6 from sh_zam <shzam@sdf.org> ---

   Odd, I can't reproduce it, it opens for me and the animation runs
   fine, and I

   can change frames with much issues. Would it be possible for you to
   screen

   record the interaction with Krita?

   (The number of frames is quite large, and my device is weaker -- so
   maybe we

   can rule out the possibility that this is due to weaker device :) ).

   --

   You are receiving this mail because:

   You reported the bug.

   

   1. mailto:bugzilla_noreply@kde.org
   2. mailto:marmaladeplan3t@gmail.com
Comment 10 sh_zam 2023-03-03 03:30:07 UTC
Thanks a lot for the recording! 

This looks like an internal deadlock somewhere in Krita. This is causing the app to not close, hence you have to invoke the Force Stop to kill the app.

Let me ping Emmet, they manage animation side of Krita to see if they have any clue why/where something like this would happen.
Comment 11 sh_zam 2023-03-18 01:06:53 UTC
Hey! Can you please share the information from Help -> Show system information for bug reports?
Comment 12 Redkitt3n14 2023-03-20 21:39:04 UTC
Created attachment 157453 [details]
attachment-1200728-0.html

Will do.

On Sat, 18 Mar 2023, 01:06 sh_zam, <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=465199
>
> --- Comment #11 from sh_zam <shzam@sdf.org> ---
> Hey! Can you please share the information from Help -> Show system
> information
> for bug reports?
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 13 Redkitt3n14 2023-03-21 21:53:19 UTC
Created attachment 157503 [details]
KritaSystemInformation.txt

Here is sys info

On Mon, 20 Mar 2023, 21:38 Marmalade Plan3t, <marmaladeplan3t@gmail.com>
wrote:

> Will do.
>
> On Sat, 18 Mar 2023, 01:06 sh_zam, <bugzilla_noreply@kde.org> wrote:
>
>> https://bugs.kde.org/show_bug.cgi?id=465199
>>
>> --- Comment #11 from sh_zam <shzam@sdf.org> ---
>> Hey! Can you please share the information from Help -> Show system
>> information
>> for bug reports?
>>
>> --
>> You are receiving this mail because:
>> You reported the bug.
>
>
Comment 14 sh_zam 2023-03-23 03:27:04 UTC
When the Krita screen freezes, do you ever get a warning from Samsung, saying something like: "Krita keeps stopping? Option 1: Wait, option 2: Kill"?
Comment 15 Redkitt3n14 2023-03-23 19:29:37 UTC
Created attachment 157537 [details]
attachment-1431081-0.html

No, I have never had any warning from the device about a
crash/unresponsive, however I have not looked for one so possibly one may
eventually show up, but it wouldn't be within the first minute I think.

On Thu, 23 Mar 2023, 03:27 sh_zam, <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=465199
>
> --- Comment #14 from sh_zam <shzam@sdf.org> ---
> When the Krita screen freezes, do you ever get a warning from Samsung,
> saying
> something like: "Krita keeps stopping? Option 1: Wait, option 2: Kill"?
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 16 Dmitry Kazakov 2023-07-06 10:01:33 UTC
*** Bug 468692 has been marked as a duplicate of this bug. ***
Comment 17 Dmitry Kazakov 2023-07-06 10:05:27 UTC
Hi, sh_zam!

I have found only two clues in the logs:

The assert in the animation cache renderer:

15 Jan 2023 22:57:34 +0000: SAFE ASSERT (krita): "m_d->requestedFrame == frame" in file /home/user/workspace/Krita_Release_Android_arm64-v8a_Build/krita/libs/ui/KisAsyncAnimationRendererBase.cpp, line 133

and a crash log in the animation cache swapper (KisFrameCacheStore::saveFrame):

Signal: 11 (SIGSEGV) (Code: 1) Time: Sun Jan 15 22:57:34 2023 GMT
  #00 pc 000000000093226c  /data/app/~~janO3eCGuuenBbrDZG9FQQ==/org.krita-b7XCU0oaIVZnNMByBkBaaA==/lib/arm64/libkritaui.so
  #01 pc 00000000009330e8  /data/app/~~janO3eCGuuenBbrDZG9FQQ==/org.krita-b7XCU0oaIVZnNMByBkBaaA==/lib/arm64/libkritaui.so (KisFrameCacheStore::saveFrame(int, KisSharedPtr<KisOpenGLUpdateInfo>, QRect const&)+1444)
  #02 pc 0000000000935fb0  /data/app/~~janO3eCGuuenBbrDZG9FQQ==/org.krita-b7XCU0oaIVZnNMByBkBaaA==/lib/arm64/libkritaui.so (KisFrameCacheSwapper::saveFrame(int, KisSharedPtr<KisOpenGLUpdateInfo>, QRect const&)+68)
  #03 pc 00000000009191d8  /data/app/~~janO3eCGuuenBbrDZG9FQQ==/org.krita-b7XCU0oaIVZnNMByBkBaaA==/lib/arm64/libkritaui.so
  #04 pc 0000000000918fd4  /data/app/~~janO3eCGuuenBbrDZG9FQQ==/org.krita-b7XCU0oaIVZnNMByBkBaaA==/lib/arm64/libkritaui.so (KisAnimationFrameCache::addConvertedFrameData(KisSharedPtr<KisOpenGLUpdateInfo>, int)+176)
  #05 pc 000000000091d888  /data/app/~~janO3eCGuuenBbrDZG9FQQ==/org.krita-b7XCU0oaIVZnNMByBkBaaA==/lib/arm64/libkritaui.so
  #06 pc 0000000000334fdc  /data/app/~~janO3eCGuuenBbrDZG9FQQ==/org.krita-b7XCU0oaIVZnNMByBkBaaA==/lib/arm64/libkritaui.so
  #07 pc 00000000002b8958  /data/app/~~janO3eCGuuenBbrDZG9FQQ==/org.krita-b7XCU0oaIVZnNMByBkBaaA==/lib/arm64/libQt5Core.so (QObject::event(QEvent*)+492)
  #08 pc 00000000001a9634  /data/app/~~janO3eCGuuenBbrDZG9FQQ==/org.krita-b7XCU0oaIVZnNMByBkBaaA==/lib/arm64/libQt5Widgets.so (QApplicationPrivate::notify_helper(QObject*, QEvent*)+296)


Perhaps there is not enough disk space in the swapper location on Android? Could you test? Make sure that "Swap to Disk" is enabled in the Performace->Animation Cache tab of Krita settings...
Comment 18 Dmitry Kazakov 2023-07-14 07:40:40 UTC
This bug seems to be a different flavor of bug 464032 that I fixed recently. It happened because animation cache populator and the playback cache renderer tried to generate cache in parallel.

*** This bug has been marked as a duplicate of bug 464032 ***