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.

"Failed to read accessWidener" in 0.10

See original GitHub issue

I just started to conver some mods to 21w40a. Everything appears to compile fine, but when I start the client (using gradlew runClient or starting it from IntelliJ) I get the following error:

Exception in thread “main” java.lang.RuntimeException: Failed to read accessWidener file from mod fabric-screen-handler-api-v1 at net.fabricmc.loader.impl.FabricLoaderImpl.loadAccessWideners(FabricLoaderImpl.java:443) at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:122) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68) at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28) at net.fabricmc.devlaunchinjector.Main.main(Main.java:86) Caused by: net.fabricmc.accesswidener.AccessWidenerFormatException: line 1: Namespace (intermediary) does not match current runtime namespace (named) at net.fabricmc.accesswidener.AccessWidenerReader.error(AccessWidenerReader.java:281) at net.fabricmc.accesswidener.AccessWidenerReader.read(AccessWidenerReader.java:90) at net.fabricmc.loader.impl.FabricLoaderImpl.loadAccessWideners(FabricLoaderImpl.java:441)

The Mod I am working on does not use any accessWideners. I alsow cleared my entire build environment to make sure that it is not related to cached data or any game-config. Is this a Bug or something I am missing?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
Juuxelcommented, Oct 12, 2021

Using the local project does work when using Loom 0.9 or earlier.

This is the key here. (Warning: heavy Gradle-ese ahead.) 0.10 made the default outgoing configurations (or “variants”), meaning apiElements and runtimeElements, export the remapped mods so that publishing would work as expected. This has the side effect of forwarding intermediary dep jars, which is causing your crash.

This means that you either need to use a custom outgoing configuration with dev/unmapped jars and depend on that, or modSomething project('theproject') (this one is a bit cursed with the useless remapping).

0reactions
quiqueckcommented, Oct 18, 2021

Sorry for the delay and thanks for the sample (which appears to work as it is supposed to). And thanks again for the really fast and in depth help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

minecraft crashes when trying to debug fabric mod : r/fabricmc
Exception in thread "main" java.lang.RuntimeException: Failed to read accessWidener file from mod fabric-screen-handler-api-v1.
Read more >
tutorial:accesswideners [Fabric Wiki]
Access wideners provide a way to loosen the access limits of classes, methods or fields. Access wideners are similar to the commonly known ......
Read more >
Could this be a problem on my end if so what is it indicating?
Fabric Loom: 0.10.66. FAILURE: Build failed with an exception. * What went wrong: ... RuntimeException: Could not find access widener file ...
Read more >
Game crashes with mods, I need help plz - Java Edition Support
... /net/fabricmc/access-widener/2.1.0/access-widener-2.1.0.jar ... MixinLevelChunkSetBlockHook[22:48:37] [main/WARN]: Error loading class: ...
Read more >
Manjaro crashes on game
A detailed walkthrough of the error, its code path and all known details is as follows: ... for mythic-mounts.mixins.json could not be read....
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