About VR Unity Game progress hang debug





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















We develop a vr game use Unity, explore exe to run on win10.
after running ahout hours the game progess hang.cpu 30% (4 cores)
it looks like an infite loop, but...
1.use dnSpy to debug , we tried to find error from managered c# stacktrace.but all thread looks like correct.(main thread c# update method can not enter, it looks like suspend)
2.windbg break serveral times,



Call Site
ntdll!ZwWaitForSingleObject+0x14
KERNELBASE!WaitForSingleObjectEx+0x9f
UnityPlayer!GfxDeviceWorker::WaitOnCPUFence+0x5c
UnityPlayer!VRDevice::BeforeRendering+0x82
UnityPlayer!`InitPlayerLoopCallbacks'::`2'::PostLateUpdatePlayerSendFrameStartedRegistrator::Forward+0x12
UnityPlayer!PlayerLoop+0x469
UnityPlayer!PerformMainLoop+0xb4
UnityPlayer!MainMessageLoop+0xda
UnityPlayer!UnityMainImpl+0xe38
UnityPlayer!UnityMain+0xb
RedSea!__scrt_common_main_seh+0x11e
KERNEL32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21


this is main thread idx:0,
through !runaway ff we know cpu hightest use thread is :



d3d11!CContext::TID3D11DeviceContext_GetData_<1>+0x26
vrclient_x64!HmdSystemFactory+0xbf8ac
vrclient_x64!HmdSystemFactory+0xaf85
vrclient_x64!HmdSystemFactory+0x27f8
UnityPlayer!OpenVR::SubmitSeparateEyeTextures+0x1df
UnityPlayer!OpenVR::EventGfxThreadCallback+0x89
UnityPlayer!VRDevice::SendVRDeviceEvent+0x35
UnityPlayer!GfxDevice::SendVRDeviceEvent+0x30
UnityPlayer!GfxDeviceWorker::RunCommand+0x8e89
UnityPlayer!GfxDeviceWorker::RunExt+0x3b
UnityPlayer!GfxDeviceWorker::RunGfxDeviceWorker+0x5c
UnityPlayer!Thread::RunThreadWrapper+0x38
KERNEL32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21


this is a thread (idx : 11) it looks like to control hmd device
at the moment we find memory usage reduce from 390M to 20-30M.
i can not know what happens, someone has same experience? what's the reason of memory useage reduce?more than 5 threads(contains main) was running WaitForSingleObjectEx for the same object(address 0xe6eb5a8f)










share|improve this question























  • the most important is the reason of memory useage reduce. i have no idea

    – LIN XU
    Nov 23 '18 at 12:51


















0















We develop a vr game use Unity, explore exe to run on win10.
after running ahout hours the game progess hang.cpu 30% (4 cores)
it looks like an infite loop, but...
1.use dnSpy to debug , we tried to find error from managered c# stacktrace.but all thread looks like correct.(main thread c# update method can not enter, it looks like suspend)
2.windbg break serveral times,



Call Site
ntdll!ZwWaitForSingleObject+0x14
KERNELBASE!WaitForSingleObjectEx+0x9f
UnityPlayer!GfxDeviceWorker::WaitOnCPUFence+0x5c
UnityPlayer!VRDevice::BeforeRendering+0x82
UnityPlayer!`InitPlayerLoopCallbacks'::`2'::PostLateUpdatePlayerSendFrameStartedRegistrator::Forward+0x12
UnityPlayer!PlayerLoop+0x469
UnityPlayer!PerformMainLoop+0xb4
UnityPlayer!MainMessageLoop+0xda
UnityPlayer!UnityMainImpl+0xe38
UnityPlayer!UnityMain+0xb
RedSea!__scrt_common_main_seh+0x11e
KERNEL32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21


this is main thread idx:0,
through !runaway ff we know cpu hightest use thread is :



d3d11!CContext::TID3D11DeviceContext_GetData_<1>+0x26
vrclient_x64!HmdSystemFactory+0xbf8ac
vrclient_x64!HmdSystemFactory+0xaf85
vrclient_x64!HmdSystemFactory+0x27f8
UnityPlayer!OpenVR::SubmitSeparateEyeTextures+0x1df
UnityPlayer!OpenVR::EventGfxThreadCallback+0x89
UnityPlayer!VRDevice::SendVRDeviceEvent+0x35
UnityPlayer!GfxDevice::SendVRDeviceEvent+0x30
UnityPlayer!GfxDeviceWorker::RunCommand+0x8e89
UnityPlayer!GfxDeviceWorker::RunExt+0x3b
UnityPlayer!GfxDeviceWorker::RunGfxDeviceWorker+0x5c
UnityPlayer!Thread::RunThreadWrapper+0x38
KERNEL32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21


this is a thread (idx : 11) it looks like to control hmd device
at the moment we find memory usage reduce from 390M to 20-30M.
i can not know what happens, someone has same experience? what's the reason of memory useage reduce?more than 5 threads(contains main) was running WaitForSingleObjectEx for the same object(address 0xe6eb5a8f)










share|improve this question























  • the most important is the reason of memory useage reduce. i have no idea

    – LIN XU
    Nov 23 '18 at 12:51














0












0








0








We develop a vr game use Unity, explore exe to run on win10.
after running ahout hours the game progess hang.cpu 30% (4 cores)
it looks like an infite loop, but...
1.use dnSpy to debug , we tried to find error from managered c# stacktrace.but all thread looks like correct.(main thread c# update method can not enter, it looks like suspend)
2.windbg break serveral times,



