Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on Android device #24

Open
ljudbane opened this issue Dec 2, 2021 · 2 comments
Open

Crash on Android device #24

ljudbane opened this issue Dec 2, 2021 · 2 comments
Assignees

Comments

@ljudbane
Copy link

ljudbane commented Dec 2, 2021

Sometimes when running project on Android device, the app will crash as soon as Alan button is initialized. It doesn't happen regularly - on the same device it will sometimes work and sometimes crash. This behaviour was observed when running ionic debug build from Android studio to physical Android device (NOKIA 8 TA-1004, running Android 9).

When crash happens, we have observed 2 different errors in Android Studio's run log.

  1. Exception with stack trace:
    E/AndroidRuntime: FATAL EXCEPTION: Thread-10
    Process: xx.app, PID: 26930
    java.lang.IllegalThreadStateException
    at java.lang.Thread.start(Thread.java:724)
    at com.alan.alansdk.alanbase.recorder.AlanRecorder.startRecording(AlanRecorder.java:30)
    at com.alan.alansdk.Alan.record(Alan.java:143)
    at com.alan.alansdk.Alan.onDialogStateChanged(Alan.java:408)

crash1-edit.txt

  1. Single error message (not sure if it's the cause of crash, but it's not present in log when it doesn't crash):
    E/AudioRecord: start() status -38

crash2-edit.txt

If there's any other information we can provide that will help you locate the problem, please tell us.

@snyuryev snyuryev self-assigned this Dec 2, 2021
@snyuryev
Copy link
Contributor

snyuryev commented Dec 2, 2021

Hey @ljudbane
Do you have crash on different device or emulator?

We will try to reproduce your issue.

@ljudbane
Copy link
Author

ljudbane commented Dec 3, 2021

@snyuryev This only happened on one specific device (Nokia 8). We have tested on some other Android devices but could not reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants