Title: IDEA dead lock when resources folder is removed before generation · Issue #1160 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: IDEA dead lock when resources folder is removed before generation · Issue #1160 · UnitTestBot/UTBotJava
X Title: IDEA dead lock when resources folder is removed before generation · Issue #1160 · UnitTestBot/UTBotJava
Description: Description IDEA dead lock when resources folder is removed before generation. In IDEA log there is the exception in open or create folder method. To Reproduce Run the 'UTBotJava' project in IntelliJ Idea Delete test resources folder in ...
Open Graph Description: Description IDEA dead lock when resources folder is removed before generation. In IDEA log there is the exception in open or create folder method. To Reproduce Run the 'UTBotJava' project in Intell...
X Description: Description IDEA dead lock when resources folder is removed before generation. In IDEA log there is the exception in open or create folder method. To Reproduce Run the 'UTBotJava' project i...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/1160
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IDEA dead lock when resources folder is removed before generation","articleBody":"**Description**\r\n\r\nIDEA dead lock when resources folder is removed before generation.\r\nIn IDEA log there is the exception in open or create folder method.\r\n\r\n**To Reproduce**\r\n\r\n1. Run the 'UTBotJava' project in IntelliJ Idea\r\n2. Delete test resources folder in utbot-samples module (in Project view)\r\n3. Use plugin to generate tests for StringExamples f.e.\r\n\r\n**Expected behavior**\r\n\r\nTest resource folder is supposed to be recreated for the SARIF report.\r\n\r\n**Actual behavior**\r\n\r\nAfter test generation is finished and test classes are being painted, IDEA comes into dead lock. Only kill process helps.\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\nThere is the following exception in idea.log\r\n~~~java\r\n2022-10-13 17:16:24,499 [ 465238] INFO - #c.i.u.i.RootChangesLogger - New rootsChanged event for \"utbot\" project with partial rescanning with trace_hash = 423762346:\r\njava.lang.Throwable\r\n\tat com.intellij.util.indexing.RootChangesLogger.info(RootChangesLogger.java:27)\r\n\tat com.intellij.util.indexing.EntityIndexingServiceImpl.logRootChanges(EntityIndexingServiceImpl.java:108)\r\n\tat com.intellij.util.indexing.EntityIndexingServiceImpl.indexChanges(EntityIndexingServiceImpl.java:87)\r\n\tat com.intellij.openapi.roots.impl.ProjectRootManagerComponent.synchronizeRoots(ProjectRootManagerComponent.java:299)\r\n\tat com.intellij.openapi.roots.impl.ProjectRootManagerComponent.fireRootsChangedEvent(ProjectRootManagerComponent.java:212)\r\n\tat com.intellij.openapi.roots.impl.ProjectRootManagerImpl.fireRootsChanged(ProjectRootManagerImpl.java:477)\r\n\tat com.intellij.openapi.roots.impl.ProjectRootManagerImpl$1.fireRootsChanged(ProjectRootManagerImpl.java:137)\r\n\tat com.intellij.openapi.roots.impl.ProjectRootManagerImpl$1.fireRootsChanged(ProjectRootManagerImpl.java:134)\r\n\tat com.intellij.openapi.roots.impl.ProjectRootManagerImpl$BatchSession.rootsChanged(ProjectRootManagerImpl.java:108)\r\n\tat com.intellij.workspaceModel.ide.impl.legacyBridge.watcher.RootsChangeWatcher$1.fireRootsChangeEvent(RootsChangeWatcher.kt:177)\r\n\tat com.intellij.workspaceModel.ide.impl.legacyBridge.watcher.RootsChangeWatcher$1.fireRootsChangeEvent$default(RootsChangeWatcher.kt:166)\r\n\tat com.intellij.workspaceModel.ide.impl.legacyBridge.watcher.RootsChangeWatcher$1$prepareChange$2.afterVfsChange(RootsChangeWatcher.kt:120)\r\n\tat com.intellij.openapi.vfs.newvfs.AsyncEventSupport.afterVfsChange(AsyncEventSupport.java:133)\r\n\tat com.intellij.openapi.vfs.newvfs.AsyncEventSupport$1.after(AsyncEventSupport.java:65)\r\n\tat com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:649)\r\n\tat com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:625)\r\n\tat com.intellij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:470)\r\n\tat com.intellij.util.messages.impl.ToDirectChildrenMessagePublisher.publish$intellij_platform_core(CompositeMessageBus.kt:259)\r\n\tat com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:425)\r\n\tat jdk.proxy2/jdk.proxy2.$Proxy192.after(Unknown Source)\r\n\tat com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.fireAfterEvents(PersistentFSImpl.java:1218)\r\n\tat com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.processEvent(PersistentFSImpl.java:851)\r\n\tat com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.createChildDirectory(PersistentFSImpl.java:510)\r\n\tat com.intellij.openapi.vfs.newvfs.impl.VirtualFileSystemEntry.createChildDirectory(VirtualFileSystemEntry.java:364)\r\n\tat com.intellij.openapi.vfs.VfsUtil.createDirectoryIfMissing(VfsUtil.java:383)\r\n\tat com.intellij.openapi.vfs.VfsUtil.createDirectoryIfMissing(VfsUtil.java:373)\r\n\tat com.intellij.openapi.vfs.VfsUtil.createDirectoryIfMissing(VfsUtil.java:373)\r\n\tat com.intellij.openapi.vfs.VfsUtil.createDirectoryIfMissing(VfsUtil.java:373)\r\n\tat com.intellij.openapi.vfs.VfsUtil.createDirectoryIfMissing(VfsUtil.java:373)\r\n\tat com.intellij.openapi.vfs.VfsUtil.createDirectoryIfMissing(VfsUtil.java:373)\r\n\tat com.intellij.openapi.vfs.VfsUtil.createDirectoryIfMissing(VfsUtil.java:357)\r\n\tat org.utbot.intellij.plugin.sarif.SarifReportIdea$createAndSave$1.invoke(SarifReportIdea.kt:31)\r\n\tat org.utbot.intellij.plugin.sarif.SarifReportIdea$createAndSave$1.invoke(SarifReportIdea.kt:31)\r\n\tat org.jetbrains.kotlin.idea.util.application.ApplicationUtilsKt$sam$com_intellij_openapi_util_Computable$0.compute(ApplicationUtils.kt)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.lambda$runWriteAction$13(ApplicationImpl.java:1032)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runWriteActionWithClass(ApplicationImpl.java:1011)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1032)\r\n\tat org.jetbrains.kotlin.idea.util.application.ApplicationUtilsKt.runWriteAction(ApplicationUtils.kt:20)\r\n\tat org.utbot.intellij.plugin.sarif.SarifReportIdea.createAndSave(SarifReportIdea.kt:31)\r\n\tat org.utbot.intellij.plugin.generator.CodeGenerationController$saveSarifReport$$inlined$executeCommand$default$1.run(actions.kt:14)\r\n\tat com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219)\r\n\tat com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:174)\r\n\tat com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:164)\r\n\tat com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:150)\r\n\tat org.utbot.intellij.plugin.generator.CodeGenerationController.saveSarifReport(CodeGenerationController.kt:808)\r\n\tat org.utbot.intellij.plugin.generator.CodeGenerationController.access$saveSarifReport(CodeGenerationController.kt:73)\r\n\tat org.utbot.intellij.plugin.generator.CodeGenerationController$generateCodeAndReport$1$1$1$2$1.run(CodeGenerationController.kt:616)\r\n\tat org.utbot.intellij.plugin.util.IntelliJApiHelper$run$$inlined$invokeLater$1.run(ApplicationUtils.kt:94)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:513)\r\n\tat com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:75)\r\n\tat com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:118)\r\n\tat com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)\r\n\tat java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)\r\n\tat java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)\r\n\tat java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)\r\n\tat java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)\r\n\tat java.base/java.security.AccessController.doPrivileged(AccessController.java:399)\r\n\tat java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)\r\n\tat java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)\r\n\tat com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:918)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:766)\r\n\tat com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:450)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)\r\n\tat com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:449)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)\r\n\tat com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:624)\r\n\tat com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:447)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)\r\n\tat java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)\r\n~~~\r\n\r\n**Environment**\r\n\r\nWindows 10 Pro\r\nIntelliJ IDEA 2022.2.3\r\n\r\n**Additional context**\r\n\r\n_Originally posted by @alisevych in https://github.com/UnitTestBot/UTBotJava/issues/1125#issuecomment-1277793794_\r\n ","author":{"url":"https://github.com/alisevych","@type":"Person","name":"alisevych"},"datePublished":"2022-10-14T10:44:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1160/UTBotJava/issues/1160"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d8d15375-c081-b29a-73c1-711e13180375 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFE0:180FC4:7EB18:ADD5F:698E1412 |
| html-safe-nonce | e9de1d4cca0817a01a9c69c7de5ee3a23b782e47ee6e393b1a422f9b9c437c76 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkUwOjE4MEZDNDo3RUIxODpBREQ1Rjo2OThFMTQxMiIsInZpc2l0b3JfaWQiOiI4NjU2ODEyNDEwMDA1MjMwNjEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ac17bbe84b684f3cc30d816406b0750d78930557d852e503409072faf05975dd |
| hovercard-subject-tag | issue:1409153328 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UnitTestBot/UTBotJava/1160/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ed940946f65f3d3f796ecb3fba9a26155f1a69d28825b47e4415a945dba5a587/UnitTestBot/UTBotJava/issues/1160 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed940946f65f3d3f796ecb3fba9a26155f1a69d28825b47e4415a945dba5a587/UnitTestBot/UTBotJava/issues/1160 |
| og:image:alt | Description IDEA dead lock when resources folder is removed before generation. In IDEA log there is the exception in open or create folder method. To Reproduce Run the 'UTBotJava' project in Intell... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alisevych |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52130a026bd9a3f98228b6aa6af91acdab5d18de411e2c1e67e6253493561296 |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 301a1d7743177dcb7528b1322117cdafeda8ff08 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width