Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » GC.drawText throws Pango errors
GC.drawText throws Pango errors [message #1699207] Mon, 22 June 2015 15:11 Go to next message
Cody Crow is currently offline Cody CrowFriend
Messages: 1
Registered: June 2015
Junior Member
(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 13:53 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 877
Registered: January 2012
Senior Member

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: Mon Jan 25 09:05:19 GMT 2021

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

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

Back to the top