kin-ios
kin-ios copied to clipboard
Crash: Missing transactions or expected fields on blockchain causes kin-ios to crash
looks like Kin SDK is querying txns, and hitting a deserialization error, which then causes a hard crash.
This started happening to the wallet below on Saturday, and he hasn't been able to use our app since.
https://explorer.solana.com/address/HLLN2GQwBHhHaag8sT7gdRYpQRz65uyByCYyiozhXYTu/tokens?display=detail&cluster=mainnet
We suspect this is a (de)serialization issue, where the structure of the data coming in isn’t what kin-ios is expecting.
- Some of those transactions for that wallet aren’t available (see https://explorer.solana.com/tx/4Y2JT2B7XHc8j9gY6zVkoCfeLRRwCTvuoJmVK7FUumpaohBWeG1Lg6DAyjyKW7vPcbZVoWDhRCrAJCi4MTUxcfie?cluster=mainnet)
- and some don’t have timestamps (https://explorer.solana.com/tx/8zmk3qwU2EjYYuTtoULRR3zuZ49Van1JjExahastkGRbkYQVRReM7DT78k8kXBiqzJmDTEwJowzUv7nuDXLpKhg?cluster=mainnet)
missing attributes from the server or unexpected server response may be the root issue.
This is the stacktrace from Crashlytics:
Crashed: KinBase.KinFileStorage
0 KinBase 0x81d34 specialized Message.init(data:) + 441676 (Data+Slice.swift:441676)
1 KinBase 0xa39a0 specialized Transaction.init(data:) + 580024 (