Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

CWA resets when no more memory is available #1521

Closed
Pelikan3857 opened this issue Nov 16, 2020 · 18 comments
Closed

CWA resets when no more memory is available #1521

Pelikan3857 opened this issue Nov 16, 2020 · 18 comments
Assignees
Labels
bug Something isn't working mirrored-to-jira This item is also tracked internally in JIRA

Comments

@Pelikan3857
Copy link

Pelikan3857 commented Nov 16, 2020

I have an iPhone 8 64Gb. Recently I had used up almost all of the available memory. Something like 10-20 Mbyte where left.
I then successfully deleted some objects to regain enough memory.

When I called the cwa-app after that, it had lost all of its history-data and I had to restart the app.


  • iOS Version: 13.6
  • CWA Version: 1.5.3

grafik


Internal Tracking ID: EXPOSUREAPP-3886

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Nov 16, 2020

@Pelikan3857
Okay that's not good... Could you share a screenshot of the Menu "Begegnungsmitteilungen"/"Exposure Notifications" in the Settings of your iPhone and also a Screenshot of the App's main Screen?
In the Settings you also find the EN (Exposure Notification)-Log. It would be great if you could share this here too, so we can see if there were any checks done in the background and the App just tells the wrong thing, or if the App is correct and all data is lost.

Thanks!

How to export Exposure Notificaiton Logs

German:

Einstellungen ➡️ Begegnungsmitteilungen ➡️ Status von Begegnungsaufzeichnungen ➡️ Begegnungsüberprüfungen ➡️ Überprüfungen exportieren

English:

Settings ➡️ Exposure Notifications ➡️ Exosure Logging Status ➡️ Exposure Checks ➡️ Export Exposure Checks

@Pelikan3857
Copy link
Author

Ok...

  1. due to the lack of memory I still have iOS 3.6, so things are bit different to what you described. I am not sure where to find
    "Begegnungsmitteilungen"/"Exposure Notifications", but I have uploaded the main-screen and the logs.

Indeed, the exposer-check goes back to the 3. of Nov. while the main-screen says: "...war für 1der letzten14 Tage aktiv"

Main-Screen:
Cwa-Main-16 11 20

Log:
ExposureChecks-2020-11-16.json.txt

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Nov 16, 2020

due to the lack of memory I still have iOS 3.6, so things are bit different to what you described. I am not sure where to find
"Begegnungsmitteilungen"/"Exposure Notifications", but I have uploaded the main-screen and the logs.

Okay, under iOS 13.6 this menu is not here yet, but it's not that important.

So or so, form your log I can tell the App reliable downloaded new data until 07.11.
On the 08.11. there was no check performed, but then again on the 09.11.
Now the mess really starts, no more checks were prformed since the 09.11. until today (16.11.)

Question: You opened the App today the first time after the 09.11., correct? And you had to step through the whole onboarding process again, or? (Behavior of a new installation)

@Pelikan3857 Can you also make sure that you are using the latest App Version (1.6.1), please.


@thomasaugsten You somewhere stated that the App is already opted out of the "Offload App" Feature from iOS, is this since the launch under iOS 13.5 or could it be that the iPhone, running 13.6 offloaded the app?

@svengabr svengabr added the further input needed Issue requires more input from the creator to be processed good first issue label Nov 17, 2020
@Pelikan3857
Copy link
Author

Hi Tim,
thank you for looking into this so rapidly!
The cwa-app version on my phone is 1.5.3 (1). I had thought updating would go automatically nowadays... anyhow, I'll do the update now by hand.

Concening the gap in downloads: The problem with "iPhone memory full" I have a few weeks already. When I can no longer make photos, or apps dont start anymore, I delete some photos / videos / apps a.s.o. until I have enogh space for some time.
The available space is reduced surprisingly fast though. Then I delete some more items.

I believe, all the time the available memory drops below a certain value the cwa-app turns off the "risk detection" ("Risiko-Ermittlung") or resets all together. I think - but I'm not 100% sure to reember correctly - I had to reactivate "Risiko-Ermittlung" at least once, and definitely had to do the "onbording thing" twice (the initial onbording after download not counted).

The last time I did the onbording process was on the 15.11. (NOT on 16.11.) Sinced than the app seemd working. I freed some memory in the morning of 16.11. though. I then called the app while writing the bug-report. It seems, that instance (16.11. 20:19) was the first time, new data was downloaded.

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Nov 17, 2020

I believe, all the time the available memory drops below a certain value the cwa-app turns off the "risk detection" ("Risiko-Ermittlung") or resets all together.

Mhh, could be possible. I remember an Issue which was opened some time ago where a user also complained about something similar. Unfortunatelly I can't find this anymore ):...

So or so, I'm sorry but this is all what I can do for you, I don't know if this is expected behavior or not, maybe @thomasaugsten could jump in here and take a deeper look at this.

Stay safe and healthy!

