Even after changing the source code, the application doesn't update when debugging on the physical device and keeps debugging the old code.
Issue log:
--------- beginning of system
--------- beginning of crash
--------- beginning of main
2022-08-19 23:38:10.699 11917-11917 studio.deploy pid-11917 E Could not get package user id: run-as: unknown package: com.example.todo
2022-08-19 23:38:10.732 11917-11917 studio.deploy pid-11917 E Could not find apks for this package: com.example.todo
2022-08-19 23:38:10.983 11917-11917 studio.deploy pid-11917 E Could not get package user id: run-as: unknown package: com.example.todo
2022-08-19 23:38:11.012 11917-11917 studio.deploy pid-11917 E Could not find apks for this package: com.example.todo
2022-08-19 23:38:14.015 1323-1732 VerityUtils system_server E Failed to measure fs-verity, errno 1: /data/app/~~0IRjR1rweYuG9z-ALmLwhg==/com.example.todo-th6zW0_OOBa1h4_gTqo8xA==/base.apk
2022-08-19 23:38:19.518 6371-6371 FinalizerDaemon com.example.todo W type=1400 audit(0.0:539): avc: denied { getopt } for path="/dev/socket/usap_pool_primary" scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0 app=com.example.todo
2022-08-19 23:38:20.727 6371-12107 ProfileInstaller com.example.todo D Installing profile for com.example.todo
2022-08-19 23:39:52.416 6371-12095 AdrenoGLES-0 com.example.todo I QUALCOMM build : 03dd3ba, I13854cb805
Build Date : 10/28/20
OpenGL ES Shader Compiler Version: EV031.32.02.02
Local Branch : mybrancheb191cbf-5661-f183-9b13-08f1eafda2d8
Remote Branch : quic/gfx-adreno.lnx.1.0.r122-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
2022-08-19 23:39:52.416 6371-12095 AdrenoGLES-0 com.example.todo I Build Config : S L 10.0.7 AArch64
2022-08-19 23:39:52.416 6371-12095 AdrenoGLES-0 com.example.todo I Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
2022-08-19 23:39:52.559 6371-12095 AdrenoGLES-0 com.example.todo I PFP: 0x005ff114, ME: 0x005ff066
2022-08-19 23:39:52.656 6371-12304 Gralloc4 com.example.todo I mapper 4.x is not supported
2022-08-19 23:39:52.657 6371-12304 Gralloc3 com.example.todo W mapper 3.x is not supported
2022-08-19 23:39:52.667 6371-12304 Gralloc4 com.example.todo W allocator 4.x is not supported
2022-08-19 23:39:52.669 6371-12304 Gralloc3 com.example.todo W allocator 3.x is not supported
2022-08-19 23:39:52.670 6371-12304 Gralloc2 com.example.todo I Adding additional valid usage bits: 0x202000
2022-08-19 23:40:50.311 6371-12075 OpenGLRenderer com.example.todo I Davey! duration=57938ms; Flags=1, FrameTimelineVsyncId=67044, IntendedVsync=1453350490076, Vsync=1453350490076, InputEventId=0, HandleInputStart=1453351074027, AnimationStart=1453351075277, PerformTraversalsStart=1453369889757, DrawStart=1453726480121, FrameDeadline=1453383823408, FrameInterval=1453351071111, FrameStartTime=16666666, SyncQueued=1453736846892, SyncStart=1453736997829, IssueDrawCommandsStart=1453737964392, SwapBuffers=1453826903715, FrameCompleted=1511288907912, DequeueBufferDuration=8409896, QueueBufferDuration=1729635, GpuCompleted=1511288907912, SwapBuffersCompleted=1453830047308, DisplayPresentTime=0,
2022-08-19 23:40:50.311 6371-12075 OpenGLRenderer com.example.todo I Davey! duration=57911ms; Flags=0, FrameTimelineVsyncId=67050, IntendedVsync=1453383994037, Vsync=1453833994019, InputEventId=0, HandleInputStart=1453836806215, AnimationStart=1453836807829, PerformTraversalsStart=1453836808715, DrawStart=1453836947361, FrameDeadline=1453433994035, FrameInterval=1453836802621, FrameStartTime=16666666, SyncQueued=1453838596058, SyncStart=1453838659236, IssueDrawCommandsStart=1453838739548, SwapBuffers=1453840537361, FrameCompleted=1511295465203, DequeueBufferDuration=24271, QueueBufferDuration=1600104, GpuCompleted=1511295465203, SwapBuffersCompleted=1453843213246, DisplayPresentTime=0,
2022-08-19 23:40:56.579 12334-12334 studio.deploy install_server-7271c3ba E Could not remove dir '/data/data/com.example.todo/code_cache/.ll/': No such file or directory
2022-08-19 23:40:57.388 6372-6372 GraphicsEnvironment com.example.todo V ANGLE Developer option for 'com.example.todo' set to: 'default'
2022-08-19 23:40:57.389 6372-6372 GraphicsEnvironment com.example.todo V ANGLE GameManagerService for com.example.todo: false
2022-08-19 23:40:57.389 6372-6372 GraphicsEnvironment com.example.todo V Neither updatable production driver nor prerelease driver is supported.
2022-08-19 23:40:57.390 6372-6372 NetworkSecurityConfig com.example.todo D No Network Security Config specified, using platform default
2022-08-19 23:40:57.390 6372-6372 NetworkSecurityConfig com.example.todo D No Network Security Config specified, using platform default
2022-08-19 23:40:57.446 6372-6372 om.example.tod com.example.todo E Invalid ID 0x00000000.
2022-08-19 23:40:58.100 6372-12467 AdrenoGLES-0 com.example.todo I QUALCOMM build : 03dd3ba, I13854cb805
Build Date : 10/28/20
OpenGL ES Shader Compiler Version: EV031.32.02.02
Local Branch : mybrancheb191cbf-5661-f183-9b13-08f1eafda2d8
Remote Branch : quic/gfx-adreno.lnx.1.0.r122-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
2022-08-19 23:40:58.100 6372-12467 AdrenoGLES-0 com.example.todo I Build Config : S L 10.0.7 AArch64
2022-08-19 23:40:58.100 6372-12467 AdrenoGLES-0 com.example.todo I Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
2022-08-19 23:40:58.111 6372-12467 AdrenoGLES-0 com.example.todo I PFP: 0x005ff114, ME: 0x005ff066
2022-08-19 23:40:58.127 6372-12470 Gralloc4 com.example.todo I mapper 4.x is not supported
2022-08-19 23:40:58.127 6372-12470 Gralloc3 com.example.todo W mapper 3.x is not supported
2022-08-19 23:40:58.129 6372-12470 Gralloc4 com.example.todo W allocator 4.x is not supported
2022-08-19 23:40:58.129 6372-12470 Gralloc3 com.example.todo W allocator 3.x is not supported
2022-08-19 23:40:58.130 6372-12470 Gralloc2 com.example.todo I Adding additional valid usage bits: 0x202000
2022-08-19 23:40:58.154 6372-12462 OpenGLRenderer com.example.todo I Davey! duration=745ms; Flags=1, FrameTimelineVsyncId=71281, IntendedVsync=1518473511057, Vsync=1518606844385, InputEventId=0, HandleInputStart=1518621310982, AnimationStart=1518621312752, PerformTraversalsStart=1518621542492, DrawStart=1519200839992, FrameDeadline=1518490177723, FrameInterval=1518621303117, FrameStartTime=16666666, SyncQueued=1519208728690, SyncStart=1519208842388, IssueDrawCommandsStart=1519209258221, SwapBuffers=1519217145096, FrameCompleted=1519219182961, DequeueBufferDuration=22916, QueueBufferDuration=811250, GpuCompleted=1519218461971, SwapBuffersCompleted=1519219182961, DisplayPresentTime=0,
2022-08-19 23:40:58.231 6372-6372 Choreographer com.example.todo I Skipped 33 frames! The application may be doing too much work on its main thread.
2022-08-19 23:41:03.178 6372-12482 ProfileInstaller com.example.todo D Installing profile for com.example.todo
2022-08-19 23:41:15.247 6372-6372 FinalizerDaemon com.example.todo W type=1400 audit(0.0:542): avc: denied { getopt } for path="/dev/socket/usap_pool_primary" scontext=u:r:untrusted_app:s0:c228,c256,c512,c768 tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0 app=com.example.todo
2022-08-19 23:41:15.249 6372-12459 System com.example.todo W A resource failed to call close.
Any help will be appreciated.
Edit: I've added the full log for better understanding.
After spending all night yesterday I found that This issue is very firmware specific. This issue came with the custom rom I recently installed, and it is solvable by installing a different rom.
Note: This answer doesn't say how to solve this issue (i.e how to fix the rom), just a possible case that can make such an issue and bypass it all together (should be helpful for newcomers).
Related
I am trying to make an application with QML and C++ for Android on Qt6. I used a sample code from Qt help segment for checking if the camera works or not (see the code segment). I have implemented C++ just for loading the QML file.
My problem is the camera does not show up in the app, I am using Android 10 phone as test device.
import QtQuick
import QtMultimedia
Item {
width: 640
height: 360
CaptureSession {
camera: Camera {
id: camera
focusMode: Camera.FocusModeAutoNear
customFocusPoint: Qt.point(0.2, 0.2) // Focus relative to top-left corner
}
videoOutput: videoOutput
}
VideoOutput {
id: videoOutput
anchors.fill: parent
}
}
The error I face is following. Please help me with this.
W AdrenoUtils: <ReadGpuID_from_sysfs:194>: Failed to open /sys/class/kgsl/kgsl-3d0/gpu_model
W AdrenoUtils: <ReadGpuID:218>: Failed to read chip ID from gpu_model. Fallback to use the GSL path
W Gralloc3: mapper 3.x is not supported
D ForceDarkHelper: updateByCheckExcludeList: pkg: org.qtproject.example.test activity: org.qtproject.qt.android.bindings.QtActivity#21c7d27
W Qt A11Y : Could not (yet) activate platform accessibility.
W qtMainLoopThrea: type=1400 audit(0.0:11018091): avc: denied { read } for name="u:object_r:camera_prop:s0" dev="tmpfs" ino=17688 scontext=u:r:untrusted_app:s0:c189,c258,c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "vendor.camera.hal1.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "vendor.camera.hal1.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
D ForceDarkHelper: updateByCheckExcludeList: pkg: org.qtproject.example.test activity: org.qtproject.qt.android.bindings.QtActivity#21c7d27
D SurfaceView: UPDATE null, mIsCastMode = false
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "vendor.camera.hal1.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
W System.err: java.lang.RuntimeException: setParameters failed
W System.err: at android.hardware.Camera.native_setParameters(Native Method)
W System.err: at android.hardware.Camera.setParameters(Camera.java:2250)
W System.err: java.lang.RuntimeException: setParameters failed
W System.err: at android.hardware.Camera.native_setParameters(Native Method)
W System.err: at android.hardware.Camera.setParameters(Camera.java:2250)
W Gralloc3: allocator 3.x is not supported
I ct.example.tes: ProcessProfilingInfo new_methods=210 is saved saved_to_disk=1 resolve_classes_delay=8000
W IInputConnectionWrapper: getExtractedText on inactive InputConnection
W IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
W BpBinder: Slow Binder: BpBinder transact took 340 ms, interface=android.hardware.ICamera, code=6 oneway=false
D Camera : app passed NULL surface
D Camera : app passed NULL surface
W BpBinder: Slow Binder: BpBinder transact took 337 ms, interface=android.hardware.ICamera, code=1 oneway=false
Find this bug on some Android devices, for example:
Lenovo TB X606X, Android 10
Meizu M570H, Android 6
Redmi 9, Android 10q
When try to start stream with OWT Framework versions 4.3.1 or 5.0 got this in logs -
I/BufferQueue: unnamed-17090-3 BufferQueue core=(17090:xxxx)
E/libc: Access denied finding property "vendor.debug.bq.dump"
I/BufferQueueConsumer: unnamed-17090-3 connect(C): consumer=(17090:ru.etreta.a2aw) controlledByApp=true
E/libc: Access denied finding property "vendor.debug.bq.dump"
I/BufferQueueConsumer: unnamed-17090-3 setConsumerName: unnamed-17090-3
E/libc: Access denied finding property "vendor.debug.bq.dump"
I/BufferQueueConsumer: SurfaceTexture-1-17090-3 setConsumerName: SurfaceTexture-1-17090-3
W/CT: type=1400 audit(0.0:1893): avc: denied { read } for name="u:object_r:debug_bq_dump_prop:s0" dev="tmpfs" ino=6770 scontext=u:r:untrusted_app:s0:c161,c256,c512,c768 tcontext=u:object_r:debug_bq_dump_prop:s0 tclass=file permissive=0
I/org.webrtc.Logging: CameraCapturer: startCapture: 1280x720#24
I/org.webrtc.Logging: Camera1Enumerator: getCameraIndex: Camera 0, Facing back, Orientation 90
I/org.webrtc.Logging: Camera1Session: Open camera 0
I/org.webrtc.Logging: SurfaceViewRenderer: full_renderer: onMeasure(). New size: 1200x1896
I/org.webrtc.Logging: EglRenderer: full_renderersetLayoutAspectRatio: 0.6329114
D/OWT: create offer
D/Camera-JNI: (tid:18375)[MtkJNICameraContext] this:0x75a84afae0 camera->getStrongCount(3)
I/org.webrtc.Logging: Camera1Session: Available fps ranges: [[10.0:10.0], [15.0:15.0], [15.0:20.0], [20.0:20.0], [5.0:30.0], [30.0:30.0]]
E/AndroidRuntime: FATAL EXCEPTION: pool-15-thread-1
Any suggestions how to fix it? Both for debug or release
Problem solved.
These devices do not support H264 codec. Switch to VP8/9 makes them work.
Guys I'm writing an Instant Messaging app with Qt 5.14, and I am trying to deploy it for Android devices
I've installed these:
OpenJDK 8 (amd64)
NDK r20b
Qt Creator 4.11.0
Qt 5.14 (for Android ARM64-v8a device)
I can build the app correctly, but when I run it from the phone, there's only a white screen
From Qt Creator I can see this application output
I nixsoftware.as: Late-enabling -Xcheck:jni
I Perf : Connecting to perf service.
E nixsoftware.as: Invalid ID 0x00000000.
E Qt : Can't create main activity
E Qt : android.content.res.Resources$NotFoundException: String array resource ID #0x0
E Qt : at android.content.res.Resources.getStringArray(Resources.java:597)
E Qt : at android.content.res.MiuiResources.getStringArray(MiuiResources.java:160)
E Qt : at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:423)
E Qt : at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:183)
E Qt : at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266)
E Qt : at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273)
E Qt : at android.app.Activity.performCreate(Activity.java:7224)
E Qt : at android.app.Activity.performCreate(Activity.java:7213)
E Qt : at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
E Qt : at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2926)
E Qt : at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3081)
E Qt : at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
E Qt : at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
E Qt : at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
E Qt : at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
E Qt : at android.os.Handler.dispatchMessage(Handler.java:106)
E Qt : at android.os.Looper.loop(Looper.java:201)
E Qt : at android.app.ActivityThread.main(ActivityThread.java:6810)
E Qt : at java.lang.reflect.Method.invoke(Native Method)
E Qt : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
E Qt : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
I Adreno : QUALCOMM build : cf57c9c, I1cb5c4d1cc
I Adreno : Build Date : 09/23/18
I Adreno : OpenGL ES Shader Compiler Version: EV031.25.03.01
I Adreno : Local Branch :
I Adreno : Remote Branch :
I Adreno : Remote Branch :
I Adreno : Reconstruct Branch :
I Adreno : Build Config : S L 6.0.7 AArch32
I Adreno : PFP: 0x005ff112, ME: 0x005ff066
I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
I OpenGLRenderer: Initialized EGL, version 1.4
D OpenGLRenderer: Swap behavior 2
Please help
I can give you more info
I noticed the similar behaviour after upgrading to Qt 5.14. Searching the Qt bugreports lead me to QTBUG-80266. As suggested in comments, I re-created the AndroidManifest.xml and added back my local changes, my app now executes.
I hope it helps.
I am trying this example app on qt's website. It builds without error and when I tried to run on a Samsung J7 with Android 8.1.0, it the white screen comes up and then the app crashes. In the Qt creator, this message shows as application output
E Zygote : isWhitelistProcess - Process is Whitelisted
E libpersona: scanKnoxPersonas
E libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
W SELinux : SELinux selinux_android_compute_policy_index : Policy Index[2], Con:u:r:zygote:s0 RAM:SEPF_SM-G610F_8.1.0_0008, [-1 -1 -1 -1 0 1]
I SELinux : SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=org.qtproject.example.androidTest4
I zygote : Late-enabling -Xcheck:jni
D ActivityThread: Added TimaKeyStore provider
D MDO : MDO if sIsMdo=false, sIsCheckMdo=false, uid = 10234
D Proxy : mdoP is null: 10234
W System : ClassLoader referenced unknown path:
I QtCore : Start
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Network.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Qml.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Gui.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Quick.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Widgets.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Svg.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Sensors.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Xml.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5QuickParticles.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5QuickTemplates2.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5QuickControls2.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/plugins/platforms/android/libqtforandroid.so" has unsupported flags DT_FLAGS_1=0x81
I Qt : qt start
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/plugins/bearer/libqandroidbearer.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/plugins/sensors/libqtsensors_android.so" has unsupported flags DT_FLAGS_1=0x81
I Qt : Sensors start
I zygote : Do partial code cache collection, code=29KB, data=27KB
I zygote : After code cache collection, code=29KB, data=27KB
I zygote : Increasing code cache capacity to 128KB
D OpenGLRenderer: HWUI GL Pipeline
I zygote : Do partial code cache collection, code=60KB, data=59KB
I zygote : After code cache collection, code=60KB, data=59KB
I zygote : Increasing code cache capacity to 256KB
I zygote : Do full code cache collection, code=125KB, data=102KB
I zygote : After code cache collection, code=109KB, data=78KB
D : (null):0 ((null)): QML debugging is enabled. Only use this in a safe environment.
D InputTransport: Input channel constructed: fd=56
D ViewRootImpl#74fba6a[QtActivity]: setView = DecorView#fbadb5b[QtActivity] TM=true MM=false
W Activity: AppLock checkAppLockState locked:false verifying:false pkgName = org.qtproject.example.androidTest4 isInMultiWindowMode:false showWhenLocked:false
D ViewRootImpl#74fba6a[QtActivity]: dispatchAttachedToWindow
V Surface : sf_framedrop debug : 0x4f4c, game : false, logging : 0
D ViewRootImpl#74fba6a[QtActivity]: Relayout returned: old=[0,0][0,0] new=[0,0][1080,1920] result=0x7 surface={valid=true 3756800000} changed=true
I zygote : android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I OpenGLRenderer: Initialized EGL, version 1.4
D OpenGLRenderer: Swap behavior 2
D libGLESv1: STS_GLApi : DTS, ODTC are not allowed for Package : org.qtproject.example.androidTest4
D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1080x1920]-format:1
D OpenGLRenderer: eglCreateWindowSurface = 0xe1f0ebc0, 0xdfec3808
D ViewRootImpl#74fba6a[QtActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1080, 1920) ci=Rect(0, 72 - 0, 0) vi=Rect(0, 72 - 0, 0) or=1
D ViewRootImpl#74fba6a[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 1
V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#aa71336 nm : org.qtproject.example.androidTest4 ic=null
D InputMethodManager: startInputInner - Id : 0
I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
D InputTransport: Input channel constructed: fd=65
D vndksupport: Loading /vendor/lib/hw/android.hardware.graphics.mapper#2.0-impl.so from current namespace instead of sphal namespace.
V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#2c1d237 nm : org.qtproject.example.androidTest4 ic=null
D InputMethodManager: startInputInner - Id : 0
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/qml/QtSensors/libdeclarative_sensors.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/qml/QtQuick/Controls.2/Fusion/libqtquickcontrols2fusionstyleplugin.so" has unsupported flags DT_FLAGS_1=0x81
W libandroidTest4.so: (null):0 ((null)): QQmlApplicationEngine failed to load component
W libandroidTest4.so: (null):0 ((null)): qrc:/main.qml:42 Cannot assign to non-existent property "footer"
08-23 11:53:51.290 11578 11648 W libandroidTest4.so:
D ViewRootImpl#74fba6a[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 0
D InputTransport: Input channel destroyed: fd=65
D OpenGLRenderer: eglDestroySurface = 0xe1f0ebc0, 0xdfec3800
D ViewRootImpl#74fba6a[QtActivity]: Relayout returned: old=[0,0][1080,1920] new=[0,0][1080,1920] result=0x5 surface={valid=false 0} changed=true
"org.qtproject.example.androidTest4" died.
Since I have no prior experience in developing Android on Qt, I have no idea how to solve this issue. The setup in Qt for Android has the latest Android SDK, JRE inside the Android Studio folder and Android NDK version 17. Any guidance is appreciated.
I'm trying to develop an Android Application. This software use the AWS services. The compilation and link work but it crashes at the very beginning of the execution.
I'm using Qt 5.11 and I think that the configuration is good (I'm using the last Android SDK and the NDK 10e) because I can run a simple Android application
I'm using the last AWS C++ library. I compiled this library using this cake command : cmake -DBUILD_ONLY="email;cognito-identity;lambda;core;cognito-idp;identity-management" -DNDK_DIR="/Downloads/android-ndk-r10e" -DANDROID_STL=gnustl_shared -DTARGET_ARCH=ANDROID -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="/aws-sdk-cpp/aws_build_android/build_dynamic_output" /aws-sdk-cpp/aws_build_android/aws-sdk-cpp-master
A s I said, the application crashes with this ultimate debug message:
F libc : Fatal signal 6 (SIGABRT), code -6 in tid 8731 (qtMainLoopThrea)
Here you are the complete list of application debug messages :
E Zygote : isWhitelistProcess - Process is Whitelisted
E libpersona: scanKnoxPersonas
E libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
W SELinux : SELinux selinux_android_compute_policy_index : Policy Index[2], Con:u:r:zygote:s0 RAM:SEPF_SM-G930F_8.0.0_0018, [-1 -1 -1 -1 0 1]
I SELinux : SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=org.qtproject.example.crio_Android
I zygote : Late-enabling -Xcheck:jni
D TimaKeyStoreProvider: TimaKeyStore is not enabled: cannot add TimaSignature Service and generateKeyPair Service
D ActivityThread: Added TimaKeyStore provider
I zygote : no shared libraies, dex_files: 1
I zygote : Do partial code cache collection, code=31KB, data=27KB
I zygote : After code cache collection, code=31KB, data=27KB
I zygote : Increasing code cache capacity to 128KB
W System : ClassLoader referenced unknown path:
I QtCore : Start
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5Network.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5Qml.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5Gui.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5Quick.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5Widgets.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5Charts.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5QuickParticles.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5QuickTemplates2.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5QuickControls2.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.crio_Android/qt-reserved-files/plugins/platforms/android/libqtforandroid.so" has unsupported flags DT_FLAGS_1=0x81
I Qt : qt started
W linker : "/data/data/org.qtproject.example.crio_Android/qt-reserved-files/plugins/bearer/libqandroidbearer.so" has unsupported flags DT_FLAGS_1=0x81
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 674 us, width=30, height=30
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 1560 us, width=66, height=96
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 1363 us, width=66, height=96
I zygote : Do partial code cache collection, code=59KB, data=54KB
I zygote : After code cache collection, code=59KB, data=54KB
I zygote : Increasing code cache capacity to 256KB
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 413 us, width=5, height=5
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 527 us, width=30, height=30
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 593 us, width=30, height=30
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 412 us, width=5, height=5
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 461 us, width=12, height=48
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 457 us, width=12, height=48
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 1234 us, width=66, height=48
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 375 us, width=2, height=2
D OpenGLRenderer: HWUI GL Pipeline
D ViewRootImpl#12633f4[QtActivity]: setView = DecorView#3d0a71d[QtActivity] TM=true MM=false
D ViewRootImpl#12633f4[QtActivity]: dispatchAttachedToWindow
V Surface : sf_framedrop debug : 0x4f4c, game : false, logging : 0
D ViewRootImpl#12633f4[QtActivity]: Relayout returned: old=[0,0][0,0] new=[0,0][1080,1920] result=0x7 surface={valid=true 3761723392} changed=true
I OpenGLRenderer: Initialized EGL, version 1.4
D OpenGLRenderer: Swap behavior 2
D libGLESv1: STS_GLApi : DTS, ODTC are not allowed for Package : org.qtproject.example.crio_Android
D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1080x1920]-format:1
D OpenGLRenderer: eglCreateWindowSurface = 0xe7b37918
D ViewRootImpl#12633f4[QtActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1080, 1920) ci=Rect(0, 72 - 0, 0) vi=Rect(0, 72 - 0, 0) or=1
D ViewRootImpl#12633f4[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 1
V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#d6c9b60 nm : org.qtproject.example.crio_Android ic=null
I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#ad59819 nm : org.qtproject.example.crio_Android ic=null
W linker : "/data/data/org.qtproject.example.crio_Android/qt-reserved-files/plugins/styles/libqandroidstyle.so" has unsupported flags DT_FLAGS_1=0x81
**F libc : Fatal signal 6 (SIGABRT), code -6 in tid 8731 (qtMainLoopThrea)**
Thank you very much for your help!