Build CEF in mac without implementing CefAppProtocol

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.

Build CEF in mac without implementing CefAppProtocol

Postby rahulchavan10 » Wed Feb 14, 2018 7:53 am

Want to build CEF in mac without forcing the user of my library to implement CefAppProtocol. It will be very painful for them.

Please suggest some way where I can build CEF witout implementing CefAppProtocol.

I tried, but it is throwing below exception.


2018-02-14 18:17:45.692 TestBrowserDemo[3206:130639] -[NSApplication isHandlingSendEvent]: unrecognized selector sent to instance 0x608000101c20
2018-02-14 18:17:45.697 TestBrowserDemo[3206:130639] An uncaught exception was raised
2018-02-14 18:17:45.698 TestBrowserDemo[3206:130639] -[NSApplication isHandlingSendEvent]: unrecognized selector sent to instance 0x608000101c20
2018-02-14 18:17:45.698 TestBrowserDemo[3206:130639] (
0 CoreFoundation 0x00007fff8f5ec452 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff8469173c objc_exception_throw + 48
2 CoreFoundation 0x00007fff8f65618d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff8f55c4c1 ___forwarding___ + 1009
4 CoreFoundation 0x00007fff8f55c048 _CF_forwarding_prep_0 + 120
5 Chromium Embedded Framework 0x0000000101c49fab cef_time_delta + 1999691
6 Chromium Embedded Framework 0x00000001014fd761 cef_zip_reader_create + 17683009
7 Chromium Embedded Framework 0x00000001013f9336 cef_zip_reader_create + 16616982
8 Chromium Embedded Framework 0x00000001013f7e18 cef_zip_reader_create + 16611576
9 Chromium Embedded Framework 0x00000001013fcbc6 cef_zip_reader_create + 16631462
10 Chromium Embedded Framework 0x000000010257edab cef_time_delta + 11653451
11 Chromium Embedded Framework 0x0000000101c21b04 cef_time_delta + 1834660
12 Chromium Embedded Framework 0x0000000101c4653b cef_time_delta + 1984731
13 Chromium Embedded Framework 0x0000000101c46beb cef_time_delta + 1986443
14 Chromium Embedded Framework 0x0000000101c495fa cef_time_delta + 1997210
15 Chromium Embedded Framework 0x0000000101c3aaea cef_time_delta + 1937034
16 Chromium Embedded Framework 0x0000000101c48eef cef_time_delta + 1995407
17 CoreFoundation 0x00007fff8f5817e1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
18 CoreFoundation 0x00007fff8f560f0c __CFRunLoopDoSources0 + 556
19 CoreFoundation 0x00007fff8f56042f __CFRunLoopRun + 927
20 CoreFoundation 0x00007fff8f55fe28 CFRunLoopRunSpecific + 296
21 HIToolbox 0x00007fff877b2935 RunCurrentEventLoopInMode + 235
22 HIToolbox 0x00007fff877b276f ReceiveNextEventCommon + 432
23 HIToolbox 0x00007fff877b25af _BlockUntilNextEventMatchingListInModeWithFilter + 71
24 AppKit 0x00007fff96236df6 _DPSNextEvent + 1067
25 AppKit 0x00007fff96236226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
26 Chromium Embedded Framework 0x0000000101c49de0 cef_time_delta + 1999232
27 Chromium Embedded Framework 0x0000000101c487cc cef_time_delta + 1993580
28 Chromium Embedded Framework 0x0000000101c66323 cef_time_delta + 2115267
29 Chromium Embedded Framework 0x00000001019c799f ChromeAppModeStart_v4 + 1938783
30 TestBrowserDemo 0x0000000100108b39 _Z17CefRunMessageLoopv + 9
31 TestBrowserDemo 0x000000010011b12f _Z16runTansaProofingP8NSWindowP24ITansaObjectForScriptingP8PostData + 1407
32 TestBrowserDemo 0x000000010000213f -[ViewController runProofing:] + 2703
33 libsystem_trace.dylib 0x00007fff8cbb707a _os_activity_initiate + 75
34 AppKit 0x00007fff9649fdbd -[NSApplication sendAction:to:from:] + 460
35 AppKit 0x00007fff964b1f12 -[NSControl sendAction:to:] + 86
36 AppKit 0x00007fff964b1e3c __26-[NSCell _sendActionFrom:]_block_invoke + 131
37 libsystem_trace.dylib 0x00007fff8cbb707a _os_activity_initiate + 75
38 AppKit 0x00007fff964b1d99 -[NSCell _sendActionFrom:] + 144
39 libsystem_trace.dylib 0x00007fff8cbb707a _os_activity_initiate + 75
40 AppKit 0x00007fff964b03be -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2693
41 AppKit 0x00007fff964f8f04 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 744
42 AppKit 0x00007fff964aeae8 -[NSControl mouseDown:] + 669
43 AppKit 0x00007fff96a033c9 -[NSWindow _handleMouseDownEvent:isDelayedEvent:] + 6322
44 AppKit 0x00007fff96a043ad -[NSWindow _reallySendEvent:isDelayedEvent:] + 212
45 AppKit 0x00007fff96443539 -[NSWindow sendEvent:] + 517
46 AppKit 0x00007fff963c3a38 -[NSApplication sendEvent:] + 2540
47 AppKit 0x00007fff9622adf2 -[NSApplication run] + 796
48 AppKit 0x00007fff961f4368 NSApplicationMain + 1176
49 TestBrowserDemo 0x0000000100003042 main + 34
50 libdyld.dylib 0x00007fff8e7e85ad start + 1
)
rahulchavan10
Techie
 
Posts: 29
Joined: Tue Dec 19, 2017 6:03 am

Re: Build CEF in mac without implementing CefAppProtocol

Postby magreenblatt » Wed Feb 14, 2018 9:08 am

rahulchavan10 wrote:Want to build CEF in mac without forcing the user of my library to implement CefAppProtocol.

This is not supported.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Build CEF in mac without implementing CefAppProtocol

Postby hkurra » Mon Feb 26, 2018 1:07 am

Yes, It is not possible without implementing CefAppProtocol to avoid crashes at runtime.
I think it is possible to extend it in your 'library' through 'Extension and Category' in Objective C.
hkurra
Techie
 
Posts: 22
Joined: Wed Jun 21, 2017 8:13 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 65 guests