Results 1 to 2 of 2

Thread: opensl es fatal problem on Android jni

  1. #1
    Newbie 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 Newbie
    Join Date
    May 2016
    Posts
    1
    can you fix ?

Similar Threads

  1. Android shader problem
    By TabsTheCat in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-24-2016, 07:55 AM
  2. OpenGL and Android Rendering problem
    By rainbow_guy in forum OpenGL ES
    Replies: 0
    Last Post: 10-11-2016, 08:44 PM
  3. OpenSL-ES race condition on Android Tegra devices
    By DanielVarela in forum OpenSL ES
    Replies: 0
    Last Post: 06-04-2013, 03:55 AM
  4. Android Color Buffer problem!!
    By lespaul in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-08-2013, 04:51 PM
  5. Can openSL ES 1.1 be ported on Android 2.3?
    By taro in forum OpenSL ES
    Replies: 1
    Last Post: 03-27-2012, 03:37 PM

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