Open rizkijuliansyaham opened 1 month ago
For starters, can you share your app id, the release version, and the patch number where you saw this?
For starters, can you share your app id, the release version, and the patch number where you saw this?
2b9f7e47-5682-49ba-bf33-e0a7d977810e
this is my app id. Thanks
For starters, can you share your app id, the release version, and the patch number where you saw this?
2b9f7e47-5682-49ba-bf33-e0a7d977810e
this is my app id. Thanks
Thank you.
Can you share the release version as well as the full patch command that you ran? Thanks!
Can you share the release version as well as the full patch command that you ran? Thanks!
this is my full patch cmd :
shorebird patch ios -t lib/main.dart --flavor prod --dart-define-from-file=env_prod.json --verbose
and the release version is 3.2.14+71
Thanks
@rizkijuliansyaham Out of curiosity, does this happen every time? If you create a new app using flutter create my_new_app
, create a release, and attempt to patch it, do you see the same error?
3.24.3 same error message here when build ipa, run on simulator no problem
It's unsurprising that this would run on the simulator, as that isn't using shorebird at all.
Does this command show you a path to a log file when it exits? If so, can you share it here?
Failed to create snapshot: ===== CRASH ===== si_signo=Segmentation fault: 11(11), si_code=SEGV_MAPERR(1), si_addr=0x15a94c09c version=3.5.3 (stable) (Mon Sep 30 11:25:48 2024 -0500) on "macos_simarm64" pid=89781, thread=259, isolate_group=isolate(0x7fbd98808200), isolate=isolate(0x7fbd9880da00) os=macos, arch=arm64, comp=no, sim=yes isolate_instructions=0, vm_instructions=0 fp=30e4281b0, sp=30e428170, pc=105062294 pc 0x0000000105062294 fp 0x000000030e4281b0 dart::kernel::TranslationHelper::DartString(dart::kernel::StringIndex, dart::Heap::Space)+0x44 pc 0x0000000104e864d4 fp 0x000000030e428f50 dart::Precompiler::DoCompileAll()+0x2e34 pc 0x0000000104e832f7 fp 0x000000030e4293d0 dart::Precompiler::CompileAll()+0x957 pc 0x0000000104be279e fp 0x000000030e429b50 dart::bin::CreateIsolateAndSnapshot(dart::bin::CommandLineOptions const&)+0x397e pc 0x0000000104be649a fp 0x000000030e42a040 main+0x10ea pc 0x000000020572f2cd fp 0x000000030e42a270 Unknown symbol -- End of DumpStackTrace === Crash occurred when compiling unknown function in AOT mode in unknown pass === Flow Graph not available (554.6s) [Process.run] git symbolic-ref HEAD (in /Users/-------/.shorebird/bin/cache) Exited with code 0
stdout: refs/heads/stable
[Process.run] git rev-parse --verify HEAD (in /Users/-------/.shorebird/bin/cache) Exited with code 0
stdout: 284eb5a1af9a4c6e9195def5ff5905dae779a1cc
[Process.run] git remote prune origin (in /Users/-------/.shorebird/bin/cache) Exited with code 0 [Process.run] git fetch --tags (in /Users/-------/.shorebird/bin/cache) Exited with code 0 [Process.run] git rev-parse --verify @{upstream} (in /Users/-------/.shorebird/bin/cache) Exited with code 0
stdout: 284eb5a1af9a4c6e9195def5ff5905dae779a1cc
There's no mention of a log file.
@Oladips can you share the output of shorebird doctor -v
as well as the command you're running?
shorebird doctor -v Shorebird 1.4.8 • git@github.com:shorebirdtech/shorebird.git Flutter 3.24.4 • revision de629bcb9c96360eb3ca20fcc045263c19b1a33d Engine • revision edb175f4b6894b63d8217952f0e4f59adb97a7e2
Logs: /Users/------/Library/Application Support/shorebird/logs Android Toolchain • Android Studio: /Applications/Android Studio.app/Contents • Android SDK: /Users/------/Library/Android/sdk • ADB: /Users/------/Library/Android/sdk/platform-tools/adb • JAVA_HOME: /Applications/Android Studio.app/Contents/jbr/Contents/Home • JAVA_EXECUTABLE: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • JAVA_VERSION: openjdk version "17.0.7" 2023-04-18 OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) OpenJDK 64-Bit Server VM (build 17.0.7+0-17.0.7b1000.6-10550314, mixed mode)
• Gradle: unknown
URL Reachability ✓ https://api.shorebird.dev OK (0.8s) ✓ https://console.shorebird.dev OK (1.1s) ✓ https://oauth2.googleapis.com OK (0.9s) ✓ https://storage.googleapis.com OK (0.5s) ✓ https://cdn.shorebird.cloud OK (0.8s)
Network Speed ✓ GCP Upload Speed: 1.02 MB/s (5.7s) ✓ GCP Download Speed: 2.42 MB/s (6.9s)
✓ Shorebird is up-to-date (85.6s) ✓ Flutter install is correct (1.0s) ✓ AndroidManifest.xml files contain INTERNET permission (56ms) ✓ shorebird.yaml found in pubspec.yaml assets (15ms)
No issues detected!
command: shorebird patch ios --flavor prod
Thank you! Forgot to ask earlier: what is your app id?
This is the app id: 802410a9-2b63-486b-bb6a-d314c94075fb
Hmm, it appears as though we don't have an app with that ID. Was it deleted, perhaps?
No it wasn't, it has a flavor config This is the prod id: 70f58f3e-115c-4732-9027-354319eb0a44
Thank you! I'm not seeing anything obviously wrong—you seem to be running on the latest macOS and using a recent enough Xcode. Can you run shorebird cache clean
and then try the patch command again?
I cleared my shorebird cache. Any shorebird command I run returns this.
my-app git:(v3) ✗ shorebird Updating Flutter... error: The following untracked working tree files would be overwritten by checkout: .ci.yaml .gitattributes .github/ISSUE_TEMPLATE/10_feature.yml .github/ISSUE_TEMPLATE/1_activation.yml .github/ISSUE_TEMPLATE/2_bug.yml .github/ISSUE_TEMPLATE/3_feature_request.yml .github/ISSUE_TEMPLATE/4_performance_others.yml .github/ISSUE_TEMPLATE/5_performance_speed.yml .github/ISSUE_TEMPLATE/6_infrastructure.yml .github/ISSUE_TEMPLATE/7_cherry_pick.yml .github/ISSUE_TEMPLATE/8_design_doc.yml .github/ISSUE_TEMPLATE/9_first_party_packages.yml .github/ISSUE_TEMPLATE/config.yml .github/PR_TEMPLATE/PULL_REQUEST_CP_TEMPLATE.md .github/PULL_REQUEST_TEMPLATE.md
Then it goes long and at the end I see Aborting
Very odd, it looks like something got corrupted with your shorebird installation. If you try reinstalling shorebird (usually this is rm -rf ~/.shorebird
and then curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash
), does the problem go away?
This fixes it but I still get the same error
Which release would you like to patch? 3.1.36+8 ✓ Installing Flutter 3.24.3 (5a6dc546e8) (29.0s) ✓ Running flutter precache (152.2s) ✓ Fetching xcarchive artifact (0.8s) ✓ Downloading xcarchive (100%) (53.6s) ✓ Downloading aot-tools.dill... (0.5s) ✓ Extracting aot-tools.dill... (3.6s) ✗ Failed to create snapshot: ===== CRASH ===== si_signo=Segmentation fault: 11(11), si_code=SEGV_MAPERR(1), si_addr=0x158ccc09c version=3.5.3 (stable) (Mon Sep 30 11:25:48 2024 -0500) on "macos_simarm64" pid=49649, thread=259, isolate_group=isolate(0x7ff77980a000), isolate=isolate(0x7ff77980fe00) os=macos, arch=arm64, comp=no, sim=yes isolate_instructions=0, vm_instructions=0 fp=30aa87d40, sp=30aa87d00, pc=1033ec294 pc 0x00000001033ec294 fp 0x000000030aa87d40 dart::kernel::TranslationHelper::DartString(dart::kernel::StringIndex, dart::Heap::Space)+0x44 pc 0x00000001032104d4 fp 0x000000030aa88ae0 dart::Precompiler::DoCompileAll()+0x2e34 pc 0x000000010320d2f7 fp 0x000000030aa88f60 dart::Precompiler::CompileAll()+0x957 pc 0x0000000102f6c79e fp 0x000000030aa896e0 dart::bin::CreateIsolateAndSnapshot(dart::bin::CommandLineOptions const&)+0x397e pc 0x0000000102f7049a fp 0x000000030aa89bd0 main+0x10ea pc 0x0000000203a052cd fp 0x000000030aa89e00 Unknown symbol -- End of DumpStackTrace === Crash occurred when compiling unknown function in AOT mode in unknown pass === Flow Graph not available (718.0s)
If you aren't sure why this command failed, re-run with the --verbose flag to see more information.
You can also file an issue if you think this is a bug. Please include the following log file in your report: /Users/------/Library/Application Support/shorebird/logs/1730743167060_shorebird.log
[Uploading 1730743167060_shorebird.log.zip…]()
That looks like the artifacts are outdated. This error means that gen_snapshot
is expecting a newer kernel format and we are using the older kernel format. Does the error also occur if you create a brand new flutter app (flutter create example -e
) and release/patch with a fresh shorebird installation?
Can you also share the md5 of your gen_snapshot executable?
md5 ~/.shorebird/bin/cache/flutter/5a6dc546e8ecd01fe3b9527f082ff2d6864374f9/bin/cache/artifacts/engine/ios-release/gen_snapshot_arm64
This is the md5:
MD5 (/Users/----/.shorebird/bin/cache/flutter/5a6dc546e8ecd01fe3b9527f082ff2d6864374f9/bin/cache/artifacts/engine/ios-release/gen_snapshot_arm64) = b0e1d4c654e8ec7fefcae519fc54c0b9
Do you mean I should create a new app and try it with shorebird release/patch, I need clarification on this?
At the moment, release works fine, no issues. Patch works fine on android, only iOS has this issue
Do you mean I should create a new app and try it with shorebird release/patch, I need clarification on this?
Yeah I meant is this only happening in your current project or does it happen in a new empty Flutter project as well?
This happens only in my current project, it's theonly one I have running on shorebird
Sounds like we're using the wrong app.dill. Can you try removing your build
directory and trying again?
It's just running infinitely
It's just running infinitely
Can you re-run with the -v
flag to see what step is taking so long?
Can you share the contents of build/link.jsonl
?
I can't find the aforementioned file in my build folder.
Hmm are you able to make a minimal reproduction sample? If not I'm happy to jump on a call to debug. The easiest way is to ping us on Discord.
Hi, sorry for the late reply, I am not able to make a reproduction sample.
@rizkijuliansyaham Out of curiosity, does this happen every time? If you create a new app using
flutter create my_new_app
, create a release, and attempt to patch it, do you see the same error?
I am sorry for late respond. at new project my condition is same with @Oladips , new project running normally.
Description
I have no issues with the iOS release, but when applying a patch for iOS, I encounter errors. However, debugging on the simulator runs smoothly without any problems
Steps To Reproduce
When I apply a patch, an error like this appears
Building patch with Flutter 3.24.3 (5a6dc546e8)... (711.2s)Exited with code -6
fyi, my storage space is still large. I dont get the point why this case show on me. Thanks.
Additional Context this is my shorebird version
this is my shorebird doctor
this is my flutter doctor