question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ThreadMinerSearch does not use a ChunkCache to scan the world, resulting in off thread world access / CME's

See original GitHub issue

Please use the search functionality before reporting an issue. Also take a look at the closed issues!

Issue description:

ThreadMinerSearch does not use a ChunkCache to scan the world, resulting in off thread world access / CME’s This can cause clients around the miner to disconnect too occasionally.

Version (make sure you are on the latest version before reporting):

Forge: forge-1.12.2-14.23.5.2847-universal.jar Mekanism: Mekanism-1.12.2-9.8.2.389.jar Other relevant version:

If a (crash)log is relevant for this issue, link it here: (It’s almost always relevant)

Exception in thread "Thread-88" java.lang.IllegalStateException: CauseStackManager called from off main thread (current='ThreadMinerSearch{class=class mekanism.common.content.miner.ThreadMinerSearch, name=Thread-88, priority=5, group=net.minecraftforge.fml.common.thread.SidedThreadGroup[name=SERVER,maxpri=10]}', expected='Thread{class=class java.lang.Thread, name=Server thread, priority=5, group=net.minecraftforge.fml.common.thread.SidedThreadGroup[name=SERVER,maxpri=10]}')!
at org.spongepowered.common.event.SpongeCauseStackManager.enforceMainThread(SpongeCauseStackManager.java:121)
at org.spongepowered.common.event.SpongeCauseStackManager.getCurrentCause(SpongeCauseStackManager.java:136)
at net.minecraft.world.chunk.Chunk.handler$impl$UpdateNeighborsOnLoad$zma000(Chunk.java:3043)
at net.minecraft.world.chunk.Chunk.func_76631_c(Chunk.java:863)
at net.minecraftforge.common.chunkio.ChunkIOProvider.syncCallback(ChunkIOProvider.java:109)
at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:94)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:118)
at net.minecraft.world.gen.ChunkProviderServer.func_186028_c(ChunkProviderServer.java:89)
at net.minecraft.world.gen.ChunkProviderServer.redirect$impl$ProvideChunkForced$zmd000(ChunkProviderServer.java:1158)
at net.minecraft.world.gen.ChunkProviderServer.func_186025_d(ChunkProviderServer.java:135)
at net.minecraft.world.World.func_72964_e(World.java:310)
at net.minecraft.world.World.func_175726_f(World.java:305)
at net.minecraft.world.WorldServer.func_180495_p(WorldServer.java:5064)
at mekanism.common.content.miner.ThreadMinerSearch.run(ThreadMinerSearch.java:68)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
thiakilcommented, Dec 3, 2019

I have yet to see a crash without sponge. But yes it is known about and will be fixed at some stage

0reactions
aidancbradycommented, Feb 13, 2020

Closing this as we’re now only tracking issues for MC 1.15.2 and onwards.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to scan threads and bores for reverse engineering with ...
Some tricks how to get better results scanning threads and bores with optical 3D scanners.
Read more >
Speeding it up via Threading (JavaScript Web Workers ...
Javascript 3D Game Development. 3D World Generation #7: Speeding it up via Threading (JavaScript Web Workers & Three.js).
Read more >
I need help my server is not starting - Minecraft Forge Forums
If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings....
Read more >
How do I access chunks across threads : r/VoxelGameDev
I am building a minecraft-like voxel engine (C++) with chunks stored on the main thread in an unordered_map. I am trying to create...
Read more >
Solved - Using threads to generate worlds - SpigotMC
That's not my goal. Note: There are references to a class called Teleportation. That's a new class, because I want to create a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found