Bug 376580 - crash after working little while
Summary: crash after working little while
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: git master (please specify the git hash!)
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-17 11:27 UTC by basse
Modified: 2017-04-11 15:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
gdb bt full (18.91 KB, text/plain)
2017-02-17 11:27 UTC, basse
Details
traceback (17.86 KB, text/plain)
2017-04-11 07:09 UTC, basse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description basse 2017-02-17 11:27:54 UTC
Created attachment 104073 [details]
gdb bt full

lately I've ran into issue Krita crashing without no apparent reason. still trying to figure out what it is exactly, but sofar seems quite random.. 
I decided to post a backtrace of one occurance.. if it would magicallly just show what happened :) 

I opened Krita. 
Created new document.
Painted a bit.. erased canvas, painted more.. switched presets... tried mirror mode.. and bam!   

mirror mode worked on other run just fine.  so it's not necessarily that.

I'm running Krita compiled from git .. 
Kubuntu 16.10, 
Nvidia 367 drivers

.b
Comment 1 wolthera 2017-02-17 16:44:36 UTC
Thanks for the backtrace, with a backtrace I can set it to confirmed, but...

... It crashes in the grid-config, what the hell?
Comment 2 basse 2017-02-17 20:21:06 UTC
couple of more crashes just now..  this time I was testing how the whole perspective assistant thing works.. I set up some assistant lines and tried to figure out how to move the points after I had placed them... so I wasn't even doing much... and then just noticed Krita is not responsive, and down we went again. 

backtrace, well looks to be the same, so I'm not posting.

what is grid-config?

.b
Comment 3 Halla Rempt 2017-03-27 13:57:06 UTC
Hi Basse,

Do you still build Krita yourself? It looks to me like the result of an unclean build because the crash happens in  qRegisterNormalizedMetaType.
Comment 4 basse 2017-04-10 18:09:44 UTC
Hi..  sorry haven't noticed the comment until now.. and yes I build Krita myself. 
so what is your recommendation?  "make clean" ? 

here's one line again.. from console..
QMetaType::registerType: Binary compatibility break -- Size mismatch for type 'KisGridConfig' [1034]. Previously registered size 84, now registering size 68.
KCrash: crashing... crashRecursionCounter = 2

so I guess it's still the same..  


.b
Comment 5 basse 2017-04-11 07:07:55 UTC
I did a "make clean" and "make" ... still getting the crash. attaching latest trace.  anything else I could provide you with?

.b
Comment 6 basse 2017-04-11 07:09:21 UTC
Created attachment 104960 [details]
traceback
Comment 7 Halla Rempt 2017-04-11 07:26:06 UTC
Git commit dca1282a273af09f7b00c62fd800d8aa1b1f500d by Boudewijn Rempt.
Committed on 11/04/2017 at 07:25.
Pushed by rempt into branch 'master'.

M  +2    -0    libs/ui/canvas/kis_grid_config.h

https://commits.kde.org/krita/dca1282a273af09f7b00c62fd800d8aa1b1f500d
Comment 8 Halla Rempt 2017-04-11 07:26:30 UTC
Git commit cab3b2103db741b52dc81858330c31f2860161d0 by Boudewijn Rempt.
Committed on 11/04/2017 at 07:26.
Pushed by rempt into branch 'krita/3.1'.

M  +2    -0    libs/ui/canvas/kis_grid_config.h

https://commits.kde.org/krita/cab3b2103db741b52dc81858330c31f2860161d0
Comment 9 Halla Rempt 2017-04-11 07:59:08 UTC
Could you please check whether this fixes it? It's just a hunch, but could cause the backtrace. Though it's still weird I don't get it.
Comment 10 basse 2017-04-11 10:46:01 UTC
(In reply to Boudewijn Rempt from comment #9)
> Could you please check whether this fixes it? It's just a hunch, but could
> cause the backtrace. Though it's still weird I don't get it.


I updated and recompiled.. still happening. must be something in my build environment then.. I'm using this to build it:
cmake ~/kf5/src/krita -DCMAKE_INSTALL_PREFIX=~/kf5/inst -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF

then I run it with this:
export XDG_DATA_DIRS=~/kf5/inst/share:$XDG_DATA_DIRS
~/kf5/inst/bin/krita

nothing too special... I'm running it on Kubuntu 16.10, Qt 5.6.1.. 

maybe I try to just clean everything out, download whole new git and let's see.. 

.b
Comment 11 Halla Rempt 2017-04-11 15:40:50 UTC
Yes... Well, the git checkout should be fine, especially if you do a 

git reset --hard
git clean --fd

And then start with no existing build or install folder.