cef_initialize crashes when run on MacOSX 10.6.8

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

cef_initialize crashes when run on MacOSX 10.6.8

Postby awieser » Sat Dec 17, 2011 3:10 pm

Hey all,

first of all thanks Marshall for this awesome framework.
I"ve finished my .NET/Mono Wrapper for Cef and it runs fine on Windows (.NET) and Linux (Mono), unfortunately Mac OS X gives me some trouble.
Although the wrapper is designed to be platform aware thus loading platform specific stuff at runtime, on all 3 platforms the cef_initialize method is pretty much the first method to be called, therefor I doubt its a coding issue, since the same code runs fine on other OS"s.
Perhaps there is some special treatment I need to enforce on MacOSX, I don"t need on Windows and/or Linux?
When executing on OS X the app breaks at cef_initialize with the following log

Code: Select all
Process:         mono [9721]
Path:            /Library/Frameworks/Mono.framework/Versions/2.10.6/bin/mono
Identifier:      mono
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  bash [9717]

Date/Time:       2011-12-17 20:52:50.000 +0100
OS Version:      Mac OS X 10.6.8 (10K549)
Report Version:  6

Interval Since Last Report:          495105 sec
Crashes Since Last Report:           18
Per-App Crashes Since Last Report:   14
Anonymous UUID:                      6D466E99-3043-45C9-B77F-B9101F282948

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libcef.dylib                     0x1400314e base::debug::BreakDebugger() + 30
1   libcef.dylib                     0x1403f59d logging::LogMessage::~LogMessage() + 1069
2   libcef.dylib                     0x1403e28b logging::LogMessage::~LogMessage() + 43
3   libcef.dylib                     0x14e7050b ui::ResourceBundle::LoadCommonResources() + 523
4   libcef.dylib                     0x14e64c47 ui::ResourceBundle::InitSharedInstance(std::string const&) + 343
5   libcef.dylib                     0x1520da1a webkit_glue::InitializeResourceBundle(std::string const&) + 58
6   libcef.dylib                     0x152412b9 CefProcessUIThread::Init() + 505
7   libcef.dylib                     0x1523e8d4 CefProcess::CreateUIThread() + 676
8   libcef.dylib                     0x15235573 CefProcess::ui_thread() + 291
9   libcef.dylib                     0x1522f64f CefProcess::CreateChildThreads() + 47
10  libcef.dylib                     0x15225cd1 CefContext::Initialize(CefStructBase<CefSettingsTraits> const&) + 321
11  libcef.dylib                     0x15225af9 CefInitialize(CefStructBase<CefSettingsTraits> const&) + 377
12  libcef.dylib                     0x13fc2b5f cef_initialize + 111
13  ???                              0x017edb6c 0 + 25090924
14  ???                              0x017e831c 0 + 25068316
15  ???                              0x004be0a4 0 + 4972708
16  ???                              0x004be3e6 0 + 4973542
17  mono                             0x0000fa34 mono_jit_runtime_invoke + 164 (mini.c:5764)
18  mono                             0x001be768 mono_runtime_invoke + 137 (object.c:2755)
19  mono                             0x001c0f6a mono_runtime_exec_main + 669 (object.c:3939)
20  mono                             0x001c02a4 mono_runtime_run_main + 843 (object.c:3561)
21  mono                             0x000888cb mono_main + 7755 (driver.c:1856)
22  mono                             0x00001ed6 start + 54

Thread 1:
0   libSystem.B.dylib                0x917f0afa mach_msg_trap + 10
1   libSystem.B.dylib                0x917f1267 mach_msg + 68
2   mono                             0x0010a414 mach_exception_thread + 180 (mini-darwin.c:137)
3   mono                             0x0026a481 GC_start_routine + 107 (pthread_support.c:1468)
4   libSystem.B.dylib                0x9181e259 _pthread_start + 345
5   libSystem.B.dylib                0x9181e0de thread_start + 34

Thread 2:
0   libSystem.B.dylib                0x917f0b36 semaphore_wait_trap + 10
1   mono                             0x00246666 mono_sem_wait + 36 (mono-semaphore.c:115)
2   mono                             0x0014bf4f finalizer_thread + 99 (gc.c:1071)
3   mono                             0x001fb1f6 start_wrapper_internal + 610 (threads.c:783)
4   mono                             0x001fb296 start_wrapper + 17 (threads.c:832)
5   mono                             0x002396f2 thread_start_routine + 191 (wthreads.c:287)
6   mono                             0x0026a481 GC_start_routine + 107 (pthread_support.c:1468)
7   libSystem.B.dylib                0x9181e259 _pthread_start + 345
8   libSystem.B.dylib                0x9181e0de thread_start + 34

Thread 3:
0   libSystem.B.dylib                0x9182e0d6 recvfrom$UNIX2003 + 10
1   libSystem.B.dylib                0x9184deab recv$UNIX2003 + 54
2   mono                             0x000e388e debugger_thread + 270 (debugger-agent.c:996)
3   mono                             0x002396f2 thread_start_routine + 191 (wthreads.c:287)
4   mono                             0x0026a481 GC_start_routine + 107 (pthread_support.c:1468)
5   libSystem.B.dylib                0x9181e259 _pthread_start + 345
6   libSystem.B.dylib                0x9181e0de thread_start + 34

Thread 4:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib                0x91817382 kevent + 10
1   libSystem.B.dylib                0x91817a9c _dispatch_mgr_invoke + 215
2   libSystem.B.dylib                0x91816f59 _dispatch_queue_invoke + 163
3   libSystem.B.dylib                0x91816cfe _dispatch_worker_thread2 + 240
4   libSystem.B.dylib                0x91816781 _pthread_wqthread + 390
5   libSystem.B.dylib                0x918165c6 start_wqthread + 30

Thread 5:
0   libSystem.B.dylib                0x91816412 __workq_kernreturn + 10
1   libSystem.B.dylib                0x918169a8 _pthread_wqthread + 941
2   libSystem.B.dylib                0x918165c6 start_wqthread + 30

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0xa00c64c0  ebx: 0x004be200  ecx: 0xa26a9c8d  edx: 0xffffffff
  edi: 0x00000004  esi: 0xa00c4ad0  ebp: 0xbfffddd8  esp: 0xbfffddd0
   ss: 0x0000001f  efl: 0x00200282  eip: 0x1400314e   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x177ecb20

Binary Images:
    0x1000 -   0x313fe7 +mono ??? (???) <8E0B9A54-DE1D-9909-02C8-9F8D82E78127> /Library/Frameworks/Mono.framework/Versions/2.10.6/bin/mono
0x13f67000 - 0x18753fe3 +libcef.dylib ??? (???) <7A25F90E-059A-3CA9-A4D9-897947FFB19E> /Users/krasshirsch/Development/borderline/solution/Crystalbyte.Borderline.TestShell/bin/Debug/libcef.dylib
0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <28F0312C-0678-159E-34E2-9A4E3DEADB20> /usr/lib/dyld
0x90003000 - 0x90003ff7  com.apple.ApplicationServices 38 (38) <8012B504-3D83-BFBB-DA65-065E061CFE03> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x90004000 - 0x90019fff  com.apple.ImageCapture 6.1 (6.1) <B909459A-EAC9-A7C8-F2A9-CD757CDB59E8> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x9001a000 - 0x90040ffb  com.apple.DictionaryServices 1.1.2 (1.1.2) <43E1D565-6E01-3681-F2E5-72AE4C3A097A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x90041000 - 0x901c3fe7  libicucore.A.dylib 40.0.0 (compatibility 1.0.0) <D5980817-6D19-9636-51C3-E82BAE26776B> /usr/lib/libicucore.A.dylib
0x901c6000 - 0x901c7ff7  com.apple.audio.units.AudioUnit 1.6.7 (1.6.7) <838E1760-F7D9-3239-B3A8-20E25EFD1379> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x90223000 - 0x90a12557  com.apple.CoreGraphics 1.545.0 (???) <1D9DC7A5-228B-42CB-7018-66F42C3A9BB3> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x90a13000 - 0x90a19fff  com.apple.CommonPanels 1.2.4 (91) <2438AF5D-067B-B9FD-1248-2C9987F360BA> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x90cfe000 - 0x90ff8fef  com.apple.QuickTime 7.6.6 (1787) <AC48EAD9-7201-7CE6-C826-41B12963FECF> /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
0x90ff9000 - 0x91136fe7  com.apple.audio.toolbox.AudioToolbox 1.6.7 (1.6.7) <2D31CC6F-32CC-72FF-34EC-AB40CEE496A7> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x91137000 - 0x91158fe7  com.apple.opencl 12.3.6 (12.3.6) <B4104B80-1CB3-191C-AFD3-697843C6BCFF> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x91159000 - 0x9124dff7  libiconv.2.dylib 7.0.0 (compatibility 7.0.0) <9EC28185-D26F-533F-90C4-FBAA13A15947> /usr/lib/libiconv.2.dylib
0x9124e000 - 0x9124eff7  com.apple.Carbon 150 (152) <D1CE2DFE-C951-908C-EC05-B175CF7A2EE5> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x9124f000 - 0x912eafe7  com.apple.ApplicationServices.ATS 275.19 (???) <9FA31967-CF14-B033-EB8D-570561D12A13> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x912eb000 - 0x913ecfe7  libxml2.2.dylib 10.3.0 (compatibility 10.0.0) <C75F921C-F027-6372-A0A1-EDB8A6234331> /usr/lib/libxml2.2.dylib
0x91439000 - 0x9143eff7  com.apple.OpenDirectory 10.6 (10.6) <C1B46982-7D3B-3CC4-3BC2-3E4B595F0231> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x91453000 - 0x91773ff3  com.apple.CoreServices.CarbonCore 861.39 (861.39) <5C59805C-AF39-9010-B8B5-D673C9C38538> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x917ec000 - 0x917effe7  libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <1622A54F-1A98-2CBE-B6A4-2122981A500E> /usr/lib/system/libmathCommon.A.dylib
0x917f0000 - 0x91997ff7  libSystem.B.dylib 125.2.11 (compatibility 1.0.0) <2DCD13E3-1BD1-6F25-119A-3863A3848B90> /usr/lib/libSystem.B.dylib
0x91998000 - 0x919f5ff7  com.apple.framework.IOKit 2.0 (???) <3DABAB9C-4949-F441-B077-0498F8E47A35> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x91a02000 - 0x91b30fe7  com.apple.CoreData 102.1 (251) <E6A457F0-A0A3-32CD-6C69-6286E7C0F063> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x92a87000 - 0x92b34fe7  libobjc.A.dylib 227.0.0 (compatibility 1.0.0) <9F8413A6-736D-37D9-8EB3-7986D4699957> /usr/lib/libobjc.A.dylib
0x92b35000 - 0x92b39ff7  IOSurface ??? (???) <D849E1A5-6B0C-2A05-2765-850EC39BA2FF> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x92b3a000 - 0x92b4cff7  com.apple.MultitouchSupport.framework 207.11 (207.11) <6FF4F2D6-B8CD-AE13-56CB-17437EE5B741> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x92bc7000 - 0x92c09ff7  libvDSP.dylib 268.0.1 (compatibility 1.0.0) <3F0ED200-741B-4E27-B89F-634B131F5E9E> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x9358a000 - 0x9359effb  com.apple.speech.synthesis.framework 3.10.35 (3.10.35) <57DD5458-4F24-DA7D-0927-C3321A65D743> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x9359f000 - 0x935e8fe7  libTIFF.dylib ??? (???) <579DC328-567D-A74C-4BCE-1D1C729E3F6D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x9374c000 - 0x9388ffef  com.apple.QTKit 7.7 (1787) <3B47A1A0-7AB5-C1C9-42DE-5993D1012D47> /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit
0x93890000 - 0x93ca6ff7  libBLAS.dylib 219.0.0 (compatibility 1.0.0) <C4FB303A-DB4D-F9E8-181C-129585E59603> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x93ca7000 - 0x93cc7fe7  libresolv.9.dylib 41.0.0 (compatibility 1.0.0) <751955F3-21FB-A03A-4E92-1F3D4EFB8C5B> /usr/lib/libresolv.9.dylib
0x93cd4000 - 0x93db4fe7  com.apple.vImage 4.1 (4.1) <D029C515-08E1-93A6-3705-DD062A3A672C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x942b5000 - 0x942f8ff7  com.apple.NavigationServices 3.5.4 (182) <753B8906-06C0-3AE0-3D6A-8FF5AC18ED12> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x9468f000 - 0x946c0ff7  libGLImage.dylib ??? (???) <0EE86397-A867-0BBA-E5B1-B800E43FC5CF> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x946c1000 - 0x946ddfe3  com.apple.openscripting 1.3.1 (???) <DA16DE48-59F4-C94B-EBE3-7FAF772211A2> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x947e1000 - 0x947e5ff7  libGFXShared.dylib ??? (???) <801B2C2C-1692-475A-BAD6-99F85B6E7C25> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x948ed000 - 0x948edff7  com.apple.Accelerate 1.6 (Accelerate 1.6) <BC501C9F-7C20-961A-B135-0A457667D03C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x948ee000 - 0x948fcff7  com.apple.opengl 1.6.13 (1.6.13) <025A905D-C1A3-B24A-1585-37C328D77148> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x94a63000 - 0x94b3dfff  com.apple.DesktopServices 1.5.11 (1.5.11) <800F2040-9211-81A7-B438-7712BF51DEE3> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x94baa000 - 0x94bb8fe7  libz.1.dylib 1.2.3 (compatibility 1.0.0) <3CE8AA79-F077-F1B0-A039-9103A4A02E92> /usr/lib/libz.1.dylib
0x94bb9000 - 0x95074ff7  com.apple.VideoToolbox 0.484.60 (484.60) <B53299EC-E30F-EC04-779D-29B7113CC14A> /System/Library/PrivateFrameworks/VideoToolbox.framework/Versions/A/VideoToolbox
0x95075000 - 0x95075ff7  com.apple.CoreServices 44 (44) <51CFA89A-33DB-90ED-26A8-67D461718A4A> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x95115000 - 0x95159fe7  com.apple.Metadata 10.6.3 (507.15) <460BEF23-B89F-6F4C-4940-45556C0671B5> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x9515a000 - 0x95197ff7  com.apple.CoreMedia 0.484.60 (484.60) <8FAB137D-682C-6DEC-5A15-F0029A5B226F> /System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia
0x95198000 - 0x951ebff7  com.apple.HIServices 1.8.3 (???) <1D3C4587-6318-C339-BD0F-1988F246BE2E> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x95f80000 - 0x9602cfe7  com.apple.CFNetwork 454.12.4 (454.12.4) <DEDCD006-389F-967F-3405-EDF541F406D7> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x9602d000 - 0x96060ff7  com.apple.AE 496.5 (496.5) <BF9673D5-2419-7120-26A3-83D264C75222> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x96061000 - 0x9606dff7  libkxld.dylib ??? (???) <9A441C48-2D18-E716-5F38-CBEAE6A0BB3E> /usr/lib/system/libkxld.dylib
0x96122000 - 0x96557ff7  libLAPACK.dylib 219.0.0 (compatibility 1.0.0) <5E2D2283-57DE-9A49-1DB0-CD027FEFA6C2> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x96559000 - 0x966d4fe7  com.apple.CoreFoundation 6.6.6 (550.44) <F88C95CD-1264-782D-A1F5-204739847E93> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x967a7000 - 0x967adfe7  com.apple.CommerceCore 1.0 (9.1) <521D067B-3BDA-D04E-E1FA-CFA526C87EB5> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore
0x967ef000 - 0x967f9fe7  com.apple.audio.SoundManager 3.9.3 (3.9.3) <5F494955-7290-2D91-DA94-44B590191771> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x96ecd000 - 0x96fcffe7  libcrypto.0.9.8.dylib 0.9.8 (compatibility 0.9.8) <015563C4-81E2-8C8A-82AC-31B38D904A42> /usr/lib/libcrypto.0.9.8.dylib
0x96fd0000 - 0x97241fef  com.apple.Foundation 6.6.8 (751.63) <69B3441C-B196-F2AD-07F8-D8DD24E4CD8C> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x972b6000 - 0x972deff7  libxslt.1.dylib 3.24.0 (compatibility 3.0.0) <315D97C2-4E1F-A95F-A759-4A3FA5639E75> /usr/lib/libxslt.1.dylib
0x9733c000 - 0x9733cff7  liblangid.dylib ??? (???) <B99607FC-5646-32C8-2C16-AFB5EA9097C2> /usr/lib/liblangid.dylib
0x9733d000 - 0x973b7fff  com.apple.audio.CoreAudio 3.2.6 (3.2.6) <156A532C-0B60-55B0-EE27-D02B82AA6217> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x973b8000 - 0x973f5ff7  com.apple.SystemConfiguration 1.10.8 (1.10.2) <50E4D49B-4F61-446F-1C21-1B2BA814713D> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x97466000 - 0x974f8fe7  com.apple.print.framework.PrintCore 6.3 (312.7) <7410D1B2-655D-68DA-D4B9-2C65747B6817> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x974f9000 - 0x97546feb  com.apple.DirectoryService.PasswordServerFramework 6.1 (6.1) <136BFA48-D456-B677-3B5D-40A6946C3A09> /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordServer
0x97547000 - 0x97612fef  com.apple.CoreServices.OSServices 359.2 (359.2) <7C16D9C8-6F41-5754-17F7-2659D9DD9579> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x9761a000 - 0x9761cff7  libRadiance.dylib ??? (???) <5920EB69-8D7F-5EFD-70AD-590FCB5C9E6C> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x97669000 - 0x9798dfef  com.apple.HIToolbox 1.6.5 (???) <21164164-41CE-61DE-C567-32E89755CB34> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x9798e000 - 0x97a2bfe3  com.apple.LaunchServices 362.3 (362.3) <15B47388-16C8-97DA-EEBB-1709E136169E> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x97b36000 - 0x97bdeffb  com.apple.QD 3.36 (???) <FA2785A4-BB69-DCB4-3BA3-7C89A82CAB41> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x97dbd000 - 0x97e79fff  com.apple.ColorSync 4.6.6 (4.6.6) <7CD8B191-039A-02C3-EA5E-4194EC59995B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x97e7a000 - 0x97e7aff7  com.apple.Cocoa 6.6 (???) <EA27B428-5904-B00B-397A-185588698BCC> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x97e7b000 - 0x97e7bff7  com.apple.Accelerate.vecLib 3.6 (vecLib 3.6) <1DEC639C-173D-F808-DE0D-4070CC6F5BC7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x97e7c000 - 0x97e8dff7  com.apple.LangAnalysis 1.6.6 (1.6.6) <97511CC7-FE23-5AC3-2EE2-B5479FAEB316> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x97e8e000 - 0x97e8eff7  com.apple.vecLib 3.6 (vecLib 3.6) <7362077A-890F-3AEF-A8AB-22247B10E106> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x980c2000 - 0x9817bfe7  libsqlite3.dylib 9.6.0 (compatibility 9.0.0) <52438E77-55D1-C231-1936-76F1369518E4> /usr/lib/libsqlite3.dylib
0x9817c000 - 0x9819bff7  com.apple.CoreVideo 1.6.2 (45.6) <EB53CAA4-5EE2-C356-A954-5775F7DDD493> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x9819c000 - 0x981befef  com.apple.DirectoryService.Framework 3.6 (621.11) <CA979EAC-9537-43B6-CD69-C144ACB75E09> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService
0x98200000 - 0x98250ff7  com.apple.framework.familycontrols 2.0.2 (2020) <C96C8A99-A40C-8B9C-1FBA-A0F46AC92F17> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls
0x98251000 - 0x98297ff7  libauto.dylib ??? (???) <29422A70-87CF-10E2-CE59-FEE1234CFAAE> /usr/lib/libauto.dylib
0x98298000 - 0x98b7bff7  com.apple.AppKit 6.6.8 (1038.36) <A353465E-CFC9-CB75-949D-786F6F7732F6> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x98b7c000 - 0x98b7fff7  libCoreVMClient.dylib ??? (???) <F58BDFC1-7408-53C8-0B08-48BA2F25CA43> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
0x98ca7000 - 0x98d5ffeb  libFontParser.dylib ??? (???) <D57D3834-9395-FD58-092A-49B3708E8C89> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x98d71000 - 0x98d7bffb  com.apple.speech.recognition.framework 3.11.1 (3.11.1) <EC0E69C8-A121-70E8-43CF-E6FC4C7779EC> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x98d7c000 - 0x990e7ff7  com.apple.QuartzCore 1.6.3 (227.37) <E323A5CC-499E-CA9E-9BC3-537231449CAA> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x990e8000 - 0x99180fe7  edu.mit.Kerberos 6.5.11 (6.5.11) <F36DB665-A88B-7F5B-6244-6A2E7FFFF668> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x99181000 - 0x9922fff3  com.apple.ink.framework 1.3.3 (107) <57B54F6F-CE35-D546-C7EC-DBC5FDC79938> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x99230000 - 0x9923dff7  com.apple.NetFS 3.2.2 (3.2.2) <DDC9C397-C35F-8D7A-BB24-3D1B42FA5FAB> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x99290000 - 0x992caff7  libcups.2.dylib 2.8.0 (compatibility 2.0.0) <6875335E-0993-0D77-4E80-41763A8477CF> /usr/lib/libcups.2.dylib
0x992d3000 - 0x99353feb  com.apple.SearchKit 1.3.0 (1.3.0) <9E18AEA5-F4B4-8BE5-EEA9-818FC4F46FD9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x99354000 - 0x99358ff7  libGIF.dylib ??? (???) <2123645B-AC89-C4E2-8757-85834CAE3DD2> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x993e7000 - 0x9944bffb  com.apple.htmlrendering 72 (1.1.4) <4D451A35-FAB6-1288-71F6-F24A4B6E2371> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x9944c000 - 0x9948fff7  libGLU.dylib ??? (???) <FB26DD53-03F4-A7D7-8804-EBC5B3B37FA3> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x99490000 - 0x99497ff3  com.apple.print.framework.Print 6.1 (237.1) <F5AAE53D-5530-9004-A9E3-2C1690C5328E> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x99498000 - 0x99499ff7  com.apple.TrustEvaluationAgent 1.1 (1) <FEB55E8C-38A4-CFE9-A737-945F39761B4C> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x996d8000 - 0x9971cff3  com.apple.coreui 2 (114) <29F8F1A4-1C96-6A0F-4CC2-9B85CF83209F> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x99736000 - 0x9999bfeb  com.apple.security 6.1.2 (55002) <7F00A51B-F22A-0EBC-A321-923472D686BD> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x99ba4000 - 0x99c1ffff  com.apple.AppleVAFramework 4.10.27 (4.10.27) <BFD2D1CA-535C-F16F-0EB5-04905ABD65CF> /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
0x99c5c000 - 0x99cbdfe7  com.apple.CoreText 151.10 (???) <5C2DEFBE-D54B-4DC7-D456-9ED02880BE98> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x99cbe000 - 0x99cc0ff7  com.apple.securityhi 4.0 (36638) <38D36D4D-C798-6ACE-5FA8-5C001993AD6B> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x99cc1000 - 0x99deeffb  com.apple.MediaToolbox 0.484.60 (484.60) <A7FE2739-64A7-40EB-A6E7-69FBCE3C87D4> /System/Library/PrivateFrameworks/MediaToolbox.framework/Versions/A/MediaToolbox
0x99e17000 - 0x99e81fe7  libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) <411D87F4-B7E1-44EB-F201-F8B4F9227213> /usr/lib/libstdc++.6.dylib
0x99e82000 - 0x99e8dff7  libCSync.A.dylib 545.0.0 (compatibility 64.0.0) <287DECA3-7821-32B6-724D-AE03A9A350F9> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x99e8e000 - 0x99f9aff7  libGLProgrammability.dylib ??? (???) <04D7E5C3-B0C3-054B-DF49-3B333DCDEE22> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x99f9b000 - 0x9a15dfeb  com.apple.ImageIO.framework 3.0.4 (3.0.4) <027F55DF-7E4E-2310-1536-3F470CB8847B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x9a4a6000 - 0x9a4a9ffb  com.apple.help 1.3.2 (41.1) <8AC20B01-4A3B-94BA-D8AF-E39034B97D8C> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x9a67f000 - 0x9a69aff7  libPng.dylib ??? (???) <25DF2360-BFD3-0165-51AC-0BDAF7899DEC> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x9a8aa000 - 0x9a92cffb  SecurityFoundation ??? (???) <006B3166-E7E2-F763-04FC-3DD458C14F5F> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x9a92d000 - 0x9a936ff7  com.apple.DiskArbitration 2.3 (2.3) <E9C40767-DA6A-6CCB-8B00-2D5706753000> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x9a937000 - 0x9a94bfe7  libbsm.0.dylib ??? (???) <14CB053A-7C47-96DA-E415-0906BA1B78C9> /usr/lib/libbsm.0.dylib
0x9a94c000 - 0x9a964ff7  com.apple.CFOpenDirectory 10.6 (10.6) <F9AFC571-3539-6B46-ABF9-46DA2B608819> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x9a965000 - 0x9a989ff7  libJPEG.dylib ??? (???) <EA97DEC5-6E16-B51C-BF55-F6E8D23526AD> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x9aa3a000 - 0x9aa81ffb  com.apple.CoreMediaIOServices 140.0 (1496) <DA152F1C-8EF4-4F5E-6D60-82B1DC72EF47> /System/Library/PrivateFrameworks/CoreMediaIOServices.framework/Versions/A/CoreMediaIOServices
0x9aad7000 - 0x9ab46ff7  libvMisc.dylib 268.0.1 (compatibility 1.0.0) <2FC2178F-FEF9-6E3F-3289-A6307B1A154C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x9abbd000 - 0x9abc8ff7  libGL.dylib ??? (???) <3E34468F-E9A7-8EFB-FF66-5204BD5B4E21> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x9abc9000 - 0x9abd9ff7  libsasl2.2.dylib 3.15.0 (compatibility 3.0.0) <C8744EA3-0AB7-CD03-E639-C4F2B910BE5D> /usr/lib/libsasl2.2.dylib
0xffff0000 - 0xffff1fff  libSystem.B.dylib ??? (???) <2DCD13E3-1BD1-6F25-119A-3863A3848B90> /usr/lib/libSystem.B.dylib

