corona-warn-app / cwa-app-android

Native Android app using the Apple/Google exposure notification API. The CWA development ends on May 31, 2023. You still can warn other users until April 30, 2023. More information:
https://coronawarn.app/en/faq/#ramp_down
Apache License 2.0
2.44k stars 495 forks source link

Application 1.6.0 crashes on startup - MediaTek bug #1609

Closed openmindculture closed 3 years ago

openmindculture commented 3 years ago

The current android version keeps crashing on startup. Steps to reproduce: touch the app icon. After showing a splash screen for a few seconds, the app closes without further notice. Earlier versions of the app did work on the same phone. Android systems settings report that corona risk detection is active and that the German Corona Warn App is assigned to manage them. Bluetooth and location service is activated. Error keeps recurring also after restarting the device.

App version: 1.6.0 (updated using google play store on 9 November 2020). Android version: 7.0 (security patch 1 December 2018) Kernel 3.18.35+jslave@WUH1000074104 #3 Hardware: Huawei Honor JMM-L22 Build JMM-L22C432B136 EMU-Version 5.1.3

Avoid duplicates

Describe the bug

Expected behaviour

Steps to reproduce the issue

Technical details

Possible Fix

Additional context


Internal Tracking ID: EXPOSUREAPP-3847

ghost commented 3 years ago

Well, @thomasaugsten gave me an apk link for the 1.8 eval, which I'm testing now, and it updates once a day via wlan (wifi), as I'm used to.

vaubaehn commented 3 years ago

apk link

Aha 😁

d4rken commented 3 years ago

We've bought a Sony Xperia XA, which is one of the most affected device by this issue. I'm currently trying to find a reliable reproduction case such that I can attempt to experiment with different solutions for this issue.

rsudev commented 3 years ago

Not sure if this might be of help, but reading 'optimization' and 'mediatek' triggered me. We (the developers of c:geo) were already hit by an issue in the mediatek jit engine in 2015 (which is AFAIK still not fixed). We were able to mitigate that for the affected users by switching JIT off (adding android:vmSafeMode="true" to the manifest). If you are interested, https://github.com/cgeo/cgeo/issues/4097 gives you our full story.

HilRick5 commented 3 years ago

@d4rken okay, let's continue our conversation started under #1731 in this thread here. Thanks for your explanations.

Actually, I tried a few reinstallations of the app (1.7.0 and 1.7.1) before I did the system upgrade. All with the same result: App closes a few seconds after start. After the system update all apps were gone, so I had to reinstall all apps including cwa of course.

The first start of the app showed the following screens: "Gemeinsam Corona bekämpfen"->"Datenschutz"->"Wie Sie die Risiko-Ermittlung ermöglichen"->"COVID-19-Benachrichtigungen aktivieren?"->"Falls Sie Corona-positiv getestet werden..."->"Warnungen erhalten, Risiken erkennen" -> "Corona-Warn wurde beendet"

After that the app always crashes about 4 seconds after starting it. This can be changed by deleting the app data via "Einstellungen"-> "Apps"->"Corona-Warn"->"Speicher"->"Daten löschen". After that the app starts like during the first start as described above. However, this also appears to delete my previous contacts (under Einstellungen->Google->COVID-19-Benachrichtigungen->).

Perhaps I should mention that the system update did not work from inside Android via menu "->Einstellungen->Über das Telefon->Systemaktualisierung". That method stuck somewhere during the process and did not complete. After a reboot the system appeared unchanged. Therefore I had to use the flashtool. Would you expect that the app optimizations that you mentioned would also occur with the flashtool method ? My understanding is that this flashes a fresh image without any apps installed.

I attach 2 screenshots of the flashtool. Do you think unchecking "userdata" would help to avoid that I have to reinstall all apps after the flashing process ? Download about

dsarkar commented 3 years ago

Feedback from developers: Fixed in 1.9. Best, DS


Corona-Warn-App Open Source Team

dsarkar commented 3 years ago

Dear community,

In order to be more specific regarding the previous post https://github.com/corona-warn-app/cwa-app-android/issues/1609#issuecomment-744321362: There are several PRs that possibly mitigate the issue, but not necessarily fixes this problem for all users.

We would appreciate feedback regarding this issue after the rollout of releases 1.8 or 1.9.

Thank you for your understanding. Best wishes, DS


Corona-Warn-App Open Source Team

ghost commented 3 years ago

I've tested the 1.8 Eval, and it seems to be fine for me. (Hardware: Huawei Honor JMM-L22, Build JMM-L22C432B136, EMU-Version 5.1.3, Android 7.0)

@thomasaugsten asked me to start testing the 1.9 Eval - I started with that today.

CC: @dsarkar

dsarkar commented 3 years ago

@Yanabamenara, thanks for letting us know! DS

jmw168 commented 3 years ago

I have the same Problem with Android 7 and the cwa 1.7.1 on a Moto C Plus. The app works in the background but crashes whenever I try to open the user interface. If anyony could tell me, where I find the apk-links to the eval version, I would test if the updates work for me.

dsarkar commented 3 years ago

Hi @jmw168,

Thanks for reporting. see https://github.com/corona-warn-app/cwa-app-android/issues/1609#issuecomment-744403230.

Best wishes, DS


Corona-Warn-App Open Source Team

HilRick5 commented 3 years ago

Hi @dsarkar , @d4rken , just received the app update. cwa 1.9.1 solved the issue on my Cubot Kingkong running with Android 1.7.1 Thanks ! HR

dsarkar commented 3 years ago

Hi@HilRick5. Thanks for the feedback. We will forward this feedback to the developers. Best wishes, DS


Corona-Warn-App Open Source Team

dsarkar commented 3 years ago

Hi @jmw168, @JHKobarg, @openmindculture, and community,

We would appreciate feedback on this issue. Did CWA 1.9.1 mitigate the problem for you? Thanks. DS


Corona-Warn-App Open Source Team

openmindculture commented 3 years ago

Installed CWA 1.9.1 from Google Play Store yesterday and have been keeping the charger on all night for about 11 hours now. Restarted the phone this morning. The app is still working fine. The error did not occur again until now.

dsarkar commented 3 years ago

@openmindculture, thanks for the feedback, will forward the info to devs. DS

Batterypack200 commented 3 years ago

I can confirm that version 1.9.1 doesn't seem to have the bug anymore. I also charged overnight and so far there has been no more crash. Moto E4

jmw168 commented 3 years ago

I installed version 1.9.1 yesterday and till now there was no crash.

dsarkar commented 3 years ago

@jmw168, @Batterypack200, thanks for the feedback, will forward the info to devs. DS

heinezen commented 3 years ago

No further negative reports on this. The bug seems to be fixed for everyone who upgraded to 1.9. We'll close the isse then.


Corona-Warn-App Open Source Team