[closed] TCastleThirdPersonNavigation fails to run

Hello, I got the following error when I run my test program.
It’s a smalñ program, with a plane, a camera a box and a TCastleThirdPersonNavigation.

I use Debian 11, I updated to the last soutce from github. I compiled CGE, and continues the problem

/BlueIcaro

Running “/home/jorge/Documentos/github/castle-engine/bin/castle-engine compile --mode=debug”

Compiling project “TestWalk” for OS / CPU “linux / x86_64” in mode “debug”.
FPC executing…
Compiling Debug Version
Free Pascal Compiler version 3.2.2-r0d122c49 [2023/12/24] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling TestWalk_standalone.dpr
User defined: Thread support enabled.
Compiling castleautogenerated.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castleapplicationproperties.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castleclassutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castleutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castlestringutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castlelog.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castleapplicationproperties.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castleclassutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castletimeutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/window/castlewindow.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base_rendering/castleinternalcontextglx.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base_rendering/castleinternalcontextbase.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castlevectors.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castlevectorsinternalsingle.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castlevectorsinternaldouble.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castlecolors.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castlequaternions.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castlerenderoptions.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base_rendering/dglopengl/castlegl.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castledynlib.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base_rendering/castleglutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/images/castleimages.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/images/castleinternalpng.pas
User defined: PNG loading with dynamic LibPng (fallback on Vampyre/FPImage/PngImage)
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castleinternalzlib.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castlerectangles.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castlefilefilters.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castleuriutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castleinternaldatauri.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castlefilesutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castlefindfiles.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castlexmlutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castledownload.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castleinternalzstream.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castleinternalgzio.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castleinternalfilemonitor.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castleinternaldirectoryinformation.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/Imaging.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingTypes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingBitmap.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingUtility.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingFormats.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingIO.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingJpeg.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingColors.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjpeglib.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdeferr.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjmorecfg.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjcomapi.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjinclude.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdapimin.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjerror.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjmemmgr.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjmemnobs.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdmarker.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdinput.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdapistd.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdmaster.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdcolor.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdsample.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdpostct.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjddctmgr.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdct.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjidctfst.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjidctint.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjidctflt.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjidctred.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdphuff.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdhuff.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdcoefct.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdmainct.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjquant2.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjquant1.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjdmerge.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjcapimin.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjcmarker.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjcapistd.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjcinit.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjcphuff.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjchuff.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjcmaster.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjccolor.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjcsample.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjcprepct.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjcdctmgr.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjfdctint.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjfdctfst.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjfdctflt.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjccoefct.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjcmainct.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/JpegLib/imjcparam.pas
Writing Resource String Table file: ImagingJpeg.rsj
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingNetworkGraphics.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ZLib/dzlib.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingCanvases.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingClasses.pas
Writing Resource String Table file: ImagingCanvases.rsj
Writing Resource String Table file: ImagingNetworkGraphics.rsj
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingGif.pas
Writing Resource String Table file: ImagingGif.rsj
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingDds.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingTarga.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingPortableMaps.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Source/ImagingRadiance.pas
Writing Resource String Table file: ImagingRadiance.rsj
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Extensions/ImagingExtFileFormats.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Extensions/ImagingPsd.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Extensions/ImagingPcx.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/vampyre_imaginglib/src/Extensions/ImagingXpm.pas
Writing Resource String Table file: Imaging.rsj
Compiling /home/jorge/Documentos/github/castle-engine/src/images/castleinternalcompositeimage.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castlestreamutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/images/castleinternaldatacompression.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castleprojection.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base_rendering/castleglversion.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base_rendering/castleglshaders.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base_rendering/castlerendercontext.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base_rendering/castleinternalglutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base_rendering/castleglimages.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/images/castletextureimages.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/images/castlevideos.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/images/castletextureimages.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/ui/castlekeysmouse.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castlexmlconfig.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castlexmlcfginternal.pas
Writing Resource String Table file: castlexmlcfginternal.rsj
Compiling /home/jorge/Documentos/github/castle-engine/src/ui/castleuicontrols.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/fonts/castlefonts.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/fonts/castletexturefontdata.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castleunicode.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/fonts/castleinternalfreetype.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/fonts/castleinternalfreetypeh.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castlecomponentserialize.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castleinternalrttiutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/fonts/castleinternalrichtext.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/ui/castleinternalpk3dconnexion.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/ui/castlejoysticks.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/ui/castleinternaljoystickslinux.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/ui/castleinternaljoysticksexplicit.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/ui/castleinternalsettings.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castlelocalizationgettext.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/ui/castleinternalinspector.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/ui/castlecontrols.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/fonts/castletexturefont_defaultui.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castlemessaging.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castletransform.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/physics/kraft/kraft.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castlefrustum.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castleboxes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castletriangles.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/audio/castlesoundengine.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/audio/castlesoundbase.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/audio/castleinternalsoundfile.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/audio/ogg_vorbis/castleinternalvorbisfile.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/audio/ogg_vorbis/castleinternalvorbiscodec.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/audio/ogg_vorbis/castleinternalogg.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/audio/ogg_vorbis/castleinternalvorbisdecoder.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/audio/castleinternalabstractsoundbackend.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castleparameters.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/files/castleconfig.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/audio/openal/castleopenalsoundbackend.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/audio/openal/castleinternalopenal.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/audio/openal/castleinternalalutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/audio/openal/castleinternalefx.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base/castleinternalclassutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castleinternalrays.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/x3d/x3dnodes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalx3dlexer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/x3dloadinternalutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/x3d/x3dnodes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/x3d/x3dfields.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/x3dtime.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/x3d/x3dnodes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castlecameras.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/ui/castleinputs.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/ui/castleinternalcameragestures.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleviewport.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/x3d/x3dnodes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalmaterialproperties.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/images/castleinternalautogenerated.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/castlescript/castlescript.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/castlescript/castlescriptcorefunctions.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalx3dscript.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/x3d/x3dnodes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castleinternaloctree.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castlebehaviors.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castlesectors.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/fonts/castletexturefont_default3d_sans.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/x3dload.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/x3dloadinternalgeo.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/x3dloadinternalutils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/x3dloadinternal3ds.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/x3dcamerautils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/x3dloadinternalobj.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/collada/x3dloadinternalcollada.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/spine/x3dloadinternalspine.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/castlescript/castlecurves.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/x3dloadinternalstl.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/md3/x3dloadinternalmd3.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalnodeinterpolator.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/x3dloadinternalgltf.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/pasgltf/PasGLTF.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/pasgltf/PasJSON.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/pasgltf/PasDblStrUtils.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/castleloadgltf.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/x3dloadinternalimage.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/x3dloadinternalcocos2d.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalspritesheet.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/x3dloadinternaltiledmap.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castletiledmap.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlescene.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlescenecore.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleshapes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternaltriangleoctree.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castleinternalbasetriangleoctree.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleshapes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castleinternalgeometryarrays.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleshapeinternalshadowvolumes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleshapes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlescenecore.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalshapeoctree.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalshadowmaps.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalnormals.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castletriangulate.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalarraysgenerator.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalbackgroundrenderer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalshapesrenderer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlesceneinternalshape.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalrenderer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlerendererinternallights.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlerendererinternalshader.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlerendererinternaltextureenv.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalscreeneffects.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlescreeneffects.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlescene.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalbackgroundrenderer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalshapesrenderer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlesceneinternalshape.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalrenderer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlerendererinternallights.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalglcubemaps.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castleinternalcubemaps.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castleinternalsphericalharmonics.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castleinternalspheresampling.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlescene.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalbackgroundrenderer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalshapesrenderer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlesceneinternalshape.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlescene.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalbackgroundrenderer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalshapesrenderer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalocclusionculling.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/base_rendering/castlerenderprimitives.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlesceneinternalblending.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlescene.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalbackgroundrenderer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalshapesrenderer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalbatchshapes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlescene.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleinternalbackgroundrenderer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castlescene.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castleinternalglshadowvolumes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/castleshapeinternalrendershadowvolumes.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/load/x3dloadinternaltiledmap.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/castlescript/castlescriptparser.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/castlescript/castlescriptlexer.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castleinternalnurbs.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/services/castleopendocument.pas
Writing Resource String Table file: castleopendocument.rsj
Compiling /home/jorge/Documentos/github/castle-engine/src/scene/x3d/castleinternalnodesunsupported.pas
Writing Resource String Table file: x3dnodes.rsj
Compiling /home/jorge/Documentos/github/castle-engine/src/castlescript/castlescriptvectors.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/castlescript/castlescriptimages.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/castlescript/castlescriptarrays.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/transform/castleinternalphysicsvisualization.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/ui/castleinternalcontrolsimages.pas
Compiling /home/jorge/Documentos/github/castle-engine/src/window/castleinternalwindowmodes.pas
Compiling ./code/gameinitialize.pas
Compiling ./code/gameviewmain.pas
Linking TestWalk_standalone
980408 lines compiled, 35.9 sec
88 warning(s) issued
255 note(s) issued
Moving TestWalk_standalone to TestWalk

