-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoledependency: dartDart team may need to help usDart team may need to help ustoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
It may be identical issue to #21623 but I also facing Segmentation fault on building iOS app.
During flutter build ios, I got the following error:
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release ===
Building AOT snapshot in release mode (ios-release)...
===== CRASH =====
version=2.1.0-dev.4.0.flutter-ef72098353 (Mon Sep 10 15:31:09 2018 +0000) on "macos_simarm"
si_signo=Segmentation fault: 11(11), si_code=1, si_addr=0x10c
Dart snapshot generator failed with exit code -6
Building App.framework for arm64...
Built to build/aot/.
Snapshotting (IOSArch.armv7) exited with non-zero exit code: -6
Snapshotting (IOSArch.arm64) exited with non-zero exit code: 0
cp: build/aot/App.framework: No such file or directory
And, I created a very simple repro case. Only pubspec.yaml and lib/main.dart are changed.
It uses pdf_render plugin and the changes on main.dart is:
import 'package:pdf_render/pdf_render.dart';
...
PdfPageImage image;
@override
void initState() {
super.initState();
initWidgetState();
}
Future<void> initWidgetState() async {
final doc = await PdfDocument.openFile('test.pdf'); // NOT WORKING BECAUSE THE FILE IS NOT THERE
final page = await doc.getPage(1);
final image = await page.render(width: 1000, height: 1000);
setState(() { this.image = image; });
}It occasionally succeeds but normally fails.
Currently, I'm using master but beta also causes the same error:
[✓] Flutter (Channel master, v0.8.3-pre.24, on Mac OS X 10.13.6 17G65, locale en-JP)
• Flutter version 0.8.3-pre.24 at /Users/kawasaki/flutter
• Framework revision 387948a239 (7 hours ago), 2018-09-11 08:51:42 +0200
• Engine revision e65beb89da
• Dart version 2.1.0-dev.4.0.flutter-ef72098353
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
• Android SDK at /Users/kawasaki/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
radiKal07 and timfreiheit
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoledependency: dartDart team may need to help usDart team may need to help ustoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.