Crash: ConcurrentModificationException in DataHandler.getPojo from HistorySearcher
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- mobile-dev
Research direction
The crash trace points to DataHandler.getPojo (DataHandler.java around line 969), called from getHistory (line 363) and run by HistorySearcher.doInBackground (line 82). Read how DataHandler.providers is iterated and where providers.put and providers.remove are called from settings and bind/unbind code. Done means the background iteration can no longer race with main-thread mutation, for example by iterating a snapshot or using a concurrent collection, and the crash no longer reproduces.
Written by the indexing model from the issue text.
Description
| Type | Crash |
| Affected users (last 30 days) | 1 |
| Reports (last 30 days) | 1 |
| App versions | 226 |
| Android API levels | 29 |
| Sample device | Redmi 9, API 29, v226 |
Play Console issue ID: 8ae271dbf97a4619a51f9add38d09027
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode (HashMap.java:1441)
at java.util.HashMap$ValueIterator.next (HashMap.java:1470)
at fr.neamar.kiss.DataHandler.getPojo (DataHandler.java:969)
at fr.neamar.kiss.DataHandler.getHistory (DataHandler.java:363)
at fr.neamar.kiss.searcher.HistorySearcher.doInBackground (HistorySearcher.java:82)
HistorySearcher iterates DataHandler.providers (a plain HashMap) on a background thread while the main thread adds or removes providers (providers.put / providers.remove when a provider is bound, unbound or toggled in settings). 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
-
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
-
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