Bug 56613 - Binding towards non-existent Carbon framework, OS X >10.7
Summary: Binding towards non-existent Carbon framework, OS X >10.7
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: libgdiplus ()
Version: 4.8.0 (C9)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-05-18 12:55 UTC by henrik
Modified: 2017-05-18 12:55 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 56613 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description henrik 2017-05-18 12:55:30 UTC
In System.Drawing when running https://github.com/DenisPitcher/HTML-Renderer/blob/master/Documentation/PDFGeneration.md with packages `.Mono` and `.PdfSharp`:

OSX:

```
System.EntryPointNotFoundException: GetQDGlobalsThePort
  at (wrapper managed-to-native) System.Drawing.MacSupport:GetQDGlobalsThePort ()
  at System.Drawing.MacSupport.GetCGContextForView (System.IntPtr handle) [0x00039] in /private/tmp/mono-20170420-53906-63nc7r/mono-4.8.1/mcs/class/System.Drawing/System.Drawing/macFunctions.cs:89
  at System.Drawing.Graphics.FromHwnd (System.IntPtr hwnd) [0x0004d] in /private/tmp/mono-20170420-53906-63nc7r/mono-4.8.1/mcs/class/System.Drawing/System.Drawing/Graphics.cs:1718
  at PdfSharp.Drawing.XGraphics..ctor (System.Drawing.Graphics gfx, PdfSharp.Drawing.XSize size, PdfSharp.Drawing.XGraphicsUnit pageUnit, PdfSharp.Drawing.XPageDirection pageDirection) [0x00009] in <2a80a7aa909f4f4394d33f68c6061743>:0
  at PdfSharp.Drawing.XGraphics.CreateMeasureContext (PdfSharp.Drawing.XSize size, PdfSharp.Drawing.XGraphicsUnit pageUnit, PdfSharp.Drawing.XPageDirection pageDirection) [0x00002] in <2a80a7aa909f4f4394d33f68c6061743>:0
```

Ubuntu:

```
System.NotSupportedException: Could not open display (X-Server required. Check your DISPLAY environment variable)
  at System.Drawing.Graphics.FromHwnd (System.IntPtr hwnd) [0x000ca] in <b12c84cdc19942509f026394ae66ea32>:0 
  at PdfSharp.Drawing.XGraphics..ctor (System.Drawing.Graphics gfx, PdfSharp.Drawing.XSize size, PdfSharp.Drawing.XGraphicsUnit pageUnit, PdfSharp.Drawing.XPageDirection pageDirection) [0x00009] in <2a80a7aa909f4f4394d33f68c6061743>:0 
  at PdfSharp.Drawing.XGraphics.CreateMeasureContext (PdfSharp.Drawing.XSize size, PdfSharp.Drawing.XGraphicsUnit pageUnit, PdfSharp.Drawing.XPageDirection pageDirection) [0x00002] in <2a80a7aa909f4f4394d33f68c6061743>:0 
```

Here https://github.com/mono/mono/blob/master/mcs/class/System.Drawing/System.Drawing/macFunctions.cs#L90 on `mono: stable 4.8.1.0 (bottled)`

Loading, with `export DYLD_PRINT_LIBRARIES=1`:

```
dyld: loaded: /usr/local/lib/libgdiplus.dylib
dyld: loaded: /usr/local/opt/glib/lib/libglib-2.0.0.dylib
dyld: loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
dyld: loaded: /usr/local/opt/cairo/lib/libcairo.2.dylib
dyld: loaded: /usr/local/opt/freetype/lib/libfreetype.6.dylib
dyld: loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
dyld: loaded: /usr/local/opt/libtiff/lib/libtiff.5.dylib
dyld: loaded: /usr/local/opt/giflib/lib/libgif.7.dylib
dyld: loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib
dyld: loaded: /usr/local/opt/libexif/lib/libexif.12.dylib
dyld: loaded: /usr/local/opt/fontconfig/lib/libfontconfig.1.dylib
dyld: loaded: /usr/local/opt/pcre/lib/libpcre.1.dylib
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
dyld: loaded: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
dyld: loaded: /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
dyld: loaded: /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
dyld: loaded: /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
dyld: loaded: /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
dyld: loaded: /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage
dyld: loaded: /usr/lib/libFosl_dynamic.dylib
dyld: loaded: /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
dyld: loaded: /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
dyld: loaded: /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
dyld: loaded: /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
dyld: loaded: /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
dyld: loaded: /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
dyld: loaded: /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
dyld: loaded: /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
dyld: loaded: /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
dyld: loaded: /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
dyld: loaded: /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
dyld: loaded: /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
dyld: loaded: /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore
dyld: loaded: /usr/local/opt/pixman/lib/libpixman-1.0.dylib
dyld: loaded: /usr/lib/libexpat.1.dylib
```