CEFSimple crashes on MACOS with 79.1.38+gecefb59

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.

CEFSimple crashes on MACOS with 79.1.38+gecefb59

Postby smayoral » Wed Sep 30, 2020 3:30 pm

Hi,
I just compiled CefSimple project and started it with an own URL which does nothing special, just open a PopUp after clicking on a button.
I just wanted to test if window.open() works with Chromium since WKWebView is apparently not abled to open new Windows.
CefSimple crashes closing the PopUp Window. It does not happen at the first time. I have to open/close several times popUps windows to get the crash.

CrBrowserMain (1) Queue : com.apple.main-thread (serial)
#0 0x00007fff6bd8e678 in objc_release ()
#1 0x00007fff3557f0ee in __NSThreadPerformPerform ()
#2 0x00007fff32eaad52 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#3 0x00007fff32eaacf1 in __CFRunLoopDoSource0 ()
#4 0x00007fff32eaab67 in __CFRunLoopDoSources0 ()
#5 0x00007fff32ea983a in __CFRunLoopRun ()
#7 0x00007fff31ad5abd in RunCurrentEventLoopInMode ()
#8 0x00007fff31ad57d5 in ReceiveNextEventCommon ()
#9 0x00007fff31ad5579 in _BlockUntilNextEventMatchingListInModeWithFilter ()
#10 0x00007fff3011b039 in _DPSNextEvent ()
#11 0x00007fff30119880 in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] ()
#12 0x00007fff3010b58e in -[NSApplication run] ()

CrBrowserMain (1): EXC_BAD_ACCESS (code=1, address=0x3eadde8ed340)

libobjc.A.dylib`objc_release:
0x7fff6bd8e660 <+0>: testq %rdi, %rdi
0x7fff6bd8e663 <+3>: je 0x7fff6bd8e6c9 ; <+105>
0x7fff6bd8e665 <+5>: testb $0x1, %dil
0x7fff6bd8e669 <+9>: jne 0x7fff6bd8e6c9 ; <+105>
0x7fff6bd8e66b <+11>: movabsq $0x7ffffffffff8, %rax ; imm = 0x7FFFFFFFFFF8
0x7fff6bd8e675 <+21>: andq (%rdi), %rax
-> 0x7fff6bd8e678 <+24>: testb $0x4, 0x20(%rax)
0x7fff6bd8e67c <+28>: je 0x7fff6bd8e6e7 ; <+135>
0x7fff6bd8e67e <+30>: movabsq $0x100000000000000, %rcx ; imm = 0x100000000000000
0x7fff6bd8e688 <+40>: movabsq $0x40000000000000, %rdx ; imm = 0x40000000000000

I could see that the SimpleHandler::DoClose callback is called twice with the same SimpleHandler::DoClose pointer.

Anyone having this problem too?
Thanks
smayoral
Techie
 
Posts: 39
Joined: Wed Jan 10, 2018 8:58 am

Re: CEFSimple crashes on MACOS with 79.1.38+gecefb59

Postby magreenblatt » Wed Sep 30, 2020 3:38 pm

What Mac and Xcode versions? Please test with a supported CEF version and download the symbols so that the call stack is symbolized. You can also test with the pre-built “Sample Application”.
magreenblatt
Site Admin
 
Posts: 12404
Joined: Fri May 29, 2009 6:57 pm

Re: CEFSimple crashes on MACOS with 79.1.38+gecefb59

Postby smayoral » Wed Sep 30, 2020 3:54 pm

macOS Catalina 10.15.6 and XCODE 12.0.1

I use CEF 79.1.38+gecefb59+chromium-79.0.3945.130 / Chromium 79.0.3945.130

Is this one no a supported version?
smayoral
Techie
 
Posts: 39
Joined: Wed Jan 10, 2018 8:58 am

Re: CEFSimple crashes on MACOS with 79.1.38+gecefb59

Postby smayoral » Wed Sep 30, 2020 3:54 pm

ok, I see which versions you mean. I will test it now.
smayoral
Techie
 
Posts: 39
Joined: Wed Jan 10, 2018 8:58 am

Re: CEFSimple crashes on MACOS with 79.1.38+gecefb59

Postby smayoral » Wed Sep 30, 2020 4:44 pm

this problem seems to be gone (open/close popUps does not crash the application anymore) but I get now the cefclient crash with cefsimple (close the main application after opening a popup window)

I put the Chromium Embedded Framework.dSYM file in the same folder as cefsimple Helper, Helper (Renderer), Chromium Embedded Framework. Is this the correct place?
smayoral
Techie
 
Posts: 39
Joined: Wed Jan 10, 2018 8:58 am

Re: CEFSimple crashes on MACOS with 79.1.38+gecefb59

Postby magreenblatt » Wed Sep 30, 2020 5:00 pm

Yes, place the dSYM next to "Chromium Embedded Framework.framework" in the app bundle.
magreenblatt
Site Admin
 
Posts: 12404
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: clown, delta42, richardmgoodin and 38 guests