I have been working on this problem for a long time. It usually happens when I am not attached to the computer.
The interface hangs and the there no more updates of ECG values.
The screen may go black.
I can turn the device on and off.
There is no message that it is an ANR.
I usually have to go to Running Programs and kill it.
It seems to often occur after about 280 sec of recording, but I have not kept track of the times. I tend to do 300 sec = 5 min recordings to look at HR and RR values, so it is frustrating.
It doesn't happen all the time (is not repeatable)
Today I managed to catch it while in Android Studio. The API is still running and logging messages continually, but I am not getting the callback. The API messages do not mean much to me, and I am attaching the output from the Run window in a text file. I am also attaching the relevant code in a text file.
It has been working for a long time. This problem is intermittent. It causes me to lose important data when it happens.
I was able to attach to the process. I do not see any locked threads, but there is little I can do beyond that. It is using Android Plot, which has internal thread locking, but the three plot thread are in WAIT. I am pretty sure sure I am handling the locking and unlocking correctly. (Usually it works.)
I believe I have finally found the cause of this intermittent handing. (After over a year.) It seems to be a race condition inside AndroidPlot. I am now pretty sure it is not the SDK, so I am closing this.
Platform on which you observed the bug:
Device on which you observed the bug:
I have been working on this problem for a long time. It usually happens when I am not attached to the computer.
Today I managed to catch it while in Android Studio. The API is still running and logging messages continually, but I am not getting the callback. The API messages do not mean much to me, and I am attaching the output from the Run window in a text file. I am also attaching the relevant code in a text file.
It has been working for a long time. This problem is intermittent. It causes me to lose important data when it happens.
I was able to attach to the process. I do not see any locked threads, but there is little I can do beyond that. It is using Android Plot, which has internal thread locking, but the three plot thread are in WAIT. I am pretty sure sure I am handling the locking and unlocking correctly. (Usually it works.)
Ke-Net-2023-02-20-Hang.txt Ke-Net-2023-02-20-Code.txt