Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render Manager is null causing osvrRenderManagerGetRenderInfoCollection failure #140

Open
ndrmstevenh opened this issue Nov 24, 2016 · 2 comments

Comments

@ndrmstevenh
Copy link

@JeroMiya

I'm using UE4.13 and I'm hitting an assert which I think is caused by mRenderManager being a nullptr after getting the latest commit (bfdb58d).

Callstack is as follows

AGame.exe!FOSVRCustomPresent::UpdateCachedRenderInfoCollection(void * & renderInfoCollection) Line 300 C++
AGame.exe!FOSVRCustomPresent::GetHeadPoseFromCachedRenderInfoCollection(bool renderThread, bool updateCache) Line 146 C++
AGame.exe!FOSVRHMD::UpdateHeadPose(bool renderThread, FQuat & lastHmdOrientation, FVector & lastHmdPosition, FQuat & hmdOrientation, FVector & hmdPosition) Line 229 C++
AGame.exe!FOSVRHMD::UpdatePlayerCamera(FQuat & CurrentOrientation, FVector & CurrentPosition) Line 366 C++
AGame.exe!UCameraComponent::GetCameraView(float DeltaTime, FMinimalViewInfo & DesiredView) Line 226 C++
AGame.exe!AActor::CalcCamera(float DeltaTime, FMinimalViewInfo & OutResult) Line 2301 C++
AGame.exe!APlayerCameraManager::UpdateViewTargetInternal(FTViewTarget & OutVT, float DeltaTime) Line 416 C++
AGame.exe!APlayerCameraManager::UpdateViewTarget(FTViewTarget & OutVT, float DeltaTime) Line 514 C++
AGame.exe!APlayerCameraManager::DoUpdateCamera(float DeltaTime) Line 858 C++
AGame.exe!APlayerCameraManager::UpdateCamera(float DeltaTime) Line 823 C++
AGame.exe!UWorld::Tick(ELevelTick TickType, float DeltaSeconds) Line 1334 C++
AGame.exe!UGameEngine::Tick(float DeltaSeconds, bool bIdleMode) Line 1057 C++
AGame.exe!FEngineLoop::Tick() Line 2838 C++
AGame.exe!GuardedMain(const wchar_t * CmdLine, HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, int nCmdShow) Line 156 C++
AGame.exe!WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow) Line 191 C++
[External Code]

@JeroMiya
Copy link
Contributor

Thanks for reporting this @ndrmstevenh. I wasn't able to reproduce this myself, but I went ahead and added some null guards and additional diagnostics in this branch:

https://github.com/OSVR/OSVR-Unreal/tree/cached-ri-nullptr-fix

Could you do me a big favor and pull that version of the code to see if it fixes your problem? You may see some log messages about mRenderManager being null, but if you see it repeating the same messages every frame then this is not a full fix. If you could also post your unreal logs to this issue, that would be helpful. Thanks!

@ndrmstevenh
Copy link
Author

ndrmstevenh commented Dec 1, 2016

Hi JeroMiya, I grabbed those changes and that does indeed fix the problem. Which specific logs would you need? There doesn't appear to be anything in the logs folder that was outputted on that day other than an ini.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants