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
scripts not working #6455
Comments
Are you sure you are using JDK 17? A similar looking error recently popped up when JDK 22 was being used. |
when i run java -version i get the following output: |
Would you mind just confirming what version is displayed on your Ghidra splash screen when it starts? |
11.0.3 |
Hmmm, the latest version of Ghidra should not even be allowed to launch with JDK 11. |
Oh my mistake i put the ghidra version in that comment. My splash screen says |
Ok thanks, i'll think more about it. |
I see this problem roughly 80% of the time I try to run a java script. I think the easiest way to reproduce it is to delete the osgi folder, launch the code browser, close it while it is taking forever to setup the osgi stuff, let it error and then it should happen the next time you try to run a java script. |
My name (Marcus Maurice Williams)
…On Tue, Apr 23, 2024, 1:58 PM Andrew Strelsky ***@***.***> wrote:
Ok thanks, i'll think more about it.
#6449 (comment)
<#6449 (comment)>
I see this problem roughly 80% of the time I try to run a java script. I
think the easiest way to reproduce it is to delete the osgi folder, launch
the code browser, close it while it is taking forever to setup the osgi
stuff, let it error and then it should happen the next time you try to run
a java script.
—
Reply to this email directly, view it on GitHub
<#6455 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHJW54NG2OEIWRJ626B3CTY62VMRAVCNFSM6AAAAABGUX5NX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZTGIYDCMRQGE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Describe the bug To Reproduce Expected behavior Screenshots Environment (please complete the following information): Additional context:
|
I'm having the same issue--custom scripts written in Java fail to run, but scripts included with Ghidra run without any problems. It doesn't matter what version of Java I use--the result is the same whether I use Java 17, 21, or 22. I'm running Ghidra on Arch Linux, and I'm using the latest version of Ghidra from the Arch repositories (11.0.3). Here's a minimal reproducer script ( // Test script
import ghidra.app.script.GhidraScript;
public class TestScript extends GhidraScript {
@Override
public void run() {
}
} Placing that script in a custom script directory
The problem can be worked around by moving the script into
|
In the process of trying to figure out what the problem was, I accidentally fixed it for myself. Here's approximately what I did--not sure what part of this fixed the issue:
So now custom scripts in custom directories works for me and I can't get it back into the broken state any more. If someone really wants me to I can try restoring my |
|
Describe the bug
A clear and concise description of the bug.
the script is not executing see log and additional info.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
it would execute
Screenshots
N/A
Attachments
Environment (please complete the following information):
Additional context
code:
command executed:
The text was updated successfully, but these errors were encountered: