AlphaWallet / AlphaWallet/alpha-wallet-ios

Unit Tests crashes on hardware

未關閉
#3,662 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Bug Low Priority
主要語言
Swift
星號
631
分支
384
PR 合併指標
30 天內沒有已合併 PR

描述

After running unit tests, sometimes the app crashes with the following:
```
Terminating app due to uncaught exception 'RLMException', reason: 'Object has been deleted or invalidated.'
terminating with uncaught exception of type NSException
```
This appears to happen on hardware only (iPhone6SPlus/iOS14.8.1) and under the following condition:

**Testing**
1. Delete AlphaWallet
2. Run the AlphaWallet Unit Tests

**Expects**
3. All tests to conclude without crashing.

However, if I first run AlphaWallet twice, this crash does not happen.

When running under iPhoneX/iOS15.2, I experience the following in `testSignPersonalMessageWithRawPrivateKey()` on `let data = try! signResult.dematerialize()`.
```swift
AlphaWalletTests/EtherKeystoreTests.swift:160: Fatal error: 'try!' expression unexpectedly raised an error: AlphaWallet.KeystoreError.accountMayNeedImportingAgainOrEnablePasscode
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。