Recent

Author Topic: Internal Error 200611031  (Read 8610 times)

PascalDragon

  • Hero Member
  • *****
  • Posts: 6189
  • Compiler Developer
Re: Internal Error 200611031
« Reply #30 on: January 21, 2024, 11:54:09 am »
Thanks for the hint to play with debug settings. Trunk r64262 still didn't want to compile, but I solved it for now by setting -gw3 with the IDE compile settings. I then also installed fpdebug.lpk but the debug page in general settings looks a bit different than the one in stable, and no fpdebug showed up there...?
trunk with that r64262 suggest a very old trunk... You should use trunk with always very recent (days, not months or years) version.

The post you quoted is from 21th December 2020 and guess what had been the most revision of Lazarus trunk at that time? 64261! (FPC trunk was somewhere 47832 back then) So Sieben had been up to date back then.

I seem to regularly get internal errors in the unit which has my control helper after changing something in a different unit. I tend to have a lot of custom controls that inherit other custom controls.

If you manage to get a small, self contained, more or less reproducible example, then please post a bug report to the bug tracker.

Thaddy

  • Hero Member
  • *****
  • Posts: 18321
  • Here stood a man who saw the Elbe and jumped it.
Re: Internal Error 200611031
« Reply #31 on: January 21, 2024, 01:13:49 pm »
Correct. My brain matched to SVN check-out vs GIT.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

cpicanco

  • Hero Member
  • *****
  • Posts: 674
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Internal Error 200611031
« Reply #32 on: January 25, 2024, 03:07:15 pm »
As people commented, for this sort of error, It is really hard to make a reproduceable example with a few lines of code. I spent a couple of days trying before resigning. Then I posted a reproduceable example (with a lot of lines) here:

https://gitlab.com/freepascal.org/fpc/source/-/issues/40487

To my knowledge there has already been found a hopefully good reproduction by and3md https://gitlab.com/freepascal.org/fpc/source/-/issues/40164 - and as far as I'm aware the issue still happens on some big projects.

Any chance those reproduceable examples will help to fix it?
Be mindful and excellent with each other.
https://github.com/cpicanco/

cpicanco

  • Hero Member
  • *****
  • Posts: 674
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Internal Error 200611031
« Reply #33 on: January 25, 2024, 08:09:31 pm »
Someone said that this error seems to be related to build cache. So, do you kown if it makes sense to take advantage of git to increase the chances of reproducing this error? For example:

git checkout HEAD~15
compile
git checkout HEAD~14
compile
...
   
Be mindful and excellent with each other.
https://github.com/cpicanco/

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 265
Re: Internal Error 200611031
« Reply #34 on: October 18, 2025, 11:11:21 am »
I've just had this error occur, on Lazarus 4.0 running on ARM macOS.

I had just added a helper class to an 8000+ line unit. I did notice something in this thread about helpers, so I removed the code and put it into a separate unit (as a unit, not as an include), and it has, for the time being at least, got rid of the error.

ALLIGATOR

  • Sr. Member
  • ****
  • Posts: 285
  • I use FPC [main] 💪🐯💪
Re: Internal Error 200611031
« Reply #35 on: October 18, 2025, 12:52:20 pm »
I've just had this error occur, on Lazarus 4.0 running on ARM macOS.

I had just added a helper class to an 8000+ line unit. I did notice something in this thread about helpers, so I removed the code and put it into a separate unit (as a unit, not as an include), and it has, for the time being at least, got rid of the error.

What version of FPC do you have?
In my humble opinion, it is preferable to use the FPC [main] version compiled from source code (if you are not familiar with compiling from source code, there is a wonderful utility that does this automatically: https://github.com/LongDirtyAnimAlf/fpcupdeluxe).
I may seem rude - please don't take it personally

Thaddy

  • Hero Member
  • *****
  • Posts: 18321
  • Here stood a man who saw the Elbe and jumped it.
Re: Internal Error 200611031
« Reply #36 on: October 18, 2025, 01:50:44 pm »
Internal errors will only be fixed in trunk or fixes. You need to test those first.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 265
Re: Internal Error 200611031
« Reply #37 on: October 18, 2025, 01:58:17 pm »
What version of FPC do you have?
In my humble opinion, it is preferable to use the FPC [main] version compiled from source code (if you are not familiar with compiling from source code, there is a wonderful utility that does this automatically: https://github.com/LongDirtyAnimAlf/fpcupdeluxe).

It's the one downloaded from the website - 3.2.0, I think. I have got FPCDeluxe, and use it as a secondary install for cross-platform compiling. I don't use it as my main development as it doesn't include every package that the downloaded one does.

ALLIGATOR

  • Sr. Member
  • ****
  • Posts: 285
  • I use FPC [main] 💪🐯💪
Re: Internal Error 200611031
« Reply #38 on: October 18, 2025, 02:36:02 pm »
I have got FPCDeluxe
You need to check on the latest updated FPC [main/trunk] compiled via FPCUpDeluxe.

it doesn't include every package that the downloaded one does
Could you please elaborate on which packages you are referring to?
I may seem rude - please don't take it personally

ALLIGATOR

  • Sr. Member
  • ****
  • Posts: 285
  • I use FPC [main] 💪🐯💪
Re: Internal Error 200611031
« Reply #39 on: October 18, 2025, 02:38:07 pm »
.
Also, if possible, please post your code. Or perhaps you could prepare a minimal example for reproduction?
I may seem rude - please don't take it personally

Thaddy

  • Hero Member
  • *****
  • Posts: 18321
  • Here stood a man who saw the Elbe and jumped it.
Re: Internal Error 200611031
« Reply #40 on: October 18, 2025, 06:07:40 pm »
It's the one downloaded from the website - 3.2.0, I think.
You  must have downloaded it ions ago.
Sure you downloaded it from the official website?
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 265
Re: Internal Error 200611031
« Reply #41 on: October 18, 2025, 09:11:13 pm »
It's the one downloaded from the website - 3.2.0, I think.
You  must have downloaded it ions ago.
Sure you downloaded it from the official website?
3.2.2.
Downloaded it not long after Lazarus 4.0 came out.

 

TinyPortal © 2005-2018