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

Failed to parse '.arsc.' file #178

Closed
sethjones opened this issue May 28, 2017 · 5 comments
Closed

Failed to parse '.arsc.' file #178

sethjones opened this issue May 28, 2017 · 5 comments

Comments

@sethjones
Copy link

INFO - loading ...
ERROR - Failed to parse '.arsc' file
jadx.core.utils.exceptions.JadxException: Error decode: resources.arsc
at jadx.api.ResourcesLoader.decodeStream(ResourcesLoader.java:65) ~[jadx-core-0.6.0.jar:na]
at jadx.core.dex.nodes.RootNode.loadResources(RootNode.java:75) ~[jadx-core-0.6.0.jar:na]
at jadx.api.JadxDecompiler.parse(JadxDecompiler.java:264) [jadx-core-0.6.0.jar:na]
at jadx.api.JadxDecompiler.loadFiles(JadxDecompiler.java:118) [jadx-core-0.6.0.jar:na]
at jadx.api.JadxDecompiler.loadFile(JadxDecompiler.java:103) [jadx-core-0.6.0.jar:na]
at jadx.gui.JadxWrapper.openFile(JadxWrapper.java:32) [jadx-gui-0.6.0.jar:na]
at jadx.gui.ui.MainWindow.openFile(MainWindow.java:164) [jadx-gui-0.6.0.jar:na]
at jadx.gui.ui.MainWindow.openFile(MainWindow.java:159) [jadx-gui-0.6.0.jar:na]
at jadx.gui.ui.MainWindow.open(MainWindow.java:121) [jadx-gui-0.6.0.jar:na]
at jadx.gui.JadxGUI$1.run(JadxGUI.java:27) [jadx-gui-0.6.0.jar:na]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [na:1.8.0_131]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [na:1.8.0_131]
at java.awt.EventQueue.access$500(Unknown Source) [na:1.8.0_131]
at java.awt.EventQueue$3.run(Unknown Source) [na:1.8.0_131]
at java.awt.EventQueue$3.run(Unknown Source) [na:1.8.0_131]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_131]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [na:1.8.0_131]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [na:1.8.0_131]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [na:1.8.0_131]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [na:1.8.0_131]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [na:1.8.0_131]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.8.0_131]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.8.0_131]
at java.awt.EventDispatchThread.run(Unknown Source) [na:1.8.0_131]
Caused by: java.io.IOException: Decode error: Unexpected type header size: 0x4c, position: 0x1b1f44
at jadx.core.xmlgen.CommonBinaryParser.die(CommonBinaryParser.java:96) ~[jadx-core-0.6.0.jar:na]
at jadx.core.xmlgen.ResTableParser.parseTypeChunk(ResTableParser.java:164) ~[jadx-core-0.6.0.jar:na]
at jadx.core.xmlgen.ResTableParser.parsePackage(ResTableParser.java:142) ~[jadx-core-0.6.0.jar:na]
at jadx.core.xmlgen.ResTableParser.decodeTableChunk(ResTableParser.java:89) ~[jadx-core-0.6.0.jar:na]
at jadx.core.xmlgen.ResTableParser.decode(ResTableParser.java:57) ~[jadx-core-0.6.0.jar:na]
at jadx.core.dex.nodes.RootNode$1.decode(RootNode.java:78) ~[jadx-core-0.6.0.jar:na]
at jadx.api.ResourcesLoader.decodeStream(ResourcesLoader.java:63) ~[jadx-core-0.6.0.jar:na]
... 23 common frames omitted

@bagipro
Copy link
Collaborator

bagipro commented Mar 25, 2019

@sethjones
The parser was changed multiple times after your report. More over I tested numbers of resources.arsc files, and didn't have any processing issues. If you can reproduce the bug, reopen the issue with your resources.arsc file attached. Thanks!

@bagipro bagipro closed this as completed Mar 25, 2019
@nx4dm1n
Copy link

nx4dm1n commented May 29, 2022

I also got this error

@jpstotz
Copy link
Collaborator

jpstotz commented May 29, 2022

I also got this error

@nx4dm1n Please check if you are using the latest version of Jadx. If you are using the latest version it would be good if you could provide us the APK file that triggers this error.

@imshvc
Copy link

imshvc commented Sep 2, 2022

Log level: Error
Version: 1.4.4
Binary: jadx-gui-1.4.4-no-jre-win.exe
File causing the error: resources.arsc.zip
Java VM:

openjdk version "18.0.1.1" 2022-04-22
OpenJDK Runtime Environment (build 18.0.1.1+2-6)
OpenJDK 64-Bit Server VM (build 18.0.1.1+2-6, mixed mode, sharing)

jadx Error:

ERROR: Failed to parse '.arsc' file
jadx.core.utils.exceptions.JadxException: Error decode: D:\download\browser\resources.arsc
	at jadx.api.ResourcesLoader.decodeStream(ResourcesLoader.java:78)
	at jadx.core.dex.nodes.RootNode.loadResources(RootNode.java:173)
	at jadx.api.JadxDecompiler.load(JadxDecompiler.java:122)
	at jadx.gui.JadxWrapper.open(JadxWrapper.java:65)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.IOException: Config size < 28
	at jadx.core.xmlgen.ResTableParser.parseConfig(ResTableParser.java:373)
	at jadx.core.xmlgen.ResTableParser.parseTypeChunk(ResTableParser.java:221)
	at jadx.core.xmlgen.ResTableParser.parsePackage(ResTableParser.java:162)
	at jadx.core.xmlgen.ResTableParser.decodeTableChunk(ResTableParser.java:110)
	at jadx.core.xmlgen.ResTableParser.decode(ResTableParser.java:86)
	at jadx.core.xmlgen.ResDecoder.decode(ResDecoder.java:28)
	at jadx.core.dex.nodes.RootNode.lambda$loadResources$7(RootNode.java:173)
	at jadx.api.ResourcesLoader.decodeStream(ResourcesLoader.java:61)
	... 6 common frames omitted

@jpstotz
Copy link
Collaborator

jpstotz commented Sep 3, 2022

@oxou I have moved your bug report to a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants