dapanda
Member
I am getting a weird issue, where KoLmafia gets stuck in mobile mode. I don't enable it and in the options menu I can't turn if off. Here is the Debug report when I try to turn off mobile mode in the browser (not sure if this is a normal error when trying to disable under options)
-I normally never log into KoL via the browser, without mafia, and for the last 2 weeks I have only used mafia.
-When this happens I am running a script, I have not previously visited mafia via the browser.
-I have not started the relay browser (but it would also when when the relay browser was automatically started via my script)
-I have looked through the preference file and have not seen anything that would point to a setting searched the terms (mobile, browser, desktop).
I also attached a screenshot of what I see and the error that comes up in mafia which causes the script abort. The only way I have found to fix it is to update KoLmafia and that sometimes works, but today it didn't change anything.
Update: Restarting the computer fixed the kolmafia issue with the mobile desktop issue but the error from the screenshot: "Bad location value: Battlefield (No Uniform); if you're certain that this Location exists and is spelled correctly, please update KoLMafia" So those most likely were independent.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
KoLmafia r28545, Linux, Java 21.0.5
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Please note: do not post this log in the KoLmafia thread of KoL's
Gameplay-Discussion forum. If you would like the KoLmafia dev team
to look at it, please write a bug report at kolmafia.us. Include
specific information about what you were doing when you made this
and include this log as an attachment.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Timestamp: Mon Jun 02 08:59:12 MST 2025
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
User: dapanda
Current run: 198
MRU Script: Unknown
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Unexpected error, debug log printed.
class java.lang.StringIndexOutOfBoundsException: Range [-1, 4356) out of bounds for length 4356
java.lang.StringIndexOutOfBoundsException: Range [-1, 4356) out of bounds for length 4356
at java.base/jdk.internal.util.Preconditions$1.apply(Unknown Source)
at java.base/jdk.internal.util.Preconditions$1.apply(Unknown Source)
at java.base/jdk.internal.util.Preconditions$4.apply(Unknown Source)
at java.base/jdk.internal.util.Preconditions$4.apply(Unknown Source)
at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Unknown Source)
at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Unknown Source)
at java.base/java.lang.String.checkOffset(Unknown Source)
at java.base/java.lang.AbstractStringBuilder.insert(Unknown Source)
at java.base/java.lang.StringBuffer.insert(Unknown Source)
at net.sourceforge.kolmafia.webui.CharPaneDecorator.decorateEffects(CharPaneDecorator.java:821)
at net.sourceforge.kolmafia.webui.CharPaneDecorator.decorate(CharPaneDecorator.java:106)
at net.sourceforge.kolmafia.RequestEditorKit.applyPageAdjustments(RequestEditorKit.java:272)
at net.sourceforge.kolmafia.RequestEditorKit.getFeatureRichHTML(RequestEditorKit.java:259)
at net.sourceforge.kolmafia.RequestEditorKit.getFeatureRichHTML(RequestEditorKit.java:174)
at net.sourceforge.kolmafia.request.RelayRequest.formatResponse(RelayRequest.java:432)
at net.sourceforge.kolmafia.request.GenericRequest.run(GenericRequest.java:1185)
at net.sourceforge.kolmafia.request.RelayRequest.run(RelayRequest.java:4057)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:243)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:208)
at net.sourceforge.kolmafia.webui.RelayAgent.readServerResponse(RelayAgent.java:442)
at net.sourceforge.kolmafia.webui.RelayAgent.performRelay(RelayAgent.java:103)
at net.sourceforge.kolmafia.webui.RelayAgent.run(RelayAgent.java:83)
-I normally never log into KoL via the browser, without mafia, and for the last 2 weeks I have only used mafia.
-When this happens I am running a script, I have not previously visited mafia via the browser.
-I have not started the relay browser (but it would also when when the relay browser was automatically started via my script)
-I have looked through the preference file and have not seen anything that would point to a setting searched the terms (mobile, browser, desktop).
I also attached a screenshot of what I see and the error that comes up in mafia which causes the script abort. The only way I have found to fix it is to update KoLmafia and that sometimes works, but today it didn't change anything.
Update: Restarting the computer fixed the kolmafia issue with the mobile desktop issue but the error from the screenshot: "Bad location value: Battlefield (No Uniform); if you're certain that this Location exists and is spelled correctly, please update KoLMafia" So those most likely were independent.
Attachments
Last edited: