question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unit maintenance costs errors

See original GitHub issue
java.lang.IllegalArgumentException: 
  at java.util.TimSort.mergeHi (TimSort.java:899)
  at java.util.TimSort.mergeAt (TimSort.java:516)
  at java.util.TimSort.mergeForceCollapse (TimSort.java:457)
  at java.util.TimSort.sort (TimSort.java:254)
  at java.util.Arrays.sort (Arrays.java:1492)
  at java.util.ArrayList.sort (ArrayList.java:1470)
  at java.util.Collections.sort (Collections.java:206)
  at kotlin.collections.CollectionsKt__MutableCollectionsJVMKt.sortWith (MutableCollectionsJVM.kt:42)
  at kotlin.sequences.SequencesKt___SequencesKt$sortedWith$1.iterator (_Sequences.kt:638)
  at kotlin.sequences.DropSequence$iterator$1.<init> (Sequences.kt:490)
  at kotlin.sequences.DropSequence.iterator (Sequences.kt:489)
  at com.unciv.logic.civilization.CivInfoStats.getUnitMaintenance (CivInfoStats.kt:55)
  at com.unciv.logic.civilization.CivInfoStats.getStatMapForNextTurn (CivInfoStats.kt:170)
  at com.unciv.logic.civilization.CivilizationInfo.updateStatsForNextTurn (CivilizationInfo.kt:288)
  at com.unciv.logic.city.CityStats.update (CityStats.kt:516)
  at com.unciv.logic.city.CityConstructions.turnsToConstruction (CityConstructions.kt:298)
  at com.unciv.logic.city.CityConstructions.getTurnsToConstructionString$core (CityConstructions.kt:181)
  at com.unciv.ui.cityscreen.CityConstructionsTable.getConstructionButtonDTOs (CityConstructionsTable.kt:168)
  at com.unciv.ui.cityscreen.CityConstructionsTable.access$getConstructionButtonDTOs (CityConstructionsTable.kt:30)
  at com.unciv.ui.cityscreen.CityConstructionsTable$updateAvailableConstructions$1.invoke (CityConstructionsTable.kt:208)
  at com.unciv.ui.cityscreen.CityConstructionsTable$updateAvailableConstructions$1.invoke (CityConstructionsTable.kt:206)
  at kotlin.concurrent.ThreadsKt$thread$thread$1.run (Thread.kt:30)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
yairm210commented, Jan 5, 2022

That was it folks, the versions since this change show 0 of these errors Nice work 😃

1reaction
itanasicommented, Dec 28, 2021

Of course it’s multithreading…

Nice work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maintenance Costs: How to Manage and Minimize Them
To keep maintenance costs in check we need to have an efficient way to track all resources that are spent on asset maintenance...
Read more >
How to Reduce Maintenance Costs the Right Way
Sub-optimizing by performing a maintenance cost analysis by itself is a mistake that can lead to poor decisions by top management. But, as...
Read more >
Bringing Certainty to Maintenance Costs - ToolSense
One of the most common benchmarks used is maintenance cost/unit or maintenance cost/ton. This may be favoured by management because it neatly quantifies ......
Read more >
Preventive Maintenance and the Cost Per Unit Time Equation
It will cost $8 each time the component is replaced after it fails (corrective maintenance), while it will cost $2 to replace the...
Read more >
1.4 Maintenance, including major maintenance
Under this method, all maintenance costs are expensed in the period incurred because maintenance activities do not represent separately ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found