shorebirdtech / shorebird

Code Push for Flutter and other tools for Flutter businesses.
https://shorebird.dev
Other
2.27k stars 135 forks source link

fix: crash after try to patch ios (Crash occurred when compiling unknown function in AOT mode in unknown pass) #2541

Open rizkijuliansyaham opened 4 days ago

rizkijuliansyaham commented 4 days ago

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

===== CRASH ===== si_signo=Segmentation fault: 11(11), si_code=SEGV_MAPERR(1), si_addr=0xb6e8509c version=3.5.3 (stable) (Mon Sep 30 11:25:48 2024 -0500) on "macos_simarm64" pid=74684, thread=259, isolate_group=isolate(0x7f9f7f009800), isolate=isolate(0x7f9f7f00ea00) os=macos, arch=arm64, comp=no, sim=yes isolate_instructions=0, vm_instructions=0 fp=7ff7b5e9a1b0, sp=7ff7b5e9a170, pc=10a4ec294 pc 0x000000010a4ec294 fp 0x00007ff7b5e9a1b0 dart::kernel::TranslationHelper::DartString(dart::kernel::StringIndex, dart::Heap::Space)+0x44 pc 0x000000010a3104d4 fp 0x00007ff7b5e9af50 dart::Precompiler::DoCompileAll()+0x2e34 pc 0x000000010a30d2f7 fp 0x00007ff7b5e9b3d0 dart::Precompiler::CompileAll()+0x957 pc 0x000000010a06c79e fp 0x00007ff7b5e9bb50 dart::bin::CreateIsolateAndSnapshot(dart::bin::CommandLineOptions const&)+0x397e pc 0x000000010a07049a fp 0x00007ff7b5e9c040 main+0x10ea pc 0x00007ff807aa7366 fp 0x00007ff7b5e9c260 start+0x796 -- End of DumpStackTrace === Crash occurred when compiling unknown function in AOT mode in unknown pass === Flow Graph not available

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 Shorebird 1.4.0 • git@github.com:shorebirdtech/shorebird.git Flutter 3.24.3 • revision 5a6dc546e8ecd01fe3b9527f082ff2d6864374f9 Engine • revision 033ec57900456ca7f8cd4bb59c2773a8ce27cb5d

this is my shorebird doctor

✓ Shorebird is up-to-date (2.1s) ✓ Flutter install is correct (1.0s) ✓ AndroidManifest.xml files contain INTERNET permission (93ms) ✓ Has access to api.shorebird.dev (0.8s) ✓ Has access to storage.googleapis.com (0.4s) ✓ shorebird.yaml found in pubspec.yaml assets (27ms)

this is my flutter doctor ✓] Flutter (Channel stable, 3.24.3, on macOS 14.4 23E214 darwin-x64, locale en-ID) • Flutter version 3.24.3 on channel stable at /Users/satuankerjati/DevLibrary/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 2663184aa7 (5 weeks ago), 2024-09-11 16:27:48 -0500 • Engine revision 36335019a8 • Dart version 3.5.3 • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /Users/satuankerjati/Library/Android/sdk • Platform android-31, build-tools 30.0.2 • Java binary at: /usr/bin/java • Java version Java(TM) SE Runtime Environment (build 16+36-2231) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15E204a • CocoaPods version 1.15.2

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/to/macos-android-setup for detailed instructions).

[✓] IntelliJ IDEA Community Edition (version 2023.3.2) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 77.0.1 • Dart plugin version 233.13135.65

[✓] Connected device (3 available) • Developer’s iPhone (mobile) • 00008120-000905390EF3C01E • ios • iOS 16.2 20C65 • macOS (desktop) • macos • darwin-x64 • macOS 14.4 23E214 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 129.0.6668.101

[✓] Network resources • All expected network resources are available.

bryanoltman commented 3 days ago

For starters, can you share your app id, the release version, and the patch number where you saw this?

rizkijuliansyaham commented 3 days ago

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