python / python/cpython

Mac M1: ctypes crashes Blender application when I load and run my dylib.

Open
#121,142 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OS-mac topic-ctypes type-crash
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Crash report

What happened?

Ctypes crashes Blender application when I load and run my dylib. My dylib is called "openvdb" and looking at my log it seems it's on Python's side.

Working version: Blender 4.0, Python 3.10
Broken version: Blender 4.1, Python 3.11

Blender 4.0 has Python 3.10 and all works fine. But Blender 4.1 has Python 3.11 and it crashes.

Here is my log:
Mac-M1-Crash.txt

MacOS architecture is arm64.

CPython versions tested on:

3.10, 3.11

Operating systems tested on:

macOS

Output from running 'python -VV' on the command line:

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the attached Mac-M1-Crash.txt log and reproduce loading and running the openvdb dylib through ctypes on macOS arm64 under Python 3.10 and 3.11. Compare the two environments to identify the crash cause; done when the regression is understood and the Blender application no longer crashes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.