Crash with some add-ons using OpenMP (conflict initializing) #125255

Open
opened 2024-07-22 22:21:38 +02:00 by Erick-Phillips · 29 comments

EDIT since reporting, this looks to be a conflict with an add-ons use of OpenMP, not directly related to bevel ~ideasman42.

System Information
Operating system: MacOS 14.5
Graphics card: M3Max

Blender Version
Broken: 3.6.13, & 4.2
Worked: Neither

The second I hit CTRL + B and move the mouse to bevel an edge loop Blender immediately crashes before any visual representation of the bevel operation and goes straight to my desktop in both LTS versions of Blender.

Exact steps for others to reproduce the error

Add Cylinder

Select top or bottom edge loop

CTRL + B

move mouse

Crash straight to desktop

  • Also happens with mesh circle if I fill and extrude to be a cylinder shape (that's how it first started happening)

  • If I select all in edit mode and then bevel it works but that's not a fix

**EDIT** _since reporting, this looks to be a conflict with an add-ons use of OpenMP, not directly related to bevel ~ideasman42._ **System Information** Operating system: MacOS 14.5 Graphics card: M3Max **Blender Version** Broken: 3.6.13, & 4.2 Worked: Neither The second I hit CTRL + B and move the mouse to bevel an edge loop Blender immediately crashes before any visual representation of the bevel operation and goes straight to my desktop in both LTS versions of Blender. **Exact steps for others to reproduce the error** Add Cylinder Select top or bottom edge loop CTRL + B move mouse Crash straight to desktop - Also happens with mesh circle if I fill and extrude to be a cylinder shape (that's how it first started happening) - If I select all in edit mode and then bevel it works but that's not a fix
Erick-Phillips added the
Type
Report
Severity
Normal
Status
Needs Triage
labels 2024-07-22 22:21:39 +02:00
Member

Hi, thanks for the report. Unable to confirm the crash. Could you share crash logs?: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#macos

Hi, thanks for the report. Unable to confirm the crash. Could you share crash logs?: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#macos
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2024-07-23 07:56:31 +02:00
Author

Hi, thanks for the report. Unable to confirm the crash. Could you share crash logs?: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#macos

> Hi, thanks for the report. Unable to confirm the crash. Could you share crash logs?: https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#macos
Author

Just in case here is the issue happening:

Just in case here is the issue happening:

I can confirm that Blender also crashes to desktop in the same scenario on an Intel based machine.

System Information
Operating system: MacOS 14.5
Graphics card: AMD Radeon RX 6800 XT 16 GB

Blender Version
Broken: 4.2

Works as expected in Blender 4.1.1

I can confirm that Blender also crashes to desktop in the same scenario on an Intel based machine. System Information Operating system: MacOS 14.5 Graphics card: AMD Radeon RX 6800 XT 16 GB Blender Version Broken: 4.2 Works as expected in Blender 4.1.1
Member

Thanks, still unable to confirm. From logs, crash occurred during matrix calculation: adjust_the_cycle_or_chain() -> EIG_linear_solver_solve()
@Alaska hi, can you replicate this on mac?

Thanks, still unable to confirm. From logs, crash occurred during matrix calculation: `adjust_the_cycle_or_chain() -> EIG_linear_solver_solve()` @Alaska hi, can you replicate this on mac?
Member

I am personally unable to reproduce the issue in Blender 4.2.0.

Does the issue occur if you use default settings?

  1. Select from the top of Blender File -> Default -> Load Factory Settings
  2. Try and reproduce the issue.
I am personally unable to reproduce the issue in Blender 4.2.0. Does the issue occur if you use default settings? 1. Select from the top of Blender `File -> Default -> Load Factory Settings` 2. Try and reproduce the issue.
Author

Yes. It happens with Factory settings in both 3.6 and 4.2

Yes. It happens with Factory settings in both 3.6 and 4.2
Member

Maybe there's some issue in macOS 14.5? I'm still on 14.4. I'll try updating and see how it goes.

Maybe there's some issue in macOS 14.5? I'm still on 14.4. I'll try updating and see how it goes.
Member

Nope, updating to 14.5 didn't change the results for me.

@lichtwerk or @iss can you reproduce the issue on your Macs?

Nope, updating to 14.5 didn't change the results for me. @lichtwerk or @iss can you reproduce the issue on your Macs?
Member

Nope can't repro here

**System Information**
Operating system: macOS-14.5-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M2 1.2
version: 4.2.0, branch: blender-v4.2-release, commit date: 2024-07-16 06:20, hash: `a51f293548ad`
Nope can't repro here ``` **System Information** Operating system: macOS-14.5-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M2 1.2 version: 4.2.0, branch: blender-v4.2-release, commit date: 2024-07-16 06:20, hash: `a51f293548ad` ```
Author

This is disappointing. It is weird that it's also happening in 3.6 LTS. Maybe it's limited to M3 or maybe I need to completely remove blender from my system and reinstall?

This is disappointing. It is weird that it's also happening in 3.6 LTS. Maybe it's limited to M3 or maybe I need to completely remove blender from my system and reinstall?
Member

You can try that but i don't think it would make any difference.
In 3.6, does it work with OpenGL backend? 🤔

You can try that but i don't think it would make any difference. In 3.6, does it work with OpenGL backend? 🤔
Author

No. Immediate crash.

No. Immediate crash.
Pratik Borhade added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2024-07-26 07:43:25 +02:00
Author

I just did a test and it's working fine in Blender 4.1. So I guess that's my fix for now.

I also tried multiple 3.6 versions including 3.6.0 and they all crash immediately.

I just did a test and it's working fine in Blender 4.1. So I guess that's my fix for now. I also tried multiple 3.6 versions including 3.6.0 and they all crash immediately.

No crash here as well with MacOS 14.5 and 5700 XT

No crash here as well with MacOS 14.5 and 5700 XT
Pratik Borhade changed title from Bevel in Edit Mode to Crash with Bevel tool 2024-08-01 08:06:02 +02:00
Pratik Borhade added the
Platform
macOS
label 2024-08-01 08:11:27 +02:00
Bart van der Braak added
Type
Bug
and removed
Type
Report
labels 2024-08-14 12:55:25 +02:00

Operating system: MacOS 15.0
Graphics card: M3Pro
Blender Version 4.1

Hi, relatively new to Blender, and having the same issue, was working fine until recently but now whenever I try to bevel an edge Blender immediately crashes.

Operating system: MacOS 15.0 Graphics card: M3Pro Blender Version 4.1 Hi, relatively new to Blender, and having the same issue, was working fine until recently but now whenever I try to bevel an edge Blender immediately crashes.
Member

@Shane-Murphy-4 Does the issue occur in 4.2? And if it does, can you share a crash log? https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#macos

@Shane-Murphy-4 Does the issue occur in [4.2](https://www.blender.org/download)? And if it does, can you share a crash log? https://docs.blender.org/manual/en/dev/troubleshooting/crash.html#macos

@Alaska It occurs in 4.2 as well, I am attaching a crash log. Thank you.

@Alaska It occurs in 4.2 as well, I am attaching a crash log. Thank you.

Hello, I am experiencing the same issue. Strangely, the command works when I create a cube, for example, or even with Suzanne. However, as soon as I extrude something, Blender crashes immediately. I am attaching the crash log for reference.

On my Windows PC, I have the same add-ons and preferences, but no problems occur.

Oh, and when i use a bevel modifier it crashes too.

Hello, I am experiencing the same issue. Strangely, the command works when I create a cube, for example, or even with Suzanne. However, as soon as I extrude something, Blender crashes immediately. I am attaching the crash log for reference. On my Windows PC, I have the same add-ons and preferences, but no problems occur. Oh, and when i use a bevel modifier it crashes too.
Member

Thank you for sharing the information.

Considering we've now got 3 reports of the same issue, all with the same crash log, I believe we can confirm this issue. And since it is a crash, we should set it to high severity. Sadly it may not be fixed quickly as so far we haven't been able to confirm the issue.

Thank you for sharing the information. Considering we've now got 3 reports of the same issue, all with the same crash log, I believe we can confirm this issue. And since it is a crash, we should set it to high severity. Sadly it may not be fixed quickly as so far we haven't been able to confirm the issue.
Alaska added
Module
Modeling
Severity
High
Status
Confirmed
and removed
Severity
Normal
Status
Needs Triage
labels 2024-10-23 15:23:28 +02:00
Member

I tried it on Blender 4.2.3 (the LTS) on MacOS 15.0.1, on a Macbook Pro with M3 silicon. It didn't crash.

The crash log shows it crashing in the Eigen routine that is called when trying to optimize the offsets when "loop slide" is on. But when I tested, loop slide was on, so I don't know what is going on.

I tried it on Blender 4.2.3 (the LTS) on MacOS 15.0.1, on a Macbook Pro with M3 silicon. It didn't crash. The crash log shows it crashing in the Eigen routine that is called when trying to optimize the offsets when "loop slide" is on. But when I tested, loop slide was on, so I don't know what is going on.
Author

Seeing people start to confirm this issue. I just want to update that’s it’s still happens in 4.2.3 with M3max.

The current fix is using blender 4.1.0.

Seeing people start to confirm this issue. I just want to update that’s it’s still happens in 4.2.3 with M3max. The current fix is using blender 4.1.0.

It’s very strange. It doesn’t seem to be consistent under the same conditions.

I’m using an M2 Pro.

It’s very strange. It doesn’t seem to be consistent under the same conditions. I’m using an M2 Pro.
Member

Erick-Phillips: I have an M3max too (but MacOS 15.0.1), and can't make it crash. Does it happen for you on the current Alpha build? https://builder.blender.org/download/daily/

Erick-Phillips: I have an M3max too (but MacOS 15.0.1), and can't make it crash. Does it happen for you on the current Alpha build? https://builder.blender.org/download/daily/
Member

Looking at a similar crash dump in imagemagick, I wonder if the issue is similar to what is discussed there -- that MacOS has an open MP library dynamic library (libomp.dylib) and it has already initialized openMP when we try to do it again.
Erick-Phllips, perhaps you could try this:
when Blender is running, in a command window, type

ps x | grep Blender

There should be two lines of output. The first one (has Blender.app in it) starts is a process id, e.g., 34922. Next type

lsof -p 34922 | grep libomp.dynlib
(replace 34922 with your actual process id)
and report the results here.

Looking at a [similar crash dump in imagemagick]([url](https://github.com/ropensci/magick/issues/170)), I wonder if the issue is similar to what is discussed there -- that MacOS has an open MP library dynamic library (libomp.dylib) and it has already initialized openMP when we try to do it again. Erick-Phllips, perhaps you could try this: when Blender is running, in a command window, type ps x | grep Blender There should be two lines of output. The first one (has Blender.app in it) starts is a process id, e.g., 34922. Next type lsof -p 34922 | grep libomp.dynlib (replace 34922 with your actual process id) and report the results here.
Contributor

I don't have a Mac to check, but this issue is likely caused by the molecular + add-on, all the crash reports listed in this issue contain a library core.cpython-311-darwin.so UUID=93c964b4-c344-38a6-bdbc-ff9f8d748b9a from an add-on in their image list. This UUID matches with the library in version 1.17.20 of the add-on. This library contains a statically linked copy of OpenMP which conflicts with Blender's version. Somebody already reported this issue to the add-on before: u3dreal/molecular-plus#43, but it doesn't seem like it got properly addressed there.

I don't have a Mac to check, but this issue is likely caused by the [molecular +](https://github.com/u3dreal/molecular-plus) add-on, all the crash reports listed in this issue contain a library `core.cpython-311-darwin.so` `UUID=93c964b4-c344-38a6-bdbc-ff9f8d748b9a` from an add-on in their image list. This UUID matches with the library in version [1.17.20](https://github.com/u3dreal/molecular-plus/releases/tag/1.17.20) of the add-on. This library contains a statically linked copy of OpenMP which conflicts with Blender's version. Somebody already reported this issue to the add-on before: [u3dreal/molecular-plus#43](https://github.com/u3dreal/molecular-plus/issues/43), but it doesn't seem like it got properly addressed there.

I don't have a Mac to check, but this issue is likely caused by the molecular + add-on, all the crash reports listed in this issue contain a library core.cpython-311-darwin.so UUID=93c964b4-c344-38a6-bdbc-ff9f8d748b9a from an add-on in their image list. This UUID matches with the library in version 1.17.20 of the add-on. This library contains a statically linked copy of OpenMP which conflicts with Blender's version. Somebody already reported this issue to the add-on before: u3dreal/molecular-plus#43, but it doesn't seem like it got properly addressed there.

I just removed the Molecular + add-on and everything is working fine again, thanks so much!

> I don't have a Mac to check, but this issue is likely caused by the [molecular +](https://github.com/u3dreal/molecular-plus) add-on, all the crash reports listed in this issue contain a library `core.cpython-311-darwin.so` `UUID=93c964b4-c344-38a6-bdbc-ff9f8d748b9a` from an add-on in their image list. This UUID matches with the library in version [1.17.20](https://github.com/u3dreal/molecular-plus/releases/tag/1.17.20) of the add-on. This library contains a statically linked copy of OpenMP which conflicts with Blender's version. Somebody already reported this issue to the add-on before: [u3dreal/molecular-plus#43](https://github.com/u3dreal/molecular-plus/issues/43), but it doesn't seem like it got properly addressed there. I just removed the Molecular + add-on and everything is working fine again, thanks so much!
Author

It was molecular+. Thank you.

It was molecular+. Thank you.
Member

Thanks for tracking this down everyone. I will see if there's a way to check for this and use a workaround for bevel that avoids using the linear solver if this problem exists. But likely there are other areas of Blender that use openmp (e.g., I suspect motion matching), that will also fail under such circumstances,

Thanks for tracking this down everyone. I will see if there's a way to check for this and use a workaround for bevel that avoids using the linear solver if this problem exists. But likely there are other areas of Blender that use openmp (e.g., I suspect motion matching), that will also fail under such circumstances,
Campbell Barton changed title from Crash with Bevel tool to Crash with some add-ons using OpenMP (conflict initializing) 2024-10-29 23:34:31 +01:00
Campbell Barton added
Module
Platforms, Builds & Tests
and removed
Module
Modeling
labels 2024-10-29 23:37:03 +01: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, 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
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
Core
Module
Development Management
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
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
10 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#125255
No description provided.