python / python/cpython

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

オープン
#121,142 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

OS-mac topic-ctypes type-crash
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

添付された Mac-M1-Crash.txt ログから始め、macOS arm64 上の Python 3.10 および 3.11 で、ctypes を介して openvdb dylib をロードして実行する処理を再現します。2つの環境を比較してクラッシュの原因を特定します。回帰の原因が理解され、Blender アプリケーションがクラッシュしなくなった時点で完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
operating-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。