Command finished with status 0.
Running “/home/jorge/Documentos/github/castle-engine/bin/castle-engine run --mode=debug --”

Running project “TestWalk” for OS / CPU “linux / x86_64”.
Running /home/jorge/Castle Game Engine Projects/TestWalk/TestWalk
Log for “TestWalk”.
Version: 0.1.
Started on 2024-01-27 at 13:30:15.
Castle Game Engine version: 7.0-alpha.snapshot.
Compiled with FPC 3.2.2.
Platform: Desktop, OS: Linux, CPU: x86_64 (this exe is using 64-bit architecture).
ZLib detected (version 1.2.11).
LibPng detected (version 1.6.37).

(TestWalk:9453): Gtk-WARNING **: 13:30:15.448: Imposible encontrar el motor de temas en la ruta al _modulo: «adwaita»,
-------------------- GLX begin
GLX extension at least 1.0 found.
Versions (determined by checking both glXQueryExtension, glXQueryVersion and assigned entry points):
Version 1.1: True
Version 1.2: True
Version 1.3: True
Version 1.4: True

Important extensions (determined by checking glXQueryExtensionsString and assigned entry points):
GLX_ARB_multisample: True
GLX_ARB_create_context: True

All extensions (according to glXQueryExtensionsString):
GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_visual_info GLX_EXT_visual_rating GLX_EXT_import_context GLX_SGI_video_sync GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGI_swap_control GLX_EXT_swap_control GLX_EXT_swap_control_tear GLX_EXT_buffer_age GLX_ARB_create_context GLX_ARB_create_context_profile GLX_NV_float_buffer GLX_ARB_fbconfig_float GLX_EXT_texture_from_pixmap GLX_EXT_framebuffer_sRGB GLX_NV_copy_image GLX_EXT_create_context_es_profile GLX_EXT_create_context_es2_profile GLX_ARB_create_context_no_error GLX_ARB_create_context_robustness GLX_NV_delay_before_swap GLX_EXT_stereo_tree GLX_ARB_context_flush_control GLX_NV_robustness_video_memory_purge GLX_NV_multigpu_context
-------------------- GLX end
Rendering Initialized: OpenGL 4.6 (Nvidia) (modern rendering: True) (for more info: LogGLInformationVerbose:=true)
Path: Program data path detected as “file:///home/jorge/Castle%20Game%20Engine%20Projects/TestWalk/data/”
Warning: Cannot find component class “TCastleThirdPersonNavigation”, (de)serialization of it will fail
Exception: Exception “EInvalidComponentFile”:
Component JSON file references an unrecognized class “TCastleThirdPersonNavigation”.

