Problem with flutter build apk file on real phone - android

I'm new in Flutter and Android Studio. My problem - when i run my app in android studio - all works good. But, when i upload build apk file to firebase "app distribution", install on real phone and try to launch - it has crashed on start - without any error message. I see the first load screen, and that's all, app closed. I don't understand - how to debug such error, because all works, when i use Android studio. Any ideas - how can i catch this error ?
[√] Flutter (Channel stable, v1.17.4, on Microsoft Windows [Version 10.0.18363.900], locale ru-RU)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.46.1)
[√] Connected device (2 available)
Logcat logs
2020-06-27 19:34:17.653 587-644/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
2020-06-27 19:34:17.655 2859-6628/? E/ANDR-PERF-JNI: com_qualcomm_qtiperformance_native_perf_io_prefetch_start
2020-06-27 19:34:17.665 2859-6628/? E/ActivityTrigger: activityStartTrigger: not whiteListedru.rakhimyan.pozhlikbez.pozhlikbez/ru.rakhimyan.pozhlikbez.pozhlikbez.MainActivity/1
2020-06-27 19:34:17.666 2859-6628/? E/ActivityTrigger: activityResumeTrigger: not whiteListedru.rakhimyan.pozhlikbez.pozhlikbez/ru.rakhimyan.pozhlikbez.pozhlikbez.MainActivity/1
2020-06-27 19:34:17.674 2859-6360/? E/ActivityTrigger: activityResumeTrigger: not whiteListedru.rakhimyan.pozhlikbez.pozhlikbez/ru.rakhimyan.pozhlikbez.pozhlikbez.MainActivity/1
2020-06-27 19:34:17.761 24805-24812/? E/kbez.pozhlikbe: Failed to send DDMS packet REAQ to debugger (-1 of 20): Broken pipe
2020-06-27 19:34:17.777 10947-23478/? E/DeviceStateChecker: DeviceStateChecker cancelled
2020-06-27 19:34:18.659 24805-24805/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: ru.rakhimyan.pozhlikbez.pozhlikbez, PID: 24805
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/ru.rakhimyan.pozhlikbez.pozhlikbez-leCXnGCESBlgFvEwD87Sfg==/base.apk"],nativeLibraryDirectories=[/data/app/ru.rakhimyan.pozhlikbez.pozhlikbez-leCXnGCESBlgFvEwD87Sfg==/lib/arm64, /data/app/ru.rakhimyan.pozhlikbez.pozhlikbez-leCXnGCESBlgFvEwD87Sfg==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]] couldn't find "libflutter.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:1012)
at java.lang.System.loadLibrary(System.java:1669)
at io.flutter.embedding.engine.loader.FlutterLoader.startInitialization(FlutterLoader.java:120)
at io.flutter.embedding.engine.loader.FlutterLoader.startInitialization(FlutterLoader.java:88)
at io.flutter.view.FlutterMain.startInitialization(FlutterMain.java:48)
at io.flutter.app.FlutterApplication.onCreate(FlutterApplication.java:24)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1155)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5906)
at android.app.ActivityThread.access$1100(ActivityThread.java:200)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1660)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6762)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
2020-06-27 19:34:18.770 4311-4326/? E/droid.launcher: No package ID ff found for ID 0xffffffff.
2020-06-27 19:34:18.772 4311-4326/? E/IconLoader: Could not find icon drawable from resource
android.content.res.Resources$NotFoundException: Resource ID #0xffffffff
at android.content.res.ResourcesImpl.getValueForDensity(ResourcesImpl.java:225)
at android.content.res.Resources.getDrawableForDensity(Resources.java:887)
at android.content.res.Resources.getDrawable(Resources.java:827)
at com.android.systemui.shared.recents.model.IconLoader.createNewIconForTask(IconLoader.java:118)
at com.android.systemui.shared.recents.model.IconLoader.getAndInvalidateIfModified(IconLoader.java:94)
at com.android.systemui.shared.recents.model.RecentsTaskLoader.getAndUpdateActivityIcon(RecentsTaskLoader.java:325)
at com.android.systemui.shared.recents.model.RecentsTaskLoadPlan.executePlan(RecentsTaskLoadPlan.java:188)
at com.android.systemui.shared.recents.model.RecentsTaskLoader.loadTasks(RecentsTaskLoader.java:173)
at com.android.quickstep.RecentsModel.onTaskStackChangedBackground(RecentsModel.java:214)
at com.android.systemui.shared.system.TaskStackChangeListeners.onTaskStackChanged(TaskStackChangeListeners.java:80)
at android.app.ITaskStackListener$Stub.onTransact(ITaskStackListener.java:50)
at android.os.Binder.execTransact(Binder.java:731)
2020-06-27 19:34:18.773 4311-4326/? E/droid.launcher: Failed to open APK '/data/app/ru.rakhimyan.pozhlikbez.pozhlikbez-IGs77SWnk7PWEecGA2tGBQ==/base.apk' I/O error
2020-06-27 19:34:18.773 4311-4326/? E/ResourcesManager: failed to add asset path /data/app/ru.rakhimyan.pozhlikbez.pozhlikbez-IGs77SWnk7PWEecGA2tGBQ==/base.apk
2020-06-27 19:34:19.170 2859-2939/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.android.launcher3/com.android.a1launcher.AndroidOneLauncher/28
2020-06-27 19:34:19.180 587-644/? E/ANDR-PERF-OPTSHANDLER: Perflock resource /sys/class/devfreq/soc:qcom,llccbw/min_freq not supported
2020-06-27 19:34:19.180 587-644/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [12, 0]
2020-06-27 19:34:19.181 587-644/? E/ANDR-PERF-OPTSHANDLER: Failed to read /sys/class/kgsl/kgsl-3d0/force_no_nap
2020-06-27 19:34:19.181 587-644/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [10, 7]
2020-06-27 19:34:19.272 563-24849/? E/msm8916_platform: platform_get_snd_device_backend_index: BE DAI Name Table is not present
2020-06-27 19:34:19.272 563-24849/? E/audio_hw_utils: send_app_type_cfg_for_device: Couldn't get the backend index for snd device voice-rec-mic ret=-14
2020-06-27 19:34:19.273 563-24849/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
2020-06-27 19:34:19.273 563-24849/? E/ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
2020-06-27 19:34:19.273 563-24849/? E/ACDB-LOADER: Error: ACDB AFE returned = -19

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) 

