-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always copy icudtl.dat with skiko.dll (#131)
This change fixes an exception, when Skiko is loaded multiple times in a multi-classloader environment on Windows: java.lang.RuntimeException: Can't wrap nullptr at org.jetbrains.skija.impl.Native.<init>(Native.java:13) at org.jetbrains.skija.impl.Managed.<init>(Managed.java:15) at org.jetbrains.skija.impl.Managed.<init>(Managed.java:11) at org.jetbrains.skija.paragraph.ParagraphBuilder.<init>(ParagraphBuilder.java:15) The exception was happening, because when `skiko.library.path` is not set, icudtl.dat was copied into cacheDir, even if the library was copied into copyDir. Also icudtl.dat was always copied to `java.io.tmpdir`, and a different version was not overwritten.
- Loading branch information
1 parent
a124684
commit e0efcde
Showing
3 changed files
with
60 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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