Add the unit that registers “TCastleThirdPersonNavigation” to the “uses” clause of any unit in the application. E.g. add “CastleTiledMap” to some uses clause, if you use “TCastleTiledMap” in the design.

$0000000002D4EF6E CREATECOMPONENTFROMJSON, line 507 of …/…/Documentos/github/castle-engine/src/files/castlecomponentserialize.pas
$0000000002D4F828 READWRITELIST, line 590 of …/…/Documentos/github/castle-engine/src/files/castlecomponentserialize.pas
$0000000002B1A278 CUSTOMSERIALIZATION, line 1703 of …/…/Documentos/github/castle-engine/src/ui/castleuicontrols_userinterface.inc
$0000000002E6C8A5 CUSTOMSERIALIZATION, line 4164 of …/…/Documentos/github/castle-engine/src/scene/castleviewport.pas
$0000000002D4FCB3 CUSTOMSERIALIZATIONWITHSERIALIZATIONPROCESS, line 632 of …/…/Documentos/github/castle-engine/src/files/castlecomponentserialize.pas
$0000000002D4FB85 CUSTOMSERIALIZATION, line 654 of …/…/Documentos/github/castle-engine/src/files/castlecomponentserialize.pas
$0000000002D4F99A AFTERREADOBJECT, line 665 of …/…/Documentos/github/castle-engine/src/files/castlecomponentserialize.pas
$0000000002D9899C
$0000000002B1A278 CUSTOMSERIALIZATION, line 1703 of …/…/Documentos/github/castle-engine/src/ui/castleuicontrols_userinterface.inc
$0000000002D4FCB3 CUSTOMSERIALIZATIONWITHSERIALIZATIONPROCESS, line 632 of …/…/Documentos/github/castle-engine/src/files/castlecomponentserialize.pas
$0000000002D4FB85 CUSTOMSERIALIZATION, line 654 of …/…/Documentos/github/castle-engine/src/files/castlecomponentserialize.pas
$0000000002D4F99A AFTERREADOBJECT, line 665 of …/…/Documentos/github/castle-engine/src/files/castlecomponentserialize.pas
$0000000002D9899C
$0000000002D518D4 COMPONENTLOAD, line 1006 of …/…/Documentos/github/castle-engine/src/files/castlecomponentserialize.pas
$0000000002D51D22 COMPONENTLOAD, line 1074 of …/…/Documentos/github/castle-engine/src/files/castlecomponentserialize.pas
$0000000002B24F4D USERINTERFACELOAD, line 36 of …/…/Documentos/github/castle-engine/src/ui/castleuicontrols_serialize.inc
$0000000002B21F6A LOADDESIGN, line 828 of …/…/Documentos/github/castle-engine/src/ui/castleuicontrols_view.inc

