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

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

Open
EgorkaKulikov opened this issue Nov 25, 2023 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@EgorkaKulikov
Copy link
Collaborator

EgorkaKulikov commented Nov 25, 2023

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
@EgorkaKulikov EgorkaKulikov added the bug Something isn't working label Nov 25, 2023
@DaniilStepanov
Copy link
Collaborator

can't reproduce

@IlyaMuravjov
Copy link
Collaborator

IlyaMuravjov commented Nov 27, 2023

@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
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants