darlinghq / darling

Darwin/macOS emulation layer for Linux
http://www.darlinghq.org
GNU General Public License v3.0
11.55k stars 447 forks source link

Missing `_CTFontCollectionCreateFromAvailableFonts` symbol #1527

Open Lazerbeak12345 opened 4 months ago

Lazerbeak12345 commented 4 months ago

Expected Result What did you expect to happen?

The application would not error on missing this symbol

Actual Result What did happen?

Inkscape 0.92.2 (an Intel Darling X11 app) has this in it's xtrace logs before a coredump:

dyld: lazy symbol binding failed: Symbol not found: _CTFontCollectionCreateFromAvailableFonts
  Referenced from: /Applications/Inkscape.app/Contents/Resources/bin/../lib/libpangocairo-1.0.0.dylib
  Expected in: /System/Library/Frameworks/ApplicationService[42]         {local = move send-once 1543, id = 516}, 20 bytes of inline data
s.framework/Versions/A/ApplicationServices

dyld: dyld cache load error: shared cache file open() failed
[42]         job::swap_integer() -> 0
dyld: Symbol not found: _CTFontCollectionCreateFromAvailableFonts
  Referenced from: /Applications/Inkscape.app/Contents/Resources/bin/../lib/libpangocairo-1.0.0.dylib
  Expected in: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices

Emergency save activated!
Abort trap: 6 (core dumped)

Steps To Reproduce

  1. If possible, what steps can you take to reproduce the issue?

The command used to run this was to first install the app to /Applications then to run:

cd /Applications/Inkscape.app/
DISPLAY=/Volumes/SystemRoot/tmp/.X11-unix/X1 xtrace ./Contents/Resources/bin/inkscape-bin

(at time of discovery, anything less complicated would not be able to get nearly this far, and would most likely bail out due to missing X11 connection or missing xml files)

System Information What system are you using?

Software Version
Linux Kernel 6.9.7-artix1-1
Darling $ yay -Qi darling
Name : darling-bin
Version : 0.1.20230310-1
Architecture : x86_64

Other info

This was found in my research of what might be needed for X11 apps to function under Darling, posted in the Discord here.