Closed Ein-Tim closed 1 year ago
Important:
Update:
Doesn't look like a one-off problem only, see Twitter:
Update:
The app is now crashing on all of my devices! I have to assume that this is a problem affecting all devices!
@Ein-Tim thanks for your report! I've created an internal ticket for it.
@larswmh Thank you! Have a good night!
Initial analysis:
[ENA/SQLiteKeyValueStore.swift:253] [subscript(_:)] Error when decoding value for key lastSuccessfulSubmitDiagnosisKeyTimestamp from K/V SQLite store: Die Daten konnten nicht gelesen werden, da sie fehlen. Swift.DecodingError.valueNotFound(Swift.Int64, Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "Expected Int64 but found null value instead.", underlyingError: nil)) Die Daten konnten nicht gelesen werden, da sie fehlen.
is what the Mac console shows when connecting the iPhone to it and attempting to open the CWA.
The key here is not important, the app throws errors for nearly all keys I could imagine (devicePairingConsentAcceptTimestamp
, lastSuccessfulSubmitDiagnosisKeyTimestamp
, registrationToken
, antigenTest
, pcrTest
)
From this I conclude that it is not possible that this is a problem with the keys, but rather a problem with the SQLite store, which strangely always returns nil as the value for the keys instead of the expected value.
Another error showing in the Mac console is
[ENA/SecureCache.swift:28] [init(at:key:store:)] Migration only possible with KeyValueCacheStoring
All issues I'm seeing are related to storing of data, so it seems like that something has gone wrong with the storing (maybe a migration issue)?
Using Xcode and setting a breakpoint to line 253 in the file SQLiteKeyValueStore.swift
, logically, also leads the simulator to crash.
That's all I have right now, maybe it helps a bit. My gut feeling says that something has gone wrong which lead to a malformation of the SQLite Store, but I can't back that up by code.
@Ein-Tim Thanks for your analysis, forwarded to dev team.
PRs
fix this issue.
As I am not able to reproduce the problem on a Simulator, I also can't test the fix.
Version 3.2.1 is now in rollout and fixes this issue.
@dsarkar Please apply the fix 3.2.1 label here.
Avoid duplicates
Technical details
Describe the bug
CWA version 3.2.0 crashes instantly after opening it.
Steps to reproduce the issue
Expected behaviour
The app should not crash.
Additional context
Here's the error report from the devices analysitcs settings:
Internal Tracking ID: EXPOSUREAPP-15088