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

Metrics enabled don't work wit irace #239

Closed
jmcolmenar opened this issue May 14, 2024 · 0 comments
Closed

Metrics enabled don't work wit irace #239

jmcolmenar opened this issue May 14, 2024 · 0 comments
Labels
bug Something isn't working confirmed

Comments

@jmcolmenar
Copy link
Collaborator

jmcolmenar commented May 14, 2024

Describe the bug
If irace is used with metrics enabled without autoconfig, an error is raised.

To Reproduce
Activate metrics and run project with irace (no autoconfig)

Expected behavior
Should run properly

What happens instead
Execution error

Screenshots / Code snippets

[12:19:12] ERROR .[.[.[.[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Called Metrics::getCurrentThreadMetrics before Metrics::resetMetrics] with root cause
java.lang.IllegalStateException: Called Metrics::getCurrentThreadMetrics before Metrics::resetMetrics
        at es.urjc.etsii.grafo.metrics.Metrics.getCurrentThreadMetrics(Metrics.java:37)
        at es.urjc.etsii.grafo.metrics.Metrics.get(Metrics.java:101)
        at es.urjc.etsii.grafo.metrics.Metrics.get(Metrics.java:114)
        at es.urjc.etsii.grafo.metrics.Metrics.add(Metrics.java:194)
        at es.urjc.etsii.grafo.PDSP.algorithm.TabuSearchAlgorithm.algorithmWithTabu(TabuSearchAlgorithm.java:135)
        at es.urjc.etsii.grafo.PDSP.algorithm.TabuSearchAlgorithm.lambda$algorithm$0(TabuSearchAlgorithm.java:68)
        at java.base/java.lang.ScopedValue$Carrier$CallableAdapter.call(ScopedValue.java:461)
        at java.base/jdk.internal.vm.ScopedValueContainer.callWithoutScope(ScopedValueContainer.java:162)
        at java.base/jdk.internal.vm.ScopedValueContainer.call(ScopedValueContainer.java:147)
        at java.base/java.lang.ScopedValue$Carrier.get(ScopedValue.java:448)
        at java.base/java.lang.ScopedValue.getWhere(ScopedValue.java:623)
        at es.urjc.etsii.grafo.PDSP.algorithm.TabuSearchAlgorithm.algorithm(TabuSearchAlgorithm.java:68)
        at es.urjc.etsii.grafo.PDSP.algorithm.TabuSearchAlgorithm.algorithm(TabuSearchAlgorithm.java:27)
        at es.urjc.etsii.grafo.autoconfig.irace.IraceOrchestrator.singleExecution(IraceOrchestrator.java:316)
        at es.urjc.etsii.grafo.autoconfig.irace.IraceOrchestrator.iraceSingleCallback(IraceOrchestrator.java:259)
        at es.urjc.etsii.grafo.autoconfig.irace.IraceOrchestrator.lambda$iraceMultiCallback$0(IraceOrchestrator.java:290)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
        at java.base/java.lang.Thread.run(Thread.java:1583)
[12:19:12] INFO  e.u.e.g.a.i.r.RLangRunner  : IRACE Error Stream: 

Versions (ignore not applicable ones):

  • OS: Ubuntu
  • Java version: 21
  • Mork version (if released, if not commit reference): 0.18
@jmcolmenar jmcolmenar added the bug Something isn't working label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed
Projects
None yet
Development

No branches or pull requests

2 participants