Crash rendering when using OptiX and Grease Pencil on recent drivers #120007

Closed
opened 2024-03-28 11:50:53 +01:00 by Sergey Sharybin · 0 comments

System Information
Operating system: Linux, tested on Ubuntu 24.04 and Gentoo
Graphics card: NVidia 6000 Ada, NVidia GP100

Blender Version
Broken: Multiple Blender versions of 4.2 Alpha, mainly tested with 53e9fb6b78
Worked: Works when using Nvidia driver 535.161.07

Short description of error

When using recent NVidia drivers, such as 545.29.06, 550.54.14, 550.67 Blender will crash when rendering scene with Grease Pencil on OptiX. The important aspect is that the crash only happens during command line rendering.

The issue is somehow related on order in which OpenGL and OptiX is initialized:

  • If WM_gpu_init() is called from arg_handle_render_frame() prior to the RE_RenderAnim() then the crash does not happen.
  • If the WM_gpu_init() is called right after the optixDeviceContextCreate() then the crash will happen at that point in the context initialization.

The crash backtrace goes quite deep into the driver itself, so there is no really usable back trace.

When using NVidia driver 535.161.07 the crash does not happen.

Exact steps for others to reproduce the error

  • Download attached .blend file
  • Run ./bin/blender -b ~/Downloads/gp.blend -f 1 in the terminal
**System Information** Operating system: Linux, tested on Ubuntu 24.04 and Gentoo Graphics card: NVidia 6000 Ada, NVidia GP100 **Blender Version** Broken: Multiple Blender versions of 4.2 Alpha, mainly tested with 53e9fb6b78b Worked: Works when using Nvidia driver 535.161.07 **Short description of error** When using recent NVidia drivers, such as 545.29.06, 550.54.14, 550.67 Blender will crash when rendering scene with Grease Pencil on OptiX. The important aspect is that the crash only happens during command line rendering. The issue is somehow related on order in which OpenGL and OptiX is initialized: * If `WM_gpu_init()` is called from `arg_handle_render_frame()` prior to the `RE_RenderAnim()` then the crash does not happen. * If the `WM_gpu_init()` is called right after the `optixDeviceContextCreate()` then the crash will happen at that point in the context initialization. The crash backtrace goes quite deep into the driver itself, so there is no really usable back trace. When using NVidia driver 535.161.07 the crash does not happen. **Exact steps for others to reproduce the error** * Download attached .blend file * Run `./bin/blender -b ~/Downloads/gp.blend -f 1` in the terminal
3.9 MiB
Sergey Sharybin added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2024-03-28 11:50:54 +01:00
Blender Bot added
Status
Resolved
and removed
Status
Needs Triage
labels 2024-03-28 18:00:43 +01:00
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
1 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#120007
No description provided.