Open hrishikesh-kadam opened 1 year ago
Confirmed the issue
2023-06-03 16:29:01.591 28700-28700 FakeSplitInstallManager io.flutter.demo.gallery I availableSplits [, config.kk, config.km, config.kn, config.or, config.sv, config.ca, config.sq, config.sr, config.sk, config.sl, config.ka, config.si, config.cs, config.pa, config.te, config.ta, config.gu, config.ky, config.ko, config.sw, config.gl, config.de, config.hi, crane, config.lo, config.pl, config.da, config.he, config.tr, config.tl, config.th, config.hy, config.hu, config.lt, config.hr, config.lv, config.pt, config.mn, config.arm64_v8a, config.ur, config.mk, config.ml, config.id, config.uk, config.eu, config.ar, config.as, config.vi, config.am, config.my, config.es, config.zh, config.et, crane.config.xxhdpi, config.en, config.is, config.it, config.af, config.mr, config.uz, config.ms, config.el, config.be, config.fi, config.ru, config.ro, config.nl, crane.config.arm64_v8a, config.az, config.fa, config.zu, config.nb, config.ja, config.ne, config.bs, config.bn, config.fr, config.xxhdpi, config.bg] want [crane]
2023-06-03 16:29:04.600 28700-28716 SplitCompat io.flutter.demo.gallery D NativeLibraryExtractor: synchronizing native libraries
2023-06-03 16:29:04.606 28700-28716 SplitCompat io.flutter.demo.gallery D NativeLibraryExtractor: there are no native libraries for supported ABI arm64-v8a
2023-06-03 16:29:04.606 28700-28716 SplitCompat io.flutter.demo.gallery D NativeLibraryExtractor: there are no native libraries for supported ABI armeabi-v7a
2023-06-03 16:29:04.607 28700-28716 SplitCompat io.flutter.demo.gallery D NativeLibraryExtractor: there are no native libraries for supported ABI armeabi
2023-06-03 16:29:04.607 28700-28716 SplitCompat io.flutter.demo.gallery D NativeLibraryExtractor: there are no native libraries for supported ABI arm64-v8a
2023-06-03 16:29:04.607 28700-28716 SplitCompat io.flutter.demo.gallery D NativeLibraryExtractor: there are no native libraries for supported ABI armeabi-v7a
2023-06-03 16:29:04.608 28700-28716 SplitCompat io.flutter.demo.gallery D NativeLibraryExtractor: there are no native libraries for supported ABI armeabi
2023-06-03 16:29:04.608 28700-28716 SplitCompat io.flutter.demo.gallery D NativeLibraryExtractor: split 'crane.config.arm64_v8a' has native library 'libapp.so-78.part.so' for ABI 'arm64-v8a'
2023-06-03 16:29:04.608 28700-28716 SplitCompat io.flutter.demo.gallery D NativeLibraryExtractor: there are native libraries for supported ABI arm64-v8a; will use this ABI
2023-06-03 16:29:04.608 28700-28716 SplitCompat io.flutter.demo.gallery D NativeLibraryExtractor: using library libapp.so-78.part.so for ABI arm64-v8a
2023-06-03 16:29:04.608 28700-28716 SplitCompat io.flutter.demo.gallery D NativeLibraryExtractor: there are no native libraries for supported ABI armeabi-v7a
2023-06-03 16:29:04.608 28700-28716 SplitCompat io.flutter.demo.gallery D NativeLibraryExtractor: there are no native libraries for supported ABI armeabi
2023-06-03 16:29:04.611 28700-28716 SplitCompat io.flutter.demo.gallery D addAssetPath completed with 17
2023-06-03 16:29:04.611 28700-28716 SplitCompat io.flutter.demo.gallery D addAssetPath completed with 18
2023-06-03 16:29:04.611 28700-28716 SplitCompat io.flutter.demo.gallery D addAssetPath completed with 19
2023-06-03 16:29:04.611 28700-28716 SplitCompat io.flutter.demo.gallery D Split 'crane' installation emulated
2023-06-03 16:29:04.611 28700-28716 SplitCompat io.flutter.demo.gallery D Split 'crane.config.xxhdpi' installation emulated
2023-06-03 16:29:04.611 28700-28716 SplitCompat io.flutter.demo.gallery D Split 'crane.config.arm64_v8a' installation emulated
2023-06-03 16:29:04.611 28700-28716 SplitCompat io.flutter.demo.gallery I Splits installed.
2023-06-03 16:29:04.612 28700-28700 er.demo.gallery io.flutter.demo.gallery W type=1400 audit(0.0:6573): avc: granted { execute } for path="/data/data/io.flutter.demo.gallery/files/splitcompat/21003/native-libraries/crane.config.arm64_v8a/libapp.so-78.part.so" dev="dm-40" ino=116058 scontext=u:r:untrusted_app:s0:c7,c258,c512,c768 tcontext=u:object_r:app_data_file:s0:c7,c258,c512,c768 tclass=file app=io.flutter.demo.gallery
--------- beginning of crash
2023-06-03 16:29:04.699 28700-28722 Dart io.flutter.demo.gallery E ../../third_party/dart/runtime/vm/runtime_entry.cc: 3689: error: Not loaded
2023-06-03 16:29:04.699 28700-28722 libc io.flutter.demo.gallery A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 28722 (1.ui), pid 28700 (er.demo.gallery)
2023-06-03 16:29:04.977 28798-28798 DEBUG pid-28798 A Cmdline: io.flutter.demo.gallery
2023-06-03 16:29:04.977 28798-28798 DEBUG pid-28798 A pid: 28700, tid: 28722, name: 1.ui >>> io.flutter.demo.gallery <<<
2023-06-03 16:29:04.977 28798-28798 DEBUG pid-28798 A NOTE: Function names and BuildId information is missing for some frames due
NOTE: to unreadable libraries. For unwinds of apps, only shared libraries
NOTE: found under the lib/ directory are readable.
NOTE: On this device, run setenforce 0 to make the libraries readable.
NOTE: Unreadable libraries:
NOTE: /data/data/io.flutter.demo.gallery/files/splitcompat/21003/native-libraries/crane.config.arm64_v8a/libapp.so-78.part.so
2023-06-03 16:29:04.977 28798-28798 DEBUG pid-28798 A #01 pc 00000000006c6f18 /data/app/~~LaJIcWcLH10ctRdiwVdCHQ==/io.flutter.demo.gallery-1nin8aV8qTxmXT1D7YmEXQ==/split_config.arm64_v8a.apk!libflutter.so (BuildId: 7f392ed1fe84d18d325754b6ed177c31baaa8037)
2023-06-03 16:29:04.977 28798-28798 DEBUG pid-28798 A #02 pc 0000000000794be4 /data/app/~~LaJIcWcLH10ctRdiwVdCHQ==/io.flutter.demo.gallery-1nin8aV8qTxmXT1D7YmEXQ==/split_config.arm64_v8a.apk!libflutter.so (BuildId: 7f392ed1fe84d18d325754b6ed177c31baaa8037)
2023-06-03 16:29:04.977 28798-28798 DEBUG pid-28798 A #03 pc 00000000005ef798 /data/app/~~LaJIcWcLH10ctRdiwVdCHQ==/io.flutter.demo.gallery-1nin8aV8qTxmXT1D7YmEXQ==/split_config.arm64_v8a.apk (BuildId: 7ab4dbf3c3c25a5010d088d1e7ec6606)
2023-06-03 16:29:04.977 28798-28798 DEBUG pid-28798 A #04 pc 00000000005ee0ec /data/app/~~LaJIcWcLH10ctRdiwVdCHQ==/io.flutter.demo.gallery-1nin8aV8qTxmXT1D7YmEXQ==/split_config.arm64_v8a.apk (BuildId: 7ab4dbf3c3c25a5010d088d1e7ec6606)
2023-06-03 16:29:04.977 28798-28798 DEBUG pid-28798 A #05 pc 0000000000013de4 /data/data/io.flutter.demo.gallery/files/splitcompat/21003/native-libraries/crane.config.arm64_v8a/libapp.so-78.part.so
2023-06-03 16:29:04.995 1757-28801 ActivityTaskManager system_server W Force finishing activity io.flutter.demo.gallery/.MainActivity
2023-06-03 16:29:05.053 1757-4360 WindowManager system_server I WIN DEATH: Window{429610b u0 io.flutter.demo.gallery/io.flutter.demo.gallery.MainActivity}
2023-06-03 16:29:05.058 1757-4360 InputManager-JNI system_server W Input channel object '429610b io.flutter.demo.gallery/io.flutter.demo.gallery.MainActivity (client)' was disposed without first being removed with the input manager!
2023-06-03 16:29:05.067 1757-4846 ActivityManager system_server I Process io.flutter.demo.gallery (pid 28700) has died: fg TOP
2023-06-03 16:29:05.098 1757-2084 WindowManager system_server W Failed to deliver inset state change to w=Window{429610b u0 io.flutter.demo.gallery/io.flutter.demo.gallery.MainActivity EXITING}
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(BinderProxy.java:584)
at android.view.IWindow$Stub$Proxy.insetsControlChanged(IWindow.java:473)
at com.android.server.wm.WindowState.notifyInsetsControlChanged(WindowState.java:4017)
at com.android.server.wm.InsetsStateController.lambda$notifyPendingInsetsControlChanged$4(InsetsStateController.java:351)
at com.android.server.wm.InsetsStateController.$r8$lambda$An2IoiA3BeA5IWc6QwBOjKArM80(Unknown Source:0)
at com.android.server.wm.InsetsStateController$$ExternalSyntheticLambda3.run(Unknown Source:2)
at com.android.server.wm.WindowAnimator.executeAfterPrepareSurfacesRunnables(WindowAnimator.java:345)
at com.android.server.wm.WindowAnimator.animate(WindowAnimator.java:226)
at com.android.server.wm.WindowAnimator.lambda$new$1(WindowAnimator.java:106)
at com.android.server.wm.WindowAnimator.$r8$lambda$fo2Nk5bb9hY3lvmHsTnTEwtZMbI(Unknown Source:0)
at com.android.server.wm.WindowAnimator$$ExternalSyntheticLambda1.doFrame(Unknown Source:2)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1229)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1239)
at android.view.Choreographer.doCallbacks(Choreographer.java:899)
at android.view.Choreographer.doFrame(Choreographer.java:827)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1214)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.os.HandlerThread.run(HandlerThread.java:67)
at com.android.server.ServiceThread.run(ServiceThread.java:44)
2023-06-03 16:29:05.125 1757-2084 WindowManager system_server W Exception thrown during dispatchAppVisibility Window{429610b u0 io.flutter.demo.gallery/io.flutter.demo.gallery.MainActivity EXITING}
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(BinderProxy.java:584)
at android.view.IWindow$Stub$Proxy.dispatchAppVisibility(IWindow.java:536)
at com.android.server.wm.WindowState.sendAppVisibilityToClients(WindowState.java:3484)
at com.android.server.wm.WindowContainer.sendAppVisibilityToClients(WindowContainer.java:1231)
at com.android.server.wm.WindowToken.setClientVisible(WindowToken.java:392)
at com.android.server.wm.ActivityRecord.setClientVisible(ActivityRecord.java:6770)
at com.android.server.wm.ActivityRecord.onAnimationFinished(ActivityRecord.java:7592)
at com.android.server.wm.ActivityRecord.postApplyAnimation(ActivityRecord.java:5454)
at com.android.server.wm.ActivityRecord.commitVisibility(ActivityRecord.java:5414)
at com.android.server.wm.ActivityRecord.commitVisibility(ActivityRecord.java:5418)
at com.android.server.wm.AppTransitionController.handleClosingApps(AppTransitionController.java:1158)
at com.android.server.wm.AppTransitionController.handleAppTransitionReady(AppTransitionController.java:268)
at com.android.server.wm.RootWindowContainer.checkAppTransitionReady(RootWindowContainer.java:970)
at com.android.server.wm.RootWindowContainer.performSurfacePlacementNoTrace(RootWindowContainer.java:834)
at com.android.server.wm.RootWindowContainer.performSurfacePlacement(RootWindowContainer.java:777)
at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop(WindowSurfacePlacer.java:177)
at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:126)
at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:115)
at com.android.server.wm.WindowSurfacePlacer$Traverser.run(WindowSurfacePlacer.java:57)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.os.HandlerThread.run(HandlerThread.java:67)
at com.android.server.ServiceThread.run(ServiceThread.java:44)
2023-06-03 16:29:05.498 1757-2083 ActivityTaskManager system_server W Activity top resumed state loss timeout for ActivityRecord{873f12b u0 io.flutter.demo.gallery/.MainActivity} t-1 f}}
---------------------------- PROCESS ENDED (28700) for package io.flutter.demo.gallery ----------------------------
I'll disable deferred components for now.
Existing issue?
What happened?
Expected vs actual result:
While testing the Deferred Component feature locally Expected - After clicking on Crane, it should load. Actual - After clicking on Crane, the expected
DeferredWidget
is shown but the app crashes roughly after 3 seconds.Steps to reproduce:
git clone git@github.com:flutter/gallery.git
.flutter channel master
.flutter build appbundle
.bundletool build-apks --bundle=./build/app/outputs/bundle/release/app-release.aab --output=app.apks --local-testing
.bundletool install-apks --apks app.apks
.Just to mention, the release app on the Play Store is not the Deferred Component enabled build. The last app updated on the Play Store was on 26th May 2021. Any reason why it is not being updated? Have I missed any updates in the Flutter community regarding Gallery App?
My primary motivation behind doing this was to test the Deferred Component in my private app. I referred following documentations
But, once I publish the App Bundle, the
DeferredWidget
is shown but stays in that state only.I also tried to make the build
debuggable true
in the release block of bothapp
andcrane
module. But after runningbundletool install-apks --apks app.apks
, the app crashes on the initial load.I would also like to draw attention to the below note mentioned in https://developer.android.com/guide/playcore
Relevant log output
flutter doctor -v
adb logcat -d > log.txt