Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » GC.drawText throws Pango errors
GC.drawText throws Pango errors [message #1699207] Mon, 22 June 2015 11:11 Go to next message
Eclipse UserFriend
(SWT:18911): Pango-CRITICAL **: pango_font_description_set_size: assertion 'size >= 0' failed

(SWT:18911): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Liberation Sans Bold Italic'

(SWT:18911): Pango-WARNING **: font_face status is: out of memory

(SWT:18911): Pango-WARNING **: scaled_font status is: out of memory

(SWT:18911): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Liberation Sans Bold Italic', text='48'


Hi all. I'm trying to draw some text on a canvas, and when I go to draw the text, I am getting the errors above and the text is rendered as square boxes. I draw other text in this program on a canvas, and that works fine every time, but I have no idea why I could be having this problem. Does anyone have any idea?
Re: GC.drawText throws Pango errors [message #1699345 is a reply to message #1699207] Tue, 23 June 2015 09:53 Go to previous message
Eclipse UserFriend
The 'out of memory' errors makes me wonder if you're running out of resources -- too many fonts/images/widgets etc. Try putting your snippet in a standalone program and see if it works. If it works in the standalone then look at the SWT Sleak tool to track down the errant allocations.

Brian.
Previous Topic:Eclipse 4.2.2 crashes on Power RHEL 7 with JVM error 160
Next Topic:JavaFX the easiest way to get a HTML5 browser in a SWT app?
Goto Forum:
  


Current Time: Tue Jul 08 15:51:24 EDT 2025

Powered by FUDForum. Page generated in 0.10781 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top