Skip to content

Conversation

@jacobsimionato
Copy link
Contributor

This is intended to fix a bug where DDM iOS builds were not working in release mode and failing at runtime with an error like:

Failed to find snapshot at /private/var/containers/Bundle/Application/CA6AA16E-2C5E-4C1F-A650-E48AC9AC68BD/my_app.app/Frameworks/ios.framework/ios.assets/kernel_blob.bin:
Error Domain=NSCocoaErrorDomain Code=260 "The file “kernel_blob.bin” couldn’t be opened because there is no such file."
UserInfo={NSURL=kernel_blob.bin -- 
file:///private/var/containers/Bundle/Application/CA6AA16E-2C5E-4C1F-A650-E48AC9AC68BD/my_app.app/Frameworks/ios.framework/ios.assets/, NSFilePath=/private/var/containers/Bundle/Application/CA6AA16E-2C5E-4C1F-A650-E48AC9AC68BD/my_app.app/Frameworks/ios.framework/ios.assets/kernel_blob.bin, NSUnderlyingError=0x302f3b480 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

I think what was happening is the Google internal build infra was trying to create a release mode app with no kernel_blob.bin etc, but it actually contained a flutter.so built for debug mode which was expecting to find kernel_blob.bin.

See internal bug b/419694561 for full context.

@github-actions github-actions bot added the engine flutter/engine related. See also e: labels. label May 26, 2025
@jacobsimionato jacobsimionato added the autosubmit Merge PR when tree becomes green via auto submit App label May 26, 2025
@auto-submit auto-submit bot added this pull request to the merge queue May 26, 2025
Merged via the queue into flutter:master with commit 1a8e8fb May 26, 2025
181 checks passed
@flutter-dashboard flutter-dashboard bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 26, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 26, 2025
auto-submit bot pushed a commit to flutter/packages that referenced this pull request May 26, 2025
flutter/flutter@60050a0...4372bfb

2025-05-26 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Add workspace (#169451)" (flutter/flutter#169468)
2025-05-26 [email protected] Add workspace (flutter/flutter#169451)
2025-05-26 [email protected] Fix wrong path in 'archives' for release mode iOS DDM artifacts. (flutter/flutter#169448)
2025-05-26 [email protected] Roll Fuchsia Linux SDK from -eo2JqnJBauuGSzoW... to 5mpmPsuD8rpeiJizT... (flutter/flutter#169446)
2025-05-25 [email protected] Roll Fuchsia Linux SDK from XtPp9bBW49iDJ0wbA... to -eo2JqnJBauuGSzoW... (flutter/flutter#169424)
2025-05-24 [email protected] Roll Skia from 91dc88dc70e5 to 443f5257f382 (1 revision) (flutter/flutter#169422)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
stan-at-work pushed a commit to stan-at-work/flutter that referenced this pull request May 26, 2025
…tter#169448)

This is intended to fix a bug where DDM iOS builds were not working in
release mode and failing at runtime with an error like:
```
Failed to find snapshot at /private/var/containers/Bundle/Application/CA6AA16E-2C5E-4C1F-A650-E48AC9AC68BD/my_app.app/Frameworks/ios.framework/ios.assets/kernel_blob.bin:
Error Domain=NSCocoaErrorDomain Code=260 "The file “kernel_blob.bin” couldn’t be opened because there is no such file."
UserInfo={NSURL=kernel_blob.bin -- 
file:///private/var/containers/Bundle/Application/CA6AA16E-2C5E-4C1F-A650-E48AC9AC68BD/my_app.app/Frameworks/ios.framework/ios.assets/, NSFilePath=/private/var/containers/Bundle/Application/CA6AA16E-2C5E-4C1F-A650-E48AC9AC68BD/my_app.app/Frameworks/ios.framework/ios.assets/kernel_blob.bin, NSUnderlyingError=0x302f3b480 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
```

I think what was happening is the Google internal build infra was trying
to create a release mode app with no kernel_blob.bin etc, but it
actually contained a flutter.so built for debug mode which was expecting
to find kernel_blob.bin.

See internal bug b/419694561 for full context.
FMorschel pushed a commit to FMorschel/packages that referenced this pull request Jun 9, 2025
…#9322)

flutter/flutter@60050a0...4372bfb

2025-05-26 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Add workspace (#169451)" (flutter/flutter#169468)
2025-05-26 [email protected] Add workspace (flutter/flutter#169451)
2025-05-26 [email protected] Fix wrong path in 'archives' for release mode iOS DDM artifacts. (flutter/flutter#169448)
2025-05-26 [email protected] Roll Fuchsia Linux SDK from -eo2JqnJBauuGSzoW... to 5mpmPsuD8rpeiJizT... (flutter/flutter#169446)
2025-05-25 [email protected] Roll Fuchsia Linux SDK from XtPp9bBW49iDJ0wbA... to -eo2JqnJBauuGSzoW... (flutter/flutter#169424)
2025-05-24 [email protected] Roll Skia from 91dc88dc70e5 to 443f5257f382 (1 revision) (flutter/flutter#169422)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Ortes pushed a commit to Ortes/packages that referenced this pull request Jun 25, 2025
…#9322)

flutter/flutter@60050a0...4372bfb

2025-05-26 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Add workspace (#169451)" (flutter/flutter#169468)
2025-05-26 [email protected] Add workspace (flutter/flutter#169451)
2025-05-26 [email protected] Fix wrong path in 'archives' for release mode iOS DDM artifacts. (flutter/flutter#169448)
2025-05-26 [email protected] Roll Fuchsia Linux SDK from -eo2JqnJBauuGSzoW... to 5mpmPsuD8rpeiJizT... (flutter/flutter#169446)
2025-05-25 [email protected] Roll Fuchsia Linux SDK from XtPp9bBW49iDJ0wbA... to -eo2JqnJBauuGSzoW... (flutter/flutter#169424)
2025-05-24 [email protected] Roll Skia from 91dc88dc70e5 to 443f5257f382 (1 revision) (flutter/flutter#169422)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 14, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 14, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 15, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 15, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants