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

[gui] Unable to load available plugins #2312

Closed
1 of 3 tasks
eybisi opened this issue Oct 22, 2024 · 1 comment
Closed
1 of 3 tasks

[gui] Unable to load available plugins #2312

eybisi opened this issue Oct 22, 2024 · 1 comment
Assignees
Labels
bug GUI Issues in jadx-gui module regression

Comments

@eybisi
Copy link
Contributor

eybisi commented Oct 22, 2024

Issue details

When File->Preferences is clicked, close function is triggered for JadxDecompiler.java. Which triggers deleteTempRootDir function introduced in commit and deletes folder /tmp/jadx-temp-xx/jadx-instance-yy. Since available plugin list is downloaded to a location such as "/tmp/jadx-temp-xx/jadx-instance-yy/jadx-temp-zzlist.zip" it fails to create a zip file at that location.

WARN  - Failed to load available plugins list
jadx.core.utils.exceptions.JadxRuntimeException: Failed to create temp file with suffix: list.zip
        at jadx.core.utils.files.FileUtils.createTempFile(FileUtils.java:197)
        at jadx.plugins.tools.JadxPluginsList.fetchBundle(JadxPluginsList.java:123)
        at jadx.plugins.tools.JadxPluginsList.get(JadxPluginsList.java:73)
        at jadx.gui.settings.ui.plugins.PluginSettingsGroup.lambda$loadAvailablePlugins$9(PluginSettingsGroup.java:156)
        at jadx.core.utils.tasks.TaskExecutor.wrapTask(TaskExecutor.java:166)
        at jadx.core.utils.tasks.TaskExecutor.runStages(TaskExecutor.java:142)
        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:840)
Caused by: java.nio.file.NoSuchFileException: /tmp/jadx-temp-16673789307012868507/jadx-instance-17924315190417497755/jadx-tmp-11799294419799672437list.zip
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:218)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:380)
        at java.base/java.nio.file.Files.createFile(Files.java:658)
        at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:136)
        at java.base/java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:159)
        at java.base/java.nio.file.Files.createTempFile(Files.java:878)
        at jadx.core.utils.files.FileUtils.createTempFile(FileUtils.java:193

Removing the FileUtils.deleteTempRootDir(); line works but probably not a correct solution. I think close should not trigger when Preferences is clicked.

Jadx version

dev

Java version

17.0.11

OS

  • Windows
  • Linux
  • macOS
@eybisi eybisi added bug GUI Issues in jadx-gui module labels Oct 22, 2024
@skylot skylot self-assigned this Oct 22, 2024
@skylot
Copy link
Owner

skylot commented Oct 22, 2024

Fixed.
Now temp directory will be cleared on decompiler close instead of complete deletion.

@skylot skylot closed this as completed Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug GUI Issues in jadx-gui module regression
Projects
None yet
Development

No branches or pull requests

2 participants