Blender crashing when trying to use Cupy #76414
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#76414
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Linux-5.3.0-51-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.59
CUDA: 10.2
Blender Version
Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-13 08:07, hash:
blender/blender@2ec6eca518
Broken: version: 2.83 (sub 15), branch: master, commit date: 2020-05-03 18:42, hash:
blender/blender@331bf04fad
Worked: version: 2.83 (sub 11), branch: master, commit date: 2020-03-31 23:07, hash:
blender/blender@da3cb514e5
Short description of error
Blender crashes (Segmentation Fault) while trying to use cupy.
It will pass the first three flags and then segfault before the fourth.
CudaTest.py
Exact steps for others to reproduce the error
From the command line use
blender --background --python CudaTest.py
This will throw a seg fault
If you run the same script outside of blender:
$(BLENDER_DIR)/2.83/python/bin/python3.7m CudaTest.py
The code will run normally.
Environment setup
Assuming CUDA is installed normally and from a fresh blender install:
$(BLENDER_DIR)/2.83/python/bin/python3.7m -m ensurepip
$(BLENDER_DIR)/2.83/python/bin/python3.7m -m pip install cupy-cuda102
Much appreciation
Really appreciate your help! Thanks and hope everyone is staying safe!
Other information
Example backtrace of the core dump below.
Added subscriber: @nkundtz
Added subscriber: @lvxejay
Added subscriber: @ankitm
Looks like the bug might have something to do with the symbol visibility changes introduced in
bae1c243cec
: https://developer.blender.org/rBbae1c243cec809ac783c1b8f2fb65a570b526ef0I tested the previous commit,
f1573731bc8
, which works as expected, no segfault: https://developer.blender.org/rBf1573731bc8b80c03ef5db4292568781969846c3Added subscriber: @brecht
Changed status from 'Needs Triage' to: 'Needs User Info'
Does this work in 2.82?
What I'm guessing is that this briefly worked after blender/blender@b555b8dedc, then part of that got reverted in blender/blender@bae1c243ce and it stopped working again?
Based on my testing and that of the NVIDIA team Segmentation faults are produced in all of our tested 2.82, 2.79, or alpha 2.90 releases.
This issue was referenced by blender/blender@9d8a583482
Changed status from 'Needs User Info' to: 'Resolved'