af.features.Features crashes when its __del__ method is called
まだ誰も着手していません。
評価
調査の方向性
報告されたエントリーポイントは af.orb、Features.get_xpos()、Features.get_ypos()、Features.del です。まず、Windows 上で ArrayFire 3.8.0 を使って、提供されている最小動作例を実行してください。位置配列がスコープ外に出たときのオブジェクトのライフタイムを追跡し、その後、features を削除してもサイレントにクラッシュしなくなっていることと、返された位置のケースが引き続き動作することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
When using a Features() object, arrayfire crashes silently when calling the object's __del__() method if the object's get_xpos() method has already been deleted (or has fallen out of scope).
Potentially due to a similar root case as mentioned in #169 (or due to the changes made as a result of this in commit a9031fb5e0db371bc88c958f0b8d43efd7fe8f45)
Running on Windows; using arrayfire 3.8.0.
Minimum working example:
import arrayfire as af
def get_feature_locations(features):
# Get x and y positions of features
x_pos = features.get_xpos()
y_pos = features.get_ypos()
# If this is uncommented, the code works as intended
# return x_pos, y_pos
img = af.randn(d0=500, d1=500)
features, descriptors = af.orb(img, threshold=1, max_features=10, num_levels=1)
feature_locations = get_feature_locations(features)
print("Before delete")
del features
print("After delete")
Which outputs:
Before delete
Uncommenting line 10 (return x_pos, y_pos) outputs:
Before delete
After delete
Thanks!
- 主要言語
- Python
- スター
- 422
- フォーク
- 63
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
arrayfire/arrayfire-python のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
arrayfire/arrayfire-python#271 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
arrayfire/arrayfire-python#270 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
arrayfire/arrayfire-python#269 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
arrayfire/arrayfire-python#267 · コメント 1 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
arrayfire/arrayfire-python#266 ·
arrayfire/arrayfire-python の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
learningequality/ricecooker#747 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
run-llama/llama_index#23199 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
KhronosGroup/glTF-Blender-IO#2769 ·