Compiling CEF for mac app store.

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.

Compiling CEF for mac app store.

Postby alihs » Tue Oct 06, 2015 1:08 pm

Hi, I have created a mac app based on CEF3 ( branch 2357). I want to publish it on the Mac app store. I have read related CEF forum posts. I have also checked how people patched nw.js and Electron for MAS ( Mac app store). I have followed this post http://www.saschawise.com/blog/2015/08/12/electron-for-the-mac-app-store.html and patched chromium for private APIs and compiled CEF framework. App is running fine when it is not sandboxed.But after sandboxing and launching the app, its helper process is crashing because of flash player and mach-lookup. Is there anyway to disable both? Any help would be appreciated.

Here are the logs from system.log
Code: Select all
-- Oct  6 17:59:37 mymac kernel[0]: Sandbox: CEFApp(10151) deny file-write-create /Library/Internet Plug-Ins/PepperFlashPlayer
Oct  6 17:59:37 mymac kernel[0]: Sandbox: CEFApp Helper(10153) deny mach-lookup org.chromium.Chromium.rohitfork.10151
Oct  6 17:59:37 mymac kernel[0]: Sandbox: CEFApp Helper(10157) deny mach-lookup org.chromium.Chromium.rohitfork.10151
Oct  6 17:59:37 mymac kernel[0]: Sandbox: storeuid(90417) deny mach-lookup com.apple.dock.server
Oct  6 17:59:37 mymac kernel[0]: Sandbox: CEFApp Helper(10153) deny forbidden-sandbox-reinit
Oct  6 17:59:37 mymac com.apple.xpc.launchd[1] (com.apple.ReportCrash[10158]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash
Oct  6 17:59:38 mymac kernel[0]: Sandbox: CEFApp Helper(10157) deny forbidden-sandbox-reinit
Oct  6 17:59:38 mymac.local ReportCrash[10158]: Saved crash report for CEFApp Helper[10153] version 1.0 (1) to /Users/ahassan/Library/Logs/DiagnosticReports/CEFApp Helper_2015-10-06-175938_mymac.crash
Oct  6 17:59:47 mymac kernel[0]: Sandbox: CEFApp(10151) deny file-read-data /Users/ahassan/Library/Preferences/com.apple.symbolichotkeys.plist


crash log from /Users/ahassan/Library/Logs/DiagnosticReports/CEFApp Helper_2015-10-06-175938_mymac.crash

Code: Select all
Process:               CEFApp Helper [10153]
Path:                  /Users/USER/*/CEFApp.app/Contents/Frameworks/CEFApp Helper.app/Contents/MacOS/CEFApp Helper
Identifier:            CEFApp Helper
Version:               1.0 (1)
Code Type:             X86-64 (Native)
Parent Process:        CEFApp [10151]
Responsible:           CEFApp [10151]
User ID:               651864788

Date/Time:             2015-10-06 17:59:37.988 +0500
OS Version:            Mac OS X 10.10.1 (14B25)
Report Version:        11
Anonymous UUID:        443168F4-1E8F-BE9E-D931-616CA8D81275

Sleep/Wake UUID:       F56E0F16-7D16-426F-B50C-8394CEEF2931

Time Awake Since Boot: 460000 seconds
Time Since Wake:       24000 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   org.chromium.ContentShell.framework   0x000000010a2342c5 cef_time_delta + 391221
1   org.chromium.ContentShell.framework   0x000000010a2476ed cef_time_delta + 470109
2   org.chromium.ContentShell.framework   0x000000010ce1951f _CTFontManagerUnregisterFontForData + 13700959
3   org.chromium.ContentShell.framework   0x000000010ce18d4e _CTFontManagerUnregisterFontForData + 13698958
4   org.chromium.ContentShell.framework   0x000000010a1787c8 cef_zip_reader_create + 129544
5   org.chromium.ContentShell.framework   0x000000010a120060 cef_execute_process + 96
6   CEFApp.8EDAB9758133E30CA85B43DA5F59D40.1   0x000000010a0872aa main + 74 (process_helper_mac.cpp:13)
7   libdyld.dylib                    0x00007fff8b6915c9 start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib           0x00007fff9595822e kevent64 + 10
1   libdispatch.dylib                0x00007fff86cfca6a _dispatch_mgr_thread + 52

Thread 2:
0   libsystem_kernel.dylib           0x00007fff95957946 __workq_kernreturn + 10
1   libsystem_pthread.dylib          0x00007fff88b944a1 start_wqthread + 13

Thread 3:
0   libsystem_kernel.dylib           0x00007fff95957946 __workq_kernreturn + 10
1   libsystem_pthread.dylib          0x00007fff88b944a1 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib           0x00007fff95957946 __workq_kernreturn + 10
1   libsystem_pthread.dylib          0x00007fff88b944a1 start_wqthread + 13

Thread 5:
0   libsystem_kernel.dylib           0x00007fff95957946 __workq_kernreturn + 10
1   libsystem_pthread.dylib          0x00007fff88b944a1 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000054  rbx: 0x0000000000000000  rcx: 0x0000000000000010  rdx: 0xffffffffffffffc4
  rdi: 0x00007fff55b79cf0  rsi: 0x00007f9dbbe07b98  rbp: 0x00007fff55b79cc0  rsp: 0x00007fff55b79cc0
   r8: 0x00007fff55b79ca0   r9: 0x0000000000000208  r10: 0x00000000000170d8  r11: 0x0000006199d721a8
  r12: 0x00007fff55b7a168  r13: 0xd500781661cd08a1  r14: 0x00007fff55b7a178  r15: 0x00007f9dbbc0b0d0
  rip: 0x000000010a2342c5  rfl: 0x0000000000000246  cr2: 0x000000010cffda70
 
Logical CPU:     6
Error Code:      0x00000000
Trap Number:     3

alihs
Newbie
 
Posts: 1
Joined: Tue Oct 06, 2015 12:32 pm

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 50 guests