android
android copied to clipboard
Microsoft cognitiveservices crashed in worker
Environment ✔ Getting NativeScript components versions information... ✔ Component nativescript has 6.4.1 version and is up to date. ✔ Component tns-core-modules has 6.4.2 version and is up to date. ✔ Component tns-android has 6.4.1 version and is up to date. ✔ Component tns-ios has 6.4.2 version and is up to date.
Describe the bug I am implementing cognitiveservices for NativeScript android. It's working fine but when I am navigating to another page & come back to previous page that time during use of the service got crash on real device (Samsung s7 edge). It's working fine with emulator but crashing in real device.
To Reproduce
Please check the attached project file. Click on Navigate & play or record. Then back to previous page & click again on Navigate to go. Now check the service & it will crash the APP. Same scenario is working fine with iOS.
Expected behavior Should work as iOS
Sample project Archive_2.zip
I am unable to reproduce the crash on my device. Could you send the adb log of the crash?
@darind thanks for reply. Here is the log logcat.txt
@darind any findings? It's not showing any error message on crash. Just closing APP.
@jibon57, unfortunately I am not able to reproduce the crash and the log dump doesn’t seem to contain any error message which could be helpful.
You can try commenting out portions of your code until you are able to narrow down the crash to some specific instruction.
@darind , I have noticed like this:
When I enter to that page & click on play for Speech synthesis it's working & back to previous page. After re-enter click to play. It's still working. But if I click on record to voice recognition that time APP is getting close without showing any error. So, it's like if I am doing same things I mean only record to voice recognition or play to Speech synthesis each time then it's working fine. If I do different thing then APP get crash.