CEF crashes on closing NSWindow in Macbook PRO(Only on Touch

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 crashes on closing NSWindow in Macbook PRO(Only on Touch

Postby am449 » Mon Jul 11, 2016 5:38 am

I am using CEF 2526 in my project. When i am trying to close a pop-up window its crashing in MAC. If i use external mouse the crash is not happening whereas its 90% reproducible when i use my in-built touchpad of macbook. Here is the crash log.

Process: cefclient [1271]
Path: /Users/USER/Documents/*/cefclient.app/Contents/MacOS/cefclient
Identifier: com.genband.omni.mac
Version: 1.0.0.30 (1.0.0.30)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: cefclient [1271]
User ID: 501

Date/Time: 2016-07-07 14:54:14.865 +0530
OS Version: Mac OS X 10.10.2 (14C1514)
Report Version: 11
Anonymous UUID: 0F54FCED-4D82-FEB9-5CD2-3A541BF3C022

Sleep/Wake UUID: C774E441-04B7-4295-A913-3AD622E6B6F3

Time Awake Since Boot: 4300 seconds
Time Since Wake: 710 seconds

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

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000443e46cfbec0

VM Regions Near 0x443e46cfbec0:
mapped file 0000000124936000-0000000124b36000 [ 2048K] rw-/rwx SM=ALI /private/var/folders/*/*.3KjSNY
-->
MALLOC_NANO 0000600000000000-0000600000200000 [ 2048K] rw-/rwx SM=PRV

Application Specific Information:
objc_msgSend() selector name: respondsToSelector:
Performing @selector(_close:) from sender _NSThemeCloseWidget 0x608000186320

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff9303f0dd objc_msgSend + 29
1 com.apple.AppKit 0x00007fff87802735 -[NSWindow __close] + 312
2 libsystem_trace.dylib 0x00007fff84178cd7 _os_activity_initiate + 75
3 com.apple.AppKit 0x00007fff877b9b71 -[NSApplication sendAction:to:from:] + 452
4 com.apple.AppKit 0x00007fff877b9970 -[NSControl sendAction:to:] + 86
5 com.apple.AppKit 0x00007fff8798f86c __26-[NSCell _sendActionFrom:]_block_invoke + 131
6 libsystem_trace.dylib 0x00007fff84178cd7 _os_activity_initiate + 75
7 com.apple.AppKit 0x00007fff87802509 -[NSCell _sendActionFrom:] + 144
8 libsystem_trace.dylib 0x00007fff84178cd7 _os_activity_initiate + 75
9 com.apple.AppKit 0x00007fff87801d66 -[NSButtonCell performClick:] + 1027
10 com.apple.Foundation 0x00007fff83eaecdc __NSThreadPerformPerform + 293
11 com.apple.CoreFoundation 0x00007fff90285681 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
12 com.apple.CoreFoundation 0x00007fff902778dc __CFRunLoopDoSources0 + 476
13 com.apple.CoreFoundation 0x00007fff90276e3f __CFRunLoopRun + 927
14 com.apple.CoreFoundation 0x00007fff90276858 CFRunLoopRunSpecific + 296
15 com.apple.HIToolbox 0x00007fff8ab26aef RunCurrentEventLoopInMode + 235
16 com.apple.HIToolbox 0x00007fff8ab2686a ReceiveNextEventCommon + 431
17 com.apple.HIToolbox 0x00007fff8ab266ab _BlockUntilNextEventMatchingListInModeWithFilter + 71
18 com.apple.AppKit 0x00007fff875eaf81 _DPSNextEvent + 964
19 com.apple.AppKit 0x00007fff875ea730 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194
20 com.apple.AppKit 0x00007fff875de593 -[NSApplication run] + 594
21 org.chromium.ContentShell.framework 0x000000010d1b7c81 0x10d080000 + 1277057
22 org.chromium.ContentShell.framework 0x000000010d1b72e4 0x10d080000 + 1274596
23 org.chromium.ContentShell.framework 0x000000010d1ef893 0x10d080000 + 1505427
24 org.chromium.ContentShell.framework 0x000000010d1dd80d 0x10d080000 + 1431565
25 com.genband.omni.mac 0x000000010ceb9d69 client::MainMessageLoopStd::Run() + 9 (main_message_loop_std.cc:15)
26 com.genband.omni.mac 0x000000010cee6c12 main + 2354 (cefclient_mac.mm:1747)
27 libdyld.dylib 0x00007fff8433d5c9 start + 1
am449
Newbie
 
Posts: 3
Joined: Mon Jul 11, 2016 5:28 am

Re: CEF crashes on closing NSWindow in Macbook PRO(Only on T

Postby magreenblatt » Mon Jul 11, 2016 11:23 am

Does the crash reproduce in branch 2704 or newer? You can get builds from http://opensource.spotify.com/cefbuilds/index.html
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF crashes on closing NSWindow in Macbook PRO(Only on T

Postby am449 » Tue Jul 12, 2016 12:53 am

Yes. It is reproducible with CEF 2704 also.
am449
Newbie
 
Posts: 3
Joined: Mon Jul 11, 2016 5:28 am

Re: CEF crashes on closing NSWindow in Macbook PRO(Only on T

Postby magreenblatt » Tue Jul 12, 2016 9:31 am

OK, thanks for the report. Is the cefclient version that you're testing with unmodified? I see also that you've filed a bug at https://bitbucket.org/chromiumembedded/ ... in-macbook.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF crashes on closing NSWindow in Macbook PRO(Only on T

Postby am449 » Wed Jul 13, 2016 3:30 am

Yes i have tested with unmodified cefclient and with test application also.
am449
Newbie
 
Posts: 3
Joined: Mon Jul 11, 2016 5:28 am

Re: CEF crashes on closing NSWindow in Macbook PRO(Only on T

Postby GaRUi » Wed Jul 27, 2016 4:39 am

I have experienced the same issue on OSX El Capitan Version 10.11.15

Open a new window and make it full screen. When you close it touch pad I observe the same crash. It looks like a race condition.
Changing the window_ delegate to nil, in dealloc method of root_window_mac.mm cleared the crash problem for me.


Regards,
GaRUi
GaRUi
Techie
 
Posts: 10
Joined: Wed Jul 27, 2016 4:28 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 97 guests