Due to changes in FCL, running empty Lazarus GUI application fails with exception "PNGImageException : Invalid chunklength".
Original Reporter info from Mantis: Cyrax
-
Reporter name:
Original Reporter info from Mantis: Cyrax
- Reporter name:
Description:
Recent changes in FCL now results an exception message during a start of running process.
See Steps To Reproduce and Additional Information for more info.
Steps to reproduce:
- Create new Lazarus application project.
- Run it.
- Observe the exception message.
Additional information:
Call stack :
#0 fpc_raiseexception(0x189830, 0xa1a0a0d, 0x474e5089) at seh32.inc:86 #1 TFPREADERPNG__READCHUNK(0x189830) at fcl-image\src\fpreadpng.pp:154 #2 TFPREADERPNG__INTERNALREAD(0x189830, 0x182850, 0x1ea030) at fcl-image\src\fpreadpng.pp:820 #3 TLAZREADERPNG__INTERNALREAD(0x189830, 0x182850, 0x1ea030) at intfgraphics.pas:6106 #4 TFPCUSTOMIMAGEREADER__IMAGEREAD(0x189830, 0x182850, 0x1ea030) at fcl-image\src\fphandler.inc:230 #5 TCUSTOMICON__READSTREAM(0x1918a8, 0x182850, 137040) at include\icon.inc:883 #6 TRASTERIMAGE__LOADFROMSTREAM(0x1918a8, 0x182830, 137040) at include\rasterimage.inc:441 #7 TRASTERIMAGE__LOADFROMSTREAM(0x1918a8, 0x182830) at include\rasterimage.inc:417 #8 TCUSTOMICON__READDATA(0x1918a8, 0x182830) at include\icon.inc:786 #9 TICON__LOADFROMRESOURCEHANDLE(0x1918a8, 4194304, 5877056) at include\icon.inc:1408 #10 TAPPLICATION__INITIALIZE(0x1aa3c8) at include\application.inc:452 #11 main at project1.lpr:17
---
FPC and Lazarus was built with these options:
Lazarus revision 52153 FPC revision 33468FPC make commands: clean all install OPT=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -O- -Xs- -Si- -vbq -dCTYPES_INLINE_OFF -dSTRINGS_INLINE_OFF -dHEAPTRC_INLINE_OFF -dWINDOWS_INLINE_OFF -dDYNLIBS_INLINE_OFF -dSYSUTILS_INLINE_OFF -dMATH_INLINE_OFF -dTYPINFO_INLINE_OFF -dCPU_INLINE_OFF -dCHARSET_INLINE_OFF -dCHARACTER_INLINE_OFF -dUNICODEDATA_INLINE_OFF -dSYSTEM_INLINE_OFF -dTEST_WIN32_SEH COMPILER_OPTIONS=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -O- -Xs- -Si- -vbq -dCTYPES_INLINE_OFF -dSTRINGS_INLINE_OFF -dHEAPTRC_INLINE_OFF -dWINDOWS_INLINE_OFF -dDYNLIBS_INLINE_OFF -dSYSUTILS_INLINE_OFF -dMATH_INLINE_OFF -dTYPINFO_INLINE_OFF -dCPU_INLINE_OFF -dCHARSET_INLINE_OFF -dCHARACTER_INLINE_OFF -dUNICODEDATA_INLINE_OFF -dSYSTEM_INLINE_OFF -dTEST_WIN32_SEH OS_TARGET=win32 CPU_TARGET=i386 REVSTR=33468 UPXPROG=echo IDE=1 NOWPOCYCLE=1 INSTALL_PREFIX=j:\free_pascal_and_lazarus_new4\fpc\i386\win32\binary\3.1.1\fpc_trunk\trunk
Lazarus make commands: clean all OPT=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -gh -O- -Si- -vb -dHEAPTRC_WINDOW -dDBG_WITH_DEBUGGER_DEBUG UPXPROG=echo USESVN2REVISIONINC=0
Mantis conversion info:
- Mantis ID: 29990
- OS: Server 2008 R2
- OS Build: 6.1.7601 (SP1)
- Build: r33468
- Platform: Windows
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 33471 (#65e901c8)
- Target version: 3.0.2