Skip to content

Instrumentation timed out on one of spoon classes and was killed #156

@EgorkaKulikov

Description

@EgorkaKulikov
Collaborator

Run ContestEstimator with the following settings

timeLimit = 30
methodFilter = "spoon.reflect.visitor.ModelConsistencyChecker.*"
projectFilter = listOf("spoon-core-7.0.0")

The instrumentation timeout was reported:

ERROR | (x1) executor.execute((id:44)spoon.reflect.visitor.ModelConsistencyChecker#exit(spoon.reflect.declaration.CtElement)) failed
java.lang.ThreadDeath: null
	at java.lang.Thread.stop(Thread.java:858)
18:24:31.641 | WARN  | Spent 26421 ms on region [executor.execute(spoon.reflect.visitor.ModelConsistencyChecker)] for [(id:44)spoon.reflect.visitor.ModelConsistencyChecker#exit(spoon.reflect.declaration.CtElement)]
18:24:31.648 | ERROR | (x1) analyzeAsync time exceeded hard time out

one more similar problem

ERROR | (x1) executor.execute((id:44)spoon.support.reflect.code.CtStatementListImpl#getStatement(int)) failed
java.lang.ThreadDeath: null
	at java.lang.Thread.stop(Thread.java:858)
18:25:53.991 | WARN  | Spent 25969 ms on region [executor.execute(spoon.support.reflect.code.CtStatementListImpl)] for [(id:44)spoon.support.reflect.code.CtStatementListImpl#getStatement(int)]
18:25:53.999 | ERROR | (x1) analyzeAsync time exceeded hard time out

Activity

DaniilStepanov

DaniilStepanov commented on Nov 27, 2023

@DaniilStepanov
Collaborator

can't reproduce

IlyaMuravjov

IlyaMuravjov commented on Nov 27, 2023

@IlyaMuravjov
Collaborator

@DaniilStepanov

can't reproduce

I don't know if it's the same issue, but something similar consistently reproduces for me with these settings:

timeLimit = 120
methodFilter = "com.google.common.collect.MinMaxPriorityQueue.*"
projectFilter = listOf("guava")

Note, that there are no UTestExecutionTimedOutResults, so it's resolver/decoder taking a long time, while concrete execution completes in time. Also, note, that UTests in such cases are quite large.

11:20:48.353 | WARN  | Spent 35575 ms on region [executor.execute(com.google.common.collect.MinMaxPriorityQueue)] for [(id:19)com.google.common.collect.MinMaxPriorityQueue$Heap#crossOverUp(int, java.lang.Object)]
11:21:24.353 | WARN  | Spent 35604 ms on region [executor.execute(com.google.common.collect.MinMaxPriorityQueue)] for [(id:19)com.google.common.collect.MinMaxPriorityQueue$Heap#crossOver(int, java.lang.Object)]
11:21:42.811 | WARN  | Spent 16080 ms on region [executor.execute(com.google.common.collect.MinMaxPriorityQueue)] for [(id:19)com.google.common.collect.MinMaxPriorityQueue$QueueIterator#removeExact(java.lang.Object)]
11:21:43.690 | INFO  | Region [executor.execute(com.google.common.collect.MinMaxPriorityQueue)] finished in 90881 ms
11:21:43.690 | INFO  | Region [JcToUtExecutionConverter.convert(com.google.common.collect.MinMaxPriorityQueue)] finished in 156 ms
11:21:43.692 | INFO  | Finished (in 102.747 sec): class com.google.common.collect.MinMaxPriorityQueue

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @DaniilStepanov@EgorkaKulikov@IlyaMuravjov

      Issue actions

        Instrumentation timed out on one of `spoon` classes and was killed · Issue #156 · UnitTestBot/usvm