Giter Site home page Giter Site logo

Comments (15)

Grit007 avatar Grit007 commented on July 18, 2024 1

@Grit007 I could't find A300 in the support matrix. It looks the graphic card problem.

Sorry, the NVIDIA card is A30 ...
image

from com.unity.webrtc.

karasusan avatar karasusan commented on July 18, 2024

@jonitee
The GPU card NVIDIA T500 doesn't support NVENC/NVDEC.
We can't reproduce the issue because we don't have the card. I read your crash log, however, I couldn't find the line in our code which is cause of the crash.
I could find if you have a crash log using the plugin of debug build. If you can cooperate me, I can share you the plugin for debug.

from com.unity.webrtc.

Grit007 avatar Grit007 commented on July 18, 2024

@karasusan I have the seem problems in NVIDIA A300 card
298261700019393_ pic

from com.unity.webrtc.

karasusan avatar karasusan commented on July 18, 2024

@Grit007
Oh, it's so helpful to us. This log shows this line is throwing an exception.
https://github.com/Unity-Technologies/com.unity.webrtc/blob/main/Plugin~/NvCodec/NvCodec/NvEncoder/NvEncoder.cpp#L54C4-L54C89

from com.unity.webrtc.

Grit007 avatar Grit007 commented on July 18, 2024

@Grit007 Oh, it's so helpful to us. This log shows this line is throwing an exception. https://github.com/Unity-Technologies/com.unity.webrtc/blob/main/Plugin~/NvCodec/NvCodec/NvEncoder/NvEncoder.cpp#L54C4-L54C89

How to fix it, Can you give some tips?I'm not sure whether it's a NVIDIA card problem or webrtc package problem.
this is NVIDIA's Video Encode and Decode GPU Support Matrix: https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new

from com.unity.webrtc.

karasusan avatar karasusan commented on July 18, 2024

@Grit007
I could't find A300 in the support matrix.
It looks the graphic card problem.

from com.unity.webrtc.

jonitee avatar jonitee commented on July 18, 2024

@Grit007 Oh, it's so helpful to us. This log shows this line is throwing an exception. https://github.com/Unity-Technologies/com.unity.webrtc/blob/main/Plugin~/NvCodec/NvCodec/NvEncoder/NvEncoder.cpp#L54C4-L54C89

Good to see that this might be fixable on software level. We were hoping that even though the NVIDIA GPU that we have doesn't support the NVENC/NVDEC, we could still at least compile the WebRTC plugin and during run-time initialize the objects in the Unity application that use the codec, if we have a compatible GPU available. We run to this issue with computers to which we ship our application but we don't have control over the hardware causing the application crashing during initialization.

@karasusan if you still need debug help, I'm happy to help

from com.unity.webrtc.

karasusan avatar karasusan commented on July 18, 2024

@jonitee
I'm glad to hear that you can help us.
Let you know when I prepare the fixed version.

from com.unity.webrtc.

karasusan avatar karasusan commented on July 18, 2024

memo: WRS-503

from com.unity.webrtc.

kevindude6 avatar kevindude6 commented on July 18, 2024

I have been encountering a related issue, so I thought my information might help as well.
The Linux version of my app crashes on startup.
We are using an Nvidia Rtx 3070TI, which has NVENC support.
I suspect that in this case, we are already using all of our NVENC sessions / memory on other processes, so the unity app can not open a session and crashes.

However, I don't use NVENC with the webrtc library. I use the webrtc library only for decoding video. So I don't think the NVENC session even needs to be opened.

terminate called after throwing an instance of 'NVENCException'
  what():  NvEncoder : m_nvenc.nvEncOpenEncodeSessionEx(&encodeSessionExParams, &hEncoder) returned error 10 at /home/bokken/build/output/Unity-Technologies/com.unity.webrtc/Plugin~/NvCodec/NvCodec/NvEncoder/NvEncoder.cpp:54

Caught fatal signal - signo:6 code:-6 errno:0 addr:0x3e800007512
Obtained 29 stack frames.

Occurs on Ubuntu 20.04, Unity app built with 2022.3.5f1, WebRTC package version 3.0.0-pre.6
Built using IL2CPP

from com.unity.webrtc.

karasusan avatar karasusan commented on July 18, 2024

PR #1009 should fix this issue.
If you can download and check whether this issue is reproduced or not, it helps us.
https://drive.google.com/file/d/1ySSY9b0F2d4xL_T3af3myJKDr0C0EOo8/view?usp=sharing

from com.unity.webrtc.

Grit007 avatar Grit007 commented on July 18, 2024

PR #1009 should fix this issue. If you can download and check whether this issue is reproduced or not, it helps us. https://drive.google.com/file/d/1ySSY9b0F2d4xL_T3af3myJKDr0C0EOo8/view?usp=sharing

@karasusan hi, I run the new package in unity urp pipeline on my Linux centOS environment, now the player run normal and not crash. this is the Player.log file. Although not crash,the log file seems have some problems, can you tell me some tips about the log file?
Player.log
my NVIDIA card is A30 which not support NVENC and the scene my run is MediaStream sample scene in the package.

from com.unity.webrtc.

karasusan avatar karasusan commented on July 18, 2024

