cabaletta / cabaletta/baritone
The apache logger can't find method info() and crushes the game during initialization (BaritownedDeveloperEnvironment 1.15.x, 1.16.x)
- Dominant language
- Java
- Stars
- 9.2k
- Forks
- 2.1k
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 3
Description
## Some information
Operating system: Windows 10
Java version: 15
Minecraft version: Intellij Idea Development Environment 1.15.2 , 1.16.1, 1.16.4
Baritone version: 1.6.1
Forge mods (if used):
## Issue description
I've encountered the same exception on all three versions of minecraft, emerges after gradle automatically updated dependencies from ` repo.spongepowered.org` before launching the game, it seems like `org.apache.logging.log4j.Logger` is missing or modified. ( though i see it get downloaded when executing task :BuildNeeded )
## Exception, error or logs
```
3:22:31 PM: Executing task 'runClient'...
> Task :buildSrc:compileJava UP-TO-DATE
> Task :buildSrc:compileGroovy NO-SOURCE
> Task :buildSrc:processResources NO-SOURCE
> Task :buildSrc:classes UP-TO-DATE
> Task :buildSrc:jar UP-TO-DATE
> Task :buildSrc:assemble UP-TO-DATE
> Task :buildSrc:compileTestJava NO-SOURCE
> Task :buildSrc:compileTestGroovy NO-SOURCE
> Task :buildSrc:processTestResources NO-SOURCE
> Task :buildSrc:testClasses UP-TO-DATE
> Task :buildSrc:test NO-SOURCE
> Task :buildSrc:check UP-TO-DATE
> Task :buildSrc:build UP-TO-DATE
> Configure project :
New Dep: com.github.ImpactDevelopment:Vanilla:1.15.2_mapped_snapshot_20200515-1.15.1
> Task :compileApiJava UP-TO-DATE
> Task :processApiResources NO-SOURCE
> Task :apiClasses UP-TO-DATE
> Task :compileSchematica_apiJava UP-TO-DATE
> Task :processSchematica_apiResources NO-SOURCE
> Task :schematica_apiClasses UP-TO-DATE
> Task :compileJava UP-TO-DATE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :downloadMcpConfig
> Task :extractSrg UP-TO-DATE
> Task :createMcpToObf UP-TO-DATE
> Task :createMcpToSrg UP-TO-DATE
> Task :compileLaunchJava
Potential refmap conflict. Duplicate refmap name mixins.baritone.refmap.json specified for sourceSet launch, already defined for sourceSet launch
ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogger
Note: SpongePowered MIXIN Annotation Processor Version=0.8.2
Note: ObfuscationServiceMCP supports type: "searge"
Note: ObfuscationServiceMCP supports type: "notch"
Note: Loading searge mappings from C:\Users\10200\Desktop\MyJavaProjects\baritone-1.15.2 (1)\baritone-1.15.2\build\createMcpToSrg\output.srg
Note: Loading notch mappings from C:\Users\10200\Desktop\MyJavaProjects\baritone-1.15.2 (1)\baritone-1.15.2\build\createMcpToObf\output.srg
Note: Writing refmap to C:\Users\10200\Desktop\MyJavaProjects\baritone-1.15.2 (1)\baritone-1.15.2\build\tmp\compileLaunchJava\compileLaunchJava-refmap.json
Note: Writing refmap to C:\Users\10200\Desktop\MyJavaProjects\baritone-1.15.2 (1)\baritone-1.15.2\build\tmp\compileLaunchJava\compileLaunchJava-refmap.json
Note: Writing searge output SRGs to C:\Users\10200\Desktop\MyJavaProjects\baritone-1.15.2 (1)\baritone-1.15.2\build\tmp\compileLaunchJava\mcp-srg.srg
Note: Writing notch output SRGs to C:\Users\10200\Desktop\MyJavaProjects\baritone-1.15.2 (1)\baritone-1.15.2\build\tmp\compileLaunchJava\mcp-notch.srg
Note: Writing refmap to C:\Users\10200\Desktop\MyJavaProjects\baritone-1.15.2 (1)\baritone-1.15.2\build\tmp\compileLaunchJava\compileLaunchJava-refmap.json
Note: Writing refmap to C:\Users\10200\Desktop\MyJavaProjects\baritone-1.15.2 (1)\baritone-1.15.2\build\tmp\compileLaunchJava\compileLaunchJava-refmap.json
Note: Writing searge output SRGs to C:\Users\10200\Desktop\MyJavaProjects\baritone-1.15.2 (1)\baritone-1.15.2\build\tmp\compileLaunchJava\mcp-srg.srg
Note: Writing notch output SRGs to C:\Users\10200\Desktop\MyJavaProjects\baritone-1.15.2 (1)\baritone-1.15.2\build\tmp\compileLaunchJava\mcp-notch.srg
Note: C:\Users\10200\Desktop\MyJavaProjects\baritone-1.15.2 (1)\baritone-1.15.2\src\launch\java\baritone\launch\BaritoneTweaker.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :processLaunchResources UP-TO-DATE
> Task :launchClasses
> Task :downloadMCMeta UP-TO-DATE
> Task :downloadAssets
> Task :extractNatives UP-TO-DATE
> Task :prepareRuns
> Task :prepareRunClient
> Task :runClient
LOGGING IN: ----------------------------------
[15:22:36] [main/INFO]: Logging in with username & password
----------- LaunchInfo -----------
userProperties :: [{"name":"preferredLanguage","value":"zh-cn"},{"name":"registrationCountry","value":"HK"}]
assetsDir :: C:\Users\10200\.gradle\caches\forge_gradle\assets
assetIndex :: 1.15
userType :: mojang
accessToken ::
version :: 1.16
uuid ::
tweakClass :: baritone.launch.BaritoneTweaker
username :: KiteJencien
----------------------------------
[15:22:38] [main/INFO]: Loading tweak class name baritone.launch.BaritoneTweaker
[15:22:38] [main/INFO]: Using primary tweak class name baritone.launch.BaritoneTweaker
[15:22:38] [main/INFO]: Calling tweak class baritone.launch.BaritoneTweaker
[15:22:38] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/C:/Users/10200/.gradle/caches/modules-2/files-2.1/org.spongepowered/mixin/0.8.2/1cf212283d26f706fd3074318870bebd14d2a9ed/mixin-0.8.2.jar Service=LaunchWrapper Env=UNKNOWN
[15:22:38] [main/INFO]: FML platform manager could not load class cpw.mods.fml.relauncher.CoreModManager. Proceeding without FML support.
[15:22:38] [main/INFO]: Compatibility level set to JAVA_8
[15:22:38] [main/ERROR]: Mixin config mixins.baritone.json does not specify "minVersion" property
[15:22:38] [main/INFO]: Loading tweak class name org.spongepowered.asm.mixin.EnvironmentStateTweaker
[15:22:38] [main/INFO]: Calling tweak class org.spongepowered.asm.mixin.EnvironmentStateTweaker
[15:22:38] [main/WARN]: Reference map 'mixins.baritone.refmap.json' for mixins.baritone.json could not be read. If this is a development environment you can ignore this message
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinBitArray, name: baritone.launch.mixins.MixinBitArray
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinChunkArray, name: baritone.launch.mixins.MixinChunkArray
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinClientChunkProvider, name: baritone.launch.mixins.MixinClientChunkProvider
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinClientPlayerEntity, name: baritone.launch.mixins.MixinClientPlayerEntity
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinClientPlayNetHandler, name: baritone.launch.mixins.MixinClientPlayNetHandler
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinCommandSuggestionHelper, name: baritone.launch.mixins.MixinCommandSuggestionHelper
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinEntity, name: baritone.launch.mixins.MixinEntity
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinEntityRenderManager, name: baritone.launch.mixins.MixinEntityRenderManager
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinItemStack, name: baritone.launch.mixins.MixinItemStack
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinLivingEntity, name: baritone.launch.mixins.MixinLivingEntity
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinLootContext, name: baritone.launch.mixins.MixinLootContext
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinMinecraft, name: baritone.launch.mixins.MixinMinecraft
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinNetworkManager, name: baritone.launch.mixins.MixinNetworkManager
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinPalettedContainer, name: baritone.launch.mixins.MixinPalettedContainer
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinPlayerController, name: baritone.launch.mixins.MixinPlayerController
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinScreen, name: baritone.launch.mixins.MixinScreen
[15:22:38] [main/ERROR]: Classloader restrictions [PACKAGE_CLASSLOADER_EXCLUSION] encountered loading mixins.baritone.json:MixinWorldRenderer, name: baritone.launch.mixins.MixinWorldRenderer
[15:22:39] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!
Time: 2/11/21 3:22 PM
Description: Initializing game
java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.info(Ljava/lang/String;Ljava/lang/Object;)V
at net.minecraft.client.Minecraft.(Minecraft.java:343)
at net.minecraft.client.main.Main.main(Main.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at baritone.launch.LaunchTesting.main(LaunchTesting.java:72)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at net.minecraft.client.Minecraft.(Minecraft.java:343)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at baritone.launch.LaunchTesting.main(LaunchTesting.java:72)
-- System Details --
Details:
Minecraft Version: 1.15.2
Minecraft Version ID: 1.15.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_241, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 299050280 bytes (285 MB) / 358088704 bytes (341 MB) up to 7628390400 bytes (7275 MB)
CPUs: 8
JVM Flags: 0 total;
Launched Version: 1.16
Backend library: LWJGL version 3.2.2 build 10
Backend API: NO CONTEXT
GL Caps:
Using VBOs: Yes
Is Modded: Very likely; Jar signature invalidated
Type: Client (map_client.txt)
CPU:
#@!@# Game crashed! Crash report saved to: #@!@# C:\Users\10200\Desktop\MyJavaProjects\baritone-1.15.2 (1)\baritone-1.15.2\run\.\crash-reports\crash-2021-02-11_15.22.40-client.txt
> Task :runClient FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':runClient'.
> Process 'command 'C:\Program Files\Java\jdk1.8.0_241\bin\java.exe'' finished with non-zero exit value -1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 9s
13 actionable tasks: 4 executed, 9 up-to-date
3:22:40 PM: Task execution finished 'runClient'.
```
## How to reproduce
1: Build the project with build.gradle
2: build : "buildDependencies" & "buildNeeded"
3: build : “run client”
## Final checklist
- [x] I know how to properly use check boxes
- [x] I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
- [x] I have included logs, exceptions and / or steps to reproduce the issue.
- [x] I have not used any OwO's or UwU's in this issue.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.