Model: MacBookPro7,1, BootROM MBP71.0039.B0B, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.62f6
Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.10.131.42.4)
Bluetooth: Version 2.4.5f3, 2 service, 12 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: Hitachi HTS545025B9SA02, 232.89 GB
Serial ATA Device: MATSHITADVD-R   UJ-898, 3.81 GB
USB Device: Internal Memory Card Reader, 0x05ac  (Apple Inc.), 0x8403, 0x26100000 / 2
USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8507, 0x24600000 / 2
USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06600000 / 5
USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8213, 0x06610000 / 7
USB Device: USB Receiver, 0x046d  (Logitech Inc.), 0xc52f, 0x06400000 / 4
USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x06500000 / 3
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac  (Apple Inc.), 0x0236, 0x06300000 / 2


From the stack trace I would suspect this to be a resource error of some kind.
As stated inside the readme all resources have been moved to the app path.
Currently the app folder layout is the following:

~/app.exe (mono executable)
~/wrapper.dll (managed wrapper lib)
~/libcef.dylib
~/ffmpegsumo.so
~/Resources/*

Another thing that strikes me as odd is the fact, that I set the IsMessageLoopMultiThreaded value to false and yet I see a method call named CreateUIThread? Is this intended ?

Any and all help is greatly appreciated.

Alex
awieser
Expert
 
Posts: 140
Joined: Sat Oct 22, 2011 8:35 am

Re: cef_initialize crashes when run on MacOSX 10.6.8

Postby magreenblatt » Sun Dec 18, 2011 10:33 pm

Mac expects an app bundle and the file structure that goes along with that.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: cef_initialize crashes when run on MacOSX 10.6.8

Postby awieser » Tue Dec 20, 2011 10:42 am

Thanks Marshall,

I will set up an app bundle then and try again.

Alex
awieser
Expert
 
Posts: 140
Joined: Sat Oct 22, 2011 8:35 am

Re: cef_initialize crashes when run on MacOSX 10.6.8

Postby awieser » Thu Dec 22, 2011 12:47 pm

Just wanted to thank you again,

I managed to adapt my entry code and use the mono mac project to create bundles out of managed code.
All in all everything is working as expected on all 3 platforms ;)

Regards

Alex
awieser
Expert
 
Posts: 140
Joined: Sat Oct 22, 2011 8:35 am

Re: cef_initialize crashes when run on MacOSX 10.6.8

Postby fddima » Thu Dec 22, 2011 2:31 pm

awieser wrote:Just wanted to thank you again,

I managed to adapt my entry code and use the mono mac project to create bundles out of managed code.
All in all everything is working as expected on all 3 platforms ;)

Regards

Alex


In fact you will still have problem. On Windows .NET executable is native executable, and "main module" is CLR executable itself.
On java/mono - main module is mono.exe/java.exe. It means that libcef.dll/.so search additional libraries in mono's directory.
It can be solved in cef via provide right PathService implementation or override concrete directories in default path service.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: cef_initialize crashes when run on MacOSX 10.6.8

Postby awieser » Thu Dec 22, 2011 3:18 pm

Luckily Mono is smart enough to utilize the correct paths, the mono.exe does not serve as the applications entry point, at least not from inside the CLR.
awieser
Expert
 
Posts: 140
Joined: Sat Oct 22, 2011 8:35 am

Re: cef_initialize crashes when run on MacOSX 10.6.8

Postby fddima » Thu Dec 22, 2011 6:00 pm

awieser wrote:Luckily Mono is smart enough to utilize the correct paths, the mono.exe does not serve as the applications entry point, at least not from inside the CLR.

Utilizes. GetModuleHandle(NULL) on windows, or analogue call on Linux and Mac return mono.exe module handle, instead of your_clr_app.exe.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: cef_initialize crashes when run on MacOSX 10.6.8

Postby awieser » Fri Dec 23, 2011 8:59 am

I am unsure where GetModuleHandle(NULL) is used ?
awieser
Expert
 
Posts: 140
Joined: Sat Oct 22, 2011 8:35 am

Re: cef_initialize crashes when run on MacOSX 10.6.8

Postby fddima » Fri Dec 23, 2011 9:24 am

awieser wrote:I am unsure where GetModuleHandle(NULL) is used ?

It is used everywhere. Actually it is used inside chromiums PathService, and it's analogues on linux/mac (start looking on path_service.cc in base). Chromium just want load additional libraries from predictable location (from directory with chrome.exe located itself), and don't want use systems search paths, i.e. current/system directories on windows or LD_LIBRARY_PATH on posix. It is right way. Same happens for searching locales and chrome.pak (actually on windows cef looks at own path of libcef.dll, but when i'm try it on linux - it doesn't have properly impl). May be something changed, but i'm don't believe in that.
Right way to fix it - it is provide own PathService or override paths (PathService allow paths overriding) on initialization.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: cef_initialize crashes when run on MacOSX 10.6.8

Postby awieser » Wed Jan 04, 2012 7:56 am

Hey fddima,

as you said I too ran into this issue, however it seems to be a glitch inside the chromium API itself not CEF.
This problem is however limited to the linux build, since it works on windows and is not being used on OS X.
After a battery of tests I found out that the chromium's resourcehandler on linux receives not the path to the current module but to its host process.
Since the chrome library ususally resides in the same dir as its host or is its own host (aka is an executable) this will pose no problems in most scenarios.

I guess it is the same issue as described in this thread.
http://support.awesomium.com/discussions/problems/298-awesomium-162-linux-64-bit-assumes-chromepak-will-always-be-in-the-directory-of-the-host-process-this-prevents-lots-of-use-cases

I will continue to investigate and file a bug report with chromium itself, if it hasn't been fixed in one of upcoming releases.
awieser
Expert
 
Posts: 140
Joined: Sat Oct 22, 2011 8:35 am

Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 204 guests