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 app in sendBlockAck

See original GitHub issue

Describe the bug When the library receives a segmented message that needs a block ack from an unknown node, the app will crash due to a NullPointerException.

To Reproduce Steps to reproduce the behavior:

  1. provision two nodes to the network
  2. manually delete one node from the database without sending a ConfigNodeReset
  3. connect to the second node of this network
  4. make the first node to send a message that makes the library to trigger block ack answer

Expected behavior Probably log some warning that the node is unknown instead of trying to send a block ack ?

Platform details:

  • Device: Any
  • OS: Android 8.0
  • Library Version 3.1.6

Logs / Screenshots image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
roshanrajaratnamcommented, Feb 15, 2022

I gave this a test now and I am not able to reproduce this, I used the mesh chat example from the nRF Connect SDK where you can send a long message to a specific node. The fix from #461 have solved the issue in my humble opinion.

0reactions
R0m4in-doozcommented, Feb 14, 2022

Hello @roshanrajaratnam ! Unfortunately I’m not able to test it as of now…but as I explained earlier in this ticket, it’s pretty easy to reproduce as long as you have two phones and two nodes. I may have time to test next week tho 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

nRF Mesh Crashes on Android when receiving Mesh ...
I have additional logs, it appears to crash in the nordic mesh library. no.nordicsemi.android.mesh.transport.LowerTransportLayer.sendBlockAck( ...
Read more >
app crash on iOS 16.1(beta) when u… - Apple Developer
My app was built with XCode13 and we are now seeing occasional crashes on iOS16.1 (beta). This exception occurs when using the method:....
Read more >
How to Fix Crashing Apps on an iPhone or Android?
10 Solutions to fix App Crashes and Keep Apps Running: For Apple iPhone, Samsung Galaxy, LG, Lenovo and Sony Xperia smartphones. If you've...
Read more >
The app crashes, what should I do? - Welltory Help Center
The app crashes, what should I do? ... Quick fix: in most cases, it helps to delete the app, restart the smartphone, and...
Read more >
Detect and diagnose crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
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