Skip to content

Crash: Unit can't be placed in Tile with another unit #13125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
SOF3 opened this issue Apr 1, 2025 · 1 comment
Closed
1 task done

Crash: Unit can't be placed in Tile with another unit #13125

SOF3 opened this issue Apr 1, 2025 · 1 comment
Labels

Comments

@SOF3
Copy link

SOF3 commented Apr 1, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Game Version

4.15.19

Describe the bug

seems to be a bug executing AI logic.

Platform: Android
Version: 4.15.19 (Build 1,112)
Rulesets: [The Undead, Civ V - Vanilla, RekMOD, AbsoluteUnitsXL, Brave New World, AbsoluteUnits, DeCiv Redux, Community Maps, Thin Bubbly Borders, Civ6 mod, Extra Buildings, Civ6 Tileset, BabylonUI, Outlaws of the Wastes, Civ V - Gods & Kings, More Luxuries, The Great Unciv Rework, 5Hex Tileset]
Last Screen: com.unciv.ui.screens.worldscreen.WorldScreen


Device Model: SM-A1560
API Level: 34
System Memory: 5582 MB
Available (used by Kernel): 811 MB
System Low Memory state: false
Java heap limit: 512 MB
Java heap free: 0 MB


Message:

java.lang.Exception: Unit Guided Missile of Cult of Ignis at Tile @(5.0,-23.0), Desert, Hill, Railroad, Borehole, Great Mad Scientist - Cult of Ignis, Rocket Artillery - Cult of Ignis can't be put in tile Tile @(6.0,-22.0), Desert, Grain, Railroad, Farm, Mechanized Worker - Cult of Ignis, Black Ops - Cult of Ignis!
	at com.unciv.logic.map.mapunit.MapUnit.putInTile(MapUnit.kt:905)
	at com.unciv.logic.map.mapunit.movement.UnitMovement.swapMoveToTile(UnitMovement.kt:575)
	at com.unciv.logic.automation.unit.WorkerAutomation.headTowardsTileToWork(WorkerAutomation.kt:175)
	at com.unciv.logic.automation.unit.WorkerAutomation.automateWorkerAction(WorkerAutomation.kt:87)
	at com.unciv.logic.automation.unit.WorkerAutomation.automateWorkerAction$default(WorkerAutomation.kt:75)
	at com.unciv.logic.automation.unit.CivilianUnitAutomation.automateCivilianUnit(CivilianUnitAutomation.kt:43)
	at com.unciv.logic.automation.unit.UnitAutomation.automateUnitMoves(UnitAutomation.kt:178)
	at com.unciv.logic.automation.civilization.NextTurnAutomation.automateUnits(NextTurnAutomation.kt:426)
	at com.unciv.logic.automation.civilization.NextTurnAutomation.automateCivMoves(NextTurnAutomation.kt:77)
	at com.unciv.logic.automation.civilization.NextTurnAutomation.automateCivMoves$default(NextTurnAutomation.kt:37)
	at com.unciv.logic.civilization.managers.TurnManager.automateTurn(TurnManager.kt:347)
	at com.unciv.logic.GameInfo.nextTurn(GameInfo.kt:396)
	at com.unciv.ui.screens.worldscreen.WorldScreen$nextTurn$1.invokeSuspend(WorldScreen.kt:585)
	at com.unciv.ui.screens.worldscreen.WorldScreen$nextTurn$1.invoke(Unknown Source:8)
	at com.unciv.ui.screens.worldscreen.WorldScreen$nextTurn$1.invoke(Unknown Source:4)
	at com.unciv.utils.ConcurrencyKt$launchCrashHandling$1.invokeSuspend(Concurrency.kt:89)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at com.unciv.utils.Dispatchers$CrashHandlingDispatcher$dispatch$1.invoke(Concurrency.kt:190)
	at com.unciv.utils.Dispatchers$CrashHandlingDispatcher$dispatch$1.invoke(Concurrency.kt:190)
	at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandling$1.invoke(CrashHandlingExtensions.kt:17)
	at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandlingUnit$1.invoke(CrashHandlingExtensions.kt:33)
	at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandlingUnit$1.invoke(CrashHandlingExtensions.kt:33)
	at com.unciv.utils.Dispatchers$CrashHandlingDispatcher.dispatch$lambda$0(Concurrency.kt:190)
	at com.unciv.utils.Dispatchers$CrashHandlingDispatcher.$r8$lambda$L3K1aau81hhVdGYYei_E7yWI2wU(Unknown Source:0)
	at com.unciv.utils.Dispatchers$CrashHandlingDispatcher$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
	at java.lang.Thread.run(Thread.java:1012)

Save Mods:

[DeCiv Redux, 5Hex Tileset, Thin Bubbly Borders]

Steps to Reproduce

crash upon pressing next turn, save file provided in comment below

Screenshots

No response

Link to save file

No response

Operating System

Android

Additional Information

No response

@SOF3 SOF3 added the bug label Apr 1, 2025
@SOF3
Copy link
Author

SOF3 commented Apr 1, 2025

game save: Blackwarden - 340 turns.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant