Recent

Author Topic: TImage: uncatched exception ?  (Read 520 times)

wschulte

  • New Member
  • *
  • Posts: 34
TImage: uncatched exception ?
« on: March 10, 2022, 06:26:08 am »
Working with some panorama pictures I noted that the loading in a TImage stumbled over an exception:
Code: Pascal  [Select][+][-]
  1. ERROR in code: TGtk2WidgetSet.CreateBitmapFromRawImage Incompatible DataSize
  2. Creating gdb catchable error:
  3.  
  4.   $000000000051E338  DEBUGLNSTACK,  line 876 of lazloggerbase.pas
  5.   $0000000000519775  DEBUGLNSTACK,  line 12 of LazLoggerImpl.inc
  6.   $0000000000650581  RAISEGDBEXCEPTION,  line 48 of laztracer.pas
  7.   $000000000048AD0C  RAWIMAGE_CREATEBITMAPS,  line 421 of gtk2lclintf.inc
  8.   $00000000005783B8  RAWIMAGE_CREATEBITMAPS,  line 157 of include/lclintf.inc
  9.   $0000000000582EE7  CREATECOMPATIBLEBITMAPS,  line 2267 of graphics.pp
  10.   $0000000000588D4E  BITMAPHANDLENEEDED,  line 188 of include/rasterimage.inc
  11.   $0000000000588F47  DRAW,  line 234 of include/rasterimage.inc
  12.   $00000000005931EB  STRETCHDRAW,  line 48 of include/canvas.inc
  13. TRasterImage.BitmapHandleNeeded: Unable to create handles, using default
  14.  

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 ..

 

TinyPortal © 2005-2018