Affirmatech / MeshSense

MeshSense directly connects to your Meshtastic node via Bluetooth or WiFi and continuously provides information to assess the health of your mesh network.
https://affirmatech.com/meshsense
GNU General Public License v3.0
40 stars 6 forks source link

App Crash on M1 Mac Mini #16

Open TheAZtech opened 1 month ago

TheAZtech commented 1 month ago

App crashes after a few moments. Included is the Console file for the crash report. MeshSence Helper.txt

Soltares commented 1 month ago

Thank you for the report! We have had similar reports regarding bluetooth on Mac systems can cause problems and that disabling the adapter can get the application to run. I found that the simpleble library will throw an unhandled exception inside a setTimeout if it is unable to initiate a bluetooth scan causing the application to crash.

I am considering implementing a catch-all process.on('unhandledException') since this problem is seemingly inside 3rd party library code, but I know this isn't the greatest practice. A try/catch block won't work as the exception occurs in a setTimeout call from webbluetooth.

Soltares commented 6 days ago

@TheAZtech Can you please confirm if this crash continues to occur in the latest MeshSense version (1.0.15)

Some code was added to prevent crashing particularly when the OS doesn't want to share access to the bluetooth adapter.

TheAZtech commented 4 days ago

@Soltares Thank you for looking into this. I updated the app and I am still seeing it crash anytime anything is touched here. (took me three tries to get this screen shot) Screenshot 2024-10-31 at 9 21 35 AM it is also sporadically crashing if just left alone, I am able to click just about everywhere with no issue, until I touch this area.

EDIT: unless it just needed to work out its bugs, it seems to be working after a few minutes and a half dozen crashes. I will post more if any other issues arise.

Screenshot 2024-10-31 at 9 31 01 AM