Edit: My assumption at the moment is that iOS at some point turned off the ENF (Exposure Notification Framework - The API which is used by CWA) and thus CWA stopped downloading new keys.
Why the App was completely reseted, I don't know but I don't think this is how it is supposed to be.

@dsarkar
Copy link
Member

dsarkar commented Nov 19, 2020

Hi @Pelikan3857,

Any chance you can update to the current CWA version and also the current iOS version?

Best wishes,
DS


Corona-Warn-App Open Source Team

@Pelikan3857
Copy link
Author

Hi DS,
I already updated to cwa 1.6.1, but iOS 14 seems not possible, because one is expected to have at least 890 Mbyte additional free storage space before installing. If I had that, I wouldn't waste it for iOS14.

Regards, Peter

@heinezen heinezen changed the title cwa-app resets when no more memory is available CWA resets when no more memory is available Nov 19, 2020
@heinezen heinezen added mirrored-to-jira This item is also tracked internally in JIRA and removed further input needed Issue requires more input from the creator to be processed good first issue labels Nov 19, 2020
@heinezen heinezen added the bug Something isn't working label Nov 19, 2020
@heinezen
Copy link
Member

Hey @Pelikan3857 ,

I have created a ticket in our internal Jira for your report (EXPOSUREAPP-3886). The dev team will now investigate the issue. Thank you for supporting the development with your feedback.

Regards,
CH


Corona-Warn-App Open Source Team

@Pelikan3857
Copy link
Author

Hi there,
one more observation:
my phone ran out of memory again. Yesterday I had 26Mbyte left. I startet the CWA-App, but it didn't come up, only the display went black for one or two seconds, than the desktop was there again.
Today I cleared some memory again, calld the app, and it had indeed reset once again. The Exposure-Check-Log this time was deleted as well. It only contained data from yesterday ranging from around 8:30 - 21:00.
Unfortunately I am not 100% sure when I started the app yesterday, but it may have been 8:30.
regards, Peter

@dsarkar
Copy link
Member

dsarkar commented Dec 7, 2020

@Pelikan3857, can you update to CWA version 1.7.1? Thanks for the feedback. Best wishes,
DS


Corona-Warn-App Open Source Team

@Pelikan3857
Copy link
Author

...yes I already have.
Still, I rearanged my iPhone and have of lot of free memory now, and no strange things happened to the app since then. So I'm afraid, I cant be of much help in that issue from now on.
Best regards

@Ein-Tim
Copy link
Contributor

Ein-Tim commented Dec 7, 2020

Okay... @dsarkar Were the devlopers able to reproduce this Issue?

@dsarkar
Copy link
Member

dsarkar commented Dec 8, 2020

@Ein-Tim, we will raise this issue and see if we can get some feedback.
Best wishes,
DS


Corona-Warn-App Open Source Team

@dsarkar
Copy link
Member

dsarkar commented Jan 5, 2021

@Ein-Tim, from development side no news on this issue.
@Pelikan3857,

When I called the cwa-app after that, it had lost all of its history-data and I had to restart the app.

What do you mean exactly? You reset the app (not deleted and re-installed) and then is said 1 of 14 days active instead of permanently active? If this is the case, my understanding is that the keys the phone collected are still present, but the CWA doest know that it was actually running since more than 14 days. This would not consist of a mayor problem, although message on screen a bit confusing.

Can we close this issue if no further problem exists on your side ?

@Pelikan3857
Copy link
Author

Hi dsarkar,
with: "I had to restart the app" I ment, the app reacted like being called for the very first time. After that it said "0 of 14 days active"

Yes, I do not have any furhter problem (with 13Gbyte aailable).

Still you might do the following:

  1. fill the iPhone memory so that only - lets say - 20 Mbyte are available.
  2. Try to call the app. The screen will probably go black for a few seconds, then the desktop will return (at least that happened to me)
  3. Free at least - -lest say - 200 Mbyte of memory (better more)
  4. Call the app again
  5. what happened to me: the app initialized again, and the it said "0 of 14 days active.

I admit, that is probably a rare and not so urgent condition. You have to decide, whether you want to solve this now, or maybe when all urget bugs have been solved.

@dsarkar
Copy link
Member

dsarkar commented Jan 5, 2021

@Pelikan3857, many thanks for your feedback, very much appreciated. I will forward all the information, and the developers will set priorities on on investigating and resolving the issues. Best wishes, DS

@heinezen
Copy link
Member

heinezen commented Jun 20, 2021

@Pelikan3857

We cannot reproduce this issue anymore and assume it is fixed. Can you check if it's still a problem for you?


Corona-Warn-App Open Source Team

@heinezen
Copy link
Member

heinezen commented Jul 6, 2021

I guess we'll close here since it is unlikely that the issue still exists if nobody else encounters it.


Corona-Warn-App Open Source Team

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working mirrored-to-jira This item is also tracked internally in JIRA
Projects
None yet
Development

No branches or pull requests

6 participants