fix(devcontainer): prevent PhantomJS crash on PDF export by installing emoji fonts#1953
Open
lakshay122007 wants to merge 1 commit intohackmdio:developfrom
Open
fix(devcontainer): prevent PhantomJS crash on PDF export by installing emoji fonts#1953lakshay122007 wants to merge 1 commit intohackmdio:developfrom
lakshay122007 wants to merge 1 commit intohackmdio:developfrom
Conversation
Signed-off-by: lakshay122007 <[email protected]>
c103013 to
0b9dd81
Compare
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.
This PR fixes a critical issue where the application container crashes during PDF export if the note contains emojis or CJK characters. The crash originates from PhantomJS encountering a SIGFPE (Floating Point Exception) when attempting to render glyphs that are missing from the system fonts.
Changes
Added QT_QPA_PLATFORM=offscreen environment variable. This is required for PhantomJS to run reliably in a headless Docker environment without an X server.
Related Issue
Fixes crash reported when exporting notes with emojis to PDF.
closes #1932