part-cw / LNhealth

Health-related apps using the LambdaNative framework
http://lnhealth.lambdanative.org
Other
22 stars 3 forks source link

Android Sound #4

Open ddunsmuir opened 6 years ago

ddunsmuir commented 6 years ago

RRate for Android (installed from the store or built myself) crashes when sound would be played on a Lenovo Tab3 7inch Essential. If the tablet is muted it does not crash. I have been unable to reproduce on another Android tablet. I have created a log folder so that logs get generated but there is no error message in the logs. Any ideas?

mgorges commented 6 years ago

What errors do you get in the ADB log? Might be worth putting more logs into the audio hook to find out if it is a file location issues, permission issues, audio codec issue etc. Also try replacing the audio files with those of a different format, e.g. swap WAV with OGG.

ddunsmuir commented 6 years ago

Here's the ADB log from when RRate is started to the crash.

Putting more logs into RRate just revealed that it crashes after the third tap callback - not within the code triggered by the tap callback, but after it. Typically there is one breathing sound before it crashes. It does not seem to matter if you wait 5 seconds between taps.

I tried replacing the wav files with ogg files but this does not change the result. It still crashed.

adb_logcat.txt

mgorges commented 6 years ago

If it doesn't die immediately is might not be a sound problem? - Another idea might be to check if it is actually the vibration? Not sure which of these many lines are helpful, maybe these:

I/DefaultContextFactory( 6703): eglDestroyContext = 754, this = ca.bccw.rrate.xGLSurfaceView{299e9234 VFE..... .F....I. 0,0-600,976} E/ca.bccw.rrate( 6703): java.lang.IllegalStateException

Also can you rebuild it in Debug mode so we get the stack dumped when it dies?