Fix macOS Apple Silicon crash when painting emoji - #1372
Merged
Merged
Conversation
Sign LiteIDE with the Hardened Runtime so CoreText/ImageIO can decode Apple Color Emoji instead of crashing at 0xbad4007 in paintEvent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复 Apple Silicon 上编辑器绘制 emoji 时崩溃的问题。
崩溃特征:
LiteEditorWidgetBase::paintEvent→ CoreTextCopyEmojiImage→ ImageIO PNG 解码,EXC_ARM_DA_ALIGNat0xbad4007。原因:Apple Color Emoji 的
sbixPNG 在 ARM64 上需要进程启用 Hardened Runtime。当前 ad-hoc / linker-signed 签名没有runtime标志。变更:
LiteIDE.entitlements(允许加载插件、DYLD 环境变量、unsigned executable memory)。liteide.pro在链接后 codesign,覆盖 Qt Creator Run/Debug。--options runtime签名。验证:
flags=0x10002(adhoc,runtime)。