Blender crashes on startup (HIPEW initialization failed: Error opening HIP dynamic library) #109102

Closed
opened 2023-06-18 16:07:44 +02:00 by Maxime-Rapp · 9 comments

System Information
Operating system: Windows 11 Pro version 22H2 (OS build 22621.1702)
Graphics card: NVIDIA GeForce RTX 3060 (Driver version 31.0.15.3623)

Blender Version
Broken: all versions from 3.0. I installed 3.5.1 today and it does not work.
Worked: 2.79

Short description of error

Blender crashes on startup. Sometimes the application launches but after a few seconds it crashes.

Exact steps for others to reproduce the error
Launch Blender using the blender-launcher.exe and wait until it crashes.

In the logs I get this error: "I0618 15:50:01.352027 6384 device.cpp:56] HIPEW initialization failed: Error opening HIP dynamic library" and the issue seems to be similar as this one #93888 which is now closed.

My CPU does not have integrated graphics. Could it be connected to this issue?

I have Windows 11 but it did not work on Windows 10 either.

**System Information** Operating system: Windows 11 Pro version 22H2 (OS build 22621.1702) Graphics card: NVIDIA GeForce RTX 3060 (Driver version 31.0.15.3623) **Blender Version** Broken: all versions from 3.0. I installed 3.5.1 today and it does not work. Worked: 2.79 **Short description of error** Blender crashes on startup. Sometimes the application launches but after a few seconds it crashes. **Exact steps for others to reproduce the error** Launch Blender using the blender-launcher.exe and wait until it crashes. In the logs I get this error: "I0618 15:50:01.352027 6384 device.cpp:56] HIPEW initialization failed: Error opening HIP dynamic library" and the issue seems to be similar as this one https://projects.blender.org/blender/blender/issues/93888 which is now closed. My CPU does not have integrated graphics. Could it be connected to this issue? I have Windows 11 but it did not work on Windows 10 either.
Maxime-Rapp added the
Type
Report
Status
Needs Triage
Severity
Normal
labels 2023-06-18 16:07:45 +02:00
YimingWu added the
Interest
Viewport & EEVEE
label 2023-06-19 05:05:01 +02:00
YimingWu changed title from Blender crashes on startup to Blender crashes on startup (HIPEW initialization failed: Error opening HIP dynamic library) 2023-06-19 05:05:31 +02:00
Member

Hi, thanks for the report.

In the logs I get this error: "I0618 15:50:01.352027 6384 device.cpp:56] HIPEW initialization failed: Error opening HIP dynamic library" and the issue seems to be similar as this one #93888 which is now closed.

I don't think this is relevant to crash. This is just a log message that says HIP initialization failed which is expected because you're using NVIDIA GPU.

Do you have multi-monitor setup?
Does it crash only when launched from blender-launcher.exe?
Did you try blender.exe or blender_debug_gpu_glitchworkaround.cmd batch file?

Hi, thanks for the report. > In the logs I get this error: "I0618 15:50:01.352027 6384 device.cpp:56] HIPEW initialization failed: Error opening HIP dynamic library" and the issue seems to be similar as this one #93888 which is now closed. I don't think this is relevant to crash. This is just a log message that says HIP initialization failed which is expected because you're using NVIDIA GPU. Do you have multi-monitor setup? Does it crash only when launched from blender-launcher.exe? Did you try blender.exe or `blender_debug_gpu_glitchworkaround.cmd` batch file?
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-06-19 05:13:09 +02:00
Author

Hi,

No I don't have a multi-monitor setup. Only one monitor for now.

It also crashes when I try blender.exe or the blender_debug_gpu_glitchworkaround.cmd batch file

I will attach the logs I got after running the batch file.

Hi, No I don't have a multi-monitor setup. Only one monitor for now. It also crashes when I try blender.exe or the blender_debug_gpu_glitchworkaround.cmd batch file I will attach the logs I got after running the batch file.
Pratik Borhade added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-06-20 11:16:25 +02:00
Member

Thanks.
unfortunately blender_debug_output.txt has not captured crash related info.
Could you redo the crash again then see what error eventviewer has reported?


Have you recently switched graphics card?
Does crash happen since the installation of these versions or it started to appear recently after OS, driver updates?

Thanks. unfortunately `blender_debug_output.txt` has not captured crash related info. Could you redo the crash again then see what error `eventviewer` has reported? - - - Have you recently switched graphics card? Does crash happen since the installation of these versions or it started to appear recently after OS, driver updates?
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-06-21 08:05:55 +02:00
Author

