Recent

Author Topic: glscene broken in 0.9.28.2 with "Internal error 2009071902"  (Read 6101 times)

FangQ

  • Full Member
  • ***
  • Posts: 116
glscene broken in 0.9.28.2 with "Internal error 2009071902"
« on: March 23, 2010, 07:17:26 pm »
I am using Lazarus 0.9.28.2 from Ubuntu 9.10. When I tried to compile glscene svn 2426 (the latest), I got an internal error at the line starting with FLightMapTexCoords (see below) in glvectorfileobjects.pas, I can only get around by commenting out the line.

the error message reads like:
Code: [Select]
/usr/lib/lazarus/0.9.28.2/components/glscene/Source/glvectorfileobjects.pas(3606,13) Fatal: Internal error 2009071902
Anyone know how to fix this? thanks

Code: [Select]
procedure TMeshObject.ReadFromFiler(reader : TVirtualReader);
...
         for i := 0 to lOldLightMapTexCoords.Count - 1 do
            FLightMapTexCoords.Add(lOldLightMapTexCoords[i].S, lOldLightMapTexCoords[i].T);
...
« Last Edit: March 23, 2010, 07:25:35 pm by FangQ »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8244
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: glscene broken in 0.9.28.2 with "Internal error 2009071902"
« Reply #1 on: March 24, 2010, 12:42:34 pm »
An internal error should always be reported as a bug. Please create it.

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: glscene broken in 0.9.28.2 with "Internal error 2009071902"
« Reply #2 on: March 24, 2010, 12:57:07 pm »
On Windows, GLScene generally compiles with the latest Lazarus/FPC snapshot (that is, for 32 bits; on 64 bit platforms it won't compile anyway because it contains 32 bit assembler code). On Linux, you need GLScene for Lazarus/FPC as per instructions at http://wiki.lazarus.freepascal.org/GLScene.
Lazarus/FPC on Linux

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: glscene broken in 0.9.28.2 with "Internal error 2009071902"
« Reply #3 on: March 25, 2010, 09:33:05 am »
Workaround was to me:
Code: [Select]
var
  t:(type of lOldLightMapTexCoords = "TexPoint something")
for i := 0 to lOldLightMapTexCoords.Count - 1 do
begin
  t:=lOldLightMapTexCoords.Items[i];
  FLightMapTexCoords.Add(t.S, t.T);
end;

At last I downgraded as GLMisc wasn't found too.

PS: Strange thing that such a simple assignment can produce an internal error.
Lazarus 1.7 (SVN) FPC 3.0.0

 

TinyPortal © 2005-2018