Author Topic: Intermittant crash on Ubuntu Dapper  (Read 13881 times)

Offline Gibbon

  • Multiple posting newcomer
  • *
  • Posts: 13
Intermittant crash on Ubuntu Dapper
« 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

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Intermittant crash on Ubuntu Dapper
« Reply #1 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

Offline Gibbon

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Intermittant crash on Ubuntu Dapper
« Reply #2 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

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Intermittant crash on Ubuntu Dapper
« Reply #3 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.

luochong

  • Guest
Re: Intermittant crash on Ubuntu Dapper
« Reply #4 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]
« Last Edit: July 14, 2006, 04:13:59 am by luochong »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Intermittant crash on Ubuntu Dapper
« Reply #5 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).
Be patient!
This bug will be fixed soon...

luochong

  • Guest
Re: Intermittant crash on Ubuntu Dapper
« Reply #6 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
« Last Edit: July 14, 2006, 09:24:02 pm by luochong »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Intermittant crash on Ubuntu Dapper
« Reply #7 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 ;)
Be patient!
This bug will be fixed soon...

luochong

  • Guest
Re: Intermittant crash on Ubuntu Dapper
« Reply #8 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.
« Last Edit: July 15, 2006, 04:36:12 am by luochong »

luochong

  • Guest
Re: Intermittant crash on Ubuntu Dapper
« Reply #9 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!  :)

lenz

  • Guest
Re: Intermittant crash on Ubuntu Dapper
« Reply #10 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.

lenz

  • Guest
Re: Intermittant crash on Ubuntu Dapper
« Reply #11 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.

hatem

  • Guest
Re: Intermittant crash on Ubuntu Dapper
« Reply #12 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

tekel

  • Guest
Re: Intermittant crash on Ubuntu Dapper
« Reply #13 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 ?