Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Conversation

@huanghongxun
Copy link
Contributor

This time we cannot throw and catch C++ exceptions in plugin platform code. Because Flutter statically links libcxx and libcxxabi which exposes symbols like __cxa_decrement_exception_refcount, which will introduce two versions of cxxabi functions, throwing libcxx exceptions, and catching them by libstdc++ method.
To fix this problem, this PR set __LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS to suppress symbol leaks, which is tested and worked correctly. All platforms artifacts will get benefit from this pr.

This pull request fixes issue flutter/flutter#66575 and flutter/flutter#74599.

@dcharkes
Copy link
Contributor

Verified locally that this solves flutter/flutter#74599.

Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the PR!

@stuartmorgan-g stuartmorgan-g merged commit 33f05b6 into flutter:master Jan 27, 2021
stuartmorgan-g added a commit to flutter/engine that referenced this pull request Jan 27, 2021
stuartmorgan-g added a commit to flutter/engine that referenced this pull request Jan 28, 2021
stuartmorgan-g pushed a commit that referenced this pull request Jan 28, 2021
stuartmorgan-g added a commit that referenced this pull request Jan 28, 2021
hjfreyer pushed a commit to hjfreyer/engine that referenced this pull request Mar 22, 2021
chinmaygarde pushed a commit to chinmaygarde/flutter_buildroot that referenced this pull request May 4, 2021
chinmaygarde pushed a commit to chinmaygarde/flutter_buildroot that referenced this pull request May 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants