Bug 379647

Summary: Crash on starting animation
Product: [Applications] krita Reporter: kde
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 3.1.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description kde 2017-05-09 06:25:58 UTC
How to reproduce:

(I discovered it  trying to play my animation project, but it looks like it applies to any animation)

* Start new animation project with any animation template
* Make new frame on "Black" layer
* Draw any stroke
* Make next new frame on "Black" layer
* Draw any stroke
* Click play animation

(You don't even have to make any animation frames, it crashes for me just when i hit play button, but i tried to make case that it makes animating impossible and it's not just me trying to play empty animation.)

I get 
krita[15477]: segfault at 20 ip 00007fa72625a819 sp 00007ffc2fdc48a0 error 4 in libkritaui.so.16.0.0[7fa725c93000+7e9000]

I've noticed it on my own build, but i reproduced it on appimage provided

Not sure if it helps with anythin, but:

OpenGL Info
  Vendor:  NVIDIA Corporation
  Renderer:  "GeForce GTS 250/PCIe/SSE2"
  Version:  3.3.0 NVIDIA 340.98
  Shading language:  3.30 NVIDIA via Cg compiler
  Requested format:  QSurfaceFormat(version 3.0, options QFlags(0x4), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 0, profile  2)
  Current format:    QSurfaceFormat(version 3.3, options QFlags(0x4), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 0, profile  2)
     Version: 3 . 3
     Supports deprecated functions true
krita has opengl true

It sucks so hard. I was excited that i could animate on 3.1.2 without problems. Now i'm actually scared to update so i don't break everything.
Comment 1 kde 2017-05-09 06:50:16 UTC
Ok, i've managed to "fix" it.

I've noticed that when i've switched back to 3.1.2.1 (thank gods it still worked) my animation preview rendered super slow.
I've checked the Settings on Display tab and i've noticed "OpenGL" option unticked. I ticked it and it helped with animation rendering. 

I've checked it on 3.1.3 and it seems to help here as well.

It makes me hella paranoid about committing to use the project though and recommending it to others. I know updates fix one thing and break the others, but - to be honest - GIMP never pulled on me something like that - and i even use development (2.9 branch) version. Maybe i just got (un)lucky.

I know it's not a paid product, so i should be happy for what i get, but that really makes me way more confident to recommend GIMP over Krita to people.
Comment 2 kde 2017-05-09 06:53:34 UTC
> it seems to help here as well
I mean by that: it fixed the libkritaui segfault for 3.1.3

Sorry, i thought i better make it more clear.
Comment 3 Halla Rempt 2017-05-09 08:11:03 UTC
This issue is already fixed and I will be making a new 3.1.4 release this week. The issue that pretty much none of the developers and beta testers (of which we have way too few!) use Krita with opengl disabled.