Whisperwoods

Whisperwoods

3M Downloads

Modmenu + save error?

itsdinkd opened this issue ยท 1 comments

commented

Describe the bug

Going through ModMenu and checking latest.logs you will see this error in console for both WhisperWoods and Better animal plus

Log output/error (if present)

[00:54:24] [Render thread/WARN]: Failed to read Q:\mc\Instances\AQM2 1.18.2\saves\test lock
java.nio.channels.OverlappingFileLockException: null
	at Not Enough Crashes deobfuscated stack trace.(1.18.2+build.3) ~[?:?]
	at sun.nio.ch.FileLockTable.checkList(FileLockTable.java:229) ~[?:?]
	at sun.nio.ch.FileLockTable.add(FileLockTable.java:123) ~[?:?]
	at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1297) ~[?:?]
	at java.nio.channels.FileChannel.tryLock(FileChannel.java:1191) ~[?:?]
	at net.minecraft.world.level.storage.SessionLock.isLocked(SessionLock:83) ~[?:?]
	at net.minecraft.world.level.storage.LevelStorage.getLevelList(LevelStorage:149) ~[?:?]
	at dev.itsmeow.betteranimalsplus.imdlib.compat.modmenu.ModMenuCompat$ClothConfigScreenFactory.create(ModMenuCompat.java:70) ~[betteranimalsplus-1.18.2-11.0.5-fabric.jar:?]
	at com.terraformersmc.modmenu.ModMenu.getConfigScreen(ModMenu.java:53) ~[modmenu-3.2.1.jar:?]
	at com.terraformersmc.modmenu.gui.ModsScreen.init(ModsScreen.java:120) ~[modmenu-3.2.1.jar:?]
	at net.minecraft.client.gui.screen.Screen.redirect$hdc000$onInit(Screen:9790) ~[?:?]
	at net.minecraft.client.gui.screen.Screen.init(Screen:389) ~[?:?]
	at net.minecraft.client.MinecraftClient.setScreen(MinecraftClient:993) ~[?:?]
	at com.terraformersmc.modmenu.gui.widget.ModMenuButtonWidget.lambda$new$0(ModMenuButtonWidget.java:11) ~[modmenu-3.2.1.jar:?]
	at net.minecraft.client.gui.widget.ButtonWidget.onPress(ButtonWidget:40) ~[?:?]
	at net.minecraft.client.gui.widget.PressableWidget.onClick(PressableWidget:16) ~[?:?]
	at net.minecraft.client.gui.widget.ClickableWidget.mouseClicked(ClickableWidget:121) ~[?:?]
	at net.minecraft.client.gui.ParentElement.mouseClicked(ParentElement:27) ~[?:?]
	at net.minecraft.client.Mouse.method_1611(Mouse:94) ~[?:?]
	at net.minecraft.client.gui.screen.Screen.wrapScreenError(Screen:492) ~[?:?]
	at net.minecraft.client.Mouse.onMouseButton(Mouse:94) ~[?:?]
	at net.minecraft.client.Mouse.method_22686(Mouse:165) ~[?:?]
	at net.minecraft.util.thread.ThreadExecutor.execute(ThreadExecutor:103) ~[?:?]
	at net.minecraft.client.Mouse.method_22684(Mouse:165) ~[?:?]
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36) ~[lwjgl-glfw-3.2.2.jar:?]
	at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.2.2.jar:?]
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101) ~[lwjgl-glfw-3.2.2.jar:?]
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem:197) ~[client-intermediary.jar:?]
	at net.minecraft.client.util.Window.swapBuffers(Window:310) ~[?:?]
	at net.minecraft.client.MinecraftClient.render(MinecraftClient:1147) ~[?:?]
	at net.minecraft.client.MinecraftClient.run(MinecraftClient:737) ~[?:?]
	at net.minecraft.client.main.Main.main(Main:236) [client-intermediary.jar:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:452) [fabric-loader-0.14.2.jar:?]
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.14.2.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.14.2.jar:?]
[00:54:25] [Render thread/WARN]: Failed to read Q:\mc\Instances\AQM2 1.18.2\saves\test lock
java.nio.channels.OverlappingFileLockException: null
	at Not Enough Crashes deobfuscated stack trace.(1.18.2+build.3) ~[?:?]
	at sun.nio.ch.FileLockTable.checkList(FileLockTable.java:229) ~[?:?]
	at sun.nio.ch.FileLockTable.add(FileLockTable.java:123) ~[?:?]
	at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1297) ~[?:?]
	at java.nio.channels.FileChannel.tryLock(FileChannel.java:1191) ~[?:?]
	at net.minecraft.world.level.storage.SessionLock.isLocked(SessionLock:83) ~[?:?]
	at net.minecraft.world.level.storage.LevelStorage.getLevelList(LevelStorage:149) ~[?:?]
	at dev.itsmeow.whisperwoods.imdlib.compat.modmenu.ModMenuCompat$ClothConfigScreenFactory.create(ModMenuCompat.java:69) ~[whisperwoods-1.18.2-2.1.0-fabric.jar:?]
	at com.terraformersmc.modmenu.ModMenu.getConfigScreen(ModMenu.java:53) ~[modmenu-3.2.1.jar:?]
	at com.terraformersmc.modmenu.gui.ModsScreen.init(ModsScreen.java:120) ~[modmenu-3.2.1.jar:?]
	at net.minecraft.client.gui.screen.Screen.redirect$hdc000$onInit(Screen:9790) ~[?:?]
	at net.minecraft.client.gui.screen.Screen.init(Screen:389) ~[?:?]
	at net.minecraft.client.MinecraftClient.setScreen(MinecraftClient:993) ~[?:?]
	at com.terraformersmc.modmenu.gui.widget.ModMenuButtonWidget.lambda$new$0(ModMenuButtonWidget.java:11) ~[modmenu-3.2.1.jar:?]
	at net.minecraft.client.gui.widget.ButtonWidget.onPress(ButtonWidget:40) ~[?:?]
	at net.minecraft.client.gui.widget.PressableWidget.onClick(PressableWidget:16) ~[?:?]
	at net.minecraft.client.gui.widget.ClickableWidget.mouseClicked(ClickableWidget:121) ~[?:?]
	at net.minecraft.client.gui.ParentElement.mouseClicked(ParentElement:27) ~[?:?]
	at net.minecraft.client.Mouse.method_1611(Mouse:94) ~[?:?]
	at net.minecraft.client.gui.screen.Screen.wrapScreenError(Screen:492) ~[?:?]
	at net.minecraft.client.Mouse.onMouseButton(Mouse:94) ~[?:?]
	at net.minecraft.client.Mouse.method_22686(Mouse:165) ~[?:?]
	at net.minecraft.util.thread.ThreadExecutor.execute(ThreadExecutor:103) ~[?:?]
	at net.minecraft.client.Mouse.method_22684(Mouse:165) ~[?:?]
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36) ~[lwjgl-glfw-3.2.2.jar:?]
	at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.2.2.jar:?]
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101) ~[lwjgl-glfw-3.2.2.jar:?]
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem:197) ~[client-intermediary.jar:?]
	at net.minecraft.client.util.Window.swapBuffers(Window:310) ~[?:?]
	at net.minecraft.client.MinecraftClient.render(MinecraftClient:1147) ~[?:?]
	at net.minecraft.client.MinecraftClient.run(MinecraftClient:737) ~[?:?]
	at net.minecraft.client.main.Main.main(Main:236) [client-intermediary.jar:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:452) [fabric-loader-0.14.2.jar:?]
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.14.2.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.14.2.jar:?]
	```

## Expected behavior
behavior wise, can't find anything wrong.

## Versions
 - Minecraft Version: 1.18.2
 - Architectury API Version: 4.2.50
 - Platform (Forge/Fabric): Fabric
 - Fabric Loader Version: 0.14.2
 - Fabric API Version: 0.51.1
 - Mod Version: 2.1.0
commented

This is because it tries to access the currently open world for the config. There's not much I can do about this, it's just a warning.