{"action":"created","issue":{"url":"https://api.github.com/repos/LunarG/VulkanSamples/issues/61","repository_url":"https://api.github.com/repos/LunarG/VulkanSamples","labels_url":"https://api.github.com/repos/LunarG/VulkanSamples/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/LunarG/VulkanSamples/issues/61/comments","events_url":"https://api.github.com/repos/LunarG/VulkanSamples/issues/61/events","html_url":"https://github.com/LunarG/VulkanSamples/issues/61","id":146147857,"number":61,"title":"some samples crash because of  missing \"init\" utility functions?","user":{"login":"vrkotireddy","id":18297023,"avatar_url":"https://avatars.githubusercontent.com/u/18297023?v=3","gravatar_id":"","url":"https://api.github.com/users/vrkotireddy","html_url":"https://github.com/vrkotireddy","followers_url":"https://api.github.com/users/vrkotireddy/followers","following_url":"https://api.github.com/users/vrkotireddy/following{/other_user}","gists_url":"https://api.github.com/users/vrkotireddy/gists{/gist_id}","starred_url":"https://api.github.com/users/vrkotireddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrkotireddy/subscriptions","organizations_url":"https://api.github.com/users/vrkotireddy/orgs","repos_url":"https://api.github.com/users/vrkotireddy/repos","events_url":"https://api.github.com/users/vrkotireddy/events{/privacy}","received_events_url":"https://api.github.com/users/vrkotireddy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-06T00:22:19Z","updated_at":"2016-04-06T00:57:43Z","closed_at":null,"body":"The following samples are crashing because these apps are not invoking the app \"init\" utility functions that are needed to be invoked before doing anything, leading to the app crash. \r\n\r\n\"instance\", \r\n\"instance_layer_properties\", \r\n\"instance_extension_properties\" \r\n\"instance_layer_extension_properties\"\r\n\"enumerate\" and \r\n\"enumerate-adv\"\r\n\r\nSo, adding these below \"init\" functions in the sample_main() fixes the crash and apps run fine.\r\nint sample_main() {\r\nstruct sample_info info = {};\r\ninit_global_layer_properties(info);\r\ninit_instance_extension_names(info);\r\ninit_device_extension_names(info);\r\ninit_instance(info, \"sample\");\r\n...\r\n}\r\n\r\nCan we fix the apps?\r\n"},"comment":{"url":"https://api.github.com/repos/LunarG/VulkanSamples/issues/comments/206057433","html_url":"https://github.com/LunarG/VulkanSamples/issues/61#issuecomment-206057433","issue_url":"https://api.github.com/repos/LunarG/VulkanSamples/issues/61","id":206057433,"user":{"login":"karl-lunarg","id":16430219,"avatar_url":"https://avatars.githubusercontent.com/u/16430219?v=3","gravatar_id":"","url":"https://api.github.com/users/karl-lunarg","html_url":"https://github.com/karl-lunarg","followers_url":"https://api.github.com/users/karl-lunarg/followers","following_url":"https://api.github.com/users/karl-lunarg/following{/other_user}","gists_url":"https://api.github.com/users/karl-lunarg/gists{/gist_id}","starred_url":"https://api.github.com/users/karl-lunarg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karl-lunarg/subscriptions","organizations_url":"https://api.github.com/users/karl-lunarg/orgs","repos_url":"https://api.github.com/users/karl-lunarg/repos","events_url":"https://api.github.com/users/karl-lunarg/events{/privacy}","received_events_url":"https://api.github.com/users/karl-lunarg/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T00:57:43Z","updated_at":"2016-04-06T00:57:43Z","body":"You might be using an older version of the code.  There was a commit (024bf5d1c44efc6fb2019899e0e4f47b69fd7bc7) on Mar 23 that stopped using sample_main()."}}