Tencent / soter

A secure and quick biometric authentication standard and platform in Android held by Tencent.
Other
1.92k stars 204 forks source link

初始化死锁导致主线程卡顿3s #79

Closed sliencetian closed 3 years ago

sliencetian commented 4 years ago

soter在某些机型上初始化,当 SoterCore 的 getProviderSoterCore 为 NULL 时,会在 SoterCoreTreble 中绑定 ISoterService SoterCoreTreble 的 mServiceConnection 连接成功后,在 onServiceConnected 中调用 countDown 该方法会发生必现的死锁现象,导致主线程卡顿 3s 只有等 countDownWait.await 3秒后释放锁后,这里才会继续执行,主线程恢复。

tencent-adm commented 4 years ago

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

sliencetian commented 4 years ago

ps:麻烦在问下,在那些机型上会出现这种情况呢,目前好像在华为上没有出现

liuxb-tofu commented 4 years ago

这个问题已经修复并上传maven,版本号2.0.6,GitHub会晚些时候更新代码