triplea icon indicating copy to clipboard operation
triplea copied to clipboard

2.5.22294: HistoryWriter#startEvent:123 - java.lang.IllegalStateException

Open tripleabuilderbot opened this issue 2 years ago • 3 comments

Map

young_grasshoppers_tournament_edition

Log Message

Not in a step, but trying to add event: 1 fighter moved from Ulaanbaatar to Suiyuyan. Current history node is: Round: 4

TripleA Version

2.5.22294

Java Version

11.0.6

Operating System

Mac OS X

Memory

Heap utilization statistics [MB] Used Memory: 357 Free memory: 1690 Total memory: 2048 Max memory: 2048

Stack Trace

Exception: java.lang.IllegalStateExceptionNot in a step, but trying to add event: 1 fighter moved from Ulaanbaatar to Suiyuyan. Current history node is: Round: 4
java.lang.Exception
	at games.strategy.engine.history.HistoryWriter.startEvent(HistoryWriter.java:123)
	at games.strategy.engine.framework.HistorySynchronizer$1.lambda$startHistoryEvent$1(HistorySynchronizer.java:45)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)


tripleabuilderbot avatar Aug 03 '22 13:08 tripleabuilderbot

@axisalliescontango u wanna take a look ? It might be a mac specific thing idk. They get kinda nutty sometimes. Looks like the others weren't all complete duplicates. Probably same issue tho

Edit Sometimes things nutup when in edit mode. Says history mode. I didn't think it'd let you do anything in history action wise

beelee1 avatar Aug 04 '22 03:08 beelee1

Yeah, not really sure, I've never looked into these before. I guess all you get is that Stack Trace? It would be nice to see the actual file to try to re-create the problem. I don't really know what any of that means.

Does History Writer mean the person is in history mode when the error happens?

I dunno, I tried to re-create the issue but no luck.

axisalliescontango avatar Aug 04 '22 14:08 axisalliescontango

right on gonna be hard to fix if can't recreate. Yea not sure what history writer is either. maybe a developer will know. Hopefully next time it happens they'll give more info

beelee1 avatar Aug 04 '22 19:08 beelee1