Skip to content
New issue

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

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

Already on GitHub? # to your account

AnalyzerException when loading Dex2Jard YouTube APK #260

Open
NebelNidas opened this issue Feb 20, 2025 · 1 comment
Open

AnalyzerException when loading Dex2Jard YouTube APK #260

NebelNidas opened this issue Feb 20, 2025 · 1 comment
Labels
backend affects the enigma backend bug Something isn't working

Comments

@NebelNidas
Copy link
Contributor

NebelNidas commented Feb 20, 2025

When cloning YT-RE, putting the corresponding APK into the folder, renaming it to youtube-18.18.39.apk and then running the enigmaQuilt Gradle task, the following error occurs:

Stacktrace
java.lang.RuntimeException: Exception while indexing class: java/nio/file/NoSuchFileException
	at org.quiltmc.enigma.impl.analysis.index.AbstractJarIndex.indexJar(AbstractJarIndex.java:98)
	at org.quiltmc.enigma.api.analysis.index.jar.MainJarIndex.indexJar(MainJarIndex.java:34)
	at org.quiltmc.enigma.api.Enigma.index(Enigma.java:127)
	at org.quiltmc.enigma.api.Enigma.openJar(Enigma.java:92)
	at org.quiltmc.enigma.gui.GuiController.lambda$openJar$1(GuiController.java:130)
	at org.quiltmc.enigma.gui.dialog.ProgressDialog.lambda$runOffThread$2(ProgressDialog.java:94)
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by: java.lang.RuntimeException: Failed to analyze <init>
	at org.quiltmc.enigma.impl.analysis.index.IndexReferenceVisitor.lambda$visitMethod$0(IndexReferenceVisitor.java:62)
	at org.quiltmc.enigma.impl.analysis.MethodNodeWithAction.visitEnd(MethodNodeWithAction.java:17)
	at org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:770)
	at org.objectweb.asm.tree.MethodNode.accept(MethodNode.java:647)
	at org.objectweb.asm.tree.ClassNode.accept(ClassNode.java:468)
	at org.quiltmc.enigma.impl.analysis.index.AbstractJarIndex.indexJar(AbstractJarIndex.java:96)
	... 12 more
Caused by: org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 2: Method owner: expected Ljava/nio/file/FileSystemException;, but found Ljava/nio/file/NoSuchFileException;
	at org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:286)
	at org.quiltmc.enigma.impl.analysis.index.IndexReferenceVisitor.lambda$visitMethod$0(IndexReferenceVisitor.java:60)
	... 17 more
Caused by: org.objectweb.asm.tree.analysis.AnalyzerException: Method owner: expected Ljava/nio/file/FileSystemException;, but found Ljava/nio/file/NoSuchFileException;
	at org.objectweb.asm.tree.analysis.BasicVerifier.naryOperation(BasicVerifier.java:389)
	at org.quiltmc.enigma.impl.analysis.index.IndexReferenceVisitor$MethodInterpreter.naryOperation(IndexReferenceVisitor.java:176)
	at org.quiltmc.enigma.impl.analysis.index.IndexReferenceVisitor$MethodInterpreter.naryOperation(IndexReferenceVisitor.java:68)
	at org.objectweb.asm.tree.analysis.Frame.executeInvokeInsn(Frame.java:682)
	at org.objectweb.asm.tree.analysis.Frame.execute(Frame.java:609)
	at org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:173)
	... 18 more

This could very well be caused by a faulty Dex2Jar conversion, however the issue doesn't appear with Fabric Enigma, and your code has the following comment:

So I thought it might be worth reporting.

@NebelNidas NebelNidas changed the title AnalyzerException when loading Dex2Jar'd YouTube APK AnalyzerException when loading Dex2Jard YouTube APK Feb 20, 2025
@ix0rai
Copy link
Member

ix0rai commented Feb 20, 2025

thanks for reporting!

@ix0rai ix0rai added bug Something isn't working backend affects the enigma backend labels Feb 20, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
backend affects the enigma backend bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants