Crash: Resources.NotFoundException in GoogleCalendarIcon.getDrawable
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- mobile-dev
Research direction
The crash comes from GoogleCalendarIcon.getDrawable in fr.neamar.kiss.ui, which only catches NameNotFoundException. Start by reading that method around line 36 and the ResourcesCompat.getDrawable call, then look at how SystemIconPack.getComponentDrawable reaches it. Done when a Resources.NotFoundException from the day icon falls back to the regular calendar icon without crashing.
Written by the indexing model from the issue text.
Description
| Type | Crash |
| Affected users (last 30 days) | 1 |
| Reports (last 30 days) | 4 |
| App versions | 226 |
| Android API levels | 22 |
| Sample device | Lenovo K5, API 22, v226 |
Play Console issue ID: 7a41fe5499fddb8ee41f0fc021bbc2ff
android.content.res.Resources$NotFoundException
at android.content.res.Resources.getDrawable (Resources.java:802)
at androidx.core.content.res.ResourcesCompat.getDrawable (ResourcesCompat.java:136)
at fr.neamar.kiss.ui.GoogleCalendarIcon.getDrawable (GoogleCalendarIcon.java:36)
at fr.neamar.kiss.icons.SystemIconPack.getComponentDrawable (SystemIconPack.java:62)
at fr.neamar.kiss.IconsHandler.getDrawableIconForPackage (IconsHandler.java:252)
at fr.neamar.kiss.result.AppResult.getDrawable (AppResult.java:303)
The Google Calendar metadata points to a day icon resource that can't be loaded on this device. GoogleCalendarIcon.getDrawable only catches NameNotFoundException, so the Resources.NotFoundException crashes the icon loading task. Falling back to the regular icon would be enough. Unchanged on master.
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 664
- Avg merge
- 21h 40m
- Merged PRs (30d)
- 106
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Neamar/KISS
-
crash
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
crash
Difficulty 3/5 1-2 days Newbie friendliness 42/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Maintainers usually reply within 1 day
-
RFC: shortcutsOpen
Difficulty 4/5 Over a week Newbie friendliness 12/100
Neamar/KISS#2737 · 10 comments ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Modern `HttpServletMcpTransport` does not check `Mcp-Name` when `params.name` or `params.uri` is not a JSON stringPossibly taken @starryeye claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
modelcontextprotocol/java-sdk#1352 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
account bug course exam iris lecture
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day