Flakiness connecting to Ledger on Mac OS due to multiple HID devices
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- embedded-iot
調査の方向性
ledgerblue/comm.py の357行目付近から始め、hid.enumerate() から取得される HID デバイスがどのようにフィルタリングされているか、特に usage_page の値 65440 と 61904 について確認してください。Ethereum アプリを開いた状態で Mac OS 上の接続試行を再現し、その後、意図した Ledger デバイスが一貫して選択され、不安定な接続が発生しなくなったことを確認してください。
索引モデルが issue の本文から書いたものです。
説明
We have observed a lot of flakiness with connecting to the Ledger on Mac OS, specifically in this code from the ledgereth library which bottoms out here in ledgerblue.
We found that when the Ethereum app is opened on the Ledger device, another HID entry shows up on the Mac. It is identical to the original HID entry except that usage_page is 61904 instead of 65440. The order of hid.enumerate() is not deterministic, so sometimes you get the original, good device, and sometimes you get the second, bad device. Hence the flakiness.
I'm not knowledgeable about the HID spec but I was wondering if changing the or condition in this line to an and condition would be appropriate. It would fix our problem at least because it would enforce that the device has a usage page of 65440, which would exclude the second, bad device.
- 主要言語
- Python
- スター
- 126
- フォーク
- 75
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LedgerHQ/blue-loader-python のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
LedgerHQ/blue-loader-python#130 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
LedgerHQ/blue-loader-python#98 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
LedgerHQ/blue-loader-python#96 · コメント 4 件 · リアクション 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
LedgerHQ/blue-loader-python#83 · コメント 1 件 ·
-
installation hintsオープン
難易度 1/5 1時間未満 初心者へのやさしさ 55/100
LedgerHQ/blue-loader-python#76 · リアクション 1 件 ·
LedgerHQ/blue-loader-python の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
topoteretes/cognee#5647 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Sendspin/sendspin-python-cli#291 ·
メンテナーはふだん 6 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
awslabs/visual-asset-management-system#414 ·
メンテナーはふだん 1 日以内に返信
-
bug v1 v2
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
modelcontextprotocol/python-sdk#3670 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
aicell-lab/bioengine#232 ·
メンテナーはふだん 1 日以内に返信