Blender crashes with a segmentation fault after matplotlib figure window is closed. #120024

Open
opened 2024-03-28 17:36:25 +01:00 by Burak-Kaynak · 3 comments

System Information
Operating system: macOS - Sonoma 14.4.1 & Intel Mac - macOS 12.7.4
Graphics card: Apple Silicon

Blender Version
Broken: 4.1.0, v41.40a5e739e270, 2024-03-28

Short description of error

Blender crashes after a matplotlib figure window is closed. It also occurs if the Python shipped with Blender is replaced by a custom Python build.

Exact steps for others to reproduce the error

  1. Install matplotlib using python3.11 binary in /Applications/Blender.app/Contents/Resources/4.1/python/bin:
./python3.11 -m pip install matplotlib
  1. Run Blender and choose scripting.

  2. Import matplotlib in the interactive console:

import matplotlib.pyplot as plt
  1. Create a plot:
plt.plot([0, 1])
plt.show()
  1. Close the window either by hitting q or using red button. Blender crashes with a segmentation fault.
**System Information** Operating system: macOS - Sonoma 14.4.1 & Intel Mac - macOS 12.7.4 Graphics card: Apple Silicon **Blender Version** Broken: 4.1.0, v41.40a5e739e270, 2024-03-28 **Short description of error** Blender crashes after a matplotlib figure window is closed. It also occurs if the Python shipped with Blender is replaced by a custom Python build. **Exact steps for others to reproduce the error** 1. Install matplotlib using python3.11 binary in /Applications/Blender.app/Contents/Resources/4.1/python/bin: ```python ./python3.11 -m pip install matplotlib ``` 2. Run Blender and choose scripting. 3. Import matplotlib in the interactive console: ```python import matplotlib.pyplot as plt ``` 4. Create a plot: ```python plt.plot([0, 1]) plt.show() ``` 5. Close the window either by hitting q or using red button. Blender crashes with a segmentation fault.
Burak-Kaynak added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2024-03-28 17:36:25 +01:00
Member

Unable to reproduce on Linux with 4.1 stable 40a5e739e2, either ran inside the console or the script space. The window can close without crashing blender.

Could you try factory-reset blender and see if it happens? There might be some other plugins that could cause this problem.

Unable to reproduce on Linux with 4.1 stable 40a5e739e270, either ran inside the console or the script space. The window can close without crashing blender. Could you try factory-reset blender and see if it happens? There might be some other plugins that could cause this problem.
YimingWu added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2024-03-29 06:35:20 +01:00
Author

That crash occurs on macOS not on Linux as it is stated in the System Information in the submitted issue. The architectures and the versions of the OS are explicitly stated as well. It is a clean installation of Blender 4.1.0 without enabling any plugins. We have already tested it on Debian 12 before submitting the issue, and yes, it does not crash Blender on Linux. That's why, Linux was not included in the System Information.

Thank you.

That crash occurs on macOS not on Linux as it is stated in the System Information in the submitted issue. The architectures and the versions of the OS are explicitly stated as well. It is a clean installation of Blender 4.1.0 without enabling any plugins. We have already tested it on Debian 12 before submitting the issue, and yes, it does not crash Blender on Linux. That's why, Linux was not included in the System Information. Thank you.
YimingWu added the
Platform
macOS
Interest
Platforms, Builds & Tests
labels 2024-03-29 10:24:48 +01:00

I am getting the same issue. I am wondering if there are steps to add more debugging info or resolve this issue.

I am getting the same issue. I am wondering if there are steps to add more debugging info or resolve this issue.
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
3 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#120024
No description provided.