After distributing Android as an app bundle, the app is automatically closed due to an app crash when running the app

I'm using react-native with Android.
After distributing Android as an app bundle, the app is automatically closed due to an app crash when running the app.
If I distribute it as an apk file, the app runs well.
However, if the abb file is successfully built with the gradlew bundleRelease command and then deployed to Google and the app is run, the app is automatically closed.
This is a logcat error.
2021-07-20 13:56:37.453 6938-27625/? E/pageboostd: active launch start : app comcookingrn
2021-07-20 13:56:37.454 1011-6254/? E/ActivityTaskManager: TouchDown intent received, starting ActiveLaunch
2021-07-20 13:56:37.454 6938-27625/? E/pageboostd: comcookingrn, amt 4696304 scnt 2 fcnt 0
2021-07-20 13:56:37.455 6938-27625/? E/pageboostd: comcookingrn, amt 0 scnt 2 fcnt 0
2021-07-20 13:56:37.455 6938-27625/? E/pageboostd: active launch end : app comcookingrn data_amount 4696304
2021-07-20 13:56:37.470 27360-27360/? E/com.cookingrn: Not starting debugger since process cannot load the jdwp agent.
2021-07-20 13:56:37.487 23866-23917/? E/nightwatch-target: lmkd signal waiters
2021-07-20 13:56:37.527 511-511/? E/audit: type=1400 audit(1626756997.521:5296889): avc: granted { execute } for pid=27360 comm="com.cookingrn" path="/data/data/com.cookingrn/lib-0/libc++_shared.so" dev="sda33" ino=1181052 scontext=u:r:untrusted_app:s0:c186,c258,c512,c768 tcontext=u:object_r:app_data_file:s0:c186,c258,c512,c768 tclass=file SEPF_SM-G977N_11_0010 audit_filtered
2021-07-20 13:56:37.527 511-511/? E/audit: type=1300 audit(1626756997.521:5296889): arch=c00000b7 syscall=222 success=yes exit=479864037376 a0=6fba202000 a1=db770 a2=5 a3=12 items=0 ppid=537 pid=27360 auid=4294967295 uid=10698 gid=10698 euid=10698 suid=10698 fsuid=10698 egid=10698 sgid=10698 fsgid=10698 tty=(none) ses=4294967295 comm="com.cookingrn" exe="/system/bin/app_process64" subj=u:r:untrusted_app:s0:c186,c258,c512,c768 key=(null)
2021-07-20 13:56:37.527 511-511/? E/audit: type=1327 audit(1626756997.521:5296889): proctitle="com.cookingrn"
2021-07-20 13:56:37.529 511-511/? E/audit: type=1400 audit(1626756997.525:5296890): avc: granted { execute } for pid=27360 comm="com.cookingrn" path="/data/data/com.cookingrn/lib-0/libfb.so" dev="sda33" ino=1181053 scontext=u:r:untrusted_app:s0:c186,c258,c512,c768 tcontext=u:object_r:app_data_file:s0:c186,c258,c512,c768 tclass=file SEPF_SM-G977N_11_0010 audit_filtered
2021-07-20 13:56:37.558 6938-6938/? E/pageboostd: Received HALT command code 2
2021-07-20 13:56:37.579 1011-6929/? E/FreecessController: can't read /acct/uid_10217/pid_9782/cgroup.procs/acct/uid_10217/pid_9782/cgroup.procs: open failed: EACCES (Permission denied)
2021-07-20 13:56:37.579 1011-6929/? E/FreecessController: can't read /acct/uid_10217/pid_9782/cgroup.procs/acct/uid_10217/pid_9782/cgroup.procs: open failed: EACCES (Permission denied)
2021-07-20 13:56:37.612 1011-6207/? E/PkgPredictorService-Collector: record changed bt=0 wifi=1 screen=0
2021-07-20 13:56:37.665 571-571/? E/HYPER-HAL: [SysfsControlManager.cpp]writeSysfs(): Couldn't Open Sysfs - /sys/kernel/ems/energy_weight
2021-07-20 13:56:37.665 571-571/? E/HYPER-HAL: [SysfsControlManager.cpp]writeSysfs(): Couldn't Open Sysfs - /sys/kernel/ems/energy_weight
2021-07-20 13:56:37.694 626-1577/? E/NativeCustomFrequencyManager: [NativeCFMS] BpCustomFrequencyManager::acquire()
2021-07-20 13:56:37.739 27360-27670/? E/unknown:ReactNative: ReactInstanceManager.createReactContext: mJSIModulePackage null
2021-07-20 13:56:37.741 27360-27670/? E/unknown:DisabledDevSupportManager: Caught exception
java.lang.RuntimeException: Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.
at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method)
at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromAssets(Unknown Source:2)
at com.facebook.react.bridge.JSBundleLoader$1.loadScript(Unknown Source:10)
at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(Unknown Source:18)
at com.facebook.react.r.q(Unknown Source:264)
at com.facebook.react.r.c(Unknown Source:0)
at com.facebook.react.r$e.run(Unknown Source:68)
at java.lang.Thread.run(Thread.java:923)
2021-07-20 13:56:37.741 27360-27670/? E/AndroidRuntime: FATAL EXCEPTION: create_react_context
Process: com.cookingrn, PID: 27360
java.lang.RuntimeException: Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.
at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method)
at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromAssets(Unknown Source:2)
at com.facebook.react.bridge.JSBundleLoader$1.loadScript(Unknown Source:10)
at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(Unknown Source:18)
at com.facebook.react.r.q(Unknown Source:264)
at com.facebook.react.r.c(Unknown Source:0)
at com.facebook.react.r$e.run(Unknown Source:68)
at java.lang.Thread.run(Thread.java:923)
2021-07-20 13:56:37.782 6285-6322/? E/TaskStackListenerAbstract: onTaskSnapshotChanged called by Binder.getCallingPid() 0 android.app.ITaskStackListener$Stub.onTransact:587 android.os.Binder.execTransactInternal:1195 android.os.Binder.execTransact:1159 <bottom of call stack>
2021-07-20 13:56:37.802 6938-6938/? E/pageboostd: Received HALT command code 2
2021-07-20 13:56:37.827 571-571/? E/HYPER-HAL: [SysfsControlManager.cpp]writeSysfs(): Couldn't Open Sysfs - /sys/kernel/ems/energy_weight
2021-07-20 13:56:37.827 571-571/? E/HYPER-HAL: [SysfsControlManager.cpp]writeSysfs(): Couldn't Open Sysfs - /sys/kernel/ems/energy_weight
2021-07-20 13:56:37.908 571-618/? E/HYPER-HAL: [Request.cpp]acquire(): Request:: id : 535118, No Resource to set
2021-07-20 13:56:37.977 626-1528/? E/BufferQueueProducer: [Application Error: com.cookingrn#0](id:2720002cbe0,api:0,p:-1,c:626) disconnect: not connected (req=1)
2021-07-20 13:56:37.988 23866-23917/? E/nightwatch-target: lmkd signal waiters
2021-07-20 13:56:38.008 1011-7732/? E/WindowManager: win=Window{f7dafdb u0 Splash Screen com.cookingrn EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0 caller=com.android.server.wm.ActivityRecord.destroySurfaces:5251 com.android.server.wm.ActivityRecord.destroySurfaces:5232 com.android.server.wm.WindowState.onExitAnimationDone:5623 com.android.server.wm.-$$Lambda$01bPtngJg5AqEoOWfW3rWfV7MH4.accept:2 java.util.ArrayList.forEach:1262 com.android.server.wm.ActivityRecord.onAnimationFinished:7162 com.android.server.wm.WindowContainer.doAnimationFinished:2626
2021-07-20 13:56:38.022 626-1528/? E/BufferQueueProducer: [com.cookingrn/com.cookingrn.MainActivity$_27360#0](id:2720002cbde,api:0,p:-1,c:626) disconnect: not connected (req=1)
2021-07-20 13:56:38.052 626-6811/? E/BufferQueueProducer: [com.cookingrn/com.cookingrn.MainActivity$_27360#1](id:2720002cbdf,api:0,p:-1,c:626) disconnect: not connected (req=1)
2021-07-20 13:56:38.062 27360-27360/? E/WindowManager: android.view.WindowLeaked: Activity com.cookingrn.MainActivity has leaked window DecorView#a30abf5[MainActivity] that was originally added here
at android.view.ViewRootImpl.<init>(ViewRootImpl.java:1049)
at android.view.ViewRootImpl.<init>(ViewRootImpl.java:1023)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:450)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:114)
at android.app.Dialog.show(Dialog.java:505)
at org.devio.rn.splashscreen.c$a.run(Unknown Source:51)
at android.app.Activity.runOnUiThread(Activity.java:7145)
at org.devio.rn.splashscreen.c.e(Unknown Source:15)
at com.cookingrn.MainActivity.onCreate(Unknown Source:3)
at android.app.Activity.performCreate(Activity.java:8198)
at android.app.Activity.performCreate(Activity.java:8182)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3765)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3968)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8512)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
2021-07-20 13:56:38.062 27360-27360/? E/WindowManager: android.view.WindowLeaked: Activity com.cookingrn.MainActivity has leaked window DecorView#a30abf5[MainActivity] that was originally added here.
From that line, I understand you're trying to start a new activity while there is still something running, and so it's leaking from the old activity to the new one.
I think it's the dialog that you show here.
at android.app.Dialog.show(Dialog.java:505)
Dismissing the dialog should solve your problem.

