FLTK logo

Re: [fltk/fltk] SIGSEGV with OPTION_USE_PANGO and fl_draw(const char *, int, int, int, int, Fl_Align) when strlen == 1 (#276)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] SIGSEGV with OPTION_USE_PANGO and fl_draw(const char *, int, int, int, int, Fl_Align) when strlen == 1 (#276) Albrecht Schlosser Sep 28, 2021  
 

@MoAlyousef Your test program misses to set a font. This results in undefined behavior.
Please add something like fl_font(FL_HELVETICA, 16); before your fl_draw() call. This should fix the issue (it does for me).

Is this a specific issue of the test program (missing fl_font()), or is this the case in the original program?

That said:

  1. I wonder why it works with string sizes other than 1 (maybe because of 1-byte-string (width) caching?)
  2. for me the original test program crashes with or w/o using Pango (using Xft)
  3. I wonder why the crash dump shows the file src/drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx whose name indicates that it should be used with xft (and not with Pango?). I could check this myself but I'm currently busy with other stuff, sorry.

Points 1 and 3 may be something for @ManoloFLTK. Manolo?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.