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.

Crash db occurrence when deleting provisioned node

See original GitHub issue

Describe the bug Randomly when deleting a provisioned node this exception occurs:

09-02 12:23:24.361  4289 11754 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground()
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at android.os.AsyncTask$4.done(AsyncTask.java:399)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at java.util.concurrent.FutureTask.run(FutureTask.java:271)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:919)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: Caused by: java.util.ConcurrentModificationException
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at java.util.ArrayList$Itr.next(ArrayList.java:860)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1089)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at androidx.room.EntityDeletionOrUpdateAdapter.handleMultiple(EntityDeletionOrUpdateAdapter.java:86)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at no.nordicsemi.android.meshprovisioner.data.ProvisionedMeshNodesDao_Impl.update(ProvisionedMeshNodesDao_Impl.java:315)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at no.nordicsemi.android.meshprovisioner.MeshNetworkDb$UpdateNetworkAsyncTask1.doInBackground(MeshNetworkDb.java:418)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at no.nordicsemi.android.meshprovisioner.MeshNetworkDb$UpdateNetworkAsyncTask1.doInBackground(MeshNetworkDb.java:385)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at android.os.AsyncTask$3.call(AsyncTask.java:378)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
09-02 12:23:24.361  4289 11754 E AndroidRuntime: 	... 4 more

To Reproduce Steps to reproduce the behavior:

  1. Delete a provisioned node

Expected behavior Node successfully removed from mesh db

Platform details:

  • OS: [e.g. Android 8.0]
  • Library Version (or Commit): meshprovisioner: 2.1.4 ble:2.1.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
Eklow02commented, Aug 3, 2021

Is there an update for this bug? I still get the error (version 3.1.6)

0reactions
Eklow02commented, Feb 18, 2021

I just want to delete a Node from the network. The error is happen very randomly. Therefore, I myself do not know exactly when this is happening. Maybe I get a notification from somewhere and the library is trying to update the network and in the same time I’m trying to delete the node

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash during node or link delete operation · Issue #129 - GitHub
Crash happens if push consecutive 'x' key Reproduction steps with links. create multiple nodes. connect the links between the nodes select a ...
Read more >
[Solved]-Core Data/NSOperation: crash while enumerating through ...
Since items in the collection are being marked as deleted during the enumeration, the possibility exists that some of the collection will 'change'...
Read more >
Backend crashes without an error while deleting from Mongo
I'm using React, Mongo, Express, Node. PatientDetails.js. This is how I fetch a specific patient when opening the details card. useEffect(() => ...
Read more >
Troubleshoot common connection issues to Azure SQL ...
The issue can occur because of insert, update, or delete operations. Try to reduce the number of rows that are operated on immediately...
Read more >
Amazon Elasticache FAQs - Amazon Web Service
The Amazon ElastiCache APIs for creating, modifying, and deleting nodes do not distinguish between On-Demand and Reserved Nodes so that you can seamlessly...
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