GTK2: DrawableNil exception on Copyrect
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
GTK2 calls RaiseSrcDrawableNil inside TGtk2WidgetSet.StretchCopyArea in attached sample program.
Steps to reproduce:
Unzip and build attached program for Linux-GTK2 (it has buildmodes to control this).
Run.
It crashes with "Invalid floating point operation."
Build the same program for QT (or Win32) and the crash does not occurr.
Additional information:
[bart@localhost copyrect]$ ./cprect
RaiseSrcDrawableNil 0A539B08=GtkWindow [PrApDb] LCLObject=B7713B60=Form1:TForm1&LtPos;Is MainWidget>&LtPos;Is CoreWidget>
ERROR in LCL: TGtk2WidgetSet.StretchCopyArea SrcDC=B7498190 Drawable=nil
Creating gdb catchable error:
$08116E6D TLAZLOGGER__DEBUGLNSTACK, line 720 of lazloggerbase.pas
$080DAB6A DUMPSTACK, line 1411 of lclproc.pas
$080D930B RAISEGDBEXCEPTION, line 856 of lclproc.pas
$081A7207 RAISESRCDRAWABLENIL, line 4051 of ./gtk2/gtk2widgetset.inc
$081A6E5D TGTK2WIDGETSET__STRETCHCOPYAREA, line 4115 of ./gtk2/gtk2widgetset.inc
$081BC26E TGTK2WIDGETSET__STRETCHBLT, line 9489 of ./gtk2/gtk2winapi.inc
$0815DB56 STRETCHBLT, line 1015 of ./include/winapi.inc
$0814F241 TCANVAS__COPYRECT, line 123 of ./include/canvas.inc
$08093267 TFORM1__FORMCREATE, line 48 of main.pas
Uncommenting
//MyBMap.FreeImage;
(a suggestion by Martin) does not make a difference
Mantis conversion info:
- Mantis ID: 27795
- OS: Linux
- OS Build: Fedora Core 18
- Build: r47338
- Platform: i386
- Version: 1.5 (SVN)
- Fixed in revision: 48643 (#7ab1cdbe)