Working with some panorama pictures I noted that the loading in a TImage stumbled over an exception:
ERROR in code: TGtk2WidgetSet.CreateBitmapFromRawImage Incompatible DataSize
Creating gdb catchable error:
$000000000051E338 DEBUGLNSTACK, line 876 of lazloggerbase.pas
$0000000000519775 DEBUGLNSTACK, line 12 of LazLoggerImpl.inc
$0000000000650581 RAISEGDBEXCEPTION, line 48 of laztracer.pas
$000000000048AD0C RAWIMAGE_CREATEBITMAPS, line 421 of gtk2lclintf.inc
$00000000005783B8 RAWIMAGE_CREATEBITMAPS, line 157 of include/lclintf.inc
$0000000000582EE7 CREATECOMPATIBLEBITMAPS, line 2267 of graphics.pp
$0000000000588D4E BITMAPHANDLENEEDED, line 188 of include/rasterimage.inc
$0000000000588F47 DRAW, line 234 of include/rasterimage.inc
$00000000005931EB STRETCHDRAW, line 48 of include/canvas.inc
TRasterImage.BitmapHandleNeeded: Unable to create handles, using default
Weird thing is, I seem not to be able to catch this exception. What am I doing wrong ?
Attached is a simple program that shows this behavior with some sample pictures.
This error occurs in the GTK2 widgetset, but not in the QT5 widgetset (not for these dimensions anyway).
BTW this exception occurs on an imagewidt >= 2^14 and an imageheight >= 2^15 ..