Skip to content
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

fix: Failed to link AOT files: #2014

Closed
aloRanking opened this issue May 5, 2024 · 4 comments
Closed

fix: Failed to link AOT files: #2014

aloRanking opened this issue May 5, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@aloRanking
Copy link

App ID: bd67c34c-c2a6-413d-b7bf-32024db04d8a

Description

I ran "shorebird patch android" and "shorebird patch ios"successfully the first time. I tried running "shorebird patch iOS" the next time but ran into failed to link AOT files. "shorebird patch android" has no issue the second time.

Screenshot 2024-05-05 at 06 41 07

Crash log.
===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=SEGV_MAPERR(1), si_addr=0x8b9248
Aborting reentrant request for stack trace.

Unhandled exception:
Exception: gen_snapshot failed
#0 SnapshotGenerator.generateAotElfSnapshot (package:aot_tools/src/snapshot_generator.dart:37:7)
#1 LinkCommand._generateOptimizedPatchSnapshot (package:aot_tools/src/commands/link_command.dart:262:24)
#2 LinkCommand.run (package:aot_tools/src/commands/link_command.dart:134:40)
#3 CommandRunner.runCommand (package:args/command_runner.dart:212:27)
#4 CommandRunner.run. (package:args/command_runner.dart:122:25)
#5 new Future.sync (dart:async/future.dart:305:31)
#6 CommandRunner.run (package:args/command_runner.dart:122:14)
#7 main. (file:///home/gha/.engine_checkout/engine/src/third_party/dart/pkg/aot_tools/bin/aot_tools.dart:9:57)
#8 _rootRun (dart:async/zone.dart:1399:13)
#9 _CustomZone.run (dart:async/zone.dart:1301:19)
#10 _runZoned (dart:async/zone.dart:1804:10)
#11 runZoned (dart:async/zone.dart:1747:10)
#12 LoggerOverrides.runZoned (package:aot_tools/src/logger.dart:28:18)
#13 runWithLogger (package:aot_tools/src/logger.dart:18:26)
#14 main (file:///home/gha/.engine_checkout/engine/src/third_party/dart/pkg/aot_tools/bin/aot_tools.dart:9:26)
#15 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:295:33)
#16 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

@aloRanking aloRanking added the bug Something isn't working label May 5, 2024
@kishanPortpro
Copy link

I am also getting the same issue. Does anyone know the any work around to help me to fixed this issue ?

@felangel
Copy link
Contributor

felangel commented May 6, 2024

We’ll take a closer look shortly and get back to you. In the meantime any information you can provide such as the output of shorebird doctor -v and the type of change you made in the patch would be super helpful, thanks!

@kishanPortpro
Copy link

Hey @felangel Thanks for your response. It seems like this issue is no longer coming in new version as I've uploaded successfully 3 patchs on IOS so. Still If I get anything related to this in future I'll send you the log.
Thanks!

@eseidel
Copy link
Contributor

eseidel commented May 6, 2024

Thank you! Please let us know if you ever see anything like this again, we'd love to help!

@eseidel eseidel closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants