Bug 469823 - Crashing when rendering small animation
Summary: Crashing when rendering small animation
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Animation (show other bugs)
Version: 5.1.5
Platform: Microsoft Windows Other
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-15 22:40 UTC by Jenn McB
Modified: 2023-07-26 03:45 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jenn McB 2023-05-15 22:40:05 UTC
Input #0, image2, from 'D:/Krita/My animations/frame%04d.png':
  Duration: 00:00:04.84, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown), 4961x7016 [SAR 23622:23622 DAR 4961:7016], 25 fps, 25 tbr, 25 tbn
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
[libx264 @ 00000218c858eec0] using SAR=4095/4096
[libx264 @ 00000218c858eec0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 00000218c858eec0] profile Constrained Baseline, level 6.0, 4:2:0, 8-bit
[libx264 @ 00000218c858eec0] 264 - core 164 r3106 eaa68fa - H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'D:/Krita/My animations/ufo abduction B.mp4':
  Metadata:
    encoder         : Lavf60.4.101
  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 4962x7016 [SAR 4961:4962 DAR 4961:7016], q=2-31, 24 fps, 12288 tbn
    Metadata:
      encoder         : Lavc60.9.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=28.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
frame=    1 fps=0.0 q=28.0 size=       0kB time=00:00:00.04 bitrate=   9.2kbits/s speed=0.000339x    
x264 [error]: malloc of size 172402752 failed
[vost#0:0/libx264 @ 00000218c858ea80] Error submitting video frame to the encoder
[libx264 @ 00000218c858eec0] frame I:1     Avg QP:11.89  size:480169
[libx264 @ 00000218c858eec0] frame P:2     Avg QP:18.86  size:  4739
[libx264 @ 00000218c858eec0] mb I  I16..4: 92.6%  0.0%  7.4%
[libx264 @ 00000218c858eec0] mb P  I16..4:  0.1%  0.0%  0.0%  P16..4:  0.9%  0.1%  0.0%  0.0%  0.0%    skip:98.9%
[libx264 @ 00000218c858eec0] coded y,uvDC,uvAC intra: 4.1% 9.0% 7.3% inter: 0.0% 0.3% 0.0%
[libx264 @ 00000218c858eec0] i16 v,h,dc,p: 97%  2%  1%  0%
[libx264 @ 00000218c858eec0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 14% 29%  5%  3%  4%  3%  4%  2%
[libx264 @ 00000218c858eec0] i8c dc,h,v,p: 91%  3%  4%  1%
[libx264 @ 00000218c858eec0] ref P L0: 97.0%  3.0%
[libx264 @ 00000218c858eec0] kb/s:31337.41
Conversion failed!

OBSERVED RESULT
Krita fails to render animation, sometimes resulting: in a crash of krita, crash of computer, crash of computer and resetting of tablet resolution.

EXPECTED RESULT
Animation rendered

Device name	DESKTOP-5DT7R9G
Processor	AMD Ryzen 5 2600 Six-Core Processor               3.40 GHz
Installed RAM	24.0 GB (12.0 GB usable)
Device ID	C6BB2A4F-A5F8-4784-9301-023D786107ED
Product ID	00330-80209-87041-AA283
System type	64-bit operating system, x64-based processor
Pen and touch	Pen support

Steam version 5.1.5
Comment 1 YRH 2023-06-24 17:29:46 UTC
Hello! I wonder if your computer is stable otherwise? A crashing app should not result in a whole system crash. During the encoding operation, I'm seeing this error:

x264 [error]: malloc of size 172402752 failed

Which means the app failed to allocate 172 MB of memory. How much RAM does your system have? Memory allocation only fails in very critical conditions, which should not happen normally.

Are you using ffmpeg to encode? Can you try upgrading to a newer version maybe, or just reinstalling it? Thanks.
Comment 2 Dmitry Kazakov 2023-06-26 08:06:31 UTC
The problem seems to be in the system setup. Could you please try to enable system-swap on your system or make sure that you have more free RAM when doing the encoding?

Updating FFMpeg may also help.
Comment 3 Bug Janitor Service 2023-07-11 03:44:57 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2023-07-26 03:45:00 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!