Closed Lonami closed 7 years ago
What game mode were you using?
REDB server game mode, connected to the internet.
I'm sorry, but I can't reproduce it. What device/language are you using?
I'm using a Sony Xperia M4 Aqua set to English (United Kingdom) under Settings/Language & Input
.
Edit: I've tried changing it to Spanish (Spain). Same result (I didn't uninstall or clear application data, it is as it was when this first happened).
I'm not sure about the device, but since I use United Kingdom English too, that shouldn't be the problem.
Do you have root access? And if so, could you post the preferences file (/data/data/com.phikal.regex/shared_prefs/com.phikal.regex_preferences.xml
), since line 228, sets what part of the EditText
box should be selected. IndexOutOfBoundsException
would make be believe, that this selection wasn't saved properly, and therefore provoking the exception.
Edit: Nevermind, I managed to reproduce the bug myself. You just have to select some text, and then leave the app. I'll try and fix it before F-Droid builds the app - thanks for noticing
Got root?
Never have enough ;) The file looks something like this:
<map>
<string name="cache_matchmode-redb"> x1Fftp://ftp.is.co.za/rfc/rfc1808.txt x1F x1E x1Fhttp://www.ietf.org/rfc/rfc2396.txt x1F x1E x1Fldap://[2001:db8::7]/c=GB?objectClass?one x1F x1E x1Fmailto:John.Doe@example.com x1F x1E x1Fnews:comp.infosystems.www.servers.unix x1F x1E x1Ftel:+1-816-555-1212 x1F x1E x1Ftelnet://192.0.2.16:80/ x1F x x1D x1Fftp.is.co.za/rfc/rfc1808.txt x1F x1E x1Fhttp:/www.ietf.org/rfc/rfc2396.txt x1F x1E x1Fldap://2001:db8::7/c=GB?objectClass?one x1F x1E x1Fmailto://John.Doe@example.com x1F x1E x1Fnews://comp.infosystems.www.servers.unix/ x1F x1E x1Ftel:18165551212 x1F x1E x1Ftelnet:://192.0.2.16:80/ x1F x</string>
<int name="position_e_matchmode-random" value="0" />
<int name="position_s_matchmode-random" value="0" />
<int name="position_s_matchmode-redb" value="16" />
<int name="score_matchmode-redb" value="60" />
<boolean name="regen" value="false" />
<string name="gamemode">matchmode-redb</string>
<int name="game_matchmode-redb" value="1" />
<string name="input_matchmode-redb">\w+:(//)?[\w./]+</string>
<int name="position_e_matchmode-redb" value="16" />
<string name="input_matchmode-random"></string>
<string name="vers">1.3</string>
<string name="cache_matchmode-random"> x1Fa9 x1F x1D x1F0 x1F</string>
<int name="diff_matchmode-redb" value="6" />
</map>
Edit: Oh alright, smart notice! Thank you for fixing it.
Jeez, that's #efficiency, well done 😁
Stack trace:
(Edit: Relevant part of the stack trace is
at com.phikal.regex.Activities.GameActivity.onResume(GameActivity.java:228)
, full stack trace below).Steps to reproduce
Note that this also happened when I updated from the old version to this one. I can't remember if it happened on the previous version, but I think it didn't.