Bug 316450

Summary: kolourpaint crashes on every startup
Product: [Applications] kolourpaint Reporter: loedur
Component: generalAssignee: kolourpaint-support
Status: RESOLVED NOT A BUG    
Severity: critical CC: larmac55, martin
Priority: NOR    
Version First Reported In: Comes with KDE   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description loedur 2013-03-10 07:25:52 UTC
Hello,

I open a terminal window (konsole) type in the following and press [Enter]
kolourpaint

The status message in konsole:
=========================
kolourpaint: fcmatch.c:548: IA__FcFontMatch: Assertion `result != ((void *)0)' failed.
KCrash: Application 'kolourpaint' crashing...
---

Backtrace form "KolourPaint - The KDE Crash Handler
===
System configuration startup check disabled.

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash handler]
#5  0x00007f7d46627d25 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f7d466291a8 in __GI_abort () at abort.c:91
#7  0x00007f7d46620c22 in __assert_fail_base (fmt=0x7f7d46756b60 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7f7d48bcadea "result != ((void *)0)", file=file@entry=0x7f7d48bcad94 "fcmatch.c", line=line@entry=548, function=function@entry=0x7f7d48bcaeb0 <__PRETTY_FUNCTION__.6785> "IA__FcFontMatch") at assert.c:94
#8  0x00007f7d46620cd2 in __GI___assert_fail (assertion=assertion@entry=0x7f7d48bcadea "result != ((void *)0)", file=file@entry=0x7f7d48bcad94 "fcmatch.c", line=548, function=function@entry=0x7f7d48bcaeb0 <__PRETTY_FUNCTION__.6785> "IA__FcFontMatch") at assert.c:103
#9  0x00007f7d48bb5332 in IA__FcFontMatch (config=<optimized out>, p=0xda4cf0, result=<optimized out>) at fcmatch.c:548
#10 0x00007f7d4bc638fd in KFontAction::setFont (this=0xc88890, family=...) at kdeui/kactionclasses.cpp:1515
#11 0x0000000000437121 in kpMainWindow::readAndApplyTextSettings (this=this@entry=0xbc4d30) at kpmainwindow_text.cpp:83
#12 0x000000000043811a in kpMainWindow::setupTextToolBarActions (this=this@entry=0xbc4d30) at kpmainwindow_text.cpp:71
#13 0x00000000004572a9 in kpMainWindow::setupActions (this=this@entry=0xbc4d30) at kpmainwindow.cpp:532
#14 0x00000000004573bd in kpMainWindow::init (this=this@entry=0xbc4d30) at kpmainwindow.cpp:231
#15 0x0000000000459922 in kpMainWindow::kpMainWindow (this=this@entry=0xbc4d30, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at kpmainwindow.cpp:70
#16 0x000000000042997a in main (argc=<optimized out>, argv=0x7fff3aa8e948) at kolourpaint.cpp:220
---

Reproducible: Always

Steps to Reproduce:
1. Press [Alt]  + [F2], type in 
konsole
and press [Enter]
2. In the konsole window type in
kolourpaint
and press [Enter]

Actual Results:  
The application crashes every  time

Expected Results:  
The program window of kolourpaint should shown.
Comment 1 Martin Koller 2013-03-10 08:57:29 UTC
What version of KDE are you using ?
The mentioned file kdeui/kactionclasses.cpp:1515 does not exist in KDE-4.10.1 sources.

But nevertheless, the crash happens outside of KDE code in the function FcFontMatch() of the fontconfig library, e.g.
http://cgit.freedesktop.org/fontconfig/tree/src/fcmatch.c?id=2.9.0#n548

What you can do to solve this problem is to remove the kolourpaint config file (or at least the line with the "Font Family" in it), e.g. ~/.kde4/share/config/kolourpaintrc
It would be interesting to know what that line defines in your file.
My file contains:
Font Family=Arial
Comment 2 Christoph Feck 2013-04-14 14:58:25 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 Christoph Feck 2013-04-23 16:39:20 UTC
To further investigate this issue, KDE developers need the information requested in comment #1. If you can provide it, or need help with finding that information, please add a comment.
Comment 4 Christoph Feck 2013-05-14 11:48:55 UTC
No response, changing status. Please reopen, if you have more information.