Note these lines in the logs:

It means that this class is not “registered” for deserealization. Try adding CastleThirdPersonNavigation to “uses” section of any of your game units.

Background and possible causes:

You are most likely acquainted with interface and implementation sections of your Pascal units. However, there are two more very convenient and useful: initialization and finalization. As the names suggest: initialization section executes right after the program starts before anything else happens; and finalization - right after the app is about to exit. They are optional and can come after implementation. Some units initialize and clean up themselves or related systems in these sections.

Castle Game Engine (just as regular SysUtils and Classes units) relies on initialization section of some units to prepare internal systems to work properly. One of such systems is “serialization/deserealization” which enumerates all existing classes in the game that can be written in some external format, like JSON of castle-user-interface files, or XML, or any other.

However, initialization of a unit is not called if the unit is not referenced from the app code. Therefore to be able to use serialization/deserealization feature you need to make sure the initialization section of the unit containing this specific feature has executed properly. If a unit is referenced from the code at least once - it guarantees that its initialization section will execute.

In most cases (e.g. when you are using an example project of Castle Game Engine examples or generate your project from a template in the Editor) this should be done automatically by the Engine. However, if you decide to initialize the Engine yourself (for example writing the program full from the scratch, upgrading something very obsolete or including Castle Engine’s Control feature on Lazarus/Delphi form; or maybe have used refactor:remove unused units feature despite it warning that the “unit contains initialization section”), you need to make sure that everything necessary is included.

I’m 99% sure that TCastleThirdPersonNavigation is referenced from some other “big” units like CastleControls which are almost always present in Castle Engine projects, but to make sure this specific class initialized you can add uses CastleThirdPersonNavigation to any of units of your code, most likely those that perform initialization.

However, going even one step further - it makes sense to start from a template from Castle Editor. It is because the templates are set up properly already. And the missing TCastleThirdPersonNavigation may be not the only initialization issue you may face.

Hello, the problem is solved if I add CastleThirdPersonNavigation to any uses section as you said.
I explain you how to reproduce this issue.

  • Create a empty project
  • Add a Viewport3D
  • Add a CastleThirdPersonNavigation

Run your program.

/BlueIcaro

It’s a known inconvenience in CGE editor right now.

While most common components (like TCastleScene, TCastleButton) are in common engine units, and even the simplest CGE application template already registers them (by having units in the “uses” clauses that depend on unis like CastleScene, CastleControls)… but some components are not. Prominent examples:

  • TCastleThirdPersonNavigation
  • or TCastleTiledMap

So if you add them to the view, you just have to manually add the appropriate unit (like CastleThirdPersonNavigation or CastleTiledMap) to the uses clause (of any unit in your project, doesn’t really matter – may be GameInitialize or GameViewMain).

To make it better:

This is a TODO, part of " Expose component name for Pascal code", Roadmap | Manual | Castle Game Engine , described there as

This is also means we’ll edit the uses clause of unit to make sure all used component classes are registered, and declared, so that declarations in published section work. This is also something Delphi/Lazarus do. We know the unit of each component, so it should be easy.

In that case, adding the registration unit is important – whether one wants to access the component from Pascal or not. We need to register it, to be able to deserialize it.