Has anyone seen crashes on display changes (from chrome)

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.

Has anyone seen crashes on display changes (from chrome)

Postby fernandomorgan » Tue Sep 16, 2014 9:11 pm

I am using Mac CEF 3.1916.1804 (64 bit) and some of my users are seeing crashes on docking (or waking up) with external displays - just like these cases:


https://code.google.com/p/chromium/issu ... ?id=240787

https://code.google.com/p/chromium/issu ... ?id=240282

and this last one is a duplicate for chrome bug# 240115 - but I can only see this post in the google groups:

https://groups.google.com/a/chromium.or ... C9oUzUc0j8

Anyone has seen this? And if so, is it fixed in chromium 37 ?
fernandomorgan
Techie
 
Posts: 28
Joined: Tue Jan 14, 2014 5:51 pm

Re: Has anyone seen crashes on display changes (from chrome)

Postby magreenblatt » Tue Sep 16, 2014 9:53 pm

Do you have a stack trace for the crash that you're experiencing? What version of OS X and what hardware?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Has anyone seen crashes on display changes (from chrome)

Postby fernandomorgan » Tue Sep 16, 2014 10:01 pm

sure

this was with:
S 10:59:41.940 Mac Version 10.9.1 (Build 13B42) - RAM: 17179869184 CPUs:8 Up for 0.283068 days

(but I have seen it with 10.9.2 to 10.9.4)

-- 0 CoreFoundation 0x00007fff9555741c __exceptionPreprocess + 172
-- 1 libobjc.A.dylib 0x00007fff901c5e75 objc_exception_throw + 43
-- 2 CoreFoundation 0x00007fff95556fc9 -[NSException raise] + 9
-- 3 ExceptionHandling 0x00007fff8b4b2c71 NSExceptionHandlerUncaughtSignalHandler + 35
-- 4 libsystem_platform.dylib 0x00007fff947a05aa _sigtramp + 26
-- 5 ??? 0x00007fff50e185c0 0x0 + 140734550345152
-- 6 Chromium Embedded Framework 0x000000010f18739f catch_exception_raise + 859231
-- 7 Chromium Embedded Framework 0x000000010f18c3ac catch_exception_raise + 879724
-- 8 CoreGraphics 0x00007fff8b9067a2 CGSReconfigNotifierCalloutListInvokeAll + 64
-- 9 CoreGraphics 0x00007fff8b9aa4c0 displayConfigFinalizedProc + 249
-- 10 CoreGraphics 0x00007fff8b4ee624 CGSPostLocalNotification + 591
-- 11 CoreGraphics 0x00007fff8b5324d2 _ZN12_GLOBAL__N_123notify_datagram_handlerEj15CGSDatagramTypePvmS1_ + 72
-- 12 CoreGraphics 0x00007fff8b4ec5c1 _ZN21CGSDatagramReadStream33dispatch_next_main_queue_datagramEv + 287
-- 13 CoreGraphics 0x00007fff8b4eb7b6 _ZN21CGSDatagramReadStream22dispatch_next_datagramEv + 42
-- 14 CoreGraphics 0x00007fff8b4eb77c _ZN21CGSDatagramReadStream18dispatch_datagramsEv + 50
-- 15 CoreGraphics 0x00007fff8b54cc5c ___ZN21CGSDatagramReadStream24dispatch_datagrams_asyncEP16dispatch_queue_sPS__block_invoke + 18
-- 16 libdispatch.dylib 0x00007fff8aa6b1d7 _dispatch_call_block_and_release + 12
-- 17 libdispatch.dylib 0x00007fff8aa682ad _dispatch_client_callout + 8
-- 18 libdispatch.dylib 0x00007fff8aa6ff03 _dispatch_main_queue_callback_4CF + 333
-- 19 CoreFoundation 0x00007fff954be839 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
-- 20 CoreFoundation 0x00007fff95479b14 __CFRunLoopRun + 1636
-- 21 CoreFoundation 0x00007fff95479275 CFRunLoopRunSpecific + 309
-- 22 HIToolbox 0x00007fff93741f0d RunCurrentEventLoopInMode + 226
-- 23 HIToolbox 0x00007fff93741cb7 ReceiveNextEventCommon + 479
-- 24 HIToolbox 0x00007fff93741abc _BlockUntilNextEventMatchingListInModeWithFilter + 65
-- 25 AppKit 0x00007fff9244428e _DPSNextEvent + 1434
-- 26 AppKit 0x00007fff924438db -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
-- 27 AppKit 0x00007fff924379cc -[NSApplication run] + 553
-- 28 Chromium Embedded Framework 0x000000010f03cb41 cef_time_delta + 251905
-- 29 Chromium Embedded Framework 0x000000010f03c36c cef_time_delta + 249900
-- 30 Chromium Embedded Framework 0x000000010f08ba66 cef_time_delta + 575270
-- 31 Chromium Embedded Framework 0x000000010f0778cd cef_time_delta + 492941
-- 32 Yahoo Instant 0x000000010ee007c2 _Z17MyApplicationMainiPPKc + 2335
-- 33 libdyld.dylib 0x00007fff93cf85fd start + 1
-- 34 ??? 0x0000000000000001 0x0 + 1