@Grit007
We tested Ubuntu 20.24 but not CentOS.
The error in Player.log show the reason of crash is not NVIDIA driver.

Mono path[0] = '/home/work/testnewWebRTC/test_Data/Managed'
Mono config path = '/home/work/testnewWebRTC/test_Data/MonoBleedingEdge/etc'
Preloaded 'lib_burst_generated.so'
Unable to preload the following plugins:
	libwebrtc.so
Unable to load player prefs
Plugins: Couldn't open /home/work/testnewWebRTC/test_Data/Plugins/libwebrtc.so, error: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /home/work/testnewWebRTC/test_Data/Plugins/libwebrtc.so)
Plugins: Couldn't open /home/work/testnewWebRTC/test_Data/Plugins/libwebrtc.so, error: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /home/work/testnewWebRTC/test_Data/Plugins/libwebrtc.so)
Desktop is 0 x 0 @ 0 Hz

The reason is that GLIBC_2.27 is not found on your environment.

from com.unity.webrtc.

Grit007 avatar Grit007 commented on July 18, 2024

@Grit007 We tested Ubuntu 20.24 but not CentOS. The error in Player.log show the reason of crash is not NVIDIA driver.

Mono path[0] = '/home/work/testnewWebRTC/test_Data/Managed'
Mono config path = '/home/work/testnewWebRTC/test_Data/MonoBleedingEdge/etc'
Preloaded 'lib_burst_generated.so'
Unable to preload the following plugins:
	libwebrtc.so
Unable to load player prefs
Plugins: Couldn't open /home/work/testnewWebRTC/test_Data/Plugins/libwebrtc.so, error: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /home/work/testnewWebRTC/test_Data/Plugins/libwebrtc.so)
Plugins: Couldn't open /home/work/testnewWebRTC/test_Data/Plugins/libwebrtc.so, error: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /home/work/testnewWebRTC/test_Data/Plugins/libwebrtc.so)
Desktop is 0 x 0 @ 0 Hz

The reason is that GLIBC_2.27 is not found on your environment.

got it, thanks reply

from com.unity.webrtc.

jonitee avatar jonitee commented on July 18, 2024

Hi!

@karasusan, I had now time to test the fix that was put into the develop for the package. Unfortunately, the loading of the package is still crashing. Although, the issue is now in different place. I have attached crash log from the Unity Hub to this message.

client_crash_log.txt

I think now this might be the interesting part of the log

Finished compiling graph: 379 nodes, 4986 flattened edges (4986 ToBuild, 0 ToUse), maximum node priority 150
[164/378    0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.WebRTC.rsp
[171/378    0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.WebRTC.Editor.dll.mvfrm.rsp
[174/378    0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.WebRTC.dll.mvfrm.rsp
[176/378    0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.WebRTC.Editor.rsp
[367/378    0s] MovedFromExtractor Library/Bee/artifacts/mvdfrm/Unity.EditorCoroutines.Editor.ref.dll_34ED10A34098B2DB.mvfrm
[368/378    0s] MovedFromExtractorCombine Library/Bee/artifacts/1900b0aE.dag/Unity.WebRTC.dll.mvfrm
[369/378    0s] Csc Library/Bee/artifacts/1900b0aE.dag/Unity.WebRTC.dll (+2 others)
[370/378    0s] CopyFiles Library/ScriptAssemblies/Unity.WebRTC.pdb
[371/378    0s] MovedFromExtractor Library/Bee/artifacts/mvdfrm/Unity.WebRTC.ref.dll_CF837AC6DB98867B.mvfrm
[372/378    0s] CopyFiles Library/ScriptAssemblies/Unity.WebRTC.dll
[373/378    0s] MovedFromExtractorCombine Library/Bee/artifacts/1900b0aE.dag/Unity.WebRTC.Editor.dll.mvfrm
[374/378    0s] Csc Library/Bee/artifacts/1900b0aE.dag/Unity.WebRTC.Editor.dll (+2 others)
[375/378    0s] CopyFiles Library/ScriptAssemblies/Unity.WebRTC.Editor.pdb
[376/378    0s] CopyFiles Library/ScriptAssemblies/Unity.WebRTC.Editor.dll
*** Tundra build success (1.42 seconds), 14 items updated, 378 evaluated
Reloading assemblies after forced synchronous recompile.
Begin MonoManager ReloadAssembly
Symbol file LoadedFromMemory doesn't match image <project/path>\Library\PackageCache\[email protected]\Editor\VisualScripting.Core\Dependencies\YamlDotNet\Unity.VisualScripting.YamlDotNet.dll
Symbol file LoadedFromMemory doesn't match image <project/path>\Library\PackageCache\[email protected]\Editor\VisualScripting.Core\Dependencies\DotNetZip\Unity.VisualScripting.IonicZip.dll
Native extension for WindowsStandalone target not found
Refreshing native plugins compatible for Editor in 90.78 ms, found 4 plugins.
Preloading 1 native plugins for Editor in 148.81 ms.
[MODES] ModeService[none].Initialize
[MODES] ModeService[none].LoadModes
[MODES] Loading mode Default (0) for mode-current-id-My project
Mono: successfully reloaded assembly
Crash!!!

from com.unity.webrtc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.