4 Replies Latest reply on Sep 21, 2015 2:36 AM by bcd57e93-7e23-418b-a7ed-9ddb8ed95067

    Android : Crash when accessing Rho::System in a separate thread

    bcd57e93-7e23-418b-a7ed-9ddb8ed95067

      If i try to use a method from Rho::System, for example Rho::System.getProperty('device_name'), my app crash and i've got the messages :

      Rhodes| JNIEnv is not set for this thread!!!

      Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 27823 (com.mypackage.myapp)

       

      I have a workaround by getting my property in the main thread before entering in the new one but is it a normal behaviour? What are the rho methods we cannot called in a separate thread, there is a rule about that?

       

      Thanks

       

      Louis