Getting Error "App Not Installed", after upgrading the android platform

I am getting error "App Not Installed" after android platform updated from 7.1 to 8.0
Plese find the logs for the same below
2019-07-06 19:57:24.583 1553-1740/? W/PackageManager: Package com.xxx.projectname new target SDK 19 doesn't support runtime permissions but the old target SDK 26 does.
2019-07-06 19:57:24.587 977-1852/? E/installd: Failed to delete /data/app/vmdl102287624.tmp: No such file or directory
2019-07-06 19:57:24.591 1553-1665/? D/CompatibilityInfo: mCompatibilityFlags - 0
2019-07-06 19:57:24.591 1553-1665/? D/CompatibilityInfo: applicationDensity - 480
2019-07-06 19:57:24.591 1553-1665/? D/CompatibilityInfo: applicationScale - 1.0
2019-07-06 19:57:24.593 1553-2694/? I/ActivityManager: START u0 {dat=file:///data/user_de/0/com.google.android.packageinstaller/no_backup/package3167777381408856548.apk flg=0x2000000 cmp=com.google.android.packageinstaller/com.android.packageinstaller.InstallFailed (has extras)} from uid 10035
2019-07-06 19:57:24.597 1553-2694/? D/ActivityTrigger: activityStartTrigger: Activity is Triggerred in full screen ApplicationInfo{82c36ee com.google.android.packageinstaller}
2019-07-06 19:57:24.597 1553-2694/? E/ActivityTrigger: activityStartTrigger: not whiteListedcom.google.android.packageinstaller/com.android.packageinstaller.InstallFailed/28

Android studio 3.1.4 compilation error: "E/vold: Failed to chmod /data/system_ce/0: No such file or directory"

I am trying to compile the android app and getting this error, tried cleaning, rebuilding, deleting and creating new AVD but nothing working, help would be appreciated
08-30 12:52:20.508 1507-1518/? E/vold: Failed to chmod /data/system_ce/0: No such file or directory
Failed to chmod /data/misc_ce/0: No such file or directory
Failed to chmod /data/media/0: No such file or directory
08-30 12:52:32.317 1810-1828/? E/BatteryExternalStatsWorker: no controller energy info supplied for telephony
08-30 12:52:32.323 1810-1828/? E/KernelCpuSpeedReader: Failed to read cpu-freq: /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state (No such file or directory)
08-30 12:52:32.412 1810-1832/? E/LocalDisplayAdapter: Default and active color mode is no longer available! Reverting to first available mode.
08-30 12:52:33.696 1675-1780/? E/storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
08-30 12:52:34.031 1810-1822/? E/SystemServer: Unable to preload default resources
08-30 12:52:36.132 1507-1516/? E/vold: Failed to read field SystemLocale: Success
08-30 12:52:36.134 1810-1888/? E/StorageManagerService: Failed to read field SystemLocale
android.os.ServiceSpecificException: Failed to read field SystemLocale (code 0)
at android.os.Parcel.createException(Parcel.java:1956)
at android.os.Parcel.readException(Parcel.java:1910)
at android.os.Parcel.readException(Parcel.java:1860)
at android.os.IVold$Stub$Proxy.fdeGetField(IVold.java:1094)
at com.android.server.StorageManagerService.getField(StorageManagerService.java:2408)
at com.android.server.StorageManagerService.copyLocaleFromMountService(StorageManagerService.java:982)
at com.android.server.StorageManagerService.handleDaemonConnected(StorageManagerService.java:975)
at com.android.server.StorageManagerService.access$900(StorageManagerService.java:171)
at com.android.server.StorageManagerService$StorageManagerServiceHandler.handleMessage(StorageManagerService.java:572)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.os.HandlerThread.run(HandlerThread.java:65)
08-30 12:52:36.960 1810-1810/? E/UsbDeviceManager: failed to write to /sys/class/android_usb/android0/f_rndis/ethaddr
08-30 12:52:36.969 1810-1810/? E/UsbDeviceManager: Failed to open control for mtp
Failed to open control for mtp
08-30 12:52:36.988 1810-1810/? E/UsbDeviceManager: Error initializing UsbHandler
java.io.FileNotFoundException: /sys/class/android_usb/android0/state (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:231)
at java.io.FileInputStream.<init>(FileInputStream.java:165)
at android.os.FileUtils.readTextFile(FileUtils.java:514)
at com.android.server.usb.UsbDeviceManager$UsbHandlerLegacy.<init>(UsbDeviceManager.java:1375)
at com.android.server.usb.UsbDeviceManager.<init>(UsbDeviceManager.java:297)
at com.android.server.usb.UsbService.<init>(UsbService.java:139)
at com.android.server.usb.UsbService$Lifecycle.onStart(UsbService.java:73)
at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:126)
at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:113)
at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:72)
at com.android.server.SystemServer.startOtherServices(SystemServer.java:1299)
at com.android.server.SystemServer.run(SystemServer.java:431)
at com.android.server.SystemServer.main(SystemServer.java:294)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:838)
08-30 12:52:36.996 1810-1810/? E/UsbPortManager: connectToProxy: usb hal service not found. Did the service fail to start?

