Open joelc0193 opened 1 year ago
That sure is unexpected. 🤔
Does adb logcat
show more information about the crash?
Here is the output from the moment I open the app:
08-27 21:41:07.100 986 986 D TaplEvents: Main / Touch event: MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=691.9629, y[0]=1830.8838, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x1, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=3370167, downTime=3370167, deviceId=11, source=0x5002, displayId=0 }
08-27 21:41:07.182 986 986 D TaplEvents: Main / Touch event: MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=691.9629, y[0]=1830.8838, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x1, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=3370250, downTime=3370167, deviceId=11, source=0x5002, displayId=0 }
08-27 21:41:07.195 986 986 D TaplEvents: Main / start: startAppShortcutOrInfoActivity
08-27 21:41:07.198 515 599 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.gmail.joelc0193.st_james_park_app/.MainActivity bnds=[585,1648][854,2056]} from uid 10137
08-27 21:41:07.199 515 536 D EventSequenceValidator: inc AccIntentStartedEvents to 2
08-27 21:41:07.211 515 5401 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
08-27 21:41:07.211 515 5401 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
08-27 21:41:07.216 415 415 I perfetto: ing_service_impl.cc:758 Configured tracing session 49, #sources:1, duration:5000 ms, #buffers:1, total buffer size:4096 KB, total sessions:1, uid:1071 session name: ""
08-27 21:41:07.219 515 515 W ActivityManager: Unable to start service Intent { act=android.service.appprediction.AppPredictionService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiPredictionService } U=0: not found
08-27 21:41:07.219 515 515 W RemoteAppPredictionService: could not bind to Intent { act=android.service.appprediction.AppPredictionService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiPredictionService } using flags 67108865
08-27 21:41:07.226 406 406 I perfetto: probes_producer.cc:230 Ftrace setup (target_buf=49)
08-27 21:41:07.237 515 536 D CompatibilityChangeReporter: Compat change id reported: 135634846; UID 10164; state: DISABLED
08-27 21:41:07.238 515 543 D CompatibilityChangeReporter: Compat change id reported: 143937733; UID 10164; state: ENABLED
08-27 21:41:07.257 306 351 D goldfish-address-space: claimShared: Ask to claim region [0x3e6613000 0x3e76c6000]
08-27 21:41:07.371 383 456 D AF::Track: interceptBuffer: took 5862us to intercept 0 tracks
08-27 21:41:07.381 290 290 D Zygote : Forked child process 9265
08-27 21:41:07.388 515 599 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
08-27 21:41:07.393 515 543 W ActivityManager: Slow operation: 157ms so far, now at startProcess: returned from zygote!
08-27 21:41:07.397 406 406 I perfetto: ftrace_procfs.cc:176 enabled ftrace
08-27 21:41:07.377 0 0 W perfetto: enabled ftrace
08-27 21:41:07.404 515 543 W ActivityManager: Slow operation: 158ms so far, now at startProcess: done updating battery stats
08-27 21:41:07.404 515 543 W ActivityManager: Slow operation: 168ms so far, now at startProcess: building log message
08-27 21:41:07.404 515 543 I ActivityManager: Start proc 9265:com.gmail.joelc0193.st_james_park_app/u0a164 for pre-top-activity {com.gmail.joelc0193.st_james_park_app/com.gmail.joelc0193.st_james_park_app.MainActivity}
08-27 21:41:07.404 515 543 W ActivityManager: Slow operation: 169ms so far, now at startProcess: starting to update pids map
08-27 21:41:07.406 515 543 W ActivityManager: Slow operation: 170ms so far, now at startProcess: done updating pids map
08-27 21:41:07.434 9265 9265 W _james_park_ap: Unexpected CPU variant for X86 using defaults: x86
08-27 21:41:07.449 387 411 I adbd : jdwp connection from 9265
08-27 21:41:07.468 515 599 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.468 515 599 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.468 515 599 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.468 515 599 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.468 515 599 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.468 515 599 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.468 515 599 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.468 515 599 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.468 515 599 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.468 515 599 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.469 515 599 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.469 515 599 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.469 515 599 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.469 515 599 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.469 515 599 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.469 515 599 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.469 515 599 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.469 515 599 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.469 515 599 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.469 515 599 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
08-27 21:41:07.492 9265 9265 I _james_park_ap: The ClassLoaderContext is a special shared library.
08-27 21:41:07.509 9265 9265 D NetworkSecurityConfig: No Network Security Config specified, using platform default
08-27 21:41:07.511 9265 9265 D NetworkSecurityConfig: No Network Security Config specified, using platform default
08-27 21:41:07.528 9265 9265 I FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT]
08-27 21:41:07.532 9265 9265 I FirebaseInitProvider: FirebaseApp initialization successful
08-27 21:41:07.570 515 599 D CompatibilityChangeReporter: Compat change id reported: 136274596; UID 10164; state: ENABLED
08-27 21:41:07.599 9265 9297 D libEGL : loaded /vendor/lib/egl/libEGL_emulation.so
08-27 21:41:07.603 9265 9297 D libEGL : loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
08-27 21:41:07.613 9265 9297 D libEGL : loaded /vendor/lib/egl/libGLESv2_emulation.so
08-27 21:41:07.620 9265 9265 E FlutterLoader: Flutter initialization failed.
08-27 21:41:07.620 9265 9265 E FlutterLoader: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dlopen failed: library "libflutter.so" not found
08-27 21:41:07.620 9265 9265 E FlutterLoader: at java.util.concurrent.FutureTask.report(FutureTask.java:123)
08-27 21:41:07.620 9265 9265 E FlutterLoader: at java.util.concurrent.FutureTask.get(FutureTask.java:193)
08-27 21:41:07.620 9265 9265 E FlutterLoader: at h6.d.e(Unknown Source:28)
08-27 21:41:07.620 9265 9265 E FlutterLoader: at io.flutter.embedding.engine.d.
OK:
08-27 21:41:07.620 9265 9265 E FlutterLoader: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dlopen failed: library "libflutter.so" not found
And:
08-27 21:41:07.434 9265 9265 W _james_park_ap: Unexpected CPU variant for X86 using defaults: x86
I presume this is running in an x86 emulator or x86 device?
We just realized on Friday we had failed to publish the x86 assets for the last few builds. Which I suspect is the issue here. Preview should probably have been smart enough not to install a non-x86 apk on an x86 device though.
We should have an x86 fix in the next few days.
yes this is running on an x86 emulator.
so the answer is to wait then. Thanks!
Yeah. Sorry, we discovered on Friday that we hadn't been producing x86 builds of the shorebird engine for a while, but now that we've discovered it the fix should be easy. I expect our next release of shorebird (in the next couple days) will include x86 support.
Just wanted to let you know we have not forgotten. Just been a busy week with some other infrastructure changes and we haven't gotten to this yet.
OK, so we looked at this (and even tried to set up our builders to produce Shorebird binaries for x86 Android). We cannot produce an x86 Android binary at this time. Why?
We could make a Shorebird engine with Dart JIT mode and Flutter release. But I suspect the correct solution is for our tool to detect this case (that it's being asked to run on an x86 emulator), refuse to and show a nice error message about using an ARM emulator instead.
Have you tried using an ARM emulator? Let us know if that's not an option for you. https://stackoverflow.com/questions/30405740/android-studio-how-can-i-make-an-avd-with-arm-instead-of-haxm
@bryanoltman so I think the fix here is in shorebird
to have it detect the arch of the device it's about to connect to and if it's x86 to show and error and maybe point to the above comment:
https://stackoverflow.com/questions/6630386/how-to-find-arm-processor-version-on-android-device
I can use an ARM emulator, thank you!
Description
When I do
shorebird preview
the app that gets installed crashes everytime I open it. But my app runs fine when I run it on debug mode directly from VSCode.Expected Behavior
The app installed via
shorebird preview
should run the same as when I run the app in debug mode through VSCode.Additional Context
Output of
shorebird preview
:(base) Joels-MBP:sdk jcastro2$ shorebird preview ✓ Fetching apps (0.2s) Which app would you like to preview? st_james_park_app ✓ Fetching releases (69ms) Which release would you like to preview? 2.0.0+2 Which platform would you like to preview? android ✓ Extracting metadata (0.4s) ✓ Installing apks (6.1s) ✓ Starting app (0.7s) --------- beginning of kernel
--------- beginning of main
--------- beginning of system
--------- beginning of crash
08-27 18:39:26.287 5674 5723 I flutter : The Dart VM service is listening on http://127.0.0.1:37009/jkKEvrd8g6w=/