QT Android - The GDB process terminated unexpectedly (exit code 0) - android

All of the sudden, when trying to deploy and debug QT Android app that's what I get. The app gets deployed just fine and runs just fine however GDB dies. Already tried removing entire Android-SDK folder and redownloading. Is it really the time to wipe-out the entire QT installation (again) ?
Two message boxes are shown:
Title:"Executable Failed"
Msg: Command aborted"
Title: "Unexpected GDB Exit - QT Creator"
Msg: "The GDB process terminated unexpectedly (exit code 0)."
App log:
10:22:07: Debugging starts W main : type=1400 audit(0.0:86622):
avc: granted { read } for pid=18154 name="u:object_r:net_dns_prop:s0"
dev="tmpfs" ino=1835 scontext=u:r:untrusted_app_25:s0:c512,c768
tcontext=u:object_r:net_dns_prop:s0 tclass=file I ect.PROJECT_NAMEoke:
Late-enabling -Xcheck:jni E ect.PROJECT_NAMEoke: Unknown bits set in
runtime_flags: 0x8000 I ect.PROJECT_NAMEoke: Reinit property:
dalvik.vm.checkjni= false W re-initialized>: type=1400
audit(0.0:86623): avc: denied { read } for pid=18154
name="u:object_r:mmi_prop:s0" dev="tmpfs" ino=1831
scontext=u:r:untrusted_app_25:s0:c512,c768
tcontext=u:object_r:mmi_prop:s0 tclass=file permissive=0 E libc :
Access denied finding property "runtime.mmitest.isrunning" D
ActivityThread: Attach thread to application W ActivityThread:
Application org.qtproject.PROJECT_NAMEoken is waiting for the debugger
on port 8100... I System.out: Sending WAIT chunk I System.out:
Debugger has connected I System.out: waiting for debugger to settle...
I System.out: waiting for debugger to settle... Could not load shared
library symbols for 312 libraries, e.g.
/system/lib/libandroid_runtime.so. Use the "info sharedlibrary"
command to see the complete listing. Do you need "set
solib-search-path" or "set sysroot"?I System.out: debugger has settled
(7129) I ect.PROJECT_NAMEoke: The ClassLoaderContext is a special
shared library. I ect.PROJECT_NAMEoke: QarthPatchMonintor::Init 01-10
10:22:16.053 18154 18154 I ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::StartWatch 01-10 10:22:16.053 18154 18154 I
ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::WatchPackage: /data/hotpatch/fwkhotpatch/ 01-10
10:22:16.054 18154 18154 I ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::CheckAndWatchPatch:
/data/hotpatch/fwkhotpatch/org.qtproject.PROJECT_NAMEoken 01-10
10:22:16.054 18154 18154 I ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::CheckAndWatchPatch: /data/hotpatch/fwkhotpatch/all
01-10 10:22:16.054 18154 18154 I ect.PROJECT_NAMEoke: I
ect.PROJECT_NAMEoke: QarthPatchMonintor::Run 01-10 10:22:16.054 18154
18154 I ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::Reading 01-10 10:22:16.055 18154 18207 I
ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::CheckNotifyEvent 01-10 10:22:16.055 18154 18207 I
ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::CheckNotifyEvent before read 01-10 10:22:16.055
18154 18207 I ect.PROJECT_NAMEoke: I HwApiCacheMangerEx: apicache
path=/storage/emulated/0 state=mounted
key=org.qtproject.PROJECT_NAMEoken#10165#256 I HwApiCacheMangerEx:
apicache path=/storage/emulated/0 state=mounted
key=org.qtproject.PROJECT_NAMEoken#10165#0 I AwareBitmapCacher: init
processName:org.qtproject.PROJECT_NAMEoken pid=18154 uid=10165 V
ActivityThread: callActivityOnCreate W System : ClassLoader
referenced unknown path: E AwareLog: AtomicFileUtils: readFileLines
file not exist: android.util.AtomicFile#cb0695 V HwWidgetFactory: :
successes to get AllImpl object and return.... I
OverScrollerOptimization: start init SmartSlideOverScroller and get
the overscroller config I OverScrollerOptimization: get the
overscroller config W WindowDecorActionBar: should not do the
transition or the transition anim is null or it is running or the
mContainer view is null or mContainer view hasn't been drawn to screen
D HwGalleryCacheManagerImpl: mIsEffect:false D Qt JAVA : Class
org.qtproject.qt5.android.multimedia.QtMultimediaUtils does not
implement setActivity method I QtCore : Start I Qt : qt started
D ActivityThread: add activity client record, r=
ActivityRecord{7b59680 token=android.os.BinderProxy#fba4a25
{org.qtproject.PROJECT_NAMEoken/org.qtproject.qt5.android.bindings.QtActivity}}
token= android.os.BinderProxy#fba4a25 D HiTouch_PressGestureDetector:
onAttached, package=org.qtproject.PROJECT_NAMEoken, windowType=1,
mHiTouchRestricted=false I iGraphics: [0020080c] pn:
org.qtproject.PROJECT_NAMEoken, p: 18154 I iGraphics: [0030050c] PV 10
I iGraphics: [0030050c] no element 'igfx' I iGraphics: [0030050c]
LoadCloudParams lib file success. E Parcel : Reading a NULL string
not supported here. D mali_winsys: EGLint
new_window_surface(egl_winsys_display *, void *, EGLSurface,
EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 W
Gralloc3: mapper 3.x is not supported E :
APS:IFLoad:importExternalFunctions, search function
createNewHwApsUtils failed, dlsym err:undefined symbol:
createNewHwApsUtils D : APS:importExternalFunctions OK I
HwViewRootImpl: removeInvalidNode jank list is null W System.err:
java.lang.ClassNotFoundException: Didn't find class
"org.qtproject.qt5.android.network.QtNetwork" on path:
DexPathList[[],nativeLibraryDirectories=[/system/lib]] W System.err:
at
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
W System.err: at
java.lang.ClassLoader.loadClass(ClassLoader.java:379) W System.err:
at java.lang.ClassLoader.loadClass(ClassLoader.java:312) D
libPROJECT_NAMEoken_armeabi-v7a.so: QML Debugger: Waiting for
connection on port 16963... D libPROJECT_NAMEoken_armeabi-v7a.so:
About to request permissions D libPROJECT_NAMEoken_armeabi-v7a.so:
Permissions granted W libPROJECT_NAMEoken_armeabi-v7a.so:
qrc:/main.qml:176:5: QML Connections: Implicitly defined onFoo
properties in Connections are deprecated. Use this syntax instead:
function onFoo() { ... } W libEGL : EGLNativeWindowType
0xceced1c8 disconnect failed D mali_winsys: EGLint
new_window_surface(egl_winsys_display *, void *, EGLSurface,
EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 D
mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *,
EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns
0x3000 I Camera : open camera: 0, package name:
org.qtproject.PROJECT_NAMEoken D HwFrameworkSecurityPartsFactory:
HwFrameworkSecurityPartsFactory in. I HwFrameworkSecurityPartsFactory:
add HwFrameworkSecurityPartsFactory to memory. I HwCameraUtil:
notifySurfaceFlingerCameraStatus : isFront = false , isOpend = true D
SensorManager: 0xb24f49c8 addFd fd=107 W Gralloc3: allocator 3.x is
not supported W libEGL : EGLNativeWindowType 0xb96c3008 disconnect
failed D mali_winsys: EGLint new_window_surface(egl_winsys_display *,
void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean)
returns 0x3000 D libPROJECT_NAMEoken_armeabi-v7a.so: needed to resize
D libPROJECT_NAMEoken_armeabi-v7a.so: size: 0 , new size: 6220800 D
AwareBitmapCacher: handleInit switch not opened pid=18154
The app runs fine as usually.

Related

Template Application for running Azure Custom Vision Image Detection not working once I open the application

The template application I was using for running an image classifier model from Azure Custom Vision is not working when i try to build and run it first.
I tried building and running, as what the README.md said to test the application, but so far, i keep on getting errors that I hardly can even fathom. I expected this would run as said, but as I said, it kept on showing errors when I tried to open the app. The phone I'm using is a Huawei but I forgot the specific series and stuff. Here is the error log I got from just clicking on the app.
01/25 19:12:11: Launching 'app' on HUAWEI MED-LX9.
Install successfully finished in 5 s 540 ms.
$ adb shell am start -n "demo.tensorflow.org.customvision_sample/demo.tensorflow.org.customvision_sample.ClassifierActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 9677 on device 'huawei-med_lx9-PEVBB20423201126'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/omvision_sampl: Late-enabling -Xcheck:jni
E/omvision_sampl: Unknown bits set in runtime_flags: 0x8000
I/omvision_sampl: Reinit property: dalvik.vm.checkjni= false
I/omvision_sampl: ReInitProperties: persist.vm.debug.dumpapi= false
D/ActivityThread: Attach thread to application
D/HwFrameworkSecurityPartsFactory: HwFrameworkSecurityPartsFactory in.
I/HwFrameworkSecurityPartsFactory: add HwFrameworkSecurityPartsFactory to memory.
E/BehaviorCollectManager: Fail to acquire dataAnalyzerService...
I/omvision_sampl: The ClassLoaderContext is a special shared library.
I/omvision_sampl: QarthPatchMonintor::Init
I/omvision_sampl:
I/omvision_sampl: QarthPatchMonintor::StartWatch
I/omvision_sampl:
I/omvision_sampl: QarthPatchMonintor::WatchPackage: /data/hotpatch/fwkhotpatch/
I/omvision_sampl:
I/omvision_sampl: QarthPatchMonintor::CheckAndWatchPatch: /data/hotpatch/fwkhotpatch/demo.tensorflow.org.customvision_sample
I/omvision_sampl:
I/omvision_sampl: QarthPatchMonintor::CheckAndWatchPatch: /data/hotpatch/fwkhotpatch/all
I/omvision_sampl:
I/omvision_sampl: QarthPatchMonintor::Run
I/omvision_sampl:
I/omvision_sampl: QarthPatchMonintor::Reading
I/omvision_sampl:
I/omvision_sampl: QarthPatchMonintor::CheckNotifyEvent
I/omvision_sampl:
I/omvision_sampl: QarthPatchMonintor::CheckNotifyEvent before read
I/omvision_sampl:
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=demo.tensorflow.org.customvision_sample#10169#256
I/HwApiCacheMangerEx: need clear apicache,because volumes changed,oldCnt=0 newCnt=1
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=demo.tensorflow.org.customvision_sample#10169#0
I/HwApiCacheMangerEx: need clear apicache,because volumes changed,oldCnt=1 newCnt=1
I/AwareBitmapCacher: init processName:demo.tensorflow.org.customvision_sample pid=9677 uid=10169
E/AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile#be12549
I/iGraphics: [0020080c] pn: demo.tensorflow.org.customvision_sample, p: 9677
I/iGraphics: [0030050c] PV 10
I/iGraphics: [0030050c] no element 'igfx'
I/iGraphics: [0030050c] LoadCloudParams lib file success.
E/Parcel: Reading a NULL string not supported here.
E/GED: Failed to get GED Log Buf, err(0)
V/ActivityThread: callActivityOnCreate
D/tensorflow: CameraActivity: onCreate demo.tensorflow.org.customvision_sample.ClassifierActivity#f8dcd05
V/HwWidgetFactory: : successes to get AllImpl object and return....
I/DecorView[]: old windowMode:0 new windoMode:1
I/CameraManagerGlobal: Connecting to camera service
I/tensorflow: CameraActivity: Camera API lv2?: true
I/InterpreterApi: Loaded native library: tensorflowlite_jni
I/InterpreterApi: Didn't load native library: tensorflowlite_jni_gms_client
I/tflite: Initialized TensorFlow Lite runtime.
E/libc: Access denied finding property "ro.hardware.chipname"
W/omvision_sample: type=1400 audit(0.0:6423): avc: denied { read } for pid=9677 name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=14884 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
I/tflite: Created TensorFlow Lite XNNPACK delegate for CPU.
I/tflite: Replacing 39 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 1 partitions.
D/AndroidRuntime: Shutting down VM
I/QarthLog: [PatchStore] createDisableExceptionQarthFile
I/QarthLog: [PatchStore] create disable file for demo.tensorflow.org.customvision_sample uid is 10169
E/AndroidRuntime: FATAL EXCEPTION: main
Process: demo.tensorflow.org.customvision_sample, PID: 9677
java.lang.RuntimeException: Unable to start activity ComponentInfo{demo.tensorflow.org.customvision_sample/demo.tensorflow.org.customvision_sample.ClassifierActivity}: ai.customvision.visionskills.VisionSkillsException: {"NativeRuntimeError":"Skill[Classifier] Build Exception <JNIWrapperException: Failed to load model; Model name = <sample-tflite.cvmodel/cvexport.manifest>; details: java.lang.IncompatibleClassChangeError: Found interface org.tensorflow.lite.Tensor, but class was expected (declaration of 'org.tensorflow.lite.Tensor' appears in /data/app/demo.tensorflow.org.customvision_sample-ujz1FIumEghqzxaDGOhliw==/base.apk)>"}
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3897)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4076)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2473)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8349)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
Caused by: ai.customvision.visionskills.VisionSkillsException: {"NativeRuntimeError":"Skill[Classifier] Build Exception <JNIWrapperException: Failed to load model; Model name = <sample-tflite.cvmodel/cvexport.manifest>; details: java.lang.IncompatibleClassChangeError: Found interface org.tensorflow.lite.Tensor, but class was expected (declaration of 'org.tensorflow.lite.Tensor' appears in /data/app/demo.tensorflow.org.customvision_sample-ujz1FIumEghqzxaDGOhliw==/base.apk)>"}
at ai.customvision.visionskills.VisionSkillsManager.throwIfJNIFailed(VisionSkillsManager.java:24)
at ai.customvision.visionskills.VisionSkillsManager.SkillConfigurationBuild_orThrow(VisionSkillsManager.java:553)
at ai.customvision.visionskills.VisionSkillsManager.skillConfigurationBuild(VisionSkillsManager.java:309)
at ai.customvision.visionskills.ConfigurationBase.build(ConfigurationBase.java:41)
at ai.customvision.visionskills.CVSClassifier$Configuration.build(CVSClassifier.java:64)
at demo.tensorflow.org.customvision_sample.MSCognitiveServicesCustomVisionClassifier.<init>(MSCognitiveServicesCustomVisionClassifier.java:51)
at demo.tensorflow.org.customvision_sample.ClassifierActivity.onCreate(ClassifierActivity.java:54)
at android.app.Activity.performCreate(Activity.java:8085)
at android.app.Activity.performCreate(Activity.java:8073)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1320)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3870)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4076) 
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91) 
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149) 
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2473) 
at android.os.Handler.dispatchMessage(Handler.java:110) 
at android.os.Looper.loop(Looper.java:219) 
at android.app.ActivityThread.main(ActivityThread.java:8349) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055) 

QML Camera not showing in Android

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

Android App crashes when launching using Qt for Android

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.

Android application developed with Qt 5 and incorporating the AWS C ++ library crashes

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!

Android 8 Settings app crashes on emulator with clean AOSP build

"Settings" app will crash immediately after open with clean Android 8 build (aosp_x86-eng) on emulator. logcat output is below:
--------- beginning of main
1536 1550 E memtrack: Couldn't load memtrack module
1536 1550 W android.os.Debug: failed to get memory consumption info: -1
--------- beginning of system
1536 1548 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.settings/.Settings (has extras)} from uid 10013
1373 2321 W audio_hw_generic: Not supplying enough data to HAL, expected position 926726 , only wrote 926722
2477 2477 W zygote : Unexpected CPU variant for X86 using defaults: x86
1536 1548 I ActivityManager: Start proc 2477:com.android.settings/1000 for activity com.android.settings/.Settings
2477 2477 I zygote : The ClassLoaderContext is a special shared library.
2477 2477 D OpenGLRenderer: HWUI GL Pipeline
2477 2477 W TileUtils: Found com.android.settings.backup.BackupSettingsActivity for intent Intent { act=com.android.settings.action.SETTINGS pkg=com.android.settings } missing metadata com.android.settings.category
2477 2477 D ConditionManager: conditions loading asychronously
2477 2496 D ConditionManager: loading conditions from xml
2477 2495 E BluetoothAdapter: Bluetooth binder is null
2477 2495 V NFC : this device does not have NFC support
1388 1836 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
2477 2500 D SuggestionParser: Day 0 for com.android.settings.suggested.category.FIRST_IMPRESSION
2477 2495 D BatteryInfo: time to make batteryStatsHelper: 1ms
1536 1554 I WifiService: requestActivityInfo uid=1000
1536 1554 I WifiService: reportActivityInfo uid=1000
1536 1554 I WifiService: getSupportedFeatures uid=1000
1536 1606 W HalDeviceManager: isWifiStarted called but mWifi is null!?
2477 2500 I SuggestionParser: Use fingerprint requires unavailable feature android.hardware.fingerprint
1536 1554 E BluetoothAdapter: Bluetooth binder is null
1536 1554 E BatteryExternalStatsWorker: no controller energy info supplied for wifi
1536 1554 E KernelCpuSpeedReader: Failed to read cpu-freq: /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state (No such file or directory)
1536 1554 E BatteryExternalStatsWorker: modem info is invalid: ModemActivityInfo{ mTimestamp=0 mSleepTimeMs=0 mIdleTimeMs=0 mTxTimeMs[]=[0, 0, 0, 0, 0] mRxTimeMs=0 mEnergyUsed=0}
2477 2500 I SuggestionParser: Add another fingerprint requires unavailable feature android.hardware.fingerprint
2477 2495 D BatteryInfo: time for getStats: 10ms
2477 2500 W TileUtils: Found com.android.settings.backup.BackupSettingsActivity for intent Intent { act=com.android.settings.action.SETTINGS pkg=com.android.settings } missing metadata com.android.settings.category
1643 1852 D EGL_emulation: eglMakeCurrent: 0x945dab60: ver 2 0 (tinfo 0x945e4970)
1380 1380 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 1540096
1380 1525 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 1540096
2477 2499 D : HostConnection::get() New Host Connection established 0xa750eb00, tid 2499
2477 2499 I zygote : android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2477 2499 I OpenGLRenderer: Initialized EGL, version 1.4
2477 2499 D OpenGLRenderer: Swap behavior 1
2477 2500 E SystemServiceRegistry: No service published for: wifip2p
2477 2500 E SystemServiceRegistry: android.os.ServiceManager$ServiceNotFoundException: No service published for: wifip2p
2477 2500 E SystemServiceRegistry: at android.os.ServiceManager.getServiceOrThrow(ServiceManager.java:75)
2477 2500 E SystemServiceRegistry: at android.app.SystemServiceRegistry$49.createService(SystemServiceRegistry.java:569)
2477 2500 E SystemServiceRegistry: at android.app.SystemServiceRegistry$49.createService(SystemServiceRegistry.java:567)
2477 2500 E SystemServiceRegistry: at android.app.SystemServiceRegistry$StaticServiceFetcher.getService(SystemServiceRegistry.java:987)
2477 2500 E SystemServiceRegistry: at android.app.SystemServiceRegistry.getSystemService(SystemServiceRegistry.java:914)
2477 2500 E SystemServiceRegistry: at android.app.ContextImpl.getSystemService(ContextImpl.java:1667)
2477 2500 E SystemServiceRegistry: at android.view.ContextThemeWrapper.getSystemService(ContextThemeWrapper.java:171)
2477 2500 E SystemServiceRegistry: at android.app.Activity.getSystemService(Activity.java:5915)
2477 2500 E SystemServiceRegistry: at com.android.settings.wfd.WifiDisplaySettings.isAvailable(WifiDisplaySettings.java:216)
2477 2500 E SystemServiceRegistry: at com.android.settings.SettingsActivity.doUpdateTilesList(SettingsActivity.java:845)
2477 2500 E SystemServiceRegistry: at com.android.settings.SettingsActivity.-wrap0(Unknown Source:0)
2477 2500 E SystemServiceRegistry: at com.android.settings.SettingsActivity$5.run(SettingsActivity.java:747)
2477 2500 E SystemServiceRegistry: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
2477 2500 E SystemServiceRegistry: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
2477 2500 E SystemServiceRegistry: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
2477 2500 E SystemServiceRegistry: at java.lang.Thread.run(Thread.java:764)
1536 1548 W ActivityManager: Force finishing activity com.android.settings/.Settings
1536 1552 I ActivityManager: Showing crash dialog for package com.android.settings u0
It seems that crash is somehow related to WiFi, but Android emulator shouldn't have WiFi support anyway. What could be the issue here?
I managed to fix it myself. The problem seems to be due to com.android.settings.wfd.WifiDisplaySettings.isAvailable reporting that WiFi is available, while wifip2p service is absent. I went to WifiDisplaySettings.java:216 and replaced this check with false, so it won't try to locate the service. Now Settings can be opened properly.
Alter your WifiDisplaySettings.java in
/YoutAospRoot/packages/apps/Settings/src/com/android/settings/wfd/WifiDisplaySettings.java
Change the code snippet
public static boolean isAvailable(Context context) {
return context.getSystemService(Context.DISPLAY_SERVICE) != null
&& context.getSystemService(Context.WIFI_P2P_SERVICE) != null;
}
To
public static boolean isAvailable(Context context) {
return false;
}
Then
make systemimage
Maybe this can help too. I noticed that the Settings app is not crashing when building an clean Android 8 with lunch aosp_x86-userdebug instead of lunch aosp_x86-eng.

Categories

Resources