Skip to content

Crash on Android device #24

Description

@ljudbane

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.

Activity

  1. self-assigned this
    on Dec 2, 2021
  2. snyuryev commented on Dec 2, 2021

    @snyuryev
    Contributor

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

    We will try to reproduce your issue.

  3. ljudbane commented on Dec 3, 2021

    @ljudbane
    Author

    @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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions