-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue with Linking AOT files... take forever for iOS patch #2160
Comments
I seem to recall Felix or Bryan mentioning there was a possible hang in the linker when a subcommand fails? |
I don't know i just run shorebird patch with verbose it just hanging there for more than 3000 seconds and not work ever |
Thanks. @erickzanardo is investigating as we speak. We're not yet sure where it's hanging. |
Yesterday it worked with me just one time after deleting everything related to IOS and after that time it won't work again even when repeating same steps Maybe this will be helpful |
@rashedswen can you verify if there is a This file can contain informations that might help us debug this. |
I can't locate it, can you give me possible path? |
Hey @rashedswen, I just realized that you will not get those files since the command is hanging before that would move the debug files into the build folder. I've just landed a PR that will log the location where the debug files will be stored before they are consolidate. If it is not much of a hassle, could you try running you patch from shorebird in the main channel and verifying if you can grab the debug files with the instruction of the log? To get in shorebird's main channel should be simple, you just need to enter in your shorebird installation folder (which will be Then, when running the patch with If you can zip the contents of that folder and send it us, we would really appreciate, and we hope that with that information we may be able to find some clues on what is happening. PS: Don't forget to checkout back to the stable branch afterwards. Thanks! |
Ok @erickzanardo i will do it and keep you updated |
After switching to main and try to patch, and try it several time, still can't see terminal dumping any files related to debug info |
Thanks for giving it a try, sorry for any trouble, I am not sure why you don't see the log. Going to put more thought in this and will come back to here. |
Hi, is there any update on this? |
We looked again just now, and don't really have any good theories for why it's hanging. @erickzanardo is investigating adding more debug logging from our side, but it might be quicker to work on it with you if you're able to reproduce? Would you be interested/willing to debug with us? Or if your project is open source, we're happy to repro from your project directly. https://calendly.com/eseidel can schedule directly with my calendar, or if you just ping us on Discord: https://discord.gg/shorebird, we're happy to debug interactively with you there (either via text or video call). |
sorry format response, I will try to make patch today if that doesn't work I will jump into debug session with you, is that okay? |
We're happy to work with you. https://discord.gg/shorebird is the fastest way to reach us. |
We believe this is resolved. @erickzanardo did work here to better log. We've not heard any reports of this since. Please let us know if that's not the case! |
Please I started having this same issue yesterday while trying to push an iOS patch, I have tried all suggestions online but could not resolve it till now, and I am using the latest Shorebird version. I have attached the log file and the error I am getting below ✗ Failed to link AOT files: aot_tools link --base=/var/folders/9x/t5lx9zcs12b3kgjjsq7_qjw00000gn/T/mObt1H/Products/Applications/Runner.app/Frameworks/App.framework/App --patch=/Users/uceemfb/StudioProjects/Mobile%20App/build/out.aot --analyze-snapshot=/Users/uceemfb/.shorebird/bin/cache/flutter/634e1f4587f660b4e74b87e5f05bc8d0bf3a9453/bin/cache/artifacts/engine/ios-release/analyze_snapshot_arm64 --output=/Users/uceemfb/StudioProjects/Mobile%20App/build/out.vmcode --verbose --gen-snapshot=/Users/uceemfb/.shorebird/bin/cache/flutter/634e1f4587f660b4e74b87e5f05bc8d0bf3a9453/bin/cache/artifacts/engine/ios-release/gen_snapshot_arm64 --kernel=/Users/uceemfb/StudioProjects/Mobile%20App/build/app.dill --reporter=json --redirect-to=/Users/uceemfb/StudioProjects/Mobile%20App/build/link.jsonl --dump-debug-info=/var/folders/9x/t5lx9zcs12b3kgjjsq7_qjw00000gn/T/O6WyUq failed with exit code 255 stderr: /Users/uceemfb/.shorebird/bin/cache/flutter/634e1f4587f660b4e74b87e5f05bc8d0bf3a9453/bin/cache/artifacts/engine/ios-release/analyze_snapshot_arm64 --shorebird --out=/var/folders/9x/t5lx9zcs12b3kgjjsq7_qjw00000gn/T/O6WyUq/out.analyze_snapshot.json /Users/uceemfb/StudioProjects/Mobile%20App/build/out.aot Failure reading snapshot Unhandled exception: #0 SnapshotAnalyzer._run (package:aot_tools/src/snapshot_analyzer.dart:59:7) 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: |
App ID: 218d4c39-68d5-4c6d-9df1-7ba35ed338f9
Description
when try to patch IOS I stuck on Linking AOT files which may take a long time (more than 3000 seconds and not finished yet) ,I try Flutter Clean, reinstall Shorebird and all other ways to solve this, and still not solved
Steps To Reproduce
run
shorebird patch --platforms=ios --flavor production -t lib/main_production.dart
stuck on
Expected Behavior
finish patching the app with short linking time as always
Screenshots
If applicable, add screenshots to help explain your problem.
Additional Context
stuck here
The text was updated successfully, but these errors were encountered: