Skip to content
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

PointFileReaderWriter#readMultiple:249 - java.lang.StringIndexOutOfBoundsException #13045

Open
tripleabuilderbot opened this issue Dec 16, 2024 · 0 comments
Labels
2.7 Error Report Issue reported via the in-game error reporter

Comments

@tripleabuilderbot
Copy link
Contributor

User Description

Was making XML updates to a game, tried to load it but got this error. No idea where what caused it.

Map

d-day2_fix / D-Day 2 fix

Log Message

Failed to start game

TripleA Version

2.7.14871

Java Version

11.0.19

Operating System

Windows 10

Heap Size

2028M

Stack Trace

Exception: java.lang.StringIndexOutOfBoundsException begin 0, end -1, length 7
java.lang.Exception
	at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
	at java.base/java.lang.String.substring(String.java:1874)
	at org.triplea.util.PointFileReaderWriter.readMultiple(PointFileReaderWriter.java:249)
	at org.triplea.util.PointFileReaderWriter.lambda$readOneToManyPlacements$6(PointFileReaderWriter.java:202)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
	at java.base/java.nio.file.FileChannelLinesSpliterator.forEachRemaining(FileChannelLinesSpliterator.java:117)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEachOrdered(ReferencePipeline.java:502)
	at org.triplea.util.PointFileReaderWriter.readPath(PointFileReaderWriter.java:270)
	at org.triplea.util.PointFileReaderWriter.readOneToManyPlacements(PointFileReaderWriter.java:198)
	at games.strategy.triplea.ui.mapdata.MapData.readOptionalMap(MapData.java:220)
	at games.strategy.triplea.ui.mapdata.MapData.readOptionalPlacementsOneToMany(MapData.java:212)
	at games.strategy.triplea.ui.mapdata.MapData.<init>(MapData.java:165)
	at games.strategy.triplea.ui.UiContext.<init>(UiContext.java:137)
	at games.strategy.triplea.ui.TripleAFrame.create(TripleAFrame.java:471)
	at games.strategy.engine.framework.startup.mc.HeadedLaunchAction.startGame(HeadedLaunchAction.java:89)
	at games.strategy.triplea.TripleA.startGame(TripleA.java:62)
	at games.strategy.engine.framework.startup.launcher.LocalLauncher.loadGame(LocalLauncher.java:78)
	at games.strategy.engine.framework.startup.launcher.LocalLauncher.launch(LocalLauncher.java:59)
	at games.strategy.engine.framework.startup.ui.panels.main.MainPanelBuilder.lambda$launch$3(MainPanelBuilder.java:65)
	at java.base/java.lang.Thread.run(Thread.java:829)


@tripleabuilderbot tripleabuilderbot added 2.7 Error Report Issue reported via the in-game error reporter labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.7 Error Report Issue reported via the in-game error reporter
Projects
None yet
Development

No branches or pull requests

1 participant