{"action":"opened","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/5554","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/5554/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/5554/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/5554/events","html_url":"https://github.com/Itseez/opencv/issues/5554","id":112546877,"number":5554,"title":"cuda::getCudaEnabledDeviceCount crashes from time to time","user":{"login":"PhilLab","id":1710255,"avatar_url":"https://avatars.githubusercontent.com/u/1710255?v=3","gravatar_id":"","url":"https://api.github.com/users/PhilLab","html_url":"https://github.com/PhilLab","followers_url":"https://api.github.com/users/PhilLab/followers","following_url":"https://api.github.com/users/PhilLab/following{/other_user}","gists_url":"https://api.github.com/users/PhilLab/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilLab/subscriptions","organizations_url":"https://api.github.com/users/PhilLab/orgs","repos_url":"https://api.github.com/users/PhilLab/repos","events_url":"https://api.github.com/users/PhilLab/events{/privacy}","received_events_url":"https://api.github.com/users/PhilLab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-21T09:27:49Z","updated_at":"2015-10-21T09:27:49Z","closed_at":null,"body":"The function randomly crashes (1 in each 10 runs I'd guess) in [cuda_info.cpp#L54](https://github.com/Itseez/opencv/blob/ddf82d0b154873510802ef75c53e628cd7b2cb13/modules/core/src/cuda_info.cpp#L54). The callstack then goes all the way trough cudart64_70.dll, nvcuda.dll, nvapi64.dll and ends with ntdll.dll!RtlpHeapHandleError().\r\nIn most of the runs, it works fine and CUDA code is properly executed.\r\n\r\nNVIDIA GeForce GTX 750 Ti"}}