question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CovPass crash at check validity country selection after travel rules update

See original GitHub issue

Technical 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

  1. Uninstall CovPass app
  2. Reinstall CovPass app from Google Play Store
  3. Enable flight mode
  4. Open CovPass app and run through onboarding
  5. Scan 2/2 vaccination certificate
  6. Tap “Check validity”
  7. Note message “Travel rules not up to date”
  8. Tap “Germany” in field “Country”
  9. Note that list of countries starting with “Albania” is displayed
  10. Close app via recent apps “Close all”
  11. Disable flight mode and ensure Internet availability
  12. Open CovPass app
  13. Tap “Check validity”
  14. Note that message “Travel rules not up to date” is no longer displayed
  15. Tap “Germany” in field “Country”
  16. App crashes

Expected behavior

  1. The app should not crash. It should allow selection of another country other than Germany.
  2. 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:closed
  • Created 2 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
pucherdcommented, Nov 16, 2021

Hello, thank you for reporting the bug. We are analysing it and a hotfix version will be released soon.

2reactions
JilAurayacommented, Nov 18, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found