Tango Unity examples crashing when built with Unity 2017.1

I just installed Unity 2017.1.0f3 and tried to compile the examples but all of them crash at start on my Lenovo Phab 2 Pro (Tango version 1.55).
I loaded the project tango-examples-unity\UnityExamples in Unity without modifying it and Unity converts it to the Unity 2017.1.0f3 version. The building seems to run fine but on the phone the resulting app crashes at start.
Everything worked fine for me on Unity 5.6. Maybe the Tango SDK is simply not supported yet by Unity 2017.1 but I could not find any information on that.
Here are the console output on Unity after building the app and the logs of the Tango when I launch the app and it crashes.
Unity console output
Tango Logs :
07-13 18:26:07.867 1261-1409/? W/BroadcastQueue: Permission Denial: broadcasting Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } from com.android.launcher3 (pid=4828, uid=10025) requires com.google.android.launcher.permission.RECEIVE_LAUNCH_BROADCASTS due to receiver com.google.android.gms/.icing.proxy.ApplicationLauncherReceiver
07-13 18:26:07.868 1261-1409/? W/BroadcastQueue: Permission Denial: receiving Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$GmsExternalReceiver requires com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS due to sender com.android.launcher3 (uid 10025)
07-13 18:26:07.882 544-3682/? E/audio_route: audio_route_apply_and_update_path:name(speaker-protected)
07-13 18:26:07.882 544-3682/? E/audio_route: audio_route_apply_and_update_path:name(vi-feedback)
07-13 18:26:07.882 544-3682/? E/voice: voice_is_in_call_rec_stream: input stream is NULL
07-13 18:26:07.883 544-3682/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
07-13 18:26:07.883 544-3682/? E/audio_route: audio_route_apply_and_update_path:name(spkr-vi-record)
07-13 18:26:07.894 544-3682/? E/voice: voice_is_in_call_rec_stream: input stream is NULL
07-13 18:26:07.894 544-3682/? E/ACDB-LOADER: Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
07-13 18:26:07.894 544-3682/? E/ACDB-LOADER: Error: ACDB audproc returned = -19
07-13 18:26:07.894 544-3682/? E/ACDB-LOADER: Error: ACDB AudProc vol returned = -19
07-13 18:26:07.894 544-3682/? E/ACDB-LOADER: Error: ACDB AFE returned = -19
07-13 18:26:07.895 544-3682/? E/audio_route: audio_route_apply_and_update_path:name(low-latency-playback speaker-protected)
07-13 18:26:07.936 8061-8061/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.projecttango.unityexamples, PID: 8061
java.lang.Error: FATAL EXCEPTION [main]
Unity version : 2017.1.0f3
Device model : LENOVO Lenovo PB2-690M
Device fingerprint: Lenovo/phinny_row/PB2PRO:6.0.1/MMB29M/PB2-690M_S200100_170228:user/release-keys
Caused by: java.lang.NoSuchMethodError: No direct method <init>(Landroid/content/ContextWrapper;)V in class Lcom/unity3d/player/UnityPlayer; or its super classes (declaration of 'com.unity3d.player.UnityPlayer' appears in /data/app/com.projecttango.unityexamples-2/base.apk)
at com.google.unity.GoogleUnityActivity.onCreate(GoogleUnityActivity.java:106)
at android.app.Activity.performCreate(Activity.java:6285)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2370)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2477)
at android.app.ActivityThread.access$900(ActivityThread.java:150)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5418)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
07-13 18:26:07.938 1261-4787/? W/ActivityManager: Force finishing activity com.projecttango.unityexamples/com.google.unity.GoogleUnityActivity
07-13 18:26:08.290 1261-1453/? E/WallpaperManagerService: onEvent:settings_system.xml.bak,changedFile:/data/system/users/0/settings_system.xml.bak
07-13 18:26:08.294 1261-1453/? E/WallpaperManagerService: onEvent:settings_system.xml,changedFile:/data/system/users/0/settings_system.xml
07-13 18:26:08.294 1261-1453/? E/WallpaperManagerService: onEvent:settings_system.xml.bak,changedFile:/data/system/users/0/settings_system.xml.bak
07-13 18:26:08.545 1261-1409/? W/ActivityManager: Activity pause timeout for ActivityRecord{e8388eb u0 com.projecttango.unityexamples/com.google.unity.GoogleUnityActivity t822 f}
After testing it has been confirmed that Unity 2017.1 is currently not supported by the Tango SDK, we only support Unity 5.6 at this time.

Categories

Resources