Call Site
ntdll!ZwWaitForSingleObject+0x14
KERNELBASE!WaitForSingleObjectEx+0x9f
UnityPlayer!GfxDeviceWorker::WaitOnCPUFence+0x5c
UnityPlayer!VRDevice::BeforeRendering+0x82
UnityPlayer!`InitPlayerLoopCallbacks'::`2'::PostLateUpdatePlayerSendFrameStartedRegistrator::Forward+0x12
UnityPlayer!PlayerLoop+0x469
UnityPlayer!PerformMainLoop+0xb4
UnityPlayer!MainMessageLoop+0xda
UnityPlayer!UnityMainImpl+0xe38
UnityPlayer!UnityMain+0xb
RedSea!__scrt_common_main_seh+0x11e
KERNEL32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21


this is main thread idx:0,
through !runaway ff we know cpu hightest use thread is :



d3d11!CContext::TID3D11DeviceContext_GetData_<1>+0x26
vrclient_x64!HmdSystemFactory+0xbf8ac
vrclient_x64!HmdSystemFactory+0xaf85
vrclient_x64!HmdSystemFactory+0x27f8
UnityPlayer!OpenVR::SubmitSeparateEyeTextures+0x1df
UnityPlayer!OpenVR::EventGfxThreadCallback+0x89
UnityPlayer!VRDevice::SendVRDeviceEvent+0x35
UnityPlayer!GfxDevice::SendVRDeviceEvent+0x30
UnityPlayer!GfxDeviceWorker::RunCommand+0x8e89
UnityPlayer!GfxDeviceWorker::RunExt+0x3b
UnityPlayer!GfxDeviceWorker::RunGfxDeviceWorker+0x5c
UnityPlayer!Thread::RunThreadWrapper+0x38
KERNEL32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21


this is a thread (idx : 11) it looks like to control hmd device
at the moment we find memory usage reduce from 390M to 20-30M.
i can not know what happens, someone has same experience? what's the reason of memory useage reduce?more than 5 threads(contains main) was running WaitForSingleObjectEx for the same object(address 0xe6eb5a8f)










share|improve this question














We develop a vr game use Unity, explore exe to run on win10.
after running ahout hours the game progess hang.cpu 30% (4 cores)
it looks like an infite loop, but...
1.use dnSpy to debug , we tried to find error from managered c# stacktrace.but all thread looks like correct.(main thread c# update method can not enter, it looks like suspend)
2.windbg break serveral times,



Call Site
ntdll!ZwWaitForSingleObject+0x14
KERNELBASE!WaitForSingleObjectEx+0x9f
UnityPlayer!GfxDeviceWorker::WaitOnCPUFence+0x5c
UnityPlayer!VRDevice::BeforeRendering+0x82
UnityPlayer!`InitPlayerLoopCallbacks'::`2'::PostLateUpdatePlayerSendFrameStartedRegistrator::Forward+0x12
UnityPlayer!PlayerLoop+0x469
UnityPlayer!PerformMainLoop+0xb4
UnityPlayer!MainMessageLoop+0xda
UnityPlayer!UnityMainImpl+0xe38
UnityPlayer!UnityMain+0xb
RedSea!__scrt_common_main_seh+0x11e
KERNEL32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21


this is main thread idx:0,
through !runaway ff we know cpu hightest use thread is :



d3d11!CContext::TID3D11DeviceContext_GetData_<1>+0x26
vrclient_x64!HmdSystemFactory+0xbf8ac
vrclient_x64!HmdSystemFactory+0xaf85
vrclient_x64!HmdSystemFactory+0x27f8
UnityPlayer!OpenVR::SubmitSeparateEyeTextures+0x1df
UnityPlayer!OpenVR::EventGfxThreadCallback+0x89
UnityPlayer!VRDevice::SendVRDeviceEvent+0x35
UnityPlayer!GfxDevice::SendVRDeviceEvent+0x30
UnityPlayer!GfxDeviceWorker::RunCommand+0x8e89
UnityPlayer!GfxDeviceWorker::RunExt+0x3b
UnityPlayer!GfxDeviceWorker::RunGfxDeviceWorker+0x5c
UnityPlayer!Thread::RunThreadWrapper+0x38
KERNEL32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21


this is a thread (idx : 11) it looks like to control hmd device
at the moment we find memory usage reduce from 390M to 20-30M.
i can not know what happens, someone has same experience? what's the reason of memory useage reduce?more than 5 threads(contains main) was running WaitForSingleObjectEx for the same object(address 0xe6eb5a8f)







c# multithreading unity3d






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 23 '18 at 12:22









LIN XULIN XU

1




1













  • the most important is the reason of memory useage reduce. i have no idea

    – LIN XU
    Nov 23 '18 at 12:51



















  • the most important is the reason of memory useage reduce. i have no idea

    – LIN XU
    Nov 23 '18 at 12:51

















the most important is the reason of memory useage reduce. i have no idea

– LIN XU
Nov 23 '18 at 12:51





the most important is the reason of memory useage reduce. i have no idea

– LIN XU
Nov 23 '18 at 12:51












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53446657%2fabout-vr-unity-game-progress-hang-debug%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53446657%2fabout-vr-unity-game-progress-hang-debug%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

Origin of the phrase “under your belt”?