showStatusIcon on inactive InputConnection



  • Hi, I have this error: showStatusIcon on inactive InputConnection, Someone help me?

    Thanks a lot


  • Lifetime Qt Champion

    Hi,

    Can you give a bit more information ? e.g. Where does showStatusIcon come from ?



  • @SGaist Now this message always appears, also when I compile 'Hello world' :/
    This is the message:

    (...)
    I/Choreographer( 3595): Skipped 79 frames! The application may be doing too much work on its main thread.
    W/IInputConnectionWrapper( 3595): showStatusIcon on inactive InputConnection
    D/dalvikvm( 3595): GC_FOR_ALLOC freed 321K, 13% free 9654K/11015K, paused 14ms, total 14ms
    I/dalvikvm-heap( 3595): Grow heap (frag case) to 11.266MB for 1048592-byte allocation
    D/dalvikvm( 3595): GC_CONCURRENT freed 5K, 12% free 10673K/12103K, paused 15ms+10ms, total 60ms
    D/dalvikvm( 3595): WAIT_FOR_CONCURRENT_GC blocked 46ms
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3595
    D/HAWAII_EGL( 3595): eglDestroySurface() surface: 0x4fcf7eb0, android window 0x4fcfbff0, Thread: 3595
    D/HAWAII_EGL( 3595): Set SWAP INTERVAL 0
    D/HAWAII_EGL( 3595): eglCreateWindowSurface() surface: 0x4fcfbd78, VC surface: 2, Thread: 3595
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x4fcf8388, 0x4fcfbd78, 0x4fcfbd78) Thread: 3595
    I/Choreographer( 3595): Skipped 71 frames! The application may be doing too much work on its main thread.
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x4fcf8388, 0x51b6b2f0, 0x51b6b2f0) Thread: 3595
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3595
    D/HAWAII_EGL( 3595): eglCreateContext() config: 39 context: 0x51b6a980, VC context 2, Thread 3765
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x51b6a980, 0x5198e098, 0x5198e098) Thread: 3765
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3765
    E/HAWAII_EGL( 3595): Destroying surface without window
    D/HAWAII_EGL( 3595): Set SWAP INTERVAL 0
    D/HAWAII_EGL( 3595): eglCreateWindowSurface() surface: 0x4fcfc410, VC surface: 5, Thread: 3951
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x51b6a980, 0x4fcfc410, 0x4fcfc410) Thread: 3951
    W/IInputConnectionWrapper( 3595): getSelectedText on inactive InputConnection
    W/IInputConnectionWrapper( 3595): setComposingText on inactive InputConnection
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x4fcf8388, 0x4fcfbd78, 0x4fcfbd78) Thread: 3595
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3951
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x51b6a980, 0x4fcfc410, 0x4fcfc410) Thread: 3951
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3951
    D/HAWAII_EGL( 3595): eglDestroyContext() context: 0x51b6a980, VC context: 2, Thread 3951
    D/HAWAII_EGL( 3595): eglDestroySurface() surface: 0x4fcfc410, android window 0x51b69880, Thread: 3765
    W/Qt ( 3595): androidjnimain.cpp:546 (void setSurface(JNIEnv*, jobject, jint, jobject, jint, jint)): Can't find surface 1
    W/SurfaceView( 3595): CHECK surface infomation creating=false formatChanged=false sizeChanged=false visible=false visibleChanged=true surfaceChanged=true realSizeChanged=false redrawNeeded=false left=false top=false
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3595
    D/HAWAII_EGL( 3595): eglDestroySurface() surface: 0x4fcfbd78, android window 0x51b69278, Thread: 3595
    D/HAWAII_EGL( 3595): eglMakeCurrent(0x4fcf8388, 0x51b6b2f0, 0x51b6b2f0) Thread: 3595
    D/HAWAII_EGL( 3595): eglMakeCurrent(NULL) Thread: 3595

    "org.qtproject.example.untitled" died.


  • Lifetime Qt Champion

    Did you change your Android version in between ?



  • @SGaist No, I didn't..


  • Lifetime Qt Champion

    Which version of Qt are you using ?



  • @SGaist I use Qt 5.3.2


  • Lifetime Qt Champion

    Did you check if you have the same happening 5.4 ?



  • @SGaist No, but you think that the problem could be the version?


  • Lifetime Qt Champion

    It might, so it's always worth trying the latest



  • @SGaist

    Thanks for your help!

    I installed the Qt 5.4.1. I just tried to transfer the application 'Hello world' but now appears many mistakes I've never seen before, like this:

    W/System.err(26630): java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable
    W/System.err(26630): at java.lang.Class.classForName(Native Method)
    W/System.err(26630): at java.lang.Class.forName(Class.java:217)
    W/System.err(26630): at java.lang.Class.forName(Class.java:172)
    W/System.err(26630): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:396)
    W/System.err(26630): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:100)
    W/System.err(26630): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:438)
    W/System.err(26630): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(26630): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err(26630): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
    W/System.err(26630): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    W/System.err(26630): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:895)
    W/System.err(26630): at android.app.Activity.performCreate(Activity.java:5207)
    W/System.err(26630): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
    W/System.err(26630): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2085)
    W/System.err(26630): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2146)
    W/System.err(26630): at android.app.ActivityThread.access$700(ActivityThread.java:140)
    W/System.err(26630): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238)
    W/System.err(26630): at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err(26630): at android.os.Looper.loop(Looper.java:177)
    W/System.err(26630): at android.app.ActivityThread.main(ActivityThread.java:4947)
    W/System.err(26630): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(26630): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err(26630): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
    W/System.err(26630): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
    W/System.err(26630): at dalvik.system.NativeStart.main(Native Method)
    W/System.err(26630): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/RippleDrawable
    W/System.err(26630): ... 25 more
    W/System.err(26630): Caused by: java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable
    W/System.err(26630): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
    W/System.err(26630): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    W/System.err(26630): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    W/System.err(26630): ... 25 more
    W/System.err(26630): java.lang.ClassNotFoundException: android.graphics.drawable.AnimatedStateListDrawable
    W/System.err(26630): at java.lang.Class.classForName(Native Method)
    W/System.err(26630): at java.lang.Class.forName(Class.java:217)
    W/System.err(26630): at java.lang.Class.forName(Class.java:172)
    W/System.err(26630): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:396)
    W/System.err(26630): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:101)
    W/System.err(26630): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:438)
    W/System.err(26630): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(26630): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err(26630): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
    W/System.err(26630): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    W/System.err(26630): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:895)
    W/System.err(26630): at android.app.Activity.performCreate(Activity.java:5207)
    W/System.err(26630): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
    W/System.err(26630): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2085)
    W/System.err(26630): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2146)
    W/System.err(26630): at android.app.ActivityThread.access$700(ActivityThread.java:140)

    and the list goes on..

    Do you know what can be?

    thank you for your patience with me! :)


  • Lifetime Qt Champion

    What version of android are you using ? NDK ? SDK ? Java ?



  • Hi,

    I switch from QT 5.3.2 to 5.4.1 and now I have the same "ClassNotFoundException: android.graphics.drawable.RippleDrawable" error when running my application on my phone (android 4.1.1).
    It's a new class added in android API level 21.

    I don't know why this class is used because I have the following line in my android manifest :
    <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="17"/>

    I don't know how specified android version for Qt. The generated json file (android-libYourApplication.so-deployment-settings.json) used by androiddeployqt for deployment has the property :
    "sdkBuildToolsRevision": "21.1.2"


  • Lifetime Qt Champion

    Do you have that API level installed in your developer setup ?



  • OK, I have installed android sdk 16 and now I have android-16 in the android build SDK list in application setup.
    I thought the last android SDK contained all previous version for compatibility... I was wrong.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.