{"action":"created","issue":{"url":"https://api.github.com/repos/bkaradzic/bgfx/issues/707","repository_url":"https://api.github.com/repos/bkaradzic/bgfx","labels_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/707/labels{/name}","comments_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/707/comments","events_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/707/events","html_url":"https://github.com/bkaradzic/bgfx/issues/707","id":138231749,"number":707,"title":"Crash in bgfx::init()","user":{"login":"rogual","id":520855,"avatar_url":"https://avatars.githubusercontent.com/u/520855?v=3","gravatar_id":"","url":"https://api.github.com/users/rogual","html_url":"https://github.com/rogual","followers_url":"https://api.github.com/users/rogual/followers","following_url":"https://api.github.com/users/rogual/following{/other_user}","gists_url":"https://api.github.com/users/rogual/gists{/gist_id}","starred_url":"https://api.github.com/users/rogual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogual/subscriptions","organizations_url":"https://api.github.com/users/rogual/orgs","repos_url":"https://api.github.com/users/rogual/repos","events_url":"https://api.github.com/users/rogual/events{/privacy}","received_events_url":"https://api.github.com/users/rogual/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2016-03-03T16:45:32Z","updated_at":"2016-03-09T15:24:00Z","closed_at":null,"body":"Hi, I have one user who consistently crashes in bgfx::init(). Do you think this might be a bug in bgfx? Of course, it's also possible the user just has bad drivers. If you think so, feel free to close. He can run other games though.\r\n\r\nI managed to extract this info from a .dmp. I didn't include the purported argument values because they seemed to be garbage. (s_ctx NULL right after a NULL check.) The call stack looks plausible, though.\r\n\r\n```\r\nOperating system: Windows NT\r\n                  6.1.7601 Service Pack 1\r\nCPU: x86\r\n     GenuineIntel family 6 model 15 stepping 11\r\n     2 CPUs\r\n\r\nCrash reason:  EXCEPTION_ACCESS_VIOLATION_READ\r\nCrash address: 0x24\r\n\r\nThread 1:\r\nntdll!ZwWaitForSingleObject+0x15\r\nKERNELBASE!WaitForSingleObjectEx+0x98\r\nkernel32!WaitForSingleObjectExImplementation+0x75\r\nkernel32!WaitForSingleObject+0x12\r\nbgfx::Context::frame+0x26 [bgfx\\src\\bgfx.cpp @ 1412]\r\nbgfx::Context::init+0x175 [bgfx\\src\\bgfx.cpp @ 1209]\r\nbgfx::init+0xe2 [bgfx\\src\\bgfx.cpp @ 2384]\r\n(...snip...)\r\n\r\nThread 2 (Crashed):\r\nd3d11!CContext::ID3D11DeviceContext1_Begin_<1>+0x8\r\nbgfx::d3d11::TimerQueryD3D11::begin+0xdf [bgfx\\src\\renderer_d3d11.cpp @ 4575]\r\nbgfx::d3d11::RendererContextD3D11::submit+0x93 [bgfx\\src\\renderer_d3d11.cpp @ 4702]\r\nbgfx::Context::renderFrame+0xb6 [bgfx\\src\\bgfx.cpp @ 1502]\r\nbgfx::renderFrame+0x32 [bgfx\\src\\bgfx.cpp @ 992]\r\nbgfx::Context::renderThread+0x5 [bgfx\\src\\bgfx_p.h @ 2102]\r\nbx::Thread::threadFunc+0x25 [bx\\include\\bx\\thread.h @ 201]\r\nkernel32!BaseThreadInitThunk+0xe\r\nntdll!__RtlUserThreadStart+0x70\r\nntdll!_RtlUserThreadStart+0x1b\r\n```"},"comment":{"url":"https://api.github.com/repos/bkaradzic/bgfx/issues/comments/194343057","html_url":"https://github.com/bkaradzic/bgfx/issues/707#issuecomment-194343057","issue_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/707","id":194343057,"user":{"login":"rogual","id":520855,"avatar_url":"https://avatars.githubusercontent.com/u/520855?v=3","gravatar_id":"","url":"https://api.github.com/users/rogual","html_url":"https://github.com/rogual","followers_url":"https://api.github.com/users/rogual/followers","following_url":"https://api.github.com/users/rogual/following{/other_user}","gists_url":"https://api.github.com/users/rogual/gists{/gist_id}","starred_url":"https://api.github.com/users/rogual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogual/subscriptions","organizations_url":"https://api.github.com/users/rogual/orgs","repos_url":"https://api.github.com/users/rogual/repos","events_url":"https://api.github.com/users/rogual/events{/privacy}","received_events_url":"https://api.github.com/users/rogual/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T15:24:00Z","updated_at":"2016-03-09T15:24:00Z","body":"I notice these files contradict my original bug report since bgfx is clearly not crashing in init. This may be because when writing these logs, the renderer was specified in bgfx::init.\r\n\r\nI will try to get a log file using RendererType::Count to see if that still crashes.\r\n\r\nUser originally reported drivers were up to date but has since updated them again and that does seem to have fixed a lot of issues :/"}}