chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.35k stars 467 forks source link

Linux: cefsimple app crash on exit #3160

Open magreenblatt opened 3 years ago

magreenblatt commented 3 years ago

Original report by Czarek Tomczak (Bitbucket: Czarek, GitHub: Czarek).


This reproduces with current master branch (92.0.4515.0). The cefclient app exits fine without any issues. The problem occurs only in cefsimple.

The error logs below only start appearing after clicking the close button.

cz@cz:~/cef-master/chromium/src/out/Release_GN_x64$ ./cefsimple 
[0707/162208.828561:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Critical) eglMakeCurrent: Failed to make the GLX context current
[0707/162208.828763:ERROR:gl_surface_egl.cc(780)] EGL Driver message (Critical) eglMakeCurrent: Failed to make the GLX context current
[0707/162208.828854:ERROR:gl_context_egl.cc(291)] eglDestroyContext failed with error EGL_BAD_CONTEXT
Received signal 11 SEGV_MAPERR [000000000000 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/000000000000)
#0 0x7fc6cc84c159 base::debug::CollectStackTrace()
#1 0x7fc6cc7b73d3 base::debug::StackTrace::StackTrace()
#2 0x7fc6cc84bc81 base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x7fc6c5fad3c0 (/usr/lib/x86_64-linux-gnu/libpthread-2.31.so+0x153bf)
#4 0x7fc6c0d78316 <unknown>
#5 0x7fc6c0d9e3fe <unknown>
#6 0x7fc6c0cfe796 <unknown>
#7 0x7fc6c0d00240 <unknown>
#8 0x7fc6cdb91b6f gl::GLContextEGL::MakeCurrentImpl()
#9 0x7fc6ce65caa8 gpu::CommandBufferStub::Destroy()
#10 0x7fc6ce65c71d gpu::CommandBufferStub::~CommandBufferStub()
#11 0x7fc6ce67168e gpu::RasterCommandBufferStub::~RasterCommandBufferStub()
#12 0x7fc6ce665934 gpu::GpuChannel::~GpuChannel()
#13 0x7fc6ce6659de gpu::GpuChannel::~GpuChannel()
#14 0x7fc6ce668bcf gpu::GpuChannelManager::RemoveChannel()
#15 0x7fc6ce673d86 gpu::SharedImageStub::UpdateSharedImage()
#16 0x7fc6ce672f9a gpu::SharedImageStub::OnUpdateSharedImage()
#17 0x7fc6ce6728ff gpu::SharedImageStub::ExecuteDeferredRequest()
#18 0x7fc6ce6638c0 gpu::GpuChannel::ExecuteDeferredRequest()
#19 0x7fc6ce6666be base::internal::InvokeHelper<>::MakeItSo<>()
#20 0x7fc6cdffd777 gpu::Scheduler::RunNextTask()
#21 0x7fc6cc80e6e3 base::TaskAnnotator::RunTask()
#22 0x7fc6cc81f7df base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl()
#23 0x7fc6cc81f4ea base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()
#24 0x7fc6cc7d2747 base::(anonymous namespace)::WorkSourceDispatch()
#25 0x7fc6c5c4c17d g_main_context_dispatch
#26 0x7fc6c5c4c400 (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6400.6+0x523ff)
#27 0x7fc6c5c4c4a3 g_main_context_iteration
#28 0x7fc6cc7d2512 base::MessagePumpGlib::Run()
#29 0x7fc6cc81fe45 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run()
#30 0x7fc6cc7f17db base::RunLoop::Run()
#31 0x7fc6d01e6dcb content::GpuMain()
#32 0x7fc6cc646d40 content::RunZygote()
#33 0x7fc6cc647f0b content::ContentMainRunnerImpl::Run()
#34 0x7fc6cc645f52 content::RunContentProcess()
#35 0x7fc6cc645ffd content::ContentMain()
#36 0x7fc6cc6d6875 CefMainRunner::RunAsHelperProcess()
#37 0x7fc6c9551eff cef_execute_process
#38 0x55e1e4facd4f CefExecuteProcess()
#39 0x55e1e4f87443 main
#40 0x7fc6c5db20b3 __libc_start_main
#41 0x55e1e4f84cfe _start
  r8: [0000000000000000 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/0000000000000000)  r9: [000055e1e5f32130 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/000055e1e5f32130) r10: [000000000000000b (bb)](https://bitbucket.org/chromiumembedded/cef/commits/000000000000000b) r11: [000055e1e61157e8 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/000055e1e61157e8)
 r12: [000055e1e5f9bb20 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/000055e1e5f9bb20) r13: [00007ffca6f18ce0 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/00007ffca6f18ce0) r14: [000055e1e5f9bb20 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/000055e1e5f9bb20) r15: [000055e1e5f32130 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/000055e1e5f32130)
  di: [0000000000000000 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/0000000000000000)  si: [000055e1e5f9bb20 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/000055e1e5f9bb20)  bp: [00007ffca6f18c70 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/00007ffca6f18c70)  bx: [00007ffca6f18ce0 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/00007ffca6f18ce0)
  dx: [000055e1e5c1a490 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/000055e1e5c1a490)  ax: [000055e1e5f9bb20 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/000055e1e5f9bb20)  cx: [0000000000000000 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/0000000000000000)  sp: [00007ffca6f18c20 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/00007ffca6f18c20)
  ip: [00007fc6c0d78316 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/00007fc6c0d78316) efl: [0000000000010202 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/0000000000010202) cgf: [002b000000000033 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/002b000000000033) erf: [0000000000000004 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/0000000000000004)
 trp: [000000000000000e (bb)](https://bitbucket.org/chromiumembedded/cef/commits/000000000000000e) msk: [0000000000000000 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/0000000000000000) cr2: [0000000000000000 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/0000000000000000)
[end of stack trace]
[0707/162209.039360:ERROR:command_buffer_proxy_impl.cc(350)] GPU state invalid after WaitForGetOffsetInRange.
[0707/162209.039569:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=139
[0707/162209.039594:WARNING:gpu_process_host.cc(1308)] The GPU process has crashed 1 time(s)
[0707/162209.040904:WARNING:connection.cc(61)] X error received.  Request: DestroyWindowRequest, Error: WindowError{.sequence = 2021, .bad_value = [81788931 (bb)](https://bitbucket.org/chromiumembedded/cef/commits/81788931), .minor_opcode = 0, .major_opcode = 4}

OS: native machine running Ubuntu 20.04.
GPU: Dedicated GTX 1070.

magreenblatt commented 3 years ago

Original comment by Czarek Tomczak (Bitbucket: Czarek, GitHub: Czarek).


I’ve uploaded logs from three runs. The stack trace is always the same, but other error messages differ a bit every time.

https://gist.github.com/cztomczak/fa007d8b0f57c8ce827d454df8bdc7e8
https://gist.github.com/cztomczak/9190773b150473500c8b9041102bb2c6
https://gist.github.com/cztomczak/62af245c00901b36069d7fd34d5755b1

magreenblatt commented 3 years ago

Original comment by Czarek Tomczak (Bitbucket: Czarek, GitHub: Czarek).


Related: #3092/linux-gpu-process-crashes-on-shutdown