Concurrent Chunk Management Engine

Concurrent Chunk Management Engine

2M Downloads

Issue on Server Shut Down

suerion opened this issue ยท 2 comments

commented

Describe the bug
After Shutting down the c2me throws me an error,

[19:16:45] [c2me-worker-4/ERROR] (class_3846) Cound not schedule mailbox
 java.util.concurrent.RejectedExecutionException: null
        at java.base/java.util.concurrent.ForkJoinPool.submissionQueue(ForkJoinPool.java:2351) ~[?:?]
        at java.base/java.util.concurrent.ForkJoinPool.poolSubmit(ForkJoinPool.java:2368) ~[?:?]
        at java.base/java.util.concurrent.ForkJoinPool.execute(ForkJoinPool.java:2847) ~[?:?]
        at MC/net.minecraft.util.thread.TaskExecutor.execute(TaskExecutor.java:135) ~[server-intermediary.jar:?]
        at MC/net.minecraft.util.thread.TaskExecutor.send(TaskExecutor.java:124) ~[server-intermediary.jar:?]
        at MC/net.minecraft.server.world.ChunkTaskPrioritySystem.enqueueChunk(ChunkTaskPrioritySystem.java:129) ~[server-intermediary.jar:?]
        at MC/net.minecraft.server.world.ChunkTaskPrioritySystem.method_17624(ChunkTaskPrioritySystem.java:95) ~[server-intermediary.jar:?]
        at MC/net.minecraft.util.thread.MessageListener$1.send(MessageListener.java:44) ~[server-intermediary.jar:?]
        at MC/net.minecraft.server.world.ServerLightingProvider.enqueue(ServerLightingProvider.java:106) ~[server-intermediary.jar:?]
        at MC/net.minecraft.server.world.ServerLightingProvider.enqueueSectionData(ServerLightingProvider.java:98) ~[server-intermediary.jar:?]
        at MC/net.minecraft.world.ChunkSerializer.deserialize(ChunkSerializer.java:139) ~[server-intermediary.jar:?]
        at com.ishland.c2me.rewrites.chunksystem.common.statuses.ReadFromDiskAsync.lambda$invokeAsyncLoad$4(ReadFromDiskAsync.java:87) ~[c2me-rewrites-chunk-system-0.3.0.222+1.21.1-530ffccaf5fb13d9.jar:?]
        at io.reactivex.rxjava3.internal.operators.single.SingleMap$MapSingleObserver.onSuccess(SingleMap.java:58) [io_reactivex_rxjava3_rxjava-3.1.8-24e07474fe6d000e.jar:?]
        at io.reactivex.rxjava3.internal.operators.single.SingleObserveOn$ObserveOnSingleObserver.run(SingleObserveOn.java:81) [io_reactivex_rxjava3_rxjava-3.1.8-24e07474fe6d000e.jar:?]
        at io.reactivex.rxjava3.internal.schedulers.ExecutorScheduler$ExecutorWorker$BooleanRunnable.run(ExecutorScheduler.java:324) [io_reactivex_rxjava3_rxjava-3.1.8-24e07474fe6d000e.jar:?]
        at com.ishland.c2me.base.common.scheduler.WrappingTask.run(WrappingTask.java:21) [c2me-base-0.3.0+alpha.0.222+1.21.1-7f66745de01397f2.jar:?]
        at com.ishland.flowsched.executor.WorkerThread.pollTasks(WorkerThread.java:57) [c2me-base-0.3.0+alpha.0.222+1.21.1-7f66745de01397f2.jar:?]
        at com.ishland.flowsched.executor.WorkerThread.run(WorkerThread.java:27) [c2me-base-0.3.0+alpha.0.222+1.21.1-7f66745de01397f2.jar:?]
        ```

**To Reproduce**
Steps to reproduce the behavior:
Shut Down the Server, 

**Expected behavior**
Shoud not throu the error on Shutting Down

**Screenshots**
<!-- If applicable, add screenshots to help explain your problem. -->

**Runtime info (please complete the following information):**
 - OS:  Windows 11
 - Minecraft version:  1.21.1


**Crash reports / logs**
https://mclo.gs/i24kSUK




**Checklist**
 - [x] I am using the official version of the mod. 
 - [x] I tried the latest development version but the issue persists. 
 - [x] I searched for similar open issues and could not find an existing bug report on this. 

**Additional context**
Could this be an issue with https://modrinth.com/mod/fabric-mail ? Don't know where it could be an mailbox?
commented

Some mods are still trying to load chunks during the server shutdown process. Please try getting the minimum set of mods reproducible.

commented

Had since 295 no issues anymore, i will close this issue