# System hang occasionally by nvidia driver

**URL:** <https://forums.developer.nvidia.com/t/system-hang-occasionally-by-nvidia-driver/241931>\
**Category:** DRIVE AGX Orin General\
**Tags:** driveos\
**Created:** [February 7, 2023, 10:15am UTC](https://forums.developer.nvidia.com/t/system-hang-occasionally-by-nvidia-driver/241931 "2023-02-07T10:15:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ming.xu4](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ming.xu4](https://forums.developer.nvidia.com/u/ming.xu4)\
**Post date:** [February 7, 2023, 10:15am UTC](https://forums.developer.nvidia.com/t/system-hang-occasionally-by-nvidia-driver/241931/1 "2023-02-07T10:15:59Z")

</div>

Please provide the following info (tick the boxes after creating this topic):  
**Software Version**  
 DRIVE OS 6.0.5  
 DRIVE OS 6.0.4 (rev. 1)  
[\*] DRIVE OS 6.0.4 SDK  
 other

**Target Operating System**  
[\*] Linux  
 QNX  
 other

**Hardware Platform**  
[\*] DRIVE AGX Orin Developer Kit (940-63710-0010-D00)  
 DRIVE AGX Orin Developer Kit (940-63710-0010-C00)  
 DRIVE AGX Orin Developer Kit (not sure its number)  
 other

**SDK Manager Version**  
[\*] 1.9.1.10844  
 other

**Host Machine Version**  
[\*] native Ubuntu Linux 20.04 Host installed with SDK Manager  
 native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers  
 native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers  
 other

nvidia dirve print below info, sometimes caused system hang. I cannot ssh, but ping IP is okay!

Feb 7 18:04:42 tegra-ubuntu kernel: [9.023688] CPU: 0 PID: 1332 Comm: Xorg Tainted: G O 5.10.104-rt63-tegra #1  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.023691] Hardware name: p3710-0010 (DT)  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.023693] Call trace:  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.023694] dump\_backtrace+0x0/0x1d0  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.023703] show\_stack+0x2c/0x40  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.023706] dump\_stack+0xd8/0x138  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.023711] os\_dump\_stack+0x14/0x1c [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.023796] tlsEntryGet+0x130/0x138 [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.023871] ctxdmaConstruct\_IMPL+0x360/0x3a8 [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.023946] \_\_nvoc\_ctor\_ContextDma+0x74/0xa8 [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024020] \_\_nvoc\_objCreate\_ContextDma+0x78/0x110 [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024094] \_\_nvoc\_objCreateDynamic+0x50/0x70 [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024167] resservResourceFactory+0x74/0x100 [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024239] indexRemove+0x294/0x4f0 [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024313] serverAllocResourceUnderLock+0x21c/0x6b0 [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024385] serverAllocResource+0x240/0x2e0 [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024459] rmapiAllocWithSecInfo+0x180/0x2e0 [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024534] rmapiAllocWithSecInfoTls+0x74/0xa8 [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024608] rmapiControlWithSecInfoTls+0x4a8/0x520 [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024682] nvkms\_call\_rm+0x5c/0x90 [nvidia\_modeset]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024741] nvRmApiAlloc+0x30/0x40 [nvidia\_modeset]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024789] nvkms\_ioctl\_common+0x174/0x1a0 [nvidia\_modeset]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024836] nvidia\_frontend\_unlocked\_ioctl+0x58/0x78 [nvidia]  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024910] \_\_arm64\_sys\_ioctl+0xa8/0xf0  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024915] el0\_svc\_common.constprop.0+0x7c/0x1c0  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024919] do\_el0\_svc+0x34/0xa0  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024921] el0\_svc+0x1c/0x30  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024925] el0\_sync\_handler+0xa8/0xb0  
Feb 7 18:04:42 tegra-ubuntu kernel: [9.024928] el0\_sync+0x16c/0x180

---

<div class="post-metadata">

**Author:** ![SivaRamaKrishnaNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sivaramakrishnanv/32/14043_2.png) [@SivaRamaKrishnaNV](https://forums.developer.nvidia.com/u/SivaRamaKrishnaNV)\
**Post date:** [February 7, 2023, 10:41am UTC](https://forums.developer.nvidia.com/t/system-hang-occasionally-by-nvidia-driver/241931/2 "2023-02-07T10:41:45Z")

</div>

Dear @ming.xu4,  
If possible, can you upgrade to DRIVE OS 6.0.5 and test the issue? Could you also elaborate or share repro steps that causes this issue to trigger?

---

<div class="post-metadata">

**Author:** ![ming.xu4](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ming.xu4](https://forums.developer.nvidia.com/u/ming.xu4)\
**Post date:** [February 7, 2023, 11:29am UTC](https://forums.developer.nvidia.com/t/system-hang-occasionally-by-nvidia-driver/241931/4 "2023-02-07T11:29:29Z")

</div>

Hello @SivaRamaKrishnaNV  
Reboot system, you can find the backtrace log in file /var/log/kern.log or /var/log/syslog  
but, system hang is random.

update:  
it looks we encountered same issue(link as below), sometimes desktop freeze, I cannot ssh, but ping ok.

> [@Nvidia display driver loading failed](https://forums.developer.nvidia.com/t/nvidia-display-driver-loading-failed/216349):
>
> Hello guys, I’m using Jetpack-5.0-DP / L4T-R34.1.1 and I noticed that there is an issue when nvidia-display-driver is loaded. Could you please help to fix the issue ? Here is the logs: [26.146649] nvidia-modeset: Loading NVIDIA UNIX Kernel Mode Setting Driver for aarch64 34.1.1 Release Build (buildbrain@mobile-u64-5414-d7000) Mon May 16 21:12:27 PDT 2022 [26.146703] NVRM gpumgrGetSomeGpu: Failed to retrieve pGpu - Too early call!. [26.146707] NVRM nvAssertFailedNoLog: Assertion …

---

<div class="post-metadata">

**Author:** ![SivaRamaKrishnaNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sivaramakrishnanv/32/14043_2.png) [@SivaRamaKrishnaNV](https://forums.developer.nvidia.com/u/SivaRamaKrishnaNV)\
**Post date:** [February 8, 2023, 12:54pm UTC](https://forums.developer.nvidia.com/t/system-hang-occasionally-by-nvidia-driver/241931/5 "2023-02-08T12:54:37Z")

</div>

Dear @ming.xu4,  
I could access my machine flashed with DRIVE OS 6.0.5 with out any issue.  
Could you check flashing DRIVE OS 6.0.5 and verify?

---

<div class="post-metadata">

**Author:** ![ming.xu4](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ming.xu4](https://forums.developer.nvidia.com/u/ming.xu4)\
**Post date:** [February 9, 2023, 6:08am UTC](https://forums.developer.nvidia.com/t/system-hang-occasionally-by-nvidia-driver/241931/6 "2023-02-09T06:08:20Z")

</div>

same issue on 6.0.5.

nvidia@tegra-ubuntu:~$ cat /etc/nvidia/version-ubuntu-rootfs.txt  
6.0.5.0-31732390

kernel log:  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949130] NVRM nvAssertFailedNoLog: Assertion failed: thisAddress \< pMapping-\>gpuNvLength @ os.c:1612  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949140] CPU: 1 PID: 1830 Comm: Xorg Tainted: G O 5.10.120-rt70-tegra #1  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949143] Hardware name: p3710-0010 (DT)  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949145] Call trace:  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949146] dump\_backtrace+0x0/0x1d0  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949155] show\_stack+0x30/0x50  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949159] dump\_stack+0xd8/0x140  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949164] os\_dump\_stack+0x18/0x20 [nvidia]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949252] tlsEntryGet+0x130/0x138 [nvidia]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949329] osDevReadReg032+0x4c/0x70 [nvidia]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949405] ioaprtReadReg32\_IMPL+0x140/0x1c8 [nvidia]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949481] gpuFuseSupportsDisplay\_T234D+0x28/0x38 [nvidia]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949557] kdispStatePreInitLocked\_IMPL+0x28/0xd8 [nvidia]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949633] gpuStatePreInit\_IMPL+0x1f8/0x680 [nvidia]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949709] gpumgrStatePreInitGpu+0x74/0xa8 [nvidia]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949784] RmInitAdapter+0x580/0xe28 [nvidia]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949860] rm\_init\_adapter+0xa8/0xb8 [nvidia]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.949936] nvidia\_isr\_kthread\_bh+0x51c/0xd48 [nvidia]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.950011] nvidia\_dev\_get+0x3c/0x88 [nvidia]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.950086] nvkms\_open\_gpu+0x64/0xa8 [nvidia\_modeset]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.950146] nvRmAllocDeviceEvo+0x654/0x848 [nvidia\_modeset]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.950194] nvkms\_ioctl\_common+0x180/0x1b0 [nvidia\_modeset]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.950242] nvidia\_frontend\_unlocked\_ioctl+0x5c/0x78 [nvidia]  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.950320] \_\_arm64\_sys\_ioctl+0xb4/0x110  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.950324] el0\_svc\_common.constprop.0+0x80/0x1f0  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.950328] do\_el0\_svc+0x38/0x90  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.950330] el0\_svc+0x1c/0x30  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.950333] el0\_sync\_handler+0xb8/0xc0  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.950334] el0\_sync+0x16c/0x180  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.951293] NVRM rpcRmApiControl\_dce: NVRM\_RPC\_DCE: Failed RM ctrl call cmd:0x2080017e result 0x56:  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.951450] NVRM rpcRmApiControl\_dce: NVRM\_RPC\_DCE: Failed RM ctrl call cmd:0x2080013f result 0x56:  
Feb 9 06:04:22 tegra-ubuntu kernel: [21.952437] NVRM rmapiAllocWithSecInfo: allocation failed; status: Given class-id not valid [NV\_ERR\_INVALID\_CLASS] (0

---

<div class="post-metadata">

**Author:** ![SivaRamaKrishnaNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sivaramakrishnanv/32/14043_2.png) [@SivaRamaKrishnaNV](https://forums.developer.nvidia.com/u/SivaRamaKrishnaNV)\
**Post date:** [February 9, 2023, 6:53am UTC](https://forums.developer.nvidia.com/t/system-hang-occasionally-by-nvidia-driver/241931/7 "2023-02-09T06:53:40Z")

</div>

Dear @ming.xu4,  
You notice above log message when system freezes? How frequently do you see system hang? Do you see any pattern to reproduce the issue?

---

<div class="post-metadata">

**Author:** ![ming.xu4](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ming.xu4](https://forums.developer.nvidia.com/u/ming.xu4)\
**Post date:** [February 13, 2023, 5:51am UTC](https://forums.developer.nvidia.com/t/system-hang-occasionally-by-nvidia-driver/241931/8 "2023-02-13T05:51:26Z")

</div>

Not frequently, 3-4 days, I can see it.  
it’s hard to reproduce it, I didn’t find any pattern， sometimes happened on moving mouse, sometimes when compiling code, sometimes when running tensorRT.  
Just noticed the screen freezed, frankly speeking, didn’t see any kernel crash log when desktop freezed.  
here is the suspected point.

---

<div class="post-metadata">

**Author:** ![SivaRamaKrishnaNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sivaramakrishnanv/32/14043_2.png) [@SivaRamaKrishnaNV](https://forums.developer.nvidia.com/u/SivaRamaKrishnaNV)\
**Post date:** [March 7, 2023, 10:33am UTC](https://forums.developer.nvidia.com/t/system-hang-occasionally-by-nvidia-driver/241931/9 "2023-03-07T10:33:41Z")

</div>

Dear @ming.xu4,  
It is difficult to analyze with out repro steps. Do you still notice this freezing issue?

---

<div class="post-metadata">

**Author:** ![ming.xu4](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ming.xu4](https://forums.developer.nvidia.com/u/ming.xu4)\
**Post date:** [March 8, 2023, 7:55am UTC](https://forums.developer.nvidia.com/t/system-hang-occasionally-by-nvidia-driver/241931/10 "2023-03-08T07:55:19Z")

</div>

Dear @SivaRamaKrishnaNV  
I am still observing this issue.  
After disable “X” with console mode(nvidia not support, but can ssh), the system works well in past 3 weeks , never hang.  
I will swicth back to gnome desktop, will update results later.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [May 4, 2023, 2:05am UTC](https://forums.developer.nvidia.com/t/system-hang-occasionally-by-nvidia-driver/241931/12 "2023-05-04T02:05:42Z")

</div>

Closed on May 4, 2023, 2:05am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