this happens when the user is connecting a MacBookPro retina (15" 16Gb RAM) to an external display: not always, but frequently.
fernandomorgan
Techie
 
Posts: 28
Joined: Tue Jan 14, 2014 5:51 pm

Re: Has anyone seen crashes on display changes (from chrome)

Postby fernandomorgan » Tue Sep 16, 2014 10:12 pm

I don't think this happened with the 1750 branch; almost all the test machines are rMBP with 10.9.x and this is observed when connecting an external display and waking up from sleep.
I couldn't reproduce it with Yosemite, but I don't usually work with an external display, so I might be "lucky".
fernandomorgan
Techie
 
Posts: 28
Joined: Tue Jan 14, 2014 5:51 pm

Re: Has anyone seen crashes on display changes (from chrome)

Postby magreenblatt » Wed Sep 17, 2014 12:32 pm

Can you provide a stack trace with CEF symbols? Symbol files are available for download from http://cefbuilds.com.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Has anyone seen crashes on display changes (from chrome)

Postby fernandomorgan » Thu Sep 18, 2014 11:02 am

Testing with the debug builds, might be my fault - (the way I am doing the app exit).

got an assertion:

Assertion failure: 0 == rv, at ../../third_party/nss/nspr/pr/src/pthreads/ptthread.c:288

this seems to be the IO thread:
Crashed Thread: 18 Chrome_IOThread

Exception Type: EXC_CRASH (SIGABRT)
...
Thread 0:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff975e6486 __semwait_signal + 10
1 org.chromium.ContentShell.framework 0x00000001015e7611 base::PlatformThread::Join(base::PlatformThreadHandle) + 65
2 org.chromium.ContentShell.framework 0x00000001015fbbc8 base::Thread::Stop() + 120
3 org.chromium.ContentShell.framework 0x00000001017172ad content::BrowserProcessSubThread::~BrowserProcessSubThread() + 61
4 org.chromium.ContentShell.framework 0x0000000101717313 content::BrowserProcessSubThread::~BrowserProcessSubThread() + 35
5 org.chromium.ContentShell.framework 0x000000010171736a content::BrowserProcessSubThread::~BrowserProcessSubThread() + 42
6 org.chromium.ContentShell.framework 0x00000001016e7f6f base::DefaultDeleter<content::BrowserProcessSubThread>::operator()(content::BrowserProcessSubThread*) const + 63
7 org.chromium.ContentShell.framework 0x00000001016e7efa base::internal::scoped_ptr_impl<content::BrowserProcessSubThread, base::DefaultDeleter<content::BrowserProcessSubThread> >::reset(content::BrowserProcessSubThread*) + 122
8 org.chromium.ContentShell.framework 0x00000001016e554b scoped_ptr<content::BrowserProcessSubThread, base::DefaultDeleter<content::BrowserProcessSubThread> >::reset(content::BrowserProcessSubThread*) + 43
9 org.chromium.ContentShell.framework 0x00000001016e2a12 content::BrowserMainLoop::ShutdownThreadsAndCleanUp() + 3490
10 org.chromium.ContentShell.framework 0x00000001016ee37a content::BrowserMainRunnerImpl::Shutdown() + 826
11 org.chromium.ContentShell.framework 0x000000010135ec7e CefMainDelegate::ShutdownBrowser() + 110
12 org.chromium.ContentShell.framework 0x00000001012969db CefContext::FinalizeShutdown() + 91
13 org.chromium.ContentShell.framework 0x0000000101295cb1 CefContext::Shutdown() + 545
14 org.chromium.ContentShell.framework 0x0000000101296e57 (anonymous namespace)::CefForceShutdown::~CefForceShutdown() + 55
15 org.chromium.ContentShell.framework 0x0000000101294c93 (anonymous namespace)::CefForceShutdown::~CefForceShutdown() + 35
16 libsystem_c.dylib 0x00007fff89ae38ed __cxa_finalize_ranges + 322
17 libsystem_c.dylib 0x00007fff89ae3bf0 exit + 55
18 com.apple.AppKit 0x00007fff88bbdca0 -[NSApplication terminate:] + 2032
19 com.yahoo.Yahoo-Instant 0x0000000100e5a726 -[YBreweryApplication terminate:] + 102
20 com.apple.AppKit 0x00007fff88cdc0cf -[NSApplication _terminateFromSender:askIfShouldTerminate:saveWindows:] + 240
fernandomorgan
Techie
 
Posts: 28
Joined: Tue Jan 14, 2014 5:51 pm

Re: Has anyone seen crashes on display changes (from chrome)

Postby magreenblatt » Thu Sep 18, 2014 11:15 am

fernandomorgan wrote:15 org.chromium.ContentShell.framework 0x0000000101294c93 (anonymous namespace)::CefForceShutdown::~CefForceShutdown() + 35
16 libsystem_c.dylib 0x00007fff89ae38ed __cxa_finalize_ranges + 322
17 libsystem_c.dylib 0x00007fff89ae3bf0 exit + 55
18 com.apple.AppKit 0x00007fff88bbdca0 -[NSApplication terminate:] + 2032
19 com.yahoo.Yahoo-Instant 0x0000000100e5a726 -[YBreweryApplication terminate:] + 102
20 com.apple.AppKit 0x00007fff88cdc0cf -[NSApplication _terminateFromSender:askIfShouldTerminate:saveWindows:] + 240

Looks like you're not calling CefShutdown. See the cefclient_mac.mm example for the correct way to handle shutdown on Mac.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Has anyone seen crashes on display changes (from chrome)

Postby fernandomorgan » Thu Sep 18, 2014 11:48 am

Right, - I used to call CefShutdown in the NSApp terminate but that also has issues - thank you for looking into this!
fernandomorgan
Techie
 
Posts: 28
Joined: Tue Jan 14, 2014 5:51 pm


Return to Support Forum

Who is online

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