Multi-threaded Message Loop in COCOA application

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Multi-threaded Message Loop in COCOA application

Postby Farooq » Sun Aug 28, 2011 8:25 pm

Hi All,

How can I enable multi-threaded message loop option in a cocoa application. Currently when I set multi_threaded_message_loop to true it crashes the application and following are the log messages which I receive.

2011-08-29 02:21:56.906 cefclient[40222:4703] *** __NSAutoreleaseNoPool(): Object 0x4082e0 of class NSPathStore2 autoreleased with no pool in place - just leaking
2011-08-29 02:21:56.911 cefclient[40222:4703] *** __NSAutoreleaseNoPool(): Object 0x115c80 of class NSPathStore2 autoreleased with no pool in place - just leaking
2011-08-29 02:21:56.911 cefclient[40222:4703] *** __NSAutoreleaseNoPool(): Object 0x115e00 of class NSCFString autoreleased with no pool in place - just leaking
2011-08-29 02:21:56.912 cefclient[40222:4703] *** __NSAutoreleaseNoPool(): Object 0x115b80 of class NSConcreteData autoreleased with no pool in place - just leaking
2011-08-29 02:21:56.982 cefclient[40222:4703] *** __NSAutoreleaseNoPool(): Object 0x408530 of class NSCFString autoreleased with no pool in place - just leaking
2011-08-29 02:21:56.985 cefclient[40222:4703] *** __NSAutoreleaseNoPool(): Object 0x408570 of class NSConcreteData autoreleased with no pool in place - just leaking
2011-08-29 02:21:56.998 cefclient[40222:4703] *** __NSAutoreleaseNoPool(): Object 0x40b920 of class NSCFString autoreleased with no pool in place - just leaking
2011-08-29 02:21:56.999 cefclient[40222:4703] *** __NSAutoreleaseNoPool(): Object 0x40b680 of class NSConcreteData autoreleased with no pool in place - just leaking
2011-08-29 02:21:57.225 cefclient[40222:4703] *** __NSAutoreleaseNoPool(): Object 0x40bf60 of class NSCFString autoreleased with no pool in place - just leaking
2011-08-29 02:21:57.227 cefclient[40222:4703] *** __NSAutoreleaseNoPool(): Object 0x40c040 of class NSConcreteData autoreleased with no pool in place - just leaking
2011-08-29 02:21:57.282 cefclient[40222:4703] *** __NSAutoreleaseNoPool(): Object 0x117060 of class NSCFString autoreleased with no pool in place - just leaking
2011-08-29 02:21:57.286 cefclient[40222:4703] *** __NSAutoreleaseNoPool(): Object 0x117380 of class NSConcreteData autoreleased with no pool in place - just leaking
[0829/022157:FATAL:cef_process.cc(101)] Check failed: CalledOnValidThread() && ui_message_loop_.get() != NULL.
Backtrace:
0 libcef.dylib 0x5d6a90e4 base::debug::StackTrace::StackTrace() + 60
1 libcef.dylib 0x5d6ab15f logging::LogMessage::~LogMessage() + 69
2 libcef.dylib 0x5e56da41 CefProcess::RunMessageLoop() + 231
3 libcef.dylib 0x5e5678dd CefRunMessageLoop() + 527
4 libcef.dylib 0x5d727886 cef_run_message_loop + 33
5 cefclient 0x5d60e6e3 CefRunMessageLoop() + 33
6 cefclient 0x5d5d384e main + 300
7 cefclient 0x5d5ca276 start + 54
8 ??? 0x00000001 0x0 + 1

Kindest Regards,
Farooq-
Farooq
Techie
 
Posts: 15
Joined: Tue Jun 21, 2011 8:52 pm

Re: Multi-threaded Message Loop in COCOA application

Postby magreenblatt » Mon Aug 29, 2011 5:55 am

Multi-threaded message loop is not possible on Mac. You need to use a customization of NSApplication as demonstrated by cefclient.
magreenblatt
Site Admin
 
Posts: 12384
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 21 guests