{"action":"reopened","issue":{"url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/100","repository_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers","labels_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/100/comments","events_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/100/events","html_url":"https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/100","id":139843400,"number":100,"title":"DrawState layer: \"Cannot delete semaphore X which is in use\" error incorrectly reported","user":{"login":"DominikWitczakAMD","id":17761066,"avatar_url":"https://avatars.githubusercontent.com/u/17761066?v=3","gravatar_id":"","url":"https://api.github.com/users/DominikWitczakAMD","html_url":"https://github.com/DominikWitczakAMD","followers_url":"https://api.github.com/users/DominikWitczakAMD/followers","following_url":"https://api.github.com/users/DominikWitczakAMD/following{/other_user}","gists_url":"https://api.github.com/users/DominikWitczakAMD/gists{/gist_id}","starred_url":"https://api.github.com/users/DominikWitczakAMD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DominikWitczakAMD/subscriptions","organizations_url":"https://api.github.com/users/DominikWitczakAMD/orgs","repos_url":"https://api.github.com/users/DominikWitczakAMD/repos","events_url":"https://api.github.com/users/DominikWitczakAMD/events{/privacy}","received_events_url":"https://api.github.com/users/DominikWitczakAMD/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"lentinem","id":9709345,"avatar_url":"https://avatars.githubusercontent.com/u/9709345?v=3","gravatar_id":"","url":"https://api.github.com/users/lentinem","html_url":"https://github.com/lentinem","followers_url":"https://api.github.com/users/lentinem/followers","following_url":"https://api.github.com/users/lentinem/following{/other_user}","gists_url":"https://api.github.com/users/lentinem/gists{/gist_id}","starred_url":"https://api.github.com/users/lentinem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lentinem/subscriptions","organizations_url":"https://api.github.com/users/lentinem/orgs","repos_url":"https://api.github.com/users/lentinem/repos","events_url":"https://api.github.com/users/lentinem/events{/privacy}","received_events_url":"https://api.github.com/users/lentinem/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/milestones/1","html_url":"https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/milestones/P1","labels_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/milestones/1/labels","id":1616525,"number":1,"title":"P1","description":"","creator":{"login":"lentinem","id":9709345,"avatar_url":"https://avatars.githubusercontent.com/u/9709345?v=3","gravatar_id":"","url":"https://api.github.com/users/lentinem","html_url":"https://github.com/lentinem","followers_url":"https://api.github.com/users/lentinem/followers","following_url":"https://api.github.com/users/lentinem/following{/other_user}","gists_url":"https://api.github.com/users/lentinem/gists{/gist_id}","starred_url":"https://api.github.com/users/lentinem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lentinem/subscriptions","organizations_url":"https://api.github.com/users/lentinem/orgs","repos_url":"https://api.github.com/users/lentinem/repos","events_url":"https://api.github.com/users/lentinem/events{/privacy}","received_events_url":"https://api.github.com/users/lentinem/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":16,"state":"open","created_at":"2016-03-01T21:57:16Z","updated_at":"2016-03-11T10:44:00Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-03-10T10:12:03Z","updated_at":"2016-03-11T10:44:00Z","closed_at":null,"body":"In principle, this issue builds upon #99.\r\n\r\nThe two command buffers we submit with a single vkQueueSubmit() call are synchronized as per my last comment in #67. tl;dr: the first cmd buffer signals a semaphore A, and the second cmd buffer waits on it before executing. We then submit both command buffers, wait on a fence passed with the vkQueueSubmit() call and proceed with releasing the objects.\r\n\r\nAt this point, when I call vkDeleteSemaphore(), I'm getting a misleading debug call-back informing me the semaphore is still in use. Here's the obligatory call stack:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/17761066/13666257/e2cd6fac-e6b0-11e5-9cf3-4a157d3be6a6.png)\r\n"}}