CovPass crash at check validity country selection after travel rules update
See original GitHub issueTechnical details
- Device name: Samsung Galaxy A5 (2017) SM-A520F
- Android version: 8.0.0
- App version: 1.12.0
It is reproducible on other devices running Android 11 as well.
Describe the bug
CovPass crashes when attempting to select a country other than Germany in the validation screen if the travel rules have been updated.
Steps to reproduce the issue
In CovPass app
- Uninstall CovPass app
- Reinstall CovPass app from Google Play Store
- Enable flight mode
- Open CovPass app and run through onboarding
- Scan 2/2 vaccination certificate
- Tap “Check validity”
- Note message “Travel rules not up to date”
- Tap “Germany” in field “Country”
- Note that list of countries starting with “Albania” is displayed
- Close app via recent apps “Close all”
- Disable flight mode and ensure Internet availability
- Open CovPass app
- Tap “Check validity”
- Note that message “Travel rules not up to date” is no longer displayed
- Tap “Germany” in field “Country”
- App crashes
Expected behavior
- The app should not crash. It should allow selection of another country other than Germany.
- External data should not be able to crash the app. If there is an error in downloaded travel rules, it should cause an error message to be output and the app should fail gracefully.
Additional context
Logcat:
? E/AndroidRuntime: FATAL EXCEPTION: main
Process: de.rki.covpass.app, PID: 2515
android.content.res.Resources$NotFoundException: Drawable de.rki.covpass.app:drawable/flag_rs with resource ID #0x7f0700db
Caused by: android.content.res.Resources$NotFoundException: File res/Nw.xml from drawable resource ID #0x7f0700db
at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:837)
at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:659)
at android.content.res.Resources.getDrawableForDensity(Resources.java:891)
at android.content.res.Resources.getDrawable(Resources.java:833)
at android.content.Context.getDrawable(Context.java:605)
at androidx.core.content.a$c.b(Unknown Source:0)
at androidx.core.content.a.d(Unknown Source:6)
at androidx.appcompat.widget.m0.k(Unknown Source:16)
at androidx.appcompat.widget.m0.j(Unknown Source:2)
at h.a.d(Unknown Source:4)
at androidx.appcompat.widget.m.g(Unknown Source:8)
at androidx.appcompat.widget.n.setImageResource(Unknown Source:4)
at u8.d$a.O(Unknown Source:32)
at u8.d.D(Unknown Source:37)
at u8.d.l(Unknown Source:2)
at androidx.recyclerview.widget.RecyclerView$g.m(Unknown Source:0)
at androidx.recyclerview.widget.RecyclerView$g.c(Unknown Source:29)
at androidx.recyclerview.widget.RecyclerView$v.H(Unknown Source:39)
at androidx.recyclerview.widget.RecyclerView$v.I(Unknown Source:413)
at androidx.recyclerview.widget.RecyclerView$v.p(Unknown Source:5)
at androidx.recyclerview.widget.RecyclerView$v.o(Unknown Source:1)
at androidx.recyclerview.widget.LinearLayoutManager$c.d(Unknown Source:11)
at androidx.recyclerview.widget.LinearLayoutManager.s2(Unknown Source:0)
at androidx.recyclerview.widget.LinearLayoutManager.U1(Unknown Source:38)
at androidx.recyclerview.widget.LinearLayoutManager.X0(Unknown Source:356)
at androidx.recyclerview.widget.RecyclerView.E(Unknown Source:38)
at androidx.recyclerview.widget.RecyclerView.onMeasure(Unknown Source:65)
at android.view.View.measure(View.java:23300)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1514)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:806)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:685)
at android.view.View.measure(View.java:23300)
at androidx.core.widget.NestedScrollView.measureChildWithMargins(Unknown Source:38)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
at androidx.core.widget.NestedScrollView.onMeasure(Unknown Source:0)
at android.view.View.measure(View.java:23300)
at androidx.constraintlayout.widget.ConstraintLayout$c.b(Unknown Source:528)
at q0.b.a(Unknown Source:104)
at q0.b.b(Unknown Source:157)
at q0.b.d(Unknown Source:269)
at p0.f.H1(Unknown Source:23)
at androidx.constraintlayout.widget.ConstraintLayout.v(Unknown Source:135)
at androidx.constraintlayout.widget.ConstraintLayout.onMeasure(Unknown Source:71)
at android.view.View.measure(View.java:23300)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
at android.view.View.measure(View.java:23300)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
at androidx.appcompat.widget.ContentFrameLayout.onMeasure(Unknown Source:154)
at android.view.View.measure(View.java:23300)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1514)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:806)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:685)
at android.view.View.measure(View.java:23300)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
at android.view.View.measure(View.java:23300)
? W/ActivityManager: crash : de.rki.covpass.app,0
? W/ActivityManager: Force finishing activity de.rki.covpass.app/.main.MainActivity
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
CovPass - Apps on Google Play
The Robert Koch Institute (RKI), as the central institution of the Federal Government in the field of public health and as the national...
Read more >Converting the US CDC Vaccine card to EU Immunization ...
For getting the certificate online: There's currently no easy way. Previous methods below:.
Read more >Open-Source Project Corona-Warn-App – FAQ
Answers to frequently asked questions about the Corona-Warn-App.
Read more >Corona: Germany Measures of the Federal Government
Since Friday, further Corona restrictions have been abolished in many ... test or vaccination status are valid in a selected country at the ......
Read more >Global burden of road traffic accidents in older adults
Design and methods. A systematic literature review was conducted on 10 electronic databases for articles describing Road Traffic Accident(RTA) mortality in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, thank you for reporting the bug. We are analysing it and a hotfix version will be released soon.
Hello 😃 Thank you for reporting the bug! We already created a fix which now goes through the usual review processes. We are eager to put it out asap! Please bear with us.