Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read field "outgoingEdges" because "handlerRangeBlock" is null for reading classpath (by Architectury Transformer) #32

Open
tanishisherewithhh opened this issue Jul 21, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@tanishisherewithhh
Copy link

tanishisherewithhh commented Jul 21, 2023

Error:

"C:\Program Files\Java\jdk-19\bin\java.exe" -Dfabric.dli.config=E:\ChatTranslator\fabric\.gradle\loom-cache\launch.cfg -Dfabric.dli.env=client -Dfabric.dli.main=net.fabricmc.loader.impl.launch.knot.KnotClient -Darchitectury.main.class=E:\ChatTranslator\fabric\.gradle\architectury\.main_class -Darchitectury.runtime.transformer=E:\ChatTranslator\fabric\.gradle\architectury\.transforms -Darchitectury.properties=E:\ChatTranslator\fabric\.gradle\architectury\.properties -Djdk.attach.allowAttachSelf=true -javaagent:E:\ChatTranslator\.gradle\architectury\architectury-transformer-agent.jar "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.3\lib\idea_rt.jar=54801:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.3\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 @C:\Users\tani\AppData\Local\Temp\idea_arg_file1270264523 dev.architectury.transformer.TransformerRuntime
[Architectury Transformer] Architectury Runtime 5.2.75
[Architectury Transformer] Read classpath in 1.658 s
Exception in thread "main" java.lang.NullPointerException: Cannot read field "outgoingEdges" because "handlerRangeBlock" is null
	at dev.architectury.transformer.shadowed.impl.org.objectweb.asm.MethodWriter.computeAllFrames(MethodWriter.java:1573)
	at dev.architectury.transformer.shadowed.impl.org.objectweb.asm.MethodWriter.visitMaxs(MethodWriter.java:1547)
	at dev.architectury.transformer.shadowed.impl.org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:767)
	at dev.architectury.transformer.shadowed.impl.org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:647)
	at dev.architectury.transformer.shadowed.impl.org.objectweb.asm.tree.ClassNode.accept(ClassNode.java:451)
	at dev.architectury.transformer.handler.SimpleTransformerHandler.toByteArray(SimpleTransformerHandler.java:231)
	at dev.architectury.transformer.handler.SimpleTransformerHandler.applyTransforms(SimpleTransformerHandler.java:203)
	at dev.architectury.transformer.handler.SimpleTransformerHandler.lambda$handle$1(SimpleTransformerHandler.java:80)
	at dev.architectury.transformer.input.FileView.lambda$handle$1(FileView.java:47)
	at dev.architectury.transformer.input.BaseFileAccess.handle(BaseFileAccess.java:82)
	at dev.architectury.transformer.input.FileView.handle(FileView.java:45)
	at dev.architectury.transformer.input.ForwardingFileView.handle(ForwardingFileView.java:47)
	at dev.architectury.transformer.input.ForwardingFileView.handle(ForwardingFileView.java:47)
	at dev.architectury.transformer.handler.SimpleTransformerHandler.handle(SimpleTransformerHandler.java:78)
	at dev.architectury.transformer.Transform.runTransformers(Transform.java:104)
	at dev.architectury.transformer.Transform.runTransformers(Transform.java:98)
	at dev.architectury.transformer.TransformerRuntime.main(TransformerRuntime.java:165)

Steps to reproduce:

  • Use Minecraft Developement Plugin in JetBrains Intellj to create a new Architectury API mod.
  • After the building is complete run any Minecraft Client loader.

Using:

  • minecraft_version=1.20.1
  • architectury_version=9.1.10
  • fabric_loader_version=0.14.21
  • fabric_api_version=0.86.0+1.20.1
  • "architectury-plugin" version 3.4-SNAPSHOT
  • forge_version=1.20.1-47.1.39
@Juuxel Juuxel transferred this issue from architectury/architectury-api Jul 21, 2023
@Juuxel
Copy link
Member

Juuxel commented Jul 21, 2023

Which version of Architectury Plugin are you using? Note that the Minecraft Development plugin tends to create outdated projects.

@tanishisherewithhh
Copy link
Author

I believe I am using 1.6.3, the latest version

@Juuxel
Copy link
Member

Juuxel commented Jul 21, 2023

Sorry if I was unclear, I meant the Gradle plugin known as "Architectury Plugin", not our IDEA plugin. The Gradle plugin manages the transformer.

@tanishisherewithhh
Copy link
Author

tanishisherewithhh commented Jul 21, 2023

I am extremely sorry, I misinterpreted it to IntelliJ plugin. I am currently using version - 3.4-SNAPSHOT

@Juuxel Juuxel added the bug Something isn't working label Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants