magefree / magefree/mage

CLIENT - unhandled error in GUI - ConcurrentModificationException

Open
#13,247 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

Error type: CLIENT - unhandled error in GUI - ConcurrentModificationException

Client version: 1.4.55-V3 (build: 2024-12-16 20:14)
Java version: 1.8.0_201
Default charset: UTF-8

ConcurrentModificationException - look at server or client logs for more details

Stack trace:
java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909)
java.util.ArrayList$Itr.next(ArrayList.java:859)
org.mage.plugins.card.CardPluginImpl.sortPermanents(CardPluginImpl.java:351)
mage.client.plugins.impl.Plugins.sortPermanents(Plugins.java:137)
mage.client.util.layout.impl.CardLayoutStrategyImpl.doLayout(CardLayoutStrategyImpl.java:60)
mage.client.game.BattlefieldPanel.sortLayout(BattlefieldPanel.java:273)
mage.client.game.BattlefieldPanel.update(BattlefieldPanel.java:264)
mage.client.game.PlayAreaPanel.update(PlayAreaPanel.java:515)
mage.client.game.GamePanel.lambda$reloadThemeRelatedGraphic$5(GamePanel.java:642)
java.util.ArrayList.forEach(ArrayList.java:1257)
and other 8 lines

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at org.mage.plugins.card.CardPluginImpl.sortPermanents, especially line 351, and trace the callers in Plugins.sortPermanents, CardLayoutStrategyImpl.doLayout, and BattlefieldPanel.sortLayout. Use the provided stack trace and client logs to investigate the ConcurrentModificationException. Done means the GUI no longer raises this exception during the affected update and permanent sorting still completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.