-
-
Notifications
You must be signed in to change notification settings - Fork 416
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
ArrayIndexOutOfBoundsException in MobSpawnEspHack.java #978
Comments
Thought I would keep some notes on what I see (trying to increase my understanding...) seems like the exception is being caused when initializing the new ArrayList<>(red).stream().filter(Objects::nonNull)
.map(pos -> new BlockPos(pos.getX() - region.x(), pos.getY(),
pos.getZ() - region.z()))
.forEach(pos -> {
bufferBuilder
.vertex(pos.getX(), pos.getY() + 0.01, pos.getZ())
.color(1, 0, 0, 0.5F).next();
bufferBuilder.vertex(pos.getX() + 1, pos.getY() + 0.01,
pos.getZ() + 1).color(1, 0, 0, 0.5F).next();
bufferBuilder
.vertex(pos.getX() + 1, pos.getY() + 0.01, pos.getZ())
.color(1, 0, 0, 0.5F).next();
bufferBuilder
.vertex(pos.getX(), pos.getY() + 0.01, pos.getZ() + 1)
.color(1, 0, 0, 0.5F).next();
}); so from the stack:
Assuming that the problem is actually that the List<ChunkScanner> sortedScanners = scanners.values().stream()
.filter(s -> s.doneScanning).filter(s -> !s.doneCompiling).sorted(c)
.limit(loadingSpeed.getValueI()).collect(Collectors.toList()); scanning should be complete here: I tried some debugging on that... if(!future.isDone() || !doneScanning)
{
System.out.println("Future done: " + future.isDone());
System.out.println("scanner doneScanning: " + doneScanning);
} And I can see a bunch of logging:
which only occurs if I am breaking lots of blocks at the time |
I've been testing some possible work arounds: private final Set<BlockPos> red =
Collections.synchronizedSet(new HashSet<>()); ArrayList<BlockPos> syncedRed;
synchronized(red)
{
syncedRed = new ArrayList<>(red);
}
syncedRed.stream().filter(Objects::nonNull)
.map(pos -> new BlockPos(pos.getX() - region.x(),
.... |
I use the same address |
Pre-reporting checklist
Description
During mining or breaking blocks fast, the client crashes with return code 255, with a wurst exception from MobSpawnEspHack: (this happens intermittently about once a day or so) but typically when I am breaking lots of blocks such as mining with good pick, or breaking something like sugarcane.
No other breaking block hack is active. (i.e. fastbreak, excavator, nuker) however MobSpawnEsp is active.
I've been trying variations to try and reproduce the bug in a simple repeatable environment. But so far I cannot, and only experience this behaviour on a fairly busy server, with various mods running locally. (if I remove all local mods, and run against vanilla server it does not reproduce). It seems likely that it is this set of circumstances (busy server, plugins, other local mods) which trigger a fairly rare set of conditions required for the exception.
Repro steps
Wurst Client version
v7.41.2-MC1.20.4
Minecraft version
1.20.4 with Fabric Loader 0.15.7
Crash report (if applicable)
The text was updated successfully, but these errors were encountered: