adamrehn / pixel-streaming-linux

Issue tracker repository for Pixel Streaming for Linux
https://adamrehn.com/articles/pixel-streaming-in-linux-containers/
22 stars 7 forks source link

Pixel streaming demo crash #29

Closed lukehb closed 3 years ago

lukehb commented 3 years ago

Porting issue from the old issue tracker for public awareness.

Hi! I installed CUDA Toolkit, Unreal from your modified source, copy the codec... everything done, but I had this crash when I try to open the PS Demo:

Assertion failed: cuInit(0) == CUDA_SUCCESS [File:/home/unreal/Desktop/UnrealEngine-4.25-pixelstreaming/Engine/Plugins/CUDA/Source/Private/CudaModule.cpp] [Line: 29] Failed to intitialize CUDA

libUE4Editor-Core.so!FGenericPlatformMisc::RaiseException(unsigned int) [/home/unreal/Desktop/UnrealEngine-4.25-pixelstreaming/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp:472]
libUE4Editor-Core.so!FOutputDevice::LogfImpl(char16_t const*, ...) [/home/unreal/Desktop/UnrealEngine-4.25-pixelstreaming/Engine/Source/Runtime/Core/Private/Misc/OutputDevice.cpp:61]
libUE4Editor-Core.so!AssertFailedImplV(char const*, char const*, int, char16_t const*, __va_list_tag*) [/home/unreal/Desktop/UnrealEngine-4.25-pixelstreaming/Engine/Source/Runtime/Core/Private/Misc/AssertionMacros.cpp:100]
libUE4Editor-Core.so!FDebug::CheckVerifyFailedImpl(char const*, char const*, int, char16_t const*, ...) [/home/unreal/Desktop/UnrealEngine-4.25-pixelstreaming/Engine/Source/Runtime/Core/Private/Misc/AssertionMacros.cpp:447]
libUE4Editor-CUDA.so!FCUDAModule::InitCuda() [/home/unreal/Desktop/UnrealEngine-4.25-pixelstreaming/Engine/Plugins/CUDA/Source/Private/CudaModule.cpp:29]
libUE4Editor-CUDA.so!TBaseRawMethodDelegateInstance<false, FCUDAModule, void ()>::ExecuteIfSafe() const [/home/unreal/Desktop/UnrealEngine-4.25-pixelstreaming/Engine/Source/Runtime/Core/Public/Delegates/DelegateInstancesImpl.h:544]
UE4Editor!TBaseMulticastDelegate::Broadcast() const [/home/unreal/Desktop/UnrealEngine-4.25-pixelstreaming/Engine/Source/Runtime/Core/Public/Delegates/DelegateSignatureImpl.inl:1013]
UE4Editor!FEngineLoop::Init() [/home/unreal/Desktop/UnrealEngine-4.25-pixelstreaming/Engine/Source/Runtime/Launch/Private/LaunchEngineLoop.cpp:3998]
libUE4Editor-UnrealEd.so!EditorInit(IEngineLoop&) [/home/unreal/Desktop/UnrealEngine-4.25-pixelstreaming/Engine/Source/Editor/UnrealEd/Private/UnrealEdGlobals.cpp:92]
UE4Editor!GuardedMain(char16_t const*) [/home/unreal/Desktop/UnrealEngine-4.25-pixelstreaming/Engine/Source/Runtime/Launch/Private/Launch.cpp:148]
libUE4Editor-UnixCommonStartup.so!CommonUnixMain(int, char**, int ()(char16_t const), void (*)()) [/home/unreal/Desktop/UnrealEngine-4.25-pixelstreaming/Engine/Source/Runtime/Unix/UnixCommonStartup/Private/UnixCommonStartup.cpp:264]
libc.so.6!__libc_start_main(+0xf2)
UE4Editor!_start()

This is my testing hardware:

client glx vendor string: Mesa Project and SGI
Device: Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2) (0x166)
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2)
OpenGL core profile version string: 4.2 (Core Profile) Mesa 20.2.6
OpenGL version string: 3.0 Mesa 20.2.6
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 20.2.6

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243

What can I do? I need a better hardware? I know is lower, but I only need to try all this.

Thanks!

lukehb commented 3 years ago

It seems to me it is not detecting a NVIDIA graphics card and is using the Intel integrated graphics. Have you got a NVIDIA graphics card in your test machine? I'll remind you of our readme:

Prerequsities: NVIDIA graphics card with NVENC support.