Closed swift-kim closed 2 years ago
I tried to build engine using --asan
, but I got this error :(
../../third_party/abseil-cpp/absl/base/dynamic_annotations.h:451:10: fatal error: 'sanitizer/common_interface_defs.h' file not found
@bbrto21 Are you saying the asan build failed? Is it the same for x64?
Plz, Ignore this, I was mistaken because I was not in the office. :cry:
Not sure..., but with this seemed to run on arm64.
diff --git a/tools/gn b/tools/gn
index f10bd92221..87a6e20582 100755
--- a/tools/gn
+++ b/tools/gn
@@ -390,6 +390,9 @@ def to_gn_args(args):
if args.target_os in ['android'] and gn_args['target_cpu'] in ['x64' , 'arm64']:
gn_args['dart_use_compressed_pointers'] = True
+ if args.target_os in ['linux'] and gn_args['target_cpu'] in ['x64' , 'arm64']:
+ gn_args['dart_use_compressed_pointers'] = True
+
return gn_args
def parse_args(args):
I think we are using a wrong gen_snapshot
. It seems Android's gen_snapshot
artifacts are no longer compatible with Tizen.
I think we are using a wrong
gen_snapshot
. It seems Android'sgen_snapshot
artifacts are no longer compatible with Tizen.
Great! How did you figure this out?
I knew it because I authored that part of the CI script: https://github.com/flutter-tizen/engine/pull/20/commits/f51d6825979229a9b83757f837e138caa6be7717
I have not been understand about gen_snapshot
stuff....
So.. Where should we fix it? 👀
@bwikbs I think we need to build and release our own gen_snapshots in the engine CI. I'll ask @WonyoungChoi or @bbrto21 to add Windows and macOS jobs to our GitHub Actions worflow. gen_snapshot can be built without having to build the whole engine on Windows: https://github.com/flutter/flutter/wiki/Compiling-the-engine#compiling-for-windows
@swift-kim I am still confused... This is Engine CI problem.. In my case, I build it myself.. Why am I going to be a problem? Don't you have a problem if you build it by yourself?
You build.. what?
As I told in the above we're currently using Android's gen_snapshot artifacts.
This decision was because we couldn't afford Windows and macOS EC2 instances when we were setting up the Azure Pipelines CI earlier in this year. Only gen_snapshots for Linux x64 are generated if you build the Flutter engine on a Linux machine. To build gen_snapshots for Windows and macOS hosts, you need to set up the engine build environment on Windows and macOS machines. Now that we are using GitHub Actions for our engine CI, we can now build our own gen_snapshots for Windows and macOS on Windows and macOS instances on GitHub Actions.
Aha, I understanded now! I thought this was just a matter of related to Engine. Thank you for a detailed explanation!
I think we are using a wrong
gen_snapshot
. It seems Android'sgen_snapshot
artifacts are no longer compatible with Tizen.
@swift-kim Have you tested flutter 2.8 with gen_snapshot generated on windows? (I'm trying it myself... it's taking a long time :sweat_smile:)
On Windows, gen_snapshot from android-arm-release
worked without this issue (I don't know why), but anyway we need to build our own gen_snapshots to make it work for general cases (especially arm64).
I'll close this issue in favor of https://github.com/flutter-tizen/engine/issues/224.
A segmentation fault occurs only in release mode:
How to reproduce:
TIZEN_ENGINE_AZURE_BUILD_ID=699 flutter-tizen precache --tizen
.Not sure how to debug because the crash occurs in the UI thread (Dart code), but maybe we can try reverting the Dart runtime version or running an asan build of the engine.