Random crashes when using Cycles and GPU rendering on AMD card (HIP) #102267

Closed
opened 2022-11-04 12:10:36 +01:00 by Rudder Duck · 8 comments

System Information
Operating system: Linux-5.15.74-1-lts-x86_64-with-glibc2.36 64 Bits
Graphics card: AMD Radeon RX 6600 XT (navi23, LLVM 14.0.6, DRM 3.42, 5.15.74-1-lts) AMD 4.6 (Core Profile) Mesa 22.2.1

Blender Version
Broken: version: 3.3.1, branch: makepkg (modified), commit date: 2022-10-04 18:35, hash: b292cfe5a9
Worked: (unknown)

Short description of error
When using Cycles and GPU rendering system regularly crashes. It starts with Blending becoming unresponsive, then the screens turns off and come back without the possibility to interact with Blender. Other applications respond but sound only (f.i. video playback of YT video can be paused/unpaused where the sound of the video resumes but video play back not), it seems the video output has stopped being responsive. I can login to a virtual terminal using CTRL & ALT & F2 and reboot but don't now how to get further useful information to pinpoint the cause.

Exact steps for others to reproduce the error
It is difficult to reproduce the exact steps but it is during the use of procedural nodes and procedural materials. I am using HIP as rendering device (AMD graphics card).

**System Information** Operating system: Linux-5.15.74-1-lts-x86_64-with-glibc2.36 64 Bits Graphics card: AMD Radeon RX 6600 XT (navi23, LLVM 14.0.6, DRM 3.42, 5.15.74-1-lts) AMD 4.6 (Core Profile) Mesa 22.2.1 **Blender Version** Broken: version: 3.3.1, branch: makepkg (modified), commit date: 2022-10-04 18:35, hash: `b292cfe5a9` Worked: (unknown) **Short description of error** When using Cycles and GPU rendering system regularly crashes. It starts with Blending becoming unresponsive, then the screens turns off and come back without the possibility to interact with Blender. Other applications respond but sound only (f.i. video playback of YT video can be paused/unpaused where the sound of the video resumes but video play back not), it seems the video output has stopped being responsive. I can login to a virtual terminal using CTRL & ALT & F2 and reboot but don't now how to get further useful information to pinpoint the cause. **Exact steps for others to reproduce the error** It is difficult to reproduce the exact steps but it is during the use of procedural nodes and procedural materials. I am using HIP as rendering device (AMD graphics card).
Author

Added subscriber: @RudderDuck

Added subscriber: @RudderDuck
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

When this happens again, can you execute sudo dmesg > ~/Desktop/dmesg.log in a virtual terminal and attach the output file here?

When this happens again, can you execute `sudo dmesg > ~/Desktop/dmesg.log` in a virtual terminal and attach the output file here?
Author

Attached is the log file. Active at the moment of crash was cycles render engine/feature set experimental/device gpu compute. A procedural material was being created on a sphere with the subdivision modifier activated with adaptive subdivision enabled.

Edit: also crashes with cycles render engine/device gpu compute when creating a procedural material. So, feature set experimental and adaptive subdivision have nothing to do with the crashing.

dmesg1.log

Attached is the log file. Active at the moment of crash was cycles render engine/feature set experimental/device gpu compute. A procedural material was being created on a sphere with the subdivision modifier activated with adaptive subdivision enabled. Edit: also crashes with cycles render engine/device gpu compute when creating a procedural material. So, feature set experimental and adaptive subdivision have nothing to do with the crashing. [dmesg1.log](https://archive.blender.org/developer/F13868958/dmesg1.log)
Member

This is basically the same as #100353, #96408, #98907. Which is most likely an issue with the kernel driver itself. I encourage you to voice your experience in the upstream reports linked in the aforementioned tasks.

[22513.516005] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out!
[22516.645953] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout, signaled seq=3237286, emitted seq=3237288
[22516.646175] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process blender pid 98867 thread blender:cs0 pid 98881
[22516.646329] amdgpu 0000:03:00.0: amdgpu: GPU reset begin!
[22518.555917] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out!
[22520.646269] amdgpu 0000:03:00.0: amdgpu: failed to suspend display audio
[22521.103916] amdgpu 0000:03:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring kiq_2.1.0 test failed (-110)
[22521.104086] [drm:gfx_v10_0_hw_fini [amdgpu]] *ERROR* KGQ disable failed
[22521.297129] amdgpu 0000:03:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring kiq_2.1.0 test failed (-110)
[22521.297275] [drm:gfx_v10_0_hw_fini [amdgpu]] *ERROR* KCQ disable failed
[22521.489765] [drm:gfx_v10_0_hw_fini [amdgpu]] *ERROR* failed to halt cp gfx
[22521.515768] [drm] free PSP TMR buffer
[22521.561860] amdgpu 0000:03:00.0: amdgpu: MODE1 reset
[22521.561862] amdgpu 0000:03:00.0: amdgpu: GPU mode1 reset
[22521.561913] amdgpu 0000:03:00.0: amdgpu: GPU smu mode1 reset
[22522.075966] amdgpu 0000:03:00.0: amdgpu: GPU reset succeeded, trying to resume
[22522.076043] [drm] PCIE GART of 512M enabled (table at 0x0000008001FA4000).
[22522.076070] [drm] VRAM is lost due to GPU reset!
[22522.076279] [drm] PSP is resuming...
[22522.187815] [drm] reserve 0xa00000 from 0x81fe000000 for PSP TMR
[22522.303275] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[22522.325226] amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[22522.325229] amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
[22522.325232] amdgpu 0000:03:00.0: amdgpu: smu driver if version = 0x0000000f, smu fw if version = 0x00000013, smu fw version = 0x003b2900 (59.41.0)
[22522.325235] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not matched
[22522.373629] amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully!
[22522.374887] [drm] DMUB hardware initialized: version=0x02020013
[22522.650010] [drm] kiq ring mec 2 pipe 1 q 0
[22522.654111] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[22522.654327] [drm] JPEG decode initialized successfully.
[22522.654333] amdgpu 0000:03:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[22522.654335] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[22522.654336] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[22522.654337] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[22522.654338] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[22522.654339] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[22522.654340] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[22522.654341] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[22522.654342] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[22522.654343] amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[22522.654344] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[22522.654345] amdgpu 0000:03:00.0: amdgpu: ring sdma1 uses VM inv eng 13 on hub 0
[22522.654346] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 1
[22522.654347] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 1
[22522.654348] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 1
[22522.654349] amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 1
[22522.657284] amdgpu 0000:03:00.0: amdgpu: recover vram bo from shadow start
[22522.657323] amdgpu 0000:03:00.0: amdgpu: recover vram bo from shadow done
[22522.657325] [drm] Skip scheduling IBs!
[22522.657326] [drm] Skip scheduling IBs!
[22522.657367] amdgpu 0000:03:00.0: amdgpu: GPU reset(2) succeeded!
[22522.657403] [drm] Skip scheduling IBs!
[22522.657406] [drm] Skip scheduling IBs!
[22522.657410] [drm] Skip scheduling IBs!
[22522.657426] [drm] Skip scheduling IBs!
[22522.657429] [drm] Skip scheduling IBs!
[22522.657434] [drm] Skip scheduling IBs!
[22522.657436] [drm] Skip scheduling IBs!
[22522.657438] [drm] Skip scheduling IBs!
[22522.657439] [drm] Skip scheduling IBs!
[22522.657724] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22522.657966] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22522.662818] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22522.663317] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22522.663559] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22522.663705] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22522.664030] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22525.709151] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22525.709569] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22525.709772] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22527.823465] amdgpu_cs_ioctl: 5 callbacks suppressed
[22527.823468] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22527.823712] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22527.823936] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22527.824144] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22527.824307] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22527.824764] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22527.825309] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22527.825498] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22529.372874] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22529.579160] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[22535.807194] kauditd_printk_skb: 11 callbacks suppressed
This is basically the same as #100353, #96408, #98907. Which is most likely an issue with the kernel driver itself. I encourage you to voice your experience in the upstream reports linked in the aforementioned tasks. ```lines=10 [22513.516005] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out! [22516.645953] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout, signaled seq=3237286, emitted seq=3237288 [22516.646175] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process blender pid 98867 thread blender:cs0 pid 98881 [22516.646329] amdgpu 0000:03:00.0: amdgpu: GPU reset begin! [22518.555917] [drm:amdgpu_dm_atomic_commit_tail [amdgpu]] *ERROR* Waiting for fences timed out! [22520.646269] amdgpu 0000:03:00.0: amdgpu: failed to suspend display audio [22521.103916] amdgpu 0000:03:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring kiq_2.1.0 test failed (-110) [22521.104086] [drm:gfx_v10_0_hw_fini [amdgpu]] *ERROR* KGQ disable failed [22521.297129] amdgpu 0000:03:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring kiq_2.1.0 test failed (-110) [22521.297275] [drm:gfx_v10_0_hw_fini [amdgpu]] *ERROR* KCQ disable failed [22521.489765] [drm:gfx_v10_0_hw_fini [amdgpu]] *ERROR* failed to halt cp gfx [22521.515768] [drm] free PSP TMR buffer [22521.561860] amdgpu 0000:03:00.0: amdgpu: MODE1 reset [22521.561862] amdgpu 0000:03:00.0: amdgpu: GPU mode1 reset [22521.561913] amdgpu 0000:03:00.0: amdgpu: GPU smu mode1 reset [22522.075966] amdgpu 0000:03:00.0: amdgpu: GPU reset succeeded, trying to resume [22522.076043] [drm] PCIE GART of 512M enabled (table at 0x0000008001FA4000). [22522.076070] [drm] VRAM is lost due to GPU reset! [22522.076279] [drm] PSP is resuming... [22522.187815] [drm] reserve 0xa00000 from 0x81fe000000 for PSP TMR [22522.303275] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available [22522.325226] amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available [22522.325229] amdgpu 0000:03:00.0: amdgpu: SMU is resuming... [22522.325232] amdgpu 0000:03:00.0: amdgpu: smu driver if version = 0x0000000f, smu fw if version = 0x00000013, smu fw version = 0x003b2900 (59.41.0) [22522.325235] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not matched [22522.373629] amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully! [22522.374887] [drm] DMUB hardware initialized: version=0x02020013 [22522.650010] [drm] kiq ring mec 2 pipe 1 q 0 [22522.654111] [drm] VCN decode and encode initialized successfully(under DPG Mode). [22522.654327] [drm] JPEG decode initialized successfully. [22522.654333] amdgpu 0000:03:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0 [22522.654335] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0 [22522.654336] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0 [22522.654337] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0 [22522.654338] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0 [22522.654339] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0 [22522.654340] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0 [22522.654341] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0 [22522.654342] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0 [22522.654343] amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0 [22522.654344] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0 [22522.654345] amdgpu 0000:03:00.0: amdgpu: ring sdma1 uses VM inv eng 13 on hub 0 [22522.654346] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 1 [22522.654347] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 1 [22522.654348] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 1 [22522.654349] amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 1 [22522.657284] amdgpu 0000:03:00.0: amdgpu: recover vram bo from shadow start [22522.657323] amdgpu 0000:03:00.0: amdgpu: recover vram bo from shadow done [22522.657325] [drm] Skip scheduling IBs! [22522.657326] [drm] Skip scheduling IBs! [22522.657367] amdgpu 0000:03:00.0: amdgpu: GPU reset(2) succeeded! [22522.657403] [drm] Skip scheduling IBs! [22522.657406] [drm] Skip scheduling IBs! [22522.657410] [drm] Skip scheduling IBs! [22522.657426] [drm] Skip scheduling IBs! [22522.657429] [drm] Skip scheduling IBs! [22522.657434] [drm] Skip scheduling IBs! [22522.657436] [drm] Skip scheduling IBs! [22522.657438] [drm] Skip scheduling IBs! [22522.657439] [drm] Skip scheduling IBs! [22522.657724] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22522.657966] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22522.662818] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22522.663317] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22522.663559] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22522.663705] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22522.664030] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22525.709151] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22525.709569] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22525.709772] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22527.823465] amdgpu_cs_ioctl: 5 callbacks suppressed [22527.823468] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22527.823712] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22527.823936] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22527.824144] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22527.824307] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22527.824764] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22527.825309] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22527.825498] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22529.372874] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22529.579160] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125! [22535.807194] kauditd_printk_skb: 11 callbacks suppressed ```
Member

Closed as duplicate of #100353

Closed as duplicate of #100353
Author

Thanks for the info Omar, also thanks for adding me to the subscriber list of the relevant task.

Thanks for the info Omar, also thanks for adding me to the subscriber list of the relevant task.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#102267
No description provided.