Results 1 to 2 of 2

Thread: opensl es fatal problem on Android jni

  1. #1
    Newbie
    Join Date
    Mar 2016
    Posts
    1

    opensl es fatal problem on Android jni

    Hi, when I use android jni to call opensl es in android app, I get a fatal error when I destroy the player.
    The error is
    03-04 16:40:59.977 W/art ( 3315): Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[25,tid=3577,Native,Thread*=0xb4bdf000,peer=0x12f16 0a0,"Thread-24441"]

    It happened when I call the function Destroy(sys->playerObject); Can someone help? It seems as if there's a pthread exit in the function, how can I circumvent this error?

    ================================================== ================
    result = SetPlayState(sys->playerPlay, SL_PLAYSTATE_STOPPED);
    CHECK_OPENSL_ERROR("failed to SetPlayState SL_PLAYSTATE_STOPPED.");

    result = Clear(sys->playerBufferQueue);
    CHECK_OPENSL_ERROR("failed to Clear playerBufferQueue.");

    usleep(100000);
    Destroy(sys->playerObject);
    usleep(100000);
    sys->playerObject = NULL;

    Destroy(sys->outputMixObject);

  2. #2
    Newbie
    Join Date
    May 2016
    Posts
    1
    can you fix ?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean