Recent

Author Topic: [Solved] Pango-CRITICAL on ShowModal  (Read 2472 times)

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
[Solved] Pango-CRITICAL on ShowModal
« on: January 20, 2020, 10:21:15 pm »
I'm on raspbian x86 and when trying to show a modal form I get:

Code: Pascal  [Select][+][-]
  1. Pango-CRITICAL **: 18:18:37.931: pango_layout_get_font_description: assertion 'PANGO_IS_LAYOUT (layout)' failed

The same form works under windows, other linux distros, mac os.

I get only a Division by Zero, where in my form there are no divisions at all.

As well I've added some 'writeln' with numbers to see where it crashes, and it never reaches OnShow method, is right in the ShowModal that it breaks.

I googled and found "Pango is a library for laying out and rendering of text, with an emphasis on internationalization.". So it must be a buggy label or something like that, a hidden label maybe?

Edit: also I get sometimes

TGtkFontCache.Add font desc added twice
« Last Edit: January 21, 2020, 05:00:02 pm by lainz »

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Pango-CRITICAL on ShowModal
« Reply #1 on: January 20, 2020, 10:53:16 pm »
I googled and found myself, seems that in raspbian ARM also happened in the past
https://forum.lazarus.freepascal.org/index.php?topic=43387.0

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Pango-CRITICAL on ShowModal
« Reply #2 on: January 21, 2020, 04:59:47 pm »
Solved hiding all form elements recursively, and then displaying them in order again...

 

TinyPortal © 2005-2018