-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
NPEFix Fails to Run on the Defects4J Dataset #29
Comments
Dear @Peanu11 Thanks for your bug report. Which Java version do you use for running NpeFix? Which Java version do Chart983 and Mockito188 expect/support? |
Dear @monperrus |
They are reasonable versions. To save time, would you copy paste the exact sequence of commands (incl. the defects4J ones) that result in the bug? |
Dear @monperrus ,
2.Here's my commands to build defects4j.
1.Here's my instruction to get Chart983 from defects4j (Chart983 is numbered 1 in defects4j).In this step you should first adjust the java version to java 11 via
You can get Mockito188 via
The test parameter comes from separating each line of the output of the |
Thanks a lot, super useful. I do get the same error for chart-993. Now, it's not a failure to run, it's a failure to repair. So two options:
WDYT? |
Dear @monperrus , |
npe-dataset is dying from a dependency and version hell: many dependencies have disappeared from maven central, and most bugs in it cannot be compiled and run from modern Java incl. 11 and 17, which is the one Spoon/NpeFix requires.
Let's take it from a positive side: on which example of defects4j v3 (Java 11) does it run well? |
Dear @monperrus , It's sad that I've tried a lot of examples these days and haven't found one that works successfully. Could you please give me an example of what works successfully? So that I can check if there is a problem with my local environment. |
Just got an example working end to end.
|
Dear @monperrus , Thanks a lot. I successfully got the patches.json for pdfbox_2965. However, NPEFIX gets stuck during multirun, and the program can not finish properly. I've also tested on other examples, and it turns out that NPEFIX doesn't end properly either, and the generated patches.json doesn't contain patch information. In the case of math-369, below is its patches.json file and execution information. Here's my command for math-369.
|
After reviewing, we think the reason the program cannot complete in pdfbox_2965 is that it gets stuck while iterating the strategy in |
thanks for the additional info, would you be able to debug and fix it with a pull-request?
|
Dear NPEFix's maintainers,
Hello! I recently attempted to run NPEFix on the Defects4J dataset, but it failed on NPE examples from the Math, Chart, Mockito, and Lang etc. projects. The error messages on Chart983 and Mockito188 are shown in the images below.
Here’s how I used it:
java -jar "$NPEFIX_JAR" --source "$src_dir:$test_dir" --classpath "$classpath" --test "$test_classes"
Where:
src_dir=$(defects4j export -p dir.src.classes)
test_dir=$(defects4j export -p dir.src.tests)
classpath=$(defects4j export -p cp.test)
test_classes
is a colon-separated list generated fromdefects4j export -p tests.relevant
.I noticed that the usage instructions in the README and the jar example for reproducing experiments are no longer compatible with the current version. Could you tell me if there are any issues with my usage or parameter settings? Or could you provide an example that works?
The text was updated successfully, but these errors were encountered: