# Bugs

**URL:** https://forum.castle-engine.io/c/bugs/22.md

[Latest](https://forum.castle-engine.io/latest.md) · [Categories](https://forum.castle-engine.io/categories.md)

---

## [About the Bugs category](https://forum.castle-engine.io/t/about-the-bugs-category/619)

<div class="topic-metadata">

**Author:** [@michalis](https://forum.castle-engine.io/u/michalis)\
**Replies:** 0

</div>

Please report a bug if you spot it! You can also submit bugs as GiHub issues.

---

## [\[solved\] Localization under Andriod problem](https://forum.castle-engine.io/t/solved-localization-under-andriod-problem/2185)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 1\
**Last updated:** [July 18, 2026, 2:40pm UTC](https://forum.castle-engine.io/t/solved-localization-under-andriod-problem/2185 "2026-07-18T14:40:29Z")

</div>

I tried using CGE Localization in my project, but I got a problem. The application using this localization method doesn’t work on Android. Upon launch, the application immediately minimizes and that’s it. The problem al…

---

## [GameController support Windows11 vs. LinuxMint](https://forum.castle-engine.io/t/gamecontroller-support-windows11-vs-linuxmint/2172)

<div class="topic-metadata">

**Author:** [@Didi](https://forum.castle-engine.io/u/Didi)\
**Replies:** 2\
**Last updated:** [June 30, 2026, 3:16pm UTC](https://forum.castle-engine.io/t/gamecontroller-support-windows11-vs-linuxmint/2172 "2026-06-30T15:16:27Z")

</div>

Hi everyone, I’m using the same game controller (Logitech Gaming F310 Controller Gamepad) in Windows11 and LinuxMint. In Windows all Buttons ar handled, but in LinuxMint some Buttons are not. Looking into CGE code I ca…

---

## [\[solved\] CGE doesn't load/process some GLB models](https://forum.castle-engine.io/t/solved-cge-doesnt-load-process-some-glb-models/2158)

<div class="topic-metadata">

**Author:** [@NiunioMartinez](https://forum.castle-engine.io/u/NiunioMartinez)\
**Replies:** 3\
**Last updated:** [June 4, 2026, 4:33pm UTC](https://forum.castle-engine.io/t/solved-cge-doesnt-load-process-some-glb-models/2158 "2026-06-04T16:33:51Z")

</div>

I’ve found that CGE doesn’t load some models. These models are Kenney’s mini character 1. I’ve attached them for convenience at the end of this post. In some cases it gets only the head, other times it gets only the b…

---

## [Castle\_base and castle\_window problems with Lazarus](https://forum.castle-engine.io/t/castle-base-and-castle-window-problems-with-lazarus/2148)

<div class="topic-metadata">

**Author:** [@Noscow](https://forum.castle-engine.io/u/Noscow)\
**Replies:** 6\
**Last updated:** [May 7, 2026, 2:32pm UTC](https://forum.castle-engine.io/t/castle-base-and-castle-window-problems-with-lazarus/2148 "2026-05-07T14:32:44Z")

</div>

Good day! I found some time for back to my CGE project, but face some difficulties with depends (as i understand). I install Lazarus 4.0 from Debian 13 repository (4.6 from lazarus-ide.org works same) and download fres…

---

## [\[solved\] Some keyboard-keys won't trigger](https://forum.castle-engine.io/t/solved-some-keyboard-keys-wont-trigger/2117)

<div class="topic-metadata">

**Author:** [@MBa](https://forum.castle-engine.io/u/MBa)\
**Replies:** 1\
**Last updated:** [February 11, 2026, 8:48pm UTC](https://forum.castle-engine.io/t/solved-some-keyboard-keys-wont-trigger/2117 "2026-02-11T20:48:13Z")

</div>

Hi, after making some major changes, my keys stopped working properly. Since I thought I might as well update the engine, I downloaded the latest version (the one with GTK3). I’ve been trying to find the bug all day. …

---

## [Frame rate drops when Light is on](https://forum.castle-engine.io/t/frame-rate-drops-when-light-is-on/2116)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 2\
**Last updated:** [February 11, 2026, 6:53pm UTC](https://forum.castle-engine.io/t/frame-rate-drops-when-light-is-on/2116 "2026-02-11T18:53:46Z")

</div>

Hello everyone! Today I’d like to talk about a issue with light sources. I make a test that demonstrated frame rate drops when the light source is turned on. This happen only occurs once. Even when relaunching the game…

---

## [\[solved\] Unexpected buttonLeft Mouse Events in TInputPressRelease.Press](https://forum.castle-engine.io/t/solved-unexpected-buttonleft-mouse-events-in-tinputpressrelease-press/2083)

<div class="topic-metadata">

**Author:** [@Hamid](https://forum.castle-engine.io/u/Hamid)\
**Replies:** 4\
**Last updated:** [January 15, 2026, 4:22pm UTC](https://forum.castle-engine.io/t/solved-unexpected-buttonleft-mouse-events-in-tinputpressrelease-press/2083 "2026-01-15T16:22:06Z")

</div>

I added the following event handler: function TViewPlayWorld.Press(const Event: TInputPressRelease): Boolean; begin Result := inherited; if Event.MouseButton = TCastleMouseButton.buttonLeft then begin ... en…

---

## [Animation backwards, ElapsedTime returns strange value](https://forum.castle-engine.io/t/animation-backwards-elapsedtime-returns-strange-value/2069)

<div class="topic-metadata">

**Author:** [@BlueIcaro](https://forum.castle-engine.io/u/BlueIcaro)\
**Replies:** 2\
**Last updated:** [December 24, 2025, 12:36pm UTC](https://forum.castle-engine.io/t/animation-backwards-elapsedtime-returns-strange-value/2069 "2025-12-24T12:36:44Z")

</div>

I am playing an animation forward and backward. To determine the current position of the animation, I use ElapsedTimeInCycle, as I need to move the sprite based on the current frame. I wrote, because I don’t know how to…

---

## [\[solved\] Shadow Map not updating from an animated TCastleScene](https://forum.castle-engine.io/t/solved-shadow-map-not-updating-from-an-animated-tcastlescene/2062)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 6\
**Last updated:** [December 20, 2025, 10:02am UTC](https://forum.castle-engine.io/t/solved-shadow-map-not-updating-from-an-animated-tcastlescene/2062 "2025-12-20T10:02:00Z")

</div>

Hi! I downloaded the latest version of CGE and discovered a problem with the shadow map. For some reason, the shadow from an animated TCastleScene isn’t updating. However, if I add any light source, such as a TCastlePoi…

---

## [\[solved\] \[BUG?\] I don't expect Resume of views in stack when I assign Container.View](https://forum.castle-engine.io/t/solved-bug-i-dont-expect-resume-of-views-in-stack-when-i-assign-container-view/2061)

<div class="topic-metadata">

**Author:** [@phomm](https://forum.castle-engine.io/u/phomm)\
**Replies:** 4\
**Last updated:** [December 18, 2025, 10:36pm UTC](https://forum.castle-engine.io/t/solved-bug-i-dont-expect-resume-of-views-in-stack-when-i-assign-container-view/2061 "2025-12-18T22:36:36Z")

</div>

So here is the situation: I have some views in the stack, and I push/pop /set them when needed. All was good, until I wanted to place some logic to pause/resume, assuming when user sees the view it will start doing some…

---

## [\[solved\] Shadows Volume and animated TCastleScene](https://forum.castle-engine.io/t/solved-shadows-volume-and-animated-tcastlescene/2063)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 2\
**Last updated:** [December 18, 2025, 4:01pm UTC](https://forum.castle-engine.io/t/solved-shadows-volume-and-animated-tcastlescene/2063 "2025-12-18T16:01:46Z")

</div>

Basically, the problem is that Shadow Volume are often displayed incorrectly or not at all for animated TCastleScenes. There is my test: Test\_ShadowVolume\_AnimatedScene.zip (515.3 KB) P.S.: This is a fairly old iss…

---

## [Not all objects can receive Shadow Map](https://forum.castle-engine.io/t/not-all-objects-can-receive-shadow-map/2064)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 2\
**Last updated:** [December 18, 2025, 3:53pm UTC](https://forum.castle-engine.io/t/not-all-objects-can-receive-shadow-map/2064 "2025-12-18T15:53:58Z")

</div>

Hello again. Yes, this is another very old problem… The problem is that when I create an .x3dv scene with lights using a Shadow Map, only objects into the .x3dv file receive shadows. Objects outside the file but within…

---

## [\[solved\] Can't unpack Latest release of CGE](https://forum.castle-engine.io/t/solved-cant-unpack-latest-release-of-cge/2052)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 2\
**Last updated:** [November 22, 2025, 8:05pm UTC](https://forum.castle-engine.io/t/solved-cant-unpack-latest-release-of-cge/2052 "2025-11-22T20:05:59Z")

</div>

Hi all! Today I downloaded the latest release of CGE “castle-engine-7.0-alpha.3.snapshot-win64-x86\_64.zip” from Release Latest release of Castle Game Engine (Auto-Updated Snapshot) · castle-engine/castle-engine · GitHub …

---

## [Custom Cursors example has minor bugs (SOLVED)](https://forum.castle-engine.io/t/custom-cursors-example-has-minor-bugs-solved/1784)

<div class="topic-metadata">

**Author:** [@phomm](https://forum.castle-engine.io/u/phomm)\
**Replies:** 4\
**Last updated:** [August 4, 2025, 1:12am UTC](https://forum.castle-engine.io/t/custom-cursors-example-has-minor-bugs-solved/1784 "2025-08-04T01:12:48Z")

</div>

I noticed this in my game when I took the Custom Cursors example and implemented it, in general everything worked fine. But when I opened a view with progress-bars, which require Click and Drag action, and in this case c…

---

## [Adding terrain in editor requires adding CastleTerrain in unit's uses clause](https://forum.castle-engine.io/t/adding-terrain-in-editor-requires-adding-castleterrain-in-units-uses-clause/1956)

<div class="topic-metadata">

**Author:** [@Hertsog](https://forum.castle-engine.io/u/Hertsog)\
**Replies:** 1\
**Last updated:** [June 27, 2025, 11:30am UTC](https://forum.castle-engine.io/t/adding-terrain-in-editor-requires-adding-castleterrain-in-units-uses-clause/1956 "2025-06-27T11:30:14Z")

</div>

When creating new project in Castle editor and adding a Terrain and then running the project gives error: It is fixed by adding CastleTerrain to the unit’s uses clause. The error message quite clearly says how to fi…

---

## [\[solved\] Backward compat bug of TCastleScene "structure"](https://forum.castle-engine.io/t/solved-backward-compat-bug-of-tcastlescene-structure/1938)

<div class="topic-metadata">

**Author:** [@phomm](https://forum.castle-engine.io/u/phomm)\
**Replies:** 3\
**Last updated:** [June 16, 2025, 10:29am UTC](https://forum.castle-engine.io/t/solved-backward-compat-bug-of-tcastlescene-structure/1938 "2025-06-16T10:29:19Z")

</div>

Some time and commits ago (assume like around 50-60 compared to yesterday) I updated the castle code locally and I was working on my game flawlessly. When I pushed the changes to master yesterday, the build started on gi…

---

## [\[solved\] Can't find CastleGLUtils.GLCurrentMultiSampling](https://forum.castle-engine.io/t/solved-cant-find-castleglutils-glcurrentmultisampling/1893)

<div class="topic-metadata">

**Author:** [@DiggiDoggi](https://forum.castle-engine.io/u/DiggiDoggi)\
**Replies:** 1\
**Last updated:** [May 7, 2025, 7:54am UTC](https://forum.castle-engine.io/t/solved-cant-find-castleglutils-glcurrentmultisampling/1893 "2025-05-07T07:54:01Z")

</div>

It’s actually a documentation bug, not the code (hopefully). Recently I looked into Multisampling because my app has antialiasing when it didn’t suppose to have (aaNone, it is not because of CGE, no worries) and I found…

---

## [\[solved\] Bug? with shadows on TCastleImageTransform](https://forum.castle-engine.io/t/solved-bug-with-shadows-on-tcastleimagetransform/1883)

<div class="topic-metadata">

**Author:** [@phomm](https://forum.castle-engine.io/u/phomm)\
**Replies:** 7\
**Last updated:** [May 5, 2025, 1:27pm UTC](https://forum.castle-engine.io/t/solved-bug-with-shadows-on-tcastleimagetransform/1883 "2025-05-05T13:27:53Z")

</div>

In my game I have 1 view, where I wanted to put some surface with “patch of earth” feel, for that I found useful TCastleImageControl, as it has RepeatImage property which allows to tile that patch with single texture, an…

---

## [\[solved\] SphereCast crash](https://forum.castle-engine.io/t/solved-spherecast-crash/1887)

<div class="topic-metadata">

**Author:** [@DiggiDoggi](https://forum.castle-engine.io/u/DiggiDoggi)\
**Replies:** 1\
**Last updated:** [May 4, 2025, 3:53pm UTC](https://forum.castle-engine.io/t/solved-spherecast-crash/1887 "2025-05-04T15:53:37Z")

</div>

The game is access-violating me in both: delphi and fpc compilations, whenever I call the PhysicalSphereCast, when I have no colliders on any object. (pic 1) The test environment is basically the Empty Template with few…

---

## [\[solved\] Castle Particle Emitter rise Emitter Exception: 'No mesh found in this model'](https://forum.castle-engine.io/t/solved-castle-particle-emitter-rise-emitter-exception-no-mesh-found-in-this-model/1882)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 6\
**Last updated:** [April 29, 2025, 11:24pm UTC](https://forum.castle-engine.io/t/solved-castle-particle-emitter-rise-emitter-exception-no-mesh-found-in-this-model/1882 "2025-04-29T23:24:05Z")

</div>

Hello! After a recent or little earlier update, I found that Castle Particle Emitter started rise an exception ‘No mesh found in this model’: For my project I made a temporary fix: Еhis exception also rises in the d…

---

## [\[closed\] Strange/error behavior of button events when view is switched back after some PushView-s](https://forum.castle-engine.io/t/closed-strange-error-behavior-of-button-events-when-view-is-switched-back-after-some-pushview-s/1505)

<div class="topic-metadata">

**Author:** [@phomm](https://forum.castle-engine.io/u/phomm)\
**Replies:** 7\
**Last updated:** [January 24, 2025, 10:23am UTC](https://forum.castle-engine.io/t/closed-strange-error-behavior-of-button-events-when-view-is-switched-back-after-some-pushview-s/1505 "2025-01-24T10:23:08Z")

</div>

Hi, Guys, and @michalis ! Here is my repo with small side project that I wanted to improve from old version : Today I made couple of changes (but maybe they were not the real reason for the bug, maybe even before it w…

---

## [\[closed\] Command finished with status 256](https://forum.castle-engine.io/t/closed-command-finished-with-status-256/1428)

<div class="topic-metadata">

**Author:** [@Aksi](https://forum.castle-engine.io/u/Aksi)\
**Replies:** 5\
**Last updated:** [November 13, 2024, 10:36am UTC](https://forum.castle-engine.io/t/closed-command-finished-with-status-256/1428 "2024-11-13T10:36:00Z")

</div>

Hello. I apologize for the machine translation. When trying to compile any of the examples, it outputs the following: Compiling project “custom\_cursor” for OS / CPU “linux / x86\_64” in mode “debug”. FPC executing… F…

---

## [\[closed\] Castle Game Engine Editor haging when using Viewport](https://forum.castle-engine.io/t/closed-castle-game-engine-editor-haging-when-using-viewport/1325)

<div class="topic-metadata">

**Author:** [@Siji\_E\_Kermit](https://forum.castle-engine.io/u/Siji_E_Kermit)\
**Replies:** 8\
**Last updated:** [November 4, 2024, 6:23pm UTC](https://forum.castle-engine.io/t/closed-castle-game-engine-editor-haging-when-using-viewport/1325 "2024-11-04T18:23:20Z")

</div>

Hi all, I am experiencing crashes from Castle Game Engine Editor when using Viewports, both 2D and 3D It is more a “not responding” loop than a real goodbye crash. It occurs when inserting a viewport, but also when in…

---

## [\[closed\] Values in TBorder are not saved](https://forum.castle-engine.io/t/closed-values-in-tborder-are-not-saved/821)

<div class="topic-metadata">

**Author:** [@Didi](https://forum.castle-engine.io/u/Didi)\
**Replies:** 4\
**Last updated:** [October 30, 2024, 2:47pm UTC](https://forum.castle-engine.io/t/closed-values-in-tborder-are-not-saved/821 "2024-10-30T14:47:46Z")

</div>

Hi, I have changed the values for ProtectedSides and Border. Both were not saved. In the editor the changes look good. After reopening the project, the values are zero. I tried with one download from last week and…

---

## [\[closed\] Compiling Error in CastleEffekseer.pas](https://forum.castle-engine.io/t/closed-compiling-error-in-castleeffekseer-pas/1326)

<div class="topic-metadata">

**Author:** [@Didi](https://forum.castle-engine.io/u/Didi)\
**Replies:** 5\
**Last updated:** [September 6, 2024, 4:14am UTC](https://forum.castle-engine.io/t/closed-compiling-error-in-castleeffekseer-pas/1326 "2024-09-06T04:14:49Z")

</div>

Hi, I installed the newest CGE today. I compiled my project and get an error in CastleEffekseer.pas Yesterday everything was OK.

---

## [\[closed\] Missing files in gitignore](https://forum.castle-engine.io/t/closed-missing-files-in-gitignore/1312)

<div class="topic-metadata">

**Author:** [@BlueIcaro](https://forum.castle-engine.io/u/BlueIcaro)\
**Replies:** 1\
**Last updated:** [August 28, 2024, 9:04am UTC](https://forum.castle-engine.io/t/closed-missing-files-in-gitignore/1312 "2024-08-28T09:04:02Z")

</div>

Hello, I think you should update the gitignore file with this line Remove debug files \*.dbg This remove debug files, create by Lazarus from the git repository /BlueIcaro

---

## [\[closed\] TCastleScrollView affects to behavior of Navigator](https://forum.castle-engine.io/t/closed-tcastlescrollview-affects-to-behavior-of-navigator/1292)

<div class="topic-metadata">

**Author:** [@Recongalina](https://forum.castle-engine.io/u/Recongalina)\
**Replies:** 2\
**Last updated:** [August 3, 2024, 2:55am UTC](https://forum.castle-engine.io/t/closed-tcastlescrollview-affects-to-behavior-of-navigator/1292 "2024-08-03T02:55:05Z")

</div>

Hello! In castle-user-interface I set TCastleWalkNavigation with MouseDragMode parameter as mdRotate. I added TCastleScrollView to it. If I click on the ScrollView then the camera starts to turn like if mouse button is …

---

## [\[closed\] Button Compile and Run / Stop](https://forum.castle-engine.io/t/closed-button-compile-and-run-stop/1270)

<div class="topic-metadata">

**Author:** [@Didi](https://forum.castle-engine.io/u/Didi)\
**Replies:** 2\
**Last updated:** [July 22, 2024, 11:08am UTC](https://forum.castle-engine.io/t/closed-button-compile-and-run-stop/1270 "2024-07-22T11:08:28Z")

</div>

The button “Compile and Run” do not show the right icon and text. This happens when I run the project without open a view. Project is running and the button shows “Compile and Run”. After clicking the button to stop…

---

## [\[closed\] Can't find target file](https://forum.castle-engine.io/t/closed-cant-find-target-file/1235)

<div class="topic-metadata">

**Author:** [@BlueIcaro](https://forum.castle-engine.io/u/BlueIcaro)\
**Replies:** 2\
**Last updated:** [June 20, 2024, 11:57am UTC](https://forum.castle-engine.io/t/closed-cant-find-target-file/1235 "2024-06-20T11:57:15Z")

</div>

Hello, I download the source code. I opened the the project group “most\_important\_lazarus\_packages\_and\_tools”, and I got the error Can’t find target file. See image attached What happened? /BlueIcaro

[Next page](https://forum.castle-engine.io/c/bugs/22.md?page=1)
