QT5.4.0 the"cube" sample has error on android



  • my device is "XIAO MI PAD",
    Android version is 4.4.4KTU84P with MIUI 6.4.2
    GPU is Tegra K1

    when i debug the QT sample:"CUBE" on my pad, I got wrong result.
    logcat:

    Debugging starts
    D/dalvikvm(15152): Late-enabling CheckJNI
    I/dalvikvm-heap(15152): Grow heap (frag case) to 7.553MB for 112912-byte allocation
    D/dalvikvm(15152): Trying to load lib /data/data/org.qtproject.example.cube/lib/libgnustl_shared.so 0x41d469d0
    D/dalvikvm(15152): Added shared lib /data/data/org.qtproject.example.cube/lib/libgnustl_shared.so 0x41d469d0
    D/dalvikvm(15152): No JNI_OnLoad found in /data/data/org.qtproject.example.cube/lib/libgnustl_shared.so 0x41d469d0, skipping init
    D/dalvikvm(15152): Trying to load lib /data/data/org.qtproject.example.cube/lib/libQt5Core.so 0x41d469d0
    D/dalvikvm(15152): Added shared lib /data/data/org.qtproject.example.cube/lib/libQt5Core.so 0x41d469d0
    D/dalvikvm(15152): Trying to load lib /data/data/org.qtproject.example.cube/lib/libQt5Gui.so 0x41d469d0
    D/dalvikvm(15152): Added shared lib /data/data/org.qtproject.example.cube/lib/libQt5Gui.so 0x41d469d0
    D/dalvikvm(15152): No JNI_OnLoad found in /data/data/org.qtproject.example.cube/lib/libQt5Gui.so 0x41d469d0, skipping init
    D/dalvikvm(15152): Trying to load lib /data/data/org.qtproject.example.cube/lib/libQt5Widgets.so 0x41d469d0
    D/dalvikvm(15152): Added shared lib /data/data/org.qtproject.example.cube/lib/libQt5Widgets.so 0x41d469d0
    D/dalvikvm(15152): No JNI_OnLoad found in /data/data/org.qtproject.example.cube/lib/libQt5Widgets.so 0x41d469d0, skipping init
    D/dalvikvm(15152): Trying to load lib /data/data/org.qtproject.example.cube/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x41d469d0
    D/dalvikvm(15152): Added shared lib /data/data/org.qtproject.example.cube/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x41d469d0
    I/Qt (15152): qt start
    W/System.err(15152): java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable
    W/System.err(15152): at java.lang.Class.classForName(Native Method)
    W/System.err(15152): at java.lang.Class.forName(Class.java:251)
    W/System.err(15152): at java.lang.Class.forName(Class.java:216)
    W/System.err(15152): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:396)
    W/System.err(15152): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:100)
    W/System.err(15152): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:438)
    W/System.err(15152): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(15152): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err(15152): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
    W/System.err(15152): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    W/System.err(15152): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:895)
    W/System.err(15152): at android.app.Activity.performCreate(Activity.java:5245)
    W/System.err(15152): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    W/System.err(15152): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2160)
    W/System.err(15152): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
    W/System.err(15152): at android.app.ActivityThread.access$800(ActivityThread.java:139)
    W/System.err(15152): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1208)
    W/System.err(15152): at android.os.Handler.dispatchMessage(Handler.java:102)
    W/System.err(15152): at android.os.Looper.loop(Looper.java:136)
    W/System.err(15152): at android.app.ActivityThread.main(ActivityThread.java:5026)
    W/System.err(15152): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(15152): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err(15152): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:802)
    W/System.err(15152): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    W/System.err(15152): at dalvik.system.NativeStart.main(Native Method)
    W/System.err(15152): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/RippleDrawable
    W/System.err(15152): ... 25 more
    W/System.err(15152): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.drawable.RippleDrawable" on path: DexPathList[[zip file "/data/app/org.qtproject.example.cube-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.qtproject.example.cube-1, /vendor/lib, /system/lib]]
    W/System.err(15152): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    W/System.err(15152): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
    W/System.err(15152): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
    W/System.err(15152): ... 25 more
    W/System.err(15152): java.lang.ClassNotFoundException: android.graphics.drawable.AnimatedStateListDrawable
    W/System.err(15152): at java.lang.Class.classForName(Native Method)
    W/System.err(15152): at java.lang.Class.forName(Class.java:251)
    W/System.err(15152): at java.lang.Class.forName(Class.java:216)
    W/System.err(15152): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:396)
    W/System.err(15152): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:101)
    W/System.err(15152): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:438)
    W/System.err(15152): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(15152): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err(15152): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
    W/System.err(15152): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    W/System.err(15152): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:895)
    W/System.err(15152): at android.app.Activity.performCreate(Activity.java:5245)
    W/System.err(15152): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    W/System.err(15152): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2160)
    W/System.err(15152): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
    W/System.err(15152): at android.app.ActivityThread.access$800(ActivityThread.java:139)
    W/System.err(15152): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1208)
    W/System.err(15152): at android.os.Handler.dispatchMessage(Handler.java:102)
    W/System.err(15152): at android.os.Looper.loop(Looper.java:136)
    W/System.err(15152): at android.app.ActivityThread.main(ActivityThread.java:5026)
    W/System.err(15152): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(15152): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err(15152): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:802)
    W/System.err(15152): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    W/System.err(15152): at dalvik.system.NativeStart.main(Native Method)
    W/System.err(15152): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/AnimatedStateListDrawable
    W/System.err(15152): ... 25 more
    W/System.err(15152): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.drawable.AnimatedStateListDrawable" on path: DexPathList[[zip file "/data/app/org.qtproject.example.cube-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.qtproject.example.cube-1, /vendor/lib, /system/lib]]
    W/System.err(15152): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    W/System.err(15152): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
    W/System.err(15152): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
    W/System.err(15152): ... 25 more
    W/System.err(15152): java.lang.ClassNotFoundException: android.graphics.drawable.VectorDrawable
    W/System.err(15152): at java.lang.Class.classForName(Native Method)
    W/System.err(15152): at java.lang.Class.forName(Class.java:251)
    W/System.err(15152): at java.lang.Class.forName(Class.java:216)
    W/System.err(15152): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:396)
    W/System.err(15152): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:102)
    W/System.err(15152): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:438)
    W/System.err(15152): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(15152): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err(15152): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
    W/System.err(15152): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    W/System.err(15152): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:895)
    W/System.err(15152): at android.app.Activity.performCreate(Activity.java:5245)
    W/System.err(15152): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    W/System.err(15152): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2160)
    W/System.err(15152): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
    W/System.err(15152): at android.app.ActivityThread.access$800(ActivityThread.java:139)
    W/System.err(15152): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1208)
    W/System.err(15152): at android.os.Handler.dispatchMessage(Handler.java:102)
    W/System.err(15152): at android.os.Looper.loop(Looper.java:136)
    W/System.err(15152): at android.app.ActivityThread.main(ActivityThread.java:5026)
    W/System.err(15152): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(15152): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err(15152): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:802)
    W/System.err(15152): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    W/System.err(15152): at dalvik.system.NativeStart.main(Native Method)
    W/System.err(15152): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/VectorDrawable
    W/System.err(15152): ... 25 more
    W/System.err(15152): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.drawable.VectorDrawable" on path: DexPathList[[zip file "/data/app/org.qtproject.example.cube-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.qtproject.example.cube-1, /vendor/lib, /system/lib]]
    W/System.err(15152): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    W/System.err(15152): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
    W/System.err(15152): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
    W/System.err(15152): ... 25 more
    W/ResourceType(15152): Skipping entry 0x1080533 in package table 0 because it is not complex!
    I/dalvikvm-heap(15152): Grow heap (frag case) to 8.966MB for 1048592-byte allocation
    I/dalvikvm-heap(15152): Grow heap (frag case) to 9.786MB for 24-byte allocation
    D/dalvikvm(15152): GC_CONCURRENT freed 1301K, 14% free 8593K/9916K, paused 1ms+0ms, total 14ms
    D/dalvikvm(15152): GC_CONCURRENT freed 409K, 12% free 8816K/9916K, paused 2ms+1ms, total 8ms
    D/dalvikvm(15152): WAIT_FOR_CONCURRENT_GC blocked 1ms
    D/dalvikvm(15152): GC_FOR_ALLOC freed 367K, 9% free 9164K/10068K, paused 7ms, total 7ms
    D/dalvikvm(15152): GC_FOR_ALLOC freed 640K, 10% free 9578K/10532K, paused 7ms, total 7ms
    D/dalvikvm(15152): GC_CONCURRENT freed 1794K, 16% free 9688K/11504K, paused 2ms+1ms, total 10ms
    D/dalvikvm(15152): Trying to load lib /data/app-lib/org.qtproject.example.cube-1/libcube.so 0x41d469d0
    D/dalvikvm(15152): Added shared lib /data/app-lib/org.qtproject.example.cube-1/libcube.so 0x41d469d0
    D/dalvikvm(15152): No JNI_OnLoad found in /data/app-lib/org.qtproject.example.cube-1/libcube.so 0x41d469d0, skipping init
    I/Qt JAVA (15152): DEBUGGER: extra parameters: Bundle[{debug_ping=true, gdbserver_socket=/data/data/org.qtproject.example.cube/debug-socket, qml_debug=true, gdbserver_command=/data/data/org.qtproject.example.cube/lib/libgdbserver.so --multi +/data/data/org.qtproject.example.cube/debug-socket, load_local_jars=jar/QtAndroid-bundled.jar:jar/QtAndroidAccessibility-bundled.jar:, load_local_libs=plugins/platforms/android/libqtforandroid.so:, use_local_qt_libs=true, libs_prefix=/data/local/tmp/qt/, static_init_classes=:, qmljsdebugger=port:54781,block, ping_socket=org.qtproject.example.cube.ping_pong_socket}]
    I/Qt JAVA (15152): DEBUGGER: removing gdb socket /data/data/org.qtproject.example.cube/debug-socket
    I/Qt JAVA (15152): DEBUGGER: starting /data/data/org.qtproject.example.cube/lib/libgdbserver.so --multi +/data/data/org.qtproject.example.cube/debug-socket
    I/Qt JAVA (15152): DEBUGGER: gdbserver started
    I/Qt JAVA (15152): DEBUGGER: waiting for socket at /data/data/org.qtproject.example.cube/debug-socket, attempt 0
    I/Qt JAVA (15152): DEBUGGER: waiting for socket at /data/data/org.qtproject.example.cube/debug-socket, attempt 1
    I/Qt JAVA (15152): DEBUGGER: socket ok
    I/Qt JAVA (15152): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA (15152): DEBUGGER: go to sleep
    I/Qt JAVA (15152): DEBUGGER: Debug socket accepted
    I/Qt JAVA (15152): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA (15152): DEBUGGER: go to sleep
    I/Qt JAVA (15152): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA (15152): DEBUGGER: go to sleep
    I/Qt JAVA (15152): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA (15152): DEBUGGER: go to sleep
    I/Qt JAVA (15152): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA (15152): DEBUGGER: go to sleep
    I/Qt JAVA (15152): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA (15152): DEBUGGER: go to sleep
    I/Qt JAVA (15152): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA (15152): DEBUGGER: go to sleep
    Could not load shared library symbols for 93 libraries, e.g. /system/bin/linker.
    Use the "info sharedlibrary" command to see the complete listing.
    Do you need "set solib-search-path" or "set sysroot"?Unable to find dynamic linker breakpoint function.
    GDB will be unable to debug shared library initializers
    and track explicitly loaded dynamic code.I/Qt JAVA (15152): DEBUGGER: Waiting for debug socket connect
    I/Qt JAVA (15152): DEBUGGER: go to sleep
    I/Qt JAVA (15152): DEBUGGER: Incoming socket OK
    I/Qt JAVA (15152): DEBUGGER: Got pid acknowledgment
    I/Qt JAVA (15152): DEBUGGER: ping not requested
    I/Qt JAVA (15152): DEBUGGER: pong not requested
    D/libEGL (15152): loaded /system/lib/egl/libEGL_tegra.so
    I/ (15152): Attempting to load EGL implementation libEGL_tegra_impl
    I/ (15152): Loaded EGL implementation libEGL_tegra_impl
    D/libEGL (15152): loaded /system/lib/egl/libGLESv1_CM_tegra.so
    D/libEGL (15152): loaded /system/lib/egl/libGLESv2_tegra.so
    I/ (15152): Loading GLESv2 implementation libGLESv2_tegra_impl
    D/OpenGLRenderer(15152): Enabling debug mode 0
    W/ContextImpl(15152): Implicit intents with startService are not safe: Intent { act=com.nvidia.ControllerMapper.START_SERVICE } android.content.ContextWrapper.bindService:517 com.nvidia.ControllerMapper.MapperClient$ServiceClient.connect:587 com.nvidia.ControllerMapper.MapperClient.<init>:91
    W/ContextImpl(15152): Implicit intents with startService are not safe: Intent { act=com.nvidia.ControllerMapper.START_SERVICE } android.content.ContextWrapper.bindService:517 com.nvidia.ControllerMapper.MapperClient$ServiceClient.connect:587 com.nvidia.ControllerMapper.MapperClient.<init>:91
    W/Qt (15152): (null):0 ((null)): QEGLPlatformContext::swapBuffers(): eglError: 12301, this: 0x72431920
    W/Qt (15152):


Log in to reply
 

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