Hi again,

Thanks for the feedback. I checked what errors I could find in the event viewer and I found an error which seems to be related to my graphics card (see picture). It says "A TDR has been detected . The application must be closed"

It probably explains why it crashes. Some sort of timeout issue wirth the graphics card as I understand.

After doing a bit of research online I tried first to reinstall my drivers but it did not help. I also changed the values of the parameters TdrDelay and TdrDdiDelay in the registry editor, increasing them to 0x08 and 0x015 respectively. It was not successful either...

I am a little bit surprised to have this kind of issues with Blender. And I believe that my graphics card is powerful enough to handle a blender start-up, but maybe I am wrong. Is Blender using the graphics card resources correctly? I don't have any issues with other applications.

Hi again, Thanks for the feedback. I checked what errors I could find in the event viewer and I found an error which seems to be related to my graphics card (see picture). It says "A TDR has been detected . The application must be closed" It probably explains why it crashes. Some sort of timeout issue wirth the graphics card as I understand. After doing a bit of research online I tried first to reinstall my drivers but it did not help. I also changed the values of the parameters TdrDelay and TdrDdiDelay in the registry editor, increasing them to 0x08 and 0x015 respectively. It was not successful either... I am a little bit surprised to have this kind of issues with Blender. And I believe that my graphics card is powerful enough to handle a blender start-up, but maybe I am wrong. Is Blender using the graphics card resources correctly? I don't have any issues with other applications.
Member

Thanks. Could you try clean installation of GPU drivers?
I think by default tdr value does not exists in registry editor. Could you try increasing the tdrDelay to bit high for a workaround.

@Jeroen-Bakker hi, any idea what's causing this?

Thanks. Could you try clean installation of GPU drivers? I think by default tdr value does not exists in registry editor. Could you try increasing the tdrDelay to bit high for a workaround. @Jeroen-Bakker hi, any idea what's causing this?
Member

Hard to tell. TDR can be triggered in many cases and might not only be related to Blender. Blender might just be a bit more aggressively using the GPU driver at startup. TDR is a failsafe of the Windows OS to detect faulty hardware drivers. When detected it will restart the driver and all applications that are using will also fail. Question is what makes the driver to mis-behave?

One thing I notice is that is the driver version. It points to 536.23 (31.0.15.3623 WHQL [08/06/2023])​ which is a bit strange as normally the actual user known version number (536.23) is reported.

Hard to tell. TDR can be triggered in many cases and might not only be related to Blender. Blender might just be a bit more aggressively using the GPU driver at startup. TDR is a failsafe of the Windows OS to detect faulty hardware drivers. When detected it will restart the driver and all applications that are using will also fail. Question is what makes the driver to mis-behave? One thing I notice is that is the driver version. It points to 536.23 (31.0.15.3623 WHQL [08/06/2023])​ which is a bit strange as normally the actual user known version number (536.23) is reported.
Author

I tried again a clean installation of the drivers and it does not help. I tried both with Game Ready Drivers and Studio Drivers that I got directly from Nvidia website.

I also tried increasing tdrDelay but when increased too much then my computer is frozen and I have to force shutdown, probably because the driver isn't restarted. When tdrDelay is lower my screen will be frozen for a few seconds and then Blender closes.

Note that Blender 2.79 and earlier versions works perfectly. It seems that this is somehow related to the new version (from 3.0).

I could maybe ask Nvidia support what they think about this issue.

I tried again a clean installation of the drivers and it does not help. I tried both with Game Ready Drivers and Studio Drivers that I got directly from Nvidia website. I also tried increasing tdrDelay but when increased too much then my computer is frozen and I have to force shutdown, probably because the driver isn't restarted. When tdrDelay is lower my screen will be frozen for a few seconds and then Blender closes. Note that Blender 2.79 and earlier versions works perfectly. It seems that this is somehow related to the new version (from 3.0). I could maybe ask Nvidia support what they think about this issue.
Pratik Borhade added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-06-30 06:37:04 +02:00
Member

I could maybe ask Nvidia support what they think about this issue.

Hi, any updates on this? Still observing crash during startup? :/

> I could maybe ask Nvidia support what they think about this issue. Hi, any updates on this? Still observing crash during startup? :/
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-07-31 08:43:14 +02:00

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-08-11 12:34:27 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
4 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#109102
No description provided.