Code::Blocks Forums

User forums => Help => Topic started by: Gibbon on June 18, 2006, 03:43:26 pm

Title: Intermittant crash on Ubuntu Dapper
Post by: Gibbon on June 18, 2006, 03:43:26 pm
Hi

I'm getting this error when either saving a file (CTRL+S) or building (CTRL+F9)

Code
codeblocks: cairo-ft-font.c:678: _cairo_ft_unscaled_font_set_scale: Assertion `error == 0' failed.
codeblocks: cairo-ft-font.c:678: _cairo_ft_unscaled_font_set_scale: Assertion `error == 0' failed.
Aborted

It only happens every so often, but three times in the last three hours.  It's easy to restart, and the save has actually happened.

I'm using Version 1.0 revision 2573 - compiled on my machine.

Cheers
Title: Re: Intermittant crash on Ubuntu Dapper
Post by: Michael on June 18, 2006, 03:45:11 pm
Hello,

May be you can try with an other font and see if you still have the same problems.

Best wishes,
Michael
Title: Re: Intermittant crash on Ubuntu Dapper
Post by: Gibbon on June 19, 2006, 03:09:25 pm
Hello,

May be you can try with an other font and see if you still have the same problems.

Best wishes,
Michael


Nope - same error - this time using <CTRL+F9> to build my project.

I changed the font I'm using in the editor to courier 11 pt.

Code
-------------- Build: default in SDL Application ---------------
codeblocks: cairo-ft-font.c:678: _cairo_ft_unscaled_font_set_scale: Assertion `error == 0' failed.
codeblocks: cairo-ft-font.c:678: _cairo_ft_unscaled_font_set_scale: Assertion `error == 0' failed.
Aborted

Cheers
Title: Re: Intermittant crash on Ubuntu Dapper
Post by: Michael on June 19, 2006, 10:03:58 pm
Hello,

I have tried on my system, but all seem to work fine.

I have the following font settings:

C::B:
Monospace, Regular, 8
Default encoding when opening files: utf-8

Ubuntu Dapper (Font Preferences):

Sans, 10 --> for all except Window title font (Sans Bold, 10) and Fixed width font (Monospace, 10).

Best wishes,
Michael

PS.: May be you can give a try to the latest .deb package (nightly build) to verify if it works. I use it on my machine.
Title: Re: Intermittant crash on Ubuntu Dapper
Post by: luochong on July 14, 2006, 03:41:35 am
Yes, I also have that problem. Codeblocks (nightly build 20060629 on Ubuntu) keeps on crashing because of this same error.

Code
codeblocks: /home/dajobe/dev/debian/cairo/libcairo-1.2.0/src/cairo-ft-font.c:680: _cairo_ft_unscaled_font_set_scale: Assertion `error == 0' failed.


Especially when I add the source file "Student_info.cpp" (in the attachment) to the project, it always crashes. Codeblocks crashes at other moments also, very often.

Ps: I use the same font setting as Michael, but the problem persists.

[attachment deleted by admin]
Title: Re: Intermittant crash on Ubuntu Dapper
Post by: mandrav on July 14, 2006, 08:29:32 am
What ubuntu version are you using?
This was a bug in libcairo which was fixed almost a year ago (nothing to do with our sources).
Title: Re: Intermittant crash on Ubuntu Dapper
Post by: luochong on July 14, 2006, 09:09:50 pm
Actually I'm using Debian Sid. I was glad that the one built on Ubuntu can also run at Sid, however, it crashes so often that it's not usable at all.

I checked and found that the related libraries on my computer are (the newest ones in Sid)
Code
root@XXX:~# ldd `which codeblocks` | grep cairo
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb6c28000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb6bc8000)
root@XXX:~# dpkg -l libpango1.0-0
ii  libpango1.0-0          1.12.3-1               Layout and rendering of internationalized text
root@XXX:~# dpkg -l libcairo2
ii  libcairo2              1.2.0-3                The Cairo 2D vector graphics library
Title: Re: Intermittant crash on Ubuntu Dapper
Post by: mandrav on July 14, 2006, 10:49:06 pm
Actually I'm using Debian Sid.

That explains why it crashes for you very often, as you said.
I 'd suggest building C::B from source. It's pretty easy, well documented and the results are guaranteed ;)
Title: Re: Intermittant crash on Ubuntu Dapper
Post by: luochong on July 15, 2006, 04:21:11 am
Quote
That explains why it crashes for you very often, as you said.
I 'd suggest building C::B from source. It's pretty easy, well documented and the results are guaranteed ;)
Code
XXX@XXX:/f/workspace$ codeblocks

(codeblocks:25197): Gtk-CRITICAL **: gtk_window_realize_icon: assertion `info->icon_pixmap == NULL' failed
codeblocks: /home/dajobe/dev/debian/cairo/libcairo-1.2.0/src/cairo-ft-font.c:680: _cairo_ft_unscaled_font_set_scale: Assertion `error == 0' failed.
codeblocks: /home/dajobe/dev/debian/cairo/libcairo-1.2.0/src/cairo-ft-font.c:680: _cairo_ft_unscaled_font_set_scale: Assertion `error == 0' failed.
Aborted


I'm sorry, but the same error still persists after I checked out the source code using svn, and rebuilt the package on my Debian Sid.
Title: Re: Intermittant crash on Ubuntu Dapper
Post by: luochong on July 15, 2006, 06:47:25 am
Since cairo-ft-font.c:680 is the trouble-maker, so I commented out this line and re-packaged libcairo2. Now codeblocks is very stable now!  :)
Title: Re: Intermittant crash on Ubuntu Dapper
Post by: lenz on July 18, 2006, 05:10:31 pm
Since cairo-ft-font.c:680 is the trouble-maker, so I commented out this line and re-packaged libcairo2. Now codeblocks is very stable now!  :)

Please, can you specify which file did you edit? I have an Ubuntu Dapper and I couldn't solve this problem.
Title: Re: Intermittant crash on Ubuntu Dapper
Post by: lenz on July 18, 2006, 05:52:14 pm
I got it! thanks for the suggestion. I rebuilt and re-packaged the libcairo2 and the problem disappeared.
Title: Re: Intermittant crash on Ubuntu Dapper
Post by: hatem on August 03, 2006, 08:39:41 pm
I used checkinstall to make a quick deb package of the recompiled libcairo2 (with the offending line commented out). This way I can easily and quickly get codeblocks working on fresh ubuntu installs. I'm posting the link here, hopefully this will save some of you some time as well.

http://hamiltonshells.com/~hatem/libcairo2_1.2.0-hatem1-1_i386.deb

Note: this is my first deb package, use at your own risk :P
Title: Re: Intermittant crash on Ubuntu Dapper
Post by: tekel on August 06, 2006, 03:43:31 am
I also have seen this problem on Gentoo and windows, Should this be filled against cairo as a bug ?