Lazarus

Programming => Graphics and Multimedia => Graphics => Topic started by: FangQ on March 23, 2010, 07:17:26 pm

Title: glscene broken in 0.9.28.2 with "Internal error 2009071902"
Post by: FangQ 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);
...
Title: Re: glscene broken in 0.9.28.2 with "Internal error 2009071902"
Post by: Leledumbo on March 24, 2010, 12:42:34 pm
An internal error should always be reported as a bug. Please create it.
Title: Re: glscene broken in 0.9.28.2 with "Internal error 2009071902"
Post by: Troodon 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.
Title: Re: glscene broken in 0.9.28.2 with "Internal error 2009071902"
Post by: Ocye 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.
TinyPortal © 2005-2018