SpoonLabs / astor

Automatic program repair for Java with generate-and-validate techniques :v::v:: jGenProg (2014) - jMutRepair (2016) - jKali (2016) - DeepRepair (2017) - Cardumen (2018) - 3sfix (2018)
https://hal.archives-ouvertes.fr/hal-01321615/document
GNU General Public License v2.0
205 stars 107 forks source link

"End Repair Search: NOT Found solution" even in case of provided examples. #346

Open rajdeep-biswas opened 2 years ago

rajdeep-biswas commented 2 years ago

Steps to reproduce -

  1. Cloned this repo as is.
  2. On mvn clean install step, there is an error regarding Source option 5 is no longer supported. Use 6 or later. This appeared on Math-issue-309 and Math-issue-280, their pom.xml files' tags had to be updated from 1.5 to 1.6 and then the command works.
  3. Running this command as is specified in the doc java -cp target/astor-*-jar-with-dependencies.jar fr.inria.main.evolution.AstorMain -mode jgenprog -srcjavafolder /src/java/ -srctestfolder /src/test/ -binjavafolder /target/classes/ -bintestfolder /target/test-classes/ -location /Users/trb/Documents/SideGigs/Patcher/astor/examples/Math-issue-309 -dependencies examples/Math-issue-309/lib Results in the following log -
[1190389] WARN AstorCoreEngine - ----------Running generation: 199, population size: 1
[1190712] WARN AstorCoreEngine - ----------Running generation: 200, population size: 1
[1201220] INFO main - The Process that runs JUnit test cases did not terminate within waitTime of 10 seconds
[1201220] INFO main - Killed the Process that runs JUnit test cases 17210
[1201224] INFO AstorCoreEngine - Time Repair Loop (s): 1112.246
[1201224] INFO AstorCoreEngine - generationsexecuted: 200
[1201224] WARN AstorCoreEngine - ----SUMMARY_EXECUTION---
[1201224] WARN AstorCoreEngine - End Repair Search: NOT Found solution
[1201224] WARN AstorCoreEngine - Number suspicious:1
[1201233] INFO AstorMain - Time Total(s): 1201.231

There is no patch.diff file generated, either, as it should be according to the doc; in the output directory.

ShifatSahariar commented 10 months ago

did you solved the problem later? please let me know