- I built Cef (from source code in branch 3396) . i got both Debug & release versions.
- I built our app which uses Cef
I ran the following test:
a- start app, do some activity, close app (if is in Debug mode, the app crashes here)
b- start up, so some activity, close app. restart app (if is in release, the app crashes here)
- In case 'a' , because I have debug information, i run from gdb, so when i get crash i run 'backtrace full' so i can see full stacktrace, which is show below (triggered from CefShutdown).
- In case 'b' , because I don't have debug info loaded in the binary, i rely on whatever i print through the cef log and the last logs
are shown as coming from method: OnBeforeCommandLineProcessing() which is called on our CefApp instance.
NOTE: this particular method is triggered as a result from our app calling: CefInitialize()
Note that in this method we set the following options:
- "enable-media-stream"
- "disable-application-cache"
- "disable-cache"
- "use-fake-device-for-media-stream"
- "use-fake-ui-for-media-stream"
I also set "disable-extensions" as I earlier saw in some posts that this seem to solve a known CefShutdown() issue, but no luck, crash still occurs.
Also, when we call CefInitialize() we set the following:
- command_line_args_disabled = true
- multi_threaded_message_loop = false
- external_message_pump = true
- ignore_certificate_errors = true
What am i missing ?
Thank you!
---- trace from gdb -------Thread 1 "wfica" received signal SIGABRT, Aborted.
0xb7fdd424 in __kernel_vsyscall ()
(gdb) backtrace full
#0 0xb7fdd424 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb73f1366 in raise () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
No symbol table info available.
#2 0xb73f2a23 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
No symbol table info available.
#3 0x9fb8af19 in base::debug::BreakDebugger() () at ../../base/debug/debugger_posix.cc:258
No locals.
#4 0x9fbade06 in ~LogMessage () at ../../base/logging.cc:855
No locals.
#5 0x9f9bdfdb in operator<<<std::__1::char_traits<char> > () at ../../buildtools/third_party/libc++/trunk/include/ostream:864
No locals.
#6 CefQuitMessageLoop () at ../../cef/libcef/browser/context.cc:296
No locals.
#7 0x9cf925cb in cef_quit_message_loop () at ../../cef/libcef_dll/libcef_dll.cc:422
No locals.
#8 0xa78d7506 in CefQuitMessageLoop () at /home/elux/Downloads/VDI-Experiments/ica_linux_driver/libcef_dll/wrapper/libcef_dll_wrapper.cc:413
No locals.
#9 0xa789266a in SimpleHandler::OnBeforeClose (this=0x8888f68, browser=...)
at /home/elux/Downloads/VDI-Experiments/ica_linux_driver/src/rtc/simple_handler.cc:205
bit = {_M_node = 0x88babc0}
#10 0xa78fa2c6 in (anonymous namespace)::life_span_handler_on_before_close (self=0x8909398, browser=0x8905a68)
at /home/elux/Downloads/VDI-Experiments/ica_linux_driver/libcef_dll/cpptoc/life_span_handler_cpptoc.cc:178
No locals.
#11 0x9cfe478e in OnBeforeClose () at ../../cef/libcef_dll/ctocpp/life_span_handler_ctocpp.cc:134
No locals.
#12 0x9f996851 in DestroyBrowser () at ../../cef/libcef/browser/browser_host_impl.cc:1519
No locals.
#13 0x9f9ad08d in DestroyAllBrowsers () at ../../cef/libcef/browser/browser_info_manager.cc:345
No locals.
#14 0x9f9be34b in FinishShutdownOnUIThread () at ../../cef/libcef/browser/context.cc:520
No locals.
#15 0x9f9bdd80 in Shutdown () at ../../cef/libcef/browser/context.cc:437
No locals.
#16 0x9f9bdb9d in CefShutdown () at ../../cef/libcef/browser/context.cc:254
No locals.
---Type <return> to continue, or q <return> to quit---
#17 0x9cf9007f in cef_shutdown () at ../../cef/libcef_dll/libcef_dll.cc:240
No locals.
#18 0xa78d18f4 in CefShutdown () at /home/elux/Downloads/VDI-Experiments/ica_linux_driver/libcef_dll/wrapper/libcef_dll_wrapper.cc:231