Installed diff blue plugin to my intellij 2020.3 version for my existing project.
Getting below error
5:57 PM Diffblue Cover encountered an error while writing tests: An unexpected internal error occurred while generating tests. Check the Diffblue logs for further details. Actual error message: com.diffblue.cover.service.analyzer.a: Failed to call configureAnalysisDriver
Hi @rsood22 this can happen when our index is not up to date and you try and write tests. Please try compiling your project and then wait for the indexing to finish before trying to write tests.
Regards
Andy
Hi ,
I have built the project using gradle clean build . Indexing completed . Still facing same issue.
Below Logs : cover-server.log
/tmp/diffblue/log!!!>cat cover-server.log
14:49:49.622 [INFO][main][c.d.c.s.a.a.b] Starting new remote monitor client
14:49:51.284 [INFO][main][c.d.c.s.a.a.b] Attempting to start remote server.
17:25:51.972 [INFO][main][c.d.c.s.a.a.b] Starting new remote monitor client
17:25:53.992 [INFO][main][c.d.c.s.a.a.b] Attempting to start remote server.
17:36:12.879 [INFO][main][c.d.c.s.a.a.b] Starting new remote monitor client
17:36:14.810 [INFO][main][c.d.c.s.a.a.b] Attempting to start remote server.
cober-plugin.log
com.diffblue.cover.api.j: An unexpected internal error occurred while generating tests. Check the Diffblue logs for further details. Actual error message: com.diffblue.cover.service.analyzer.a: Failed to call configureAnalysisDriver
at com.diffblue.cover.generation.phaser.InvokeDriver.invoke(SourceFile:172)
at com.diffblue.cover.api.f.b(SourceFile:1266)
at com.diffblue.intellij.plugin.actions.a.run(SourceFile:1460)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:962)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:472)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:235)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:235)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: com.diffblue.cover.service.analyzer.a: Failed to call configureAnalysisDriver
at com.diffblue.cover.service.analyzer.a.c.a(SourceFile:45)
at com.diffblue.cover.analysis.a.g.(SourceFile:133)
at com.diffblue.cover.analysis.b.b(SourceFile:373)
at com.diffblue.cover.api.b.e.a(SourceFile:98)
at com.diffblue.cover.generation.phaser.InvokeDriver.a(SourceFile:150)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
… 1 common frames omitted
Caused by: java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: UNKNOWN: Failed to create index reader
java.lang.IllegalStateException: Failed to create index reader
at com.diffblue.fuzztest.e.a.(SourceFile:252)
at com.diffblue.fuzztest.e.a.a(SourceFile:240)
at com.diffblue.cover.analysis.a.f.a(SourceFile:70)
at com.diffblue.cover.analysis.a.f.(SourceFile:95)
at com.diffblue.cover.analysis.a.f.(SourceFile:67)
at com.diffblue.cover.analysis.b.a(SourceFile:7465)
at com.diffblue.cover.service.analyzer.a.b$a.a(SourceFile:254)
at com.diffblue.cover.analysis.c.a(SourceFile:26)
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1133)
at com.diffblue.cover.analysis.c.a(SourceFile:26)
at com.diffblue.cover.service.analyzer.a.b$a.a(SourceFile:253)
at com.diffblue.cover.service.analyzer.a.a.e$f.invoke(SourceFile:561)
at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(SourceFile:180)
at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(SourceFile:331)
at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(SourceFile:814)
at io.grpc.internal.ContextRunnable.run(SourceFile:37)
at io.grpc.internal.SerializingExecutor.run(SourceFile:123)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.IOException: The current inotify(7) watch limit is too low. If you are using the Cover IntelliJ plugin, consider restarting your IDE.
at com.diffblue.index.l.a(SourceFile:56)
at com.diffblue.fuzztest.e.a.(SourceFile:249)
… 19 more
Caused by: java.io.IOException: User limit of inotify instances reached or too many open files
at java.base/sun.nio.fs.LinuxWatchService.(LinuxWatchService.java:64)
at java.base/sun.nio.fs.LinuxFileSystem.newWatchService(LinuxFileSystem.java:47)
at jetbrains.exodus.io.WatchingFileDataReader.(SourceFile:37)
at jetbrains.exodus.io.WatchingFileDataReaderWriterProvider.newFileDataReader(SourceFile:23)
at jetbrains.exodus.io.WatchingFileDataReaderWriterProvider.newFileDataReader(SourceFile:18)
at jetbrains.exodus.io.FileDataReaderWriterProvider.newReaderWriter(SourceFile:29)
at jetbrains.exodus.log.LogConfig.createReaderWriter(SourceFile:318)
at jetbrains.exodus.log.LogConfig.getReader(SourceFile:122)
at jetbrains.exodus.log.Log.(SourceFile:53)
at jetbrains.exodus.env.Environments.newLogInstance(SourceFile:142)
at jetbrains.exodus.env.Environments.newLogInstance(SourceFile:121)
at jetbrains.exodus.env.Environments.newLogInstance(SourceFile:105)
at jetbrains.exodus.env.Environments.newInstance(SourceFile:60)
at com.diffblue.index.store.n.(SourceFile:235)
at com.diffblue.index.store.n.b(SourceFile:77)
at java.base/java.util.HashMap.compute(HashMap.java:1228)
at com.diffblue.index.store.n.c(SourceFile:72)
at com.diffblue.index.store.f.a(SourceFile:88)
at com.diffblue.index.q.(SourceFile:28)
at com.diffblue.index.l.a(SourceFile:53)
… 20 more
at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:564)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:545)
at com.diffblue.cover.service.analyzer.a.c.a(SourceFile:42)
... 8 common frames omitted
Caused by: io.grpc.StatusRuntimeException: UNKNOWN: Failed to create index reader
java.lang.IllegalStateException: Failed to create index reader
at com.diffblue.fuzztest.e.a.(SourceFile:252)
at com.diffblue.fuzztest.e.a.a(SourceFile:240)
at com.diffblue.cover.analysis.a.f.a(SourceFile:70)
at com.diffblue.cover.analysis.a.f.(SourceFile:95)
at com.diffblue.cover.analysis.a.f.(SourceFile:67)
at com.diffblue.cover.analysis.b.a(SourceFile:7465)
at com.diffblue.cover.service.analyzer.a.b$a.a(SourceFile:254)
at com.diffblue.cover.analysis.c.a(SourceFile:26)
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1133)
at com.diffblue.cover.analysis.c.a(SourceFile:26)
at com.diffblue.cover.service.analyzer.a.b$a.a(SourceFile:253)
at com.diffblue.cover.service.analyzer.a.a.e$f.invoke(SourceFile:561)
at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(SourceFile:180)
at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(SourceFile:331)
at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(SourceFile:814)
at io.grpc.internal.ContextRunnable.run(SourceFile:37)
at io.grpc.internal.SerializingExecutor.run(SourceFile:123)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.IOException: The current inotify(7) watch limit is too low. If you are using the Cover IntelliJ plugin, consider restarting your IDE.
at com.diffblue.index.l.a(SourceFile:56)
at com.diffblue.fuzztest.e.a.(SourceFile:249)
… 19 more
Caused by: java.io.IOException: User limit of inotify instances reached or too many open files
at java.base/sun.nio.fs.LinuxWatchService.(LinuxWatchService.java:64)
at java.base/sun.nio.fs.LinuxFileSystem.newWatchService(LinuxFileSystem.java:47)
at jetbrains.exodus.io.WatchingFileDataReader.(SourceFile:37)
at jetbrains.exodus.io.WatchingFileDataReaderWriterProvider.newFileDataReader(SourceFile:23)
at jetbrains.exodus.io.WatchingFileDataReaderWriterProvider.newFileDataReader(SourceFile:18)
at jetbrains.exodus.io.FileDataReaderWriterProvider.newReaderWriter(SourceFile:29)
at jetbrains.exodus.log.LogConfig.createReaderWriter(SourceFile:318)
at jetbrains.exodus.log.LogConfig.getReader(SourceFile:122)
at jetbrains.exodus.log.Log.(SourceFile:53)
at jetbrains.exodus.env.Environments.newLogInstance(SourceFile:142)
at jetbrains.exodus.env.Environments.newLogInstance(SourceFile:121)
at jetbrains.exodus.env.Environments.newLogInstance(SourceFile:105)
at jetbrains.exodus.env.Environments.newInstance(SourceFile:60)
at com.diffblue.index.store.n.(SourceFile:235)
at com.diffblue.index.store.n.b(SourceFile:77)
at java.base/java.util.HashMap.compute(HashMap.java:1228)
at com.diffblue.index.store.n.c(SourceFile:72)
at com.diffblue.index.store.f.a(SourceFile:88)
at com.diffblue.index.q.(SourceFile:28)
at com.diffblue.index.l.a(SourceFile:53)
… 20 more
Have been able to resolve the issue. Thanks. You can close the issue.
Hi, that’s great to hear! How did you resolve it?
Regards
Andy
Was getting below exception : as stated above
Caused by: java.io.IOException: The current inotify(7) watch limit is too low. If you are using the Cover IntelliJ plugin, consider restarting your IDE.
Increased the io instances and restarted the intellij
sudo sh -c “echo 256 > /proc/sys/fs/inotify/max_user_instances”