Closed SergeyKabaev closed 1 year ago
Platform: Desktop
Version: 4.7.9 (Build 892)
Rulesets: [Civ V - Gods & Kings, Unciv City State Icons, Civ V Leader portraits, Civ V - Vanilla, Civ 5 Icons]
Last Screen: com.unciv.ui.screens.worldscreen.WorldScreen
OS: Windows 10 Java: Oracle Corporation 25.232-b09 Max Memory: 910 MB
Message:
java.lang.NullPointerException
at com.unciv.logic.city.CityStats.getStatsFromTradeRoute(CityStats.kt:103)
at com.unciv.logic.city.CityStats.updateBaseStatList(CityStats.kt:460)
at com.unciv.logic.city.CityStats.update(CityStats.kt:499)
at com.unciv.logic.city.CityStats.update$default(CityStats.kt:491)
at com.unciv.logic.civilization.Civilization.updateStatsForNextTurn(Civilization.kt:380)
at com.unciv.logic.civilization.transients.CivInfoTransientCache.updateCivResources(CivInfoTransientCache.kt:331)
at com.unciv.logic.city.CityConstructions.removeBuilding(CityConstructions.kt:554)
at com.unciv.logic.civilization.Civilization.moveCapitalTo(Civilization.kt:823)
at com.unciv.logic.civilization.Civilization.moveCapitalToNextLargest(Civilization.kt:829)
at com.unciv.logic.city.managers.CityConquestFunctions.moveToCiv(CityConquestFunctions.kt:261)
at com.unciv.logic.city.City.moveToCiv(City.kt:508)
at com.unciv.logic.city.managers.CityConquestFunctions.conquerCity(CityConquestFunctions.kt:101)
at com.unciv.logic.city.managers.CityConquestFunctions.puppetCity(CityConquestFunctions.kt:134)
at com.unciv.logic.city.City.puppetCity(City.kt:501)
at com.unciv.logic.automation.civilization.NextTurnAutomation.onConquerCity(NextTurnAutomation.kt:1150)
at com.unciv.logic.battle.Battle.conquerCity(Battle.kt:621)
at com.unciv.logic.battle.Battle.attack(Battle.kt:151)
at com.unciv.logic.battle.Battle.attackOrNuke(Battle.kt:93)
at com.unciv.logic.battle.Battle.moveAndAttack(Battle.kt:48)
at com.unciv.logic.automation.unit.BattleHelper.tryAttackNearbyEnemy(BattleHelper.kt:30)
at com.unciv.logic.automation.unit.BattleHelper.tryAttackNearbyEnemy$default(BattleHelper.kt:16)
at com.unciv.logic.automation.unit.UnitAutomation.tryAttacking(UnitAutomation.kt:361)
at com.unciv.logic.automation.unit.UnitAutomation.automateUnitMoves(UnitAutomation.kt:200)
at com.unciv.logic.automation.civilization.NextTurnAutomation.automateUnits(NextTurnAutomation.kt:1007)
at com.unciv.logic.automation.civilization.NextTurnAutomation.automateCivMoves(NextTurnAutomation.kt:88)
at com.unciv.logic.civilization.managers.TurnManager.automateTurn(TurnManager.kt:326)
at com.unciv.logic.GameInfo.nextTurn(GameInfo.kt:376)
at com.unciv.ui.screens.worldscreen.WorldScreen$nextTurn$1.invokeSuspend(WorldScreen.kt:598)
at com.unciv.ui.screens.worldscreen.WorldScreen$nextTurn$1.invoke(WorldScreen.kt)
at com.unciv.ui.screens.worldscreen.WorldScreen$nextTurn$1.invoke(WorldScreen.kt)
at com.unciv.utils.ConcurrencyKt$launchCrashHandling$1.invokeSuspend(Concurrency.kt:87)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at com.unciv.utils.CrashHandlingDispatcher$dispatch$1.invoke(Concurrency.kt:173)
at com.unciv.utils.CrashHandlingDispatcher$dispatch$1.invoke(Concurrency.kt:173)
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.CrashHandlingDispatcher.dispatch$lambda$0(Concurrency.kt:173)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Save Mods:
[Unciv City State Icons, Civ V - Gods & Kings, Civ V Leader portraits, Civ 5 Icons]
Save Data:
Platform: Android
Version: 4.7.9 (Build 892)
Rulesets: [Civ V - Vanilla, Civ V - Gods & Kings]
Last Screen: com.unciv.ui.screens.worldscreen.WorldScreen
Device Model: SM-T870 API Level: 33
Message:
java.lang.NullPointerException
at com.unciv.logic.city.CityStats.getStatsFromTradeRoute(CityStats.kt:103)
at com.unciv.logic.city.CityStats.updateBaseStatList(CityStats.kt:460)
at com.unciv.logic.city.CityStats.update(CityStats.kt:499)
at com.unciv.logic.city.CityStats.update$default(CityStats.kt:491)
at com.unciv.logic.civilization.Civilization.updateStatsForNextTurn(Civilization.kt:380)
at com.unciv.logic.civilization.transients.CivInfoTransientCache.updateCivResources(CivInfoTransientCache.kt:331)
at com.unciv.logic.city.CityConstructions.removeBuilding(CityConstructions.kt:554)
at com.unciv.logic.civilization.Civilization.moveCapitalTo(Civilization.kt:823)
at com.unciv.logic.civilization.Civilization.moveCapitalToNextLargest(Civilization.kt:829)
at com.unciv.logic.city.managers.CityConquestFunctions.moveToCiv(CityConquestFunctions.kt:261)
at com.unciv.logic.city.City.moveToCiv(City.kt:508)
at com.unciv.logic.civilization.diplomacy.CityStateFunctions.diplomaticMarriage(CityStateFunctions.kt:330)
at com.unciv.logic.automation.civilization.NextTurnAutomation.useGoldForCityStates(NextTurnAutomation.kt:302)
at com.unciv.logic.automation.civilization.NextTurnAutomation.useGold(NextTurnAutomation.kt:330)
at com.unciv.logic.automation.civilization.NextTurnAutomation.automateCivMoves(NextTurnAutomation.kt:83)
at com.unciv.logic.civilization.managers.TurnManager.automateTurn(TurnManager.kt:326)
at com.unciv.logic.GameInfo.nextTurn(GameInfo.kt:376)
at com.unciv.ui.screens.worldscreen.WorldScreen$nextTurn$1.invokeSuspend(WorldScreen.kt:598)
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:87)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at com.unciv.utils.CrashHandlingDispatcher$dispatch$1.invoke(Concurrency.kt:173)
at com.unciv.utils.CrashHandlingDispatcher$dispatch$1.invoke(Concurrency.kt:173)
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.CrashHandlingDispatcher.dispatch$lambda$0(Concurrency.kt:173)
at com.unciv.utils.CrashHandlingDispatcher.$r8$lambda$GFMOlD6QMgmLfgwAvPAW33Ob6HE(Unknown Source:0)
at com.unciv.utils.CrashHandlingDispatcher$$ExternalSyntheticLambda0.run(Unknown Source:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Save Mods:
[Civ V - Gods & Kings]
Save Data:
I just downloaded the latest update and this issue no longer happens when I press next turn.
Copy of #9814
Platform: Android Version: 4.7.9 (Build 892) Rulesets: [Higher quality builtin sounds, Unciv Vanilla Music Pack, Civ V - Vanilla, Civilization4mod, Civ V - Gods & Kings, Community Maps, Civ6 mod, Civ V Leader portraits, 5Hex Tileset, Additional Music Various] Last Screen:
com.unciv.ui.screens.worldscreen.WorldScreen
Device Model: SCM-W09 API Level: 29
Message:
Save Mods:
Save Data:
Show Saved Game
[full report.txt](https://github.com/yairm210/Unciv/files/12105087/full.report.txt)