2025-08-01 20:40 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0006380Spring engineUnit Scriptingpublic2020-07-04 16:56
ReporterPicassoCT_ 
Assigned To 
PriorityurgentSeveritycrashReproducibilityalways
StatusclosedResolutionno change required 
Product Version104.0 +git 
Target VersionFixed in Version 
Summary0006380: Spring crashes when loading png texture > 2048x2048
Description
Hi,
i discovered a problem when loading my game mosaic, with the newest engine version.

The engine will crash while loading a unit with a 4096 x 4096 texture assigned with the error presented in the infolog.

If the texture size is reduced- the game is started, and a unit is spawned that has 4096x4096 textures, that unit will not appear. Any other unit spawned after it- will throw a recursion error - indicating that the global inCreateUnit boolean flag is never rest, when the unit loading throws the error.


https://github.com/spring/spring/blob/0f3a85f770c869dfe240b023507dec78ceef230d/rts/Lua/LuaSyncedCtrl.cpp#L1246
Steps To Reproduce

Join the server of Bourne2Chase. Add a prometheus AI. Start the game.
Tagstexture size limit
Checked infolog.txt for ErrorsYes
Attached Files

-Relationships
+Relationships

-Notes

~0020442

Kloot (developer)

another instance of 0006373
+Notes

-Issue History
Date Modified Username Field Change
2020-04-14 23:05 PicassoCT_ New Issue
2020-04-14 23:05 PicassoCT_ File Added: infolog-1.txt
2020-04-14 23:05 PicassoCT_ Tag Attached: texture size limit
2020-07-04 16:56 Kloot Status new => closed
2020-07-04 16:56 Kloot Resolution open => no change required
2020-07-04 16:56 Kloot Note Added: 0020442
+Issue History