Recent

Author Topic: Error: (1026) Compilation raised exception internally  (Read 668 times)

daniel_sap

  • Jr. Member
  • **
  • Posts: 64
Error: (1026) Compilation raised exception internally
« on: December 01, 2024, 11:49:30 am »
Hi,

Since long time I receive this error in 2 of my projects. It happens randomly after few successful compilations the error occurs.
It happens when Compile, Build, Quick Compile.
So, my solution is Clean up and Build ... which is always successful.

These are the last few lines in the log (with verbosity -va checked)
Code: [Select]
[32.648] (APPLICATIONMANAGER) (10048) Adding dependency: APPLICATIONMANAGER depends on DBCOMP
[32.648] (APPLICATIONMANAGER) (10027) Load from APPLICATIONMANAGER (interface) unit FORMSTYLER
[32.648] (APPLICATIONMANAGER) (10048) Adding dependency: APPLICATIONMANAGER depends on FORMSTYLER
[32.648] (APPLICATIONMANAGER) (10027) Load from APPLICATIONMANAGER (interface) unit SETTINGSCOMPONENT
[32.648] (SETTINGSCOMPONENT) (10052) Forced reloading
[32.648] (SETTINGSCOMPONENT) (10058) Re-resolving unit SETTINGSCOMPONENT
[32.648] (SETTINGSCOMPONENT) (10049) No reload, is caller: APPLICATIONMANAGER
[32.648] (SETTINGSCOMPONENT) (10027) Load from SETTINGSCOMPONENT (implementation) unit PARTFORM
[32.648] (PARTFORM) (10052) Forced reloading
[32.648] (PARTFORM) (10058) Re-resolving unit PARTFORM
[32.648] (PARTFORM) (10051) Flag for reload: APPLICATIONMANAGER
[32.648] (PARTFORM) (10051) Flag for reload: BLOCKTOOL
[32.648] (PARTFORM) (10051) Flag for reload: BLOCKCONTOOL
[32.648] (PARTFORM) (10027) Load from PARTFORM (implementation) unit BLOCKTOOL
[32.648] (BLOCKTOOL) (10052) Forced reloading
[32.648] (BLOCKTOOL) (10058) Re-resolving unit BLOCKTOOL
[32.648] (BLOCKTOOL) (10051) Flag for reload: MACHINEBUILDER
[32.648] (BLOCKTOOL) (10027) Load from BLOCKTOOL (implementation) unit BLOCKCONTOOL
[32.648] (BLOCKCONTOOL) (10052) Forced reloading
[32.648] (BLOCKCONTOOL) (10058) Re-resolving unit BLOCKCONTOOL
[32.648] (BLOCKCONTOOL) (10051) Flag for reload: MACHINEBUILDER
[32.648] (BLOCKCONTOOL) (10027) Load from BLOCKCONTOOL (implementation) unit IMPORTEXPORT
[32.648] (IMPORTEXPORT) (10052) Forced reloading
[32.648] (IMPORTEXPORT) (10058) Re-resolving unit IMPORTEXPORT
[32.648] (IMPORTEXPORT) (10051) Flag for reload: APPLICATIONMANAGER
[32.648] (IMPORTEXPORT) (10027) Load from IMPORTEXPORT (implementation) unit AUTOTESTS
[32.648] (AUTOTESTS) (10052) Forced reloading
[32.648] (AUTOTESTS) (10058) Re-resolving unit AUTOTESTS
[32.648] D:\Project\Lazarus\Applications\Silhouette\Silcon\Source\.\Test\AutoTests.pas(36,1) Error: (1026) Compilation raised exception internally
[32.648] Searching file .\Sizes\uSizePointsFrame.pas... found
[33.289] Fatal: (1018) Compilation aborted
An unhandled exception occurred at $0000000100022FDD:
EListError: List index exceeds bounds (632)
  $0000000100022FDD
  $00000001000D4063
  $00000001000D4347
  $00000001000D4063
  $00000001000D4347
  $00000001000D4063
  $00000001000D4347
  $00000001000D4063
  $00000001000D4347
  $00000001000D4063
  $00000001000D4347
  $00000001000D3C3B
  $00000001000D44F1
  $00000001000D4063
  $00000001000D4347
  $00000001000D4063
  $00000001000D4347

Error: C:\lazarus4\fpc\3.2.2\bin\x86_64-win64\ppcx64.exe returned an error exitcode



Because the Clean build is always successful may be it's something in the ppu files which confused the compilator

Lazarus 4.0RC1 (rev t-fixes-4-58-g43d904ed50) FPC 3.2.2 x86_64-win64-win32/win64
It's a clean installation from official Lazarus download
But it was the same with previous versions of FPC and Lazarus.

jamie

  • Hero Member
  • *****
  • Posts: 6776
Re: Error: (1026) Compilation raised exception internally
« Reply #1 on: December 01, 2024, 05:59:17 pm »
Do you many small units being compiled and are you using the Generics.Collections unit ?

Jamie
The only true wisdom is knowing you know nothing

daniel_sap

  • Jr. Member
  • **
  • Posts: 64
Re: Error: (1026) Compilation raised exception internally
« Reply #2 on: December 01, 2024, 08:02:58 pm »
Do you many small units being compiled and are you using the Generics.Collections unit ?

One of the projects contains 330 files (some smaller other bigger). (Project is in Delphi parsing mode)
121 units contain Generics.Collections in the uses clause

The other project is around 100 files. 32 units contain Generic.Collections. (Project is in Delphi parsing mode)

The common between the 2 projects is that both of them have around 60 Required packages.
All of the packages have files which uses Generics.Collections

 

TinyPortal © 2005-2018