orbot
orbot copied to clipboard
java.util.ConcurrentModificationException: in TorControlConnection
Stack trace Occurrence 1 of 1,639 Crash brightness_1 Samsung Galaxy S22 Ultra brightness_1 Android 12 (SDK 31) brightness_1 1660300402.apk brightness_1 9 minutes ago Type java.util.ConcurrentModificationException java.util.ConcurrentModificationException: at java.util.ArrayList$Itr.next (ArrayList.java:860) at net.freehaven.tor.control.TorControlConnection.handleEvent (TorControlConnection.java:239) at net.freehaven.tor.control.TorControlConnection.react (TorControlConnection.java:382) at net.freehaven.tor.control.TorControlConnection$ControlParseThread.run (TorControlConnection.java:352)
Was there anything specific happening when you encountered this crash?
Technically this is happening in Tor-Android, I'm still going to debug it though:
protected void handleEvent(ArrayList<ReplyLine> events) throws UnsupportedOperationException {
if (handler == null && rawEventListeners.isEmpty()) {
return;
}
for (Iterator<ReplyLine> i = events.iterator(); i.hasNext(); ) {
ReplyLine line = i.next();
int idx = line.msg.indexOf(' ');
String tp;
String rest;
try {
tp = line.msg.substring(0, idx).toUpperCase();
rest = line.msg.substring(idx + 1);
} catch (StringIndexOutOfBoundsException ex) {
throw new UnsupportedOperationException(
"Event listened for is not yet implemented" , ex
);
}
...
CC'ing @eighthave