chromiumembedded / cef

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

linux: cefclient: crash when selecting "Show DevTools" #3574

Closed raphael10-collab closed 10 months ago

raphael10-collab commented 11 months ago

I built CEF in Ubuntu 22.04 Desktop following the steps here: https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md

And the building process looked fine, as you can see from the transcription of every single step in this file: CEF-Ubuntu22.04-Building.txt

executing the debug version of cefclient:

raphy@raohy:~/code/chromium_git/chromium/src/out/Debug_GN_x64$ ./cefclient

seems working fine:

image

But, if I select "Show DevTools" with mouse right-click , the window crashes and get these errors:

raphy@raohy:~/code/chromium_git/chromium/src/out/Debug_GN_x64$ ./cefclient
[1001/113009.967704:WARNING:policy_logger.cc(148)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(88) Could not create policy manager as CBCM is not enabled.
[1001/113010.168511:WARNING:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported.
[1001/113014.796492:INFO:CONSOLE(1)] "Uncaught TypeError: o.Integrations.RewriteFrames is not a constructor", source: https://d301sr5gafysq2.cloudfront.net/aa6b96a4960c/dist/webpack/sentry.js (1)
[1001/113015.252872:ERROR:http_cache_writers.cc(579)] failed to write response data to cache
[1001/113015.508219:INFO:CONSOLE(29)] "JQMIGRATE: Migrate is installed with logging active, version 3.3.1", source: https://d301sr5gafysq2.cloudfront.net/aa6b96a4960c/dist/webpack/aui-8.js (29)
[1001/113016.869440:INFO:CONSOLE(29)] "JQMIGRATE: jQuery.isArray is deprecated; use Array.isArray", source: https://d301sr5gafysq2.cloudfront.net/aa6b96a4960c/dist/webpack/aui-8.js (29)
[1001/113016.869692:INFO:CONSOLE(29)] "console.trace", source: https://d301sr5gafysq2.cloudfront.net/aa6b96a4960c/dist/webpack/aui-8.js (29)
[1001/113018.551089:INFO:CONSOLE(124)] "DEPRECATED JS - PopulateParameters has been deprecated since 9.0.0 and will be removed in 10.0.0.  
     at HTMLDocument.<anonymous> (https://d301sr5gafysq2.cloudfront.net/aa6b96a4960c/dist/webpack/aui-8.js:124:129279)", source: https://d301sr5gafysq2.cloudfront.net/aa6b96a4960c/dist/webpack/aui-8.js (124)
[1001/113018.606501:INFO:CONSOLE(124)] "DEPRECATED JS - Inline dialog constructor has been deprecated and will be removed in a future release. Use inline dialog 2 instead.   
     at https://d301sr5gafysq2.cloudfront.net/aa6b96a4960c/dist/webpack/vendor.js:475:146584", source: https://d301sr5gafysq2.cloudfront.net/aa6b96a4960c/dist/webpack/aui-8.js (124)
[1001/113018.651010:INFO:CONSOLE(37)] "Refused to connect to 'https://stats.g.doubleclick.net/j/collect?t=dc&aip=1&_r=3&v=1&_v=j101&tid=UA-76642781-1&cid=8214567.1696152618&jid=1393044227&gjid=1634421549&_gid=2090662461.1696152618&_u=YEBAAEAAAAAAACACI~&z=1823278781' because it violates the following Content Security Policy directive: "connect-src bitbucket.org *.bitbucket.org bb-inf.net *.bb-inf.net id.atlassian.com api.atlassian.com api.stg.atlassian.com wss://bitbucketci-ws-service.services.atlassian.com/ wss://bitbucketci-ws-service.stg.services.atlassian.com/ wss://bitbucketci-ws-service.dev.services.atlassian.com/ analytics.atlassian.com as.atlassian.com api-private.stg.atlassian.com api-private.atlassian.com cofs.staging.public.atl-paas.net cofs.prod.public.atl-paas.net fd-assets.prod.atl-paas.net intake.opbeat.com api.media.atlassian.com api.segment.io xid.statuspage.io xid.atlassian.com xid.sourcetreeapp.com bam.nr-data.net bam-cell.nr-data.net www.google-analytics.com sentry.io *.ingest.sentry.io events.launchdarkly.com app.launchdarkly.com fd-config.us-east-1.prod.public.atl-paas.net app.pendo.io data.pendo.io pendo-static-6266914010103808.storage.googleapis.com bqlf8qjztdtr.statuspage.io https://d301sr5gafysq2.cloudfront.net/ https://d136azpfpnge1l.cloudfront.net/".
", source: https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md (37)
[1001/113019.132398:INFO:CONSOLE(147)] "Refused to connect to 'https://region1.google-analytics.com/g/collect?v=2&tid=G-BD58956NGD&gtm=45je39r0&_p=617847984&ul=en-us&sr=1920x1080&cid=8214567.1696152618&ir=1&uaa=x86&uab=64&uafvl=Not%253DA%253FBrand%3B99.0.0.0%7CChromium%3B118.0.5993.0&uamb=0&uam=&uap=Linux&uapv=6.2.0&uaw=0&_eu=EBAI&_s=1&dl=https%3A%2F%2Fbitbucket.org%2Fchromiumembedded%2Fcef%2Fwiki%2FMasterBuildQuickStart.md&dp=bitbucket.apps.wiki.views.wiki&sid=1696152619&sct=1&seg=0&en=page_view&_fv=1&_ss=1&_ee=1' because it violates the following Content Security Policy directive: "connect-src bitbucket.org *.bitbucket.org bb-inf.net *.bb-inf.net id.atlassian.com api.atlassian.com api.stg.atlassian.com wss://bitbucketci-ws-service.services.atlassian.com/ wss://bitbucketci-ws-service.stg.services.atlassian.com/ wss://bitbucketci-ws-service.dev.services.atlassian.com/ analytics.atlassian.com as.atlassian.com api-private.stg.atlassian.com api-private.atlassian.com cofs.staging.public.atl-paas.net cofs.prod.public.atl-paas.net fd-assets.prod.atl-paas.net intake.opbeat.com api.media.atlassian.com api.segment.io xid.statuspage.io xid.atlassian.com xid.sourcetreeapp.com bam.nr-data.net bam-cell.nr-data.net www.google-analytics.com sentry.io *.ingest.sentry.io events.launchdarkly.com app.launchdarkly.com fd-config.us-east-1.prod.public.atl-paas.net app.pendo.io data.pendo.io pendo-static-6266914010103808.storage.googleapis.com bqlf8qjztdtr.statuspage.io https://d301sr5gafysq2.cloudfront.net/ https://d136azpfpnge1l.cloudfront.net/".
", source: https://www.googletagmanager.com/gtag/js?id=G-BD58956NGD&cx=c&_slc=1 (147)
[1001/113019.157073:WARNING:obfuscated_file_util.cc(1323)] Failed to get origin+type directory: { uri: filesystem:https://bitbucket.org/temporary/, storage key: { origin: https://bitbucket.org, top-level site: https://bitbucket.org, nonce: <null>, ancestor chain bit: Same-Site }, bucket id: 1 } error:-4
[1001/113141.388376:WARNING:cefclient_gtk.cc(34)] X error received: type 0, serial 788, error_code 3, request_code 7, minor_code 0
[1001/113141.388467:WARNING:cefclient_gtk.cc(34)] X error received: type 0, serial 789, error_code 3, request_code 12, minor_code 0
[1001/113141.400720:ERROR:render_widget_host_view_aura.cc(472)] Not implemented reached in virtual gfx::NativeViewAccessible content::RenderWidgetHostViewAura::GetNativeViewAccessible()

(cefclient:183015): Gdk-ERROR **: 11:31:41.401: The program 'cefclient' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 792 error_code 3 request_code 18 (core protocol) minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)

raphy@raohy:~/code/chromium_git/chromium/src/out/Debug_GN_x64$ ./cefclient GDK_SYNCHRONIZE=true
[1001/123606.094230:WARNING:policy_logger.cc(148)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(88) Could not create policy manager as CBCM is not enabled.
[1001/123606.317741:WARNING:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported.
[1001/123612.860370:WARNING:cefclient_gtk.cc(34)] X error received: type 0, serial 509, error_code 3, request_code 7, minor_code 0
[1001/123612.860449:WARNING:cefclient_gtk.cc(34)] X error received: type 0, serial 510, error_code 3, request_code 12, minor_code 0
[1001/123612.871237:ERROR:render_widget_host_view_aura.cc(472)] Not implemented reached in virtual gfx::NativeViewAccessible content::RenderWidgetHostViewAura::GetNativeViewAccessible()

(cefclient:6903): Gdk-ERROR **: 12:36:12.872: The program 'cefclient' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 512 error_code 3 request_code 18 (core protocol) minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)
raphy@raohy:~/code/chromium_git/chromium/src/out/Debug_GN_x64$ 

I tried to run cefclient with enable-chrome-runtime as suggested here : https://github.com/chromiumembedded/cef/issues/3165 but, in this case, the "Show DevTools" choice was not present when right-clicking with the mouse. This is the output:

raphy@raohy:~/code/chromium_git/chromium/src/out/Debug_GN_x64$ ./cefclient --enable-chrome-runtime [--use-views]
[1001/125012.547866:WARNING:main_context_impl.cc(116)] Chrome runtime defaults to the Views framework.
[8073:8073:1001/125012.556564:WARNING:chrome_main_delegate.cc(616)] This is Chrome version 118.0.5993.0 (not a warning)
[8073:8073:1001/125012.614717:WARNING:policy_logger.cc(148)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(88) Could not create policy manager as CBCM is not enabled.
[8073:8073:1001/125012.775560:WARNING:policy_logger.cc(150)] :components/policy/core/browser/configuration_policy_pref_store.cc(34) Policy ProfileSeparationDataMigrationSettings: Ignored because ProfileSeparationSettings is not set.
[8073:8073:1001/125012.775637:WARNING:policy_logger.cc(150)] :components/policy/core/browser/configuration_policy_pref_store.cc(34) Policy ProfileSeparationDataMigrationSettings: Ignored because ProfileSeparationSettings is not set.
[8073:8073:1001/125012.872622:ERROR:policy_logger.cc(154)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(163) Cloud management controller initialization aborted as CBCM is not enabled.
[8073:8073:1001/125013.003432:WARNING:policy_logger.cc(150)] :components/policy/core/browser/configuration_policy_pref_store.cc(34) Policy ProfileSeparationDataMigrationSettings: Ignored because ProfileSeparationSettings is not set.
[8073:8073:1001/125013.003875:WARNING:policy_logger.cc(150)] :components/policy/core/browser/configuration_policy_pref_store.cc(34) Policy ProfileSeparationDataMigrationSettings: Ignored because ProfileSeparationSettings is not set.
[8073:8073:1001/125013.018031:WARNING:account_consistency_mode_manager.cc(73)] Desktop Identity Consistency cannot be enabled as no OAuth client ID and client secret have been configured.
[8073:8073:1001/125013.343667:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
[8102:8102:1001/125013.417721:WARNING:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported.
[8102:8102:1001/125013.439513:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[8103:8110:1001/125013.460784:WARNING:internal_linux.cc(78)] Failed to read /proc/self/stat
[8073:8073:1001/125013.791406:ERROR:cookie_controls_icon_view.cc(190)] CookieControl status is not initialized
[8073:8073:1001/125013.796587:ERROR:cookie_controls_icon_view.cc(190)] CookieControl status is not initialized
[8073:8073:1001/125027.940479:ERROR:render_widget_host_view_aura.cc(472)] Not implemented reached in virtual gfx::NativeViewAccessible content::RenderWidgetHostViewAura::GetNativeViewAccessible()
[8102:8102:1001/125048.190809:FATAL:vulkan_swap_chain.cc(404)] vkQueuePresentKHR() failed: -1000001004
#0 0x7f3555675bfc base::debug::CollectStackTrace()
#1 0x7f355563d35a base::debug::StackTrace::StackTrace()
#2 0x7f355563d315 base::debug::StackTrace::StackTrace()
#3 0x7f35553d2ef9 logging::LogMessage::~LogMessage()
#4 0x7f35595bcaa0 gpu::VulkanSwapChain::PresentBuffer()
#5 0x7f35595bccbc gpu::VulkanSwapChain::PostSubBufferAsync()
#6 0x7f35595b7c23 gpu::VulkanSurface::PostSubBufferAsync()
#7 0x7f356980add2 viz::SkiaOutputDeviceVulkan::Present()
#8 0x7f3569638b1f viz::SkiaOutputSurfaceImplOnGpu::PostSubmit()
#9 0x7f35696587a1 base::internal::FunctorTraits<>::Invoke<>()
#10 0x7f35696586cd base::internal::InvokeHelper<>::MakeItSo<>()
#11 0x7f356965864d base::internal::Invoker<>::RunImpl<>()
#12 0x7f35696585c7 base::internal::Invoker<>::RunOnce()
#13 0x7f3544e52201 base::OnceCallback<>::Run()
#14 0x7f35695e6ebb viz::SkiaOutputDevice::Submit()
#15 0x7f356980a878 viz::SkiaOutputDeviceVulkan::Submit()
#16 0x7f356962f952 viz::SkiaOutputSurfaceImplOnGpu::SwapBuffersInternal()
#17 0x7f356962f598 viz::SkiaOutputSurfaceImplOnGpu::SwapBuffers()
#18 0x7f356961de61 base::internal::FunctorTraits<>::Invoke<>()
#19 0x7f356961dd8d base::internal::InvokeHelper<>::MakeItSo<>()
#20 0x7f356961dd0d base::internal::Invoker<>::RunImpl<>()
#21 0x7f356961dc87 base::internal::Invoker<>::RunOnce()
#22 0x7f3544e52201 base::OnceCallback<>::Run()
#23 0x7f35696106bc viz::SkiaOutputSurfaceImpl::FlushGpuTasksWithImpl()::$_0::operator()()
#24 0x7f3569610564 base::internal::FunctorTraits<>::Invoke<>()
#25 0x7f35696104c1 base::internal::InvokeHelper<>::MakeItSo<>()
#26 0x7f35696103dd base::internal::Invoker<>::RunImpl<>()
#27 0x7f3569610307 base::internal::Invoker<>::RunOnce()
#28 0x7f3544e52201 base::OnceCallback<>::Run()
#29 0x7f355a462855 gpu::SchedulerDfs::ExecuteSequence()
#30 0x7f355a461214 gpu::SchedulerDfs::RunNextTask()
#31 0x7f355a474a2a base::internal::FunctorTraits<>::Invoke<>()
#32 0x7f355a47499c base::internal::InvokeHelper<>::MakeItSo<>()
#33 0x7f355a47492d base::internal::Invoker<>::RunImpl<>()
#34 0x7f355a4748b7 base::internal::Invoker<>::RunOnce()
#35 0x7f3544e52201 base::OnceCallback<>::Run()
#36 0x7f3555501993 base::TaskAnnotator::RunTaskImpl()
#37 0x7f355555c9d0 base::TaskAnnotator::RunTask<>()
#38 0x7f355555c406 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl()
#39 0x7f355555b98b base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()
#40 0x7f355555c6f3 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()
#41 0x7f35556a7ffa base::MessagePumpGlib::Run()
#42 0x7f355555d0ac base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run()
#43 0x7f3555490062 base::RunLoop::Run()
#44 0x7f3569496792 content::GpuMain()
#45 0x7f3553bcb6c6 content::RunZygote()
#46 0x7f3553bcbf08 content::RunOtherNamedProcessTypeMain()
#47 0x7f3553bcd317 content::ContentMainRunnerImpl::Run()
#48 0x7f3553bca226 content::ContentMainRun()
#49 0x7f3553bca2b3 content::RunContentProcess()
#50 0x7f3553bca316 content::ContentMain()
#51 0x7f3544fb90ec CefMainRunner::RunAsHelperProcess()
#52 0x7f3544f2e10a CefExecuteProcess()
#53 0x7f3544d1213e cef_execute_process
#54 0x55ba838f811d CefExecuteProcess()
#55 0x55ba837c1cc8 client::(anonymous namespace)::RunMain()
#56 0x55ba837c1aa2 main
#57 0x7f3533029d90 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)
#58 0x7f3533029e40 __libc_start_main
#59 0x55ba836d2bc5 _start
Task trace:
#0 0x7f355a4613b6 gpu::SchedulerDfs::RunNextTask()
#1 0x7f355a45de09 gpu::SchedulerDfs::TryScheduleSequence()
#2 0x7f356952f0b8 viz::DisplayScheduler::ScheduleBeginFrameDeadline()
#3 0x7f355532854e mojo::Connector::PostDispatchNextMessageFromPipe()
#4 0x7f3555e520ed mojo::SimpleWatcher::Context::Notify()
Crash keys:
  "gpu-url-chunk" = "https://wiki.ubuntu.com/X/Troubleshooting/XError"
  "gpu-gl-context-is-virtual" = "0"
  "gpu-url-chunk-chrome" = "chrome://gpu/SkiaRenderer"
  "gr-context-type" = "1"
  "variations" = "b13ca3d9-84f6cff8,13427e22-3f4a17df,87f33ad6-3f4a17df,55380672-3f4a17df,65570806-377be55a,f829ac10-207a19c6,4b879e88-2f3d3ae0,3fd33f16-27b09c4c,36d5ee52-3f4a17df,391562d6-3f4a17df,8659ca17-3f4a17df,910af27f-183f256a,8bccc03b-3f4a17df,83a5bd87-3f4a17df,fc9ceed7-3f4a17df,3095b8fe-3f4a17df,e28cd73c-3f4a17df,40416ab6-3d47f4f4,279c589-33fa5d,f3ed486d-3f4a17df,4ff8f5b5-9c1f9d3b,5f36436a-3f4a17df,e8e00bc1-de86ac56,c07e430b-2fa7646d,ade3efeb-e1cc0f14,db59f83a-3f4a17df,1166396-1166396,b32beb42-872d480b,bbaef9b4-3f4a17df,55ba4cfa-3f4a17df,c297985a-3f4a17df,3eabe0b8-3e066f82,78ce0fb-3f4a17df,858aa29b-3f4a17df,b6aa8178-3f4a17df,"
  "num-experiments" = "35"
  "vulkan-api-version" = "1.3.263"
  "egl-display-type" = "angle:Vulkan"
  "gpu-gl-renderer" = "ANGLE (NVIDIA, Vulkan 1.2.175 (NVIDIA NVIDIA GeForce GTX 770 (0x00001184)), NVIDIA-470.199.2.0)"
  "gpu-gl-vendor" = "Google Inc. (NVIDIA)"
  "gpu-generation-intel" = "0"
  "gpu-vsver" = "1.00"
  "gpu-psver" = "1.00"
  "gpu-driver" = "470.199.02"
  "gpu_count" = "1"
  "gpu-devid" = "0x1184"
  "gpu-venid" = "0x10de"
  "reentry_guard_tls_slot" = "unused"
  "switch-6" = "--field-trial-handle=0,i,17067479796722846094,282884352987959409"
  "switch-5" = "--shared-files"
  "switch-4" = "--user-data-dir=/home/raphy/.config/cef_user_data"
  "switch-3" = "--enable-chrome-runtime"
  "switch-2" = "--change-stack-guard-on-fork=enable"
  "switch-1" = "--enable-crash-reporter=,"
  "num-switches" = "8"

[8073:8073:1001/125052.910616:ERROR:command_buffer_proxy_impl.cc(319)] GPU state invalid after WaitForGetOffsetInRange.
[8073:8073:1001/125052.934638:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=133
[8073:8073:1001/125052.934693:WARNING:gpu_process_host.cc(1359)] The GPU process has crashed 1 time(s)
[8180:8180:1001/125053.319213:WARNING:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported.
[8180:8180:1001/125053.340022:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[8073:8073:1001/125053.350387:WARNING:gpu_process_host.cc(1013)] Reinitialized the GPU process after a crash. The reported initialization time was 398 ms
[8180:8180:1001/125103.716574:FATAL:vulkan_swap_chain.cc(404)] vkQueuePresentKHR() failed: -1000001004
#0 0x7f3555675bfc base::debug::CollectStackTrace()
#1 0x7f355563d35a base::debug::StackTrace::StackTrace()
#2 0x7f355563d315 base::debug::StackTrace::StackTrace()
#3 0x7f35553d2ef9 logging::LogMessage::~LogMessage()
#4 0x7f35595bcaa0 gpu::VulkanSwapChain::PresentBuffer()
#5 0x7f35595bccbc gpu::VulkanSwapChain::PostSubBufferAsync()
#6 0x7f35595b7c23 gpu::VulkanSurface::PostSubBufferAsync()
#7 0x7f356980add2 viz::SkiaOutputDeviceVulkan::Present()
#8 0x7f3569638b1f viz::SkiaOutputSurfaceImplOnGpu::PostSubmit()
#9 0x7f35696587a1 base::internal::FunctorTraits<>::Invoke<>()
#10 0x7f35696586cd base::internal::InvokeHelper<>::MakeItSo<>()
#11 0x7f356965864d base::internal::Invoker<>::RunImpl<>()
#12 0x7f35696585c7 base::internal::Invoker<>::RunOnce()
#13 0x7f3544e52201 base::OnceCallback<>::Run()
#14 0x7f35695e6ebb viz::SkiaOutputDevice::Submit()
#15 0x7f356980a878 viz::SkiaOutputDeviceVulkan::Submit()
#16 0x7f356962f952 viz::SkiaOutputSurfaceImplOnGpu::SwapBuffersInternal()
#17 0x7f356962f598 viz::SkiaOutputSurfaceImplOnGpu::SwapBuffers()
#18 0x7f356961de61 base::internal::FunctorTraits<>::Invoke<>()
#19 0x7f356961dd8d base::internal::InvokeHelper<>::MakeItSo<>()
#20 0x7f356961dd0d base::internal::Invoker<>::RunImpl<>()
#21 0x7f356961dc87 base::internal::Invoker<>::RunOnce()
#22 0x7f3544e52201 base::OnceCallback<>::Run()
#23 0x7f35696106bc viz::SkiaOutputSurfaceImpl::FlushGpuTasksWithImpl()::$_0::operator()()
#24 0x7f3569610564 base::internal::FunctorTraits<>::Invoke<>()
#25 0x7f35696104c1 base::internal::InvokeHelper<>::MakeItSo<>()
#26 0x7f35696103dd base::internal::Invoker<>::RunImpl<>()
#27 0x7f3569610307 base::internal::Invoker<>::RunOnce()
#28 0x7f3544e52201 base::OnceCallback<>::Run()
#29 0x7f355a462855 gpu::SchedulerDfs::ExecuteSequence()
#30 0x7f355a461214 gpu::SchedulerDfs::RunNextTask()
#31 0x7f355a474a2a base::internal::FunctorTraits<>::Invoke<>()
#32 0x7f355a47499c base::internal::InvokeHelper<>::MakeItSo<>()
#33 0x7f355a47492d base::internal::Invoker<>::RunImpl<>()
#34 0x7f355a4748b7 base::internal::Invoker<>::RunOnce()
#35 0x7f3544e52201 base::OnceCallback<>::Run()
#36 0x7f3555501993 base::TaskAnnotator::RunTaskImpl()
#37 0x7f355555c9d0 base::TaskAnnotator::RunTask<>()
#38 0x7f355555c406 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl()
#39 0x7f355555b98b base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()
#40 0x7f355555c6f3 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()
#41 0x7f35556a7ffa base::MessagePumpGlib::Run()
#42 0x7f355555d0ac base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run()
#43 0x7f3555490062 base::RunLoop::Run()
#44 0x7f3569496792 content::GpuMain()
#45 0x7f3553bcb6c6 content::RunZygote()
#46 0x7f3553bcbf08 content::RunOtherNamedProcessTypeMain()
#47 0x7f3553bcd317 content::ContentMainRunnerImpl::Run()
#48 0x7f3553bca226 content::ContentMainRun()
#49 0x7f3553bca2b3 content::RunContentProcess()
#50 0x7f3553bca316 content::ContentMain()
#51 0x7f3544fb90ec CefMainRunner::RunAsHelperProcess()
#52 0x7f3544f2e10a CefExecuteProcess()
#53 0x7f3544d1213e cef_execute_process
#54 0x55ba838f811d CefExecuteProcess()
#55 0x55ba837c1cc8 client::(anonymous namespace)::RunMain()
#56 0x55ba837c1aa2 main
#57 0x7f3533029d90 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)
#58 0x7f3533029e40 __libc_start_main
#59 0x55ba836d2bc5 _start
Task trace:
#0 0x7f355a4613b6 gpu::SchedulerDfs::RunNextTask()
#1 0x7f355a45de09 gpu::SchedulerDfs::TryScheduleSequence()
#2 0x7f356952f0b8 viz::DisplayScheduler::ScheduleBeginFrameDeadline()
#3 0x7f3555e520ed mojo::SimpleWatcher::Context::Notify()
Crash keys:
  "gpu-url-chunk" = "https://wiki.ubuntu.com/X/Troubleshooting/XError"
  "gpu-gl-context-is-virtual" = "0"
  "gpu-url-chunk-chrome" = "chrome://gpu/SkiaRenderer"
  "gr-context-type" = "1"
  "variations" = "c0cc7a56-3f4a17df,b6aa8178-3f4a17df,78ce0fb-3f4a17df,73440212-3f4a17df,25a516b9-3f4a17df,b13ca3d9-84f6cff8,f2b6a878-3f4a17df,442fcbda-3f4a17df,48610cc8-3f4a17df,50eef52b-3f4a17df,3e8fe123-3f4a17df,9f2d483-3f4a17df,a8066858-84081f3b,15e85316-3f4a17df,b05e1e6c-3f4a17df,5f8b0593-3f4a17df,d6284ba0-9610fd4e,5f8ff765-774ffe0,eddd0d82-3f4a17df,dc88470b-103f36ee,97063883-1f820d08,13427e22-3f4a17df,df41299a-3f4a17df,f2855e3d-de2b6078,f9bc57e6-3f4a17df,aba1243e-b0a1f307,b349dbf8-3f4a17df,a84012f2-3f4a17df,5be633d-3f4a17df,87f33ad6-3f4a17df,26016f9f-4df4f25e,4d936449-fd549ada,89f2e43d-3f4a17df,17f5c3f5-3f4a17df,1bb6a450-3f4a17df,7d41a07a-3f4a17df,78ccea4c-3f4a17df,e4e743b0-3f4a17df,250dda8b-3f4a17df,f14c322f-f9a43703,28329b37-17727981,c3f415b4-3f4a17df,55380672-3f4a17df,55c00994-2f393ff0,f156bd50-9bc44f15,6e4a21fe-efc28565,4749874c-455e925b,40debc11-3f4a17df,bf287d35-ff1cf2af,83a09cba-fcf6c09,1acce950-3f4a17df,12733ec4-3f4a17df,206d80d-3f4a17df,44666d99-3f4a17df,a2fd384c-cc71bb94,e521d2ef-3f4a17df,55ba4cfa-3f4a17df,5c4d440e-58c8ac88,fd051c38-3f4a17df,65570806-377be55a,e5249c82-3f4a17df,18324944-3f4a17df,520b2a89-88bf9f37,81b1a2c3-3f4a17df,b2cff759-43a4726,5633b41a-3664951f,d92d97b4-2f9b0845,87a22c16-823cdc8d,ae1924b1-f9bbb79f,f829ac10-207a19c6,293cfb52-3f4a17df,fc6d7b7d-3f4a17df,dde50ff5-c84b30ef,9ff07248-3f4a17df,d4f1a7b9-d3a58cf9,3042ad4b-ad2fa222,4b879e88-2f3d3ae0,3c978b59-3f4a17df,1d865dc8-3f4a17df,3fd33f16-27b09c4c,c5055646-3f4a17df,194d8898-3f4a17df,ece98647-3f4a17df,c297985a-3f4a17df,a3c3aad0-3f4a17df,266af18d-3f4a17df,895b81d9-35269e3d,201e98ca-53757ab,6fea66b3-6beda842,9982045c-3f4a17df,fed4419a-f774730e,cf64b238-3f4a17df,71c14987-3f4a17df,b27b7146-3f4a17df,36d5ee52-3f4a17df,45b76973-e9a48029,391562d6-3f4a17df,8659ca17-3f4a17df,910af27f-183f256a,8bccc03b-3f4a17df,178e8b37-2880c7e,784a7e92-f24c4ee2,38bbf096-3f4a17df,83a5bd87-3f4a17df,fc9ceed7-3f4a17df,d664a1aa-3f4a17df,91c5512e-3d47f4f4,e607d888-3d47f4f4,625646ce-3f4a17df,1b245f0d-eaf735a3,a79ba57a-f23d1dea,dfc2d5d9-3f4a17df,9e5c75f1-30e1b12b,e79d4056-80f9a33e,4bc95f1e-846990f7,62366563-3f4a17df,86328c20-f90b8842,d498f105-d90d4dde,43eed28d-e2ec00ed,3eabe0b8-3e066f82,dcceede7-908383eb,19c110a1-3f4a17df,3095b8fe-3f4a17df,75ffb03a-3f4a17df,cb87f652-51cf7cc3,ca5a2953-ff983c32,72bafd3e-a46a35f7,e28cd73c-3f4a17df,40416ab6-3d47f4f4,279c589-33fa5d,f3ed486d-3f4a17df,b3c54bb3-a058b5d3,99c32967-f0a9a61e,6ad21bf6-727a1257,4ff8f5b5-9c1f9d3b,3ed94085-de75c690,5d1017fe-3f4a17df,741e95d4-3f4a17df,14d411b8-69c797d4,d3566fbd-c6f74b94,a779bb20-3f4a17df,5c4e748e-9bbce0c0,ea23a088-7e86b809,35a386c3-3f4a17df,77b7ea96-9a159164,5f36436a-3f4a17df,7fb629a1-60fdb59,2da2abac-b7f59038,47be28a0-3f4a17df,28410024-3f4a17df,186d6e2c-36c0e608,9a382556-3f4a17df,4ea303a6-3f4a17df,78506c55-3f4a17df,94edc5b9-3f4a17df,a83da733-3f4a17df,7c0d937f-3f4a17df,5eb745a8-3f4a17df,de95f00f-3f4a17df,2468be5e-a947358e,402bf815-3f4a17df,2a86eb2e-3f4a17df,19e446cd-3f4a17df,d7d493f4-a9412e3f,f3b6291d-f8c32bdd,840f775d-3f4a17df,9a4b43c6-b9ee13f4,f112d133-3f4a17df,9a564e2a-3f4a17df,fd4b313c-3f4a17df,371f259c-3f4a17df,d990c4ac-3f4a17df,51f8a01b-4fb9b0ee,5c7c8339-3f4a17df,90fa3bb1-3f4a17df,4a08d55f-3f4a17df,7f19e54-3f4a17df,f0682056-b84f2885,d0083347-bb06605c,ef4764d7-c9f4d4ef,a36e888b-3d838f10,e8e00bc1-de86ac56,afa71e8b-aea4882e,1fce7d57-3f4a17df,7760b5b2-3f4a17df,e8c68789-49a20295,caa76e48-caa76e48,b0f15b33-b0f15b33,e5ade537-e5ade537,c07e430b-2fa7646d,94f1fa38-ced24900,ad4acdda-3f4a17df,90860314-3f4a17df,7ec047c2-3f4a17df,ade3efeb-e1cc0f14,f48c01d3-6eb2bd2b,b32beb42-872d480b,b1ceb06f-3f4a17df,db59f83a-3f4a17df,858aa29b-3f4a17df,ec21b181-3f4a17df,bbaef9b4-3f4a17df,c1e0d32e-3f4a17df,bea4a9c2-ef4c90a8,6becb1e-a6ea97a2,3b96a1d-3f4a17df,8f3625ce-3f4a17df,1ae0f6fa-bb3e7be,38639f6a-3d47f4f4,5a18fe50-3f4a17df,595f5eb0-f23d1dea,216c8a00-3f4a17df,f73d1d52-3f4a17df,54412203-573b100b,1166396-1166396,8d7344de-3f4a17df,b53f3ef9-3f4a17df,8d549a7a-3f4a17df,6d1571c7-3f4a17df,"
  "num-experiments" = "219"
  "vulkan-api-version" = "1.3.263"
  "egl-display-type" = "angle:Vulkan"
  "gpu-gl-renderer" = "ANGLE (NVIDIA, Vulkan 1.2.175 (NVIDIA NVIDIA GeForce GTX 770 (0x00001184)), NVIDIA-470.199.2.0)"
  "gpu-gl-vendor" = "Google Inc. (NVIDIA)"
  "gpu-generation-intel" = "0"
  "gpu-vsver" = "1.00"
  "gpu-psver" = "1.00"
  "gpu-driver" = "470.199.02"
  "gpu_count" = "1"
  "gpu-devid" = "0x1184"
  "gpu-venid" = "0x10de"
  "reentry_guard_tls_slot" = "unused"
  "switch-6" = "--field-trial-handle=0,i,17067479796722846094,282884352987959409"
  "switch-5" = "--shared-files"
  "switch-4" = "--user-data-dir=/home/raphy/.config/cef_user_data"
  "switch-3" = "--enable-chrome-runtime"
  "switch-2" = "--change-stack-guard-on-fork=enable"
  "switch-1" = "--enable-crash-reporter=,"
  "num-switches" = "8"

[8073:8073:1001/125108.309460:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=133
[8073:8073:1001/125108.309510:WARNING:gpu_process_host.cc(1359)] The GPU process has crashed 2 time(s)
[8192:8192:1001/125108.721907:WARNING:gpu_memory_buffer_support_x11.cc(49)] dri3 extension not supported.
[8192:8192:1001/125108.742429:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[8073:8073:1001/125108.752630:WARNING:gpu_process_host.cc(1013)] Reinitialized the GPU process after a crash. The reported initialization time was 427 ms
[8134:1:1001/125111.693023:WARNING:frame_impl.cc(420)] SendProcessMessage sent to detached frame 21474836487 [5,7] will be ignored
[8103:8108:1001/125111.834380:WARNING:sqlite_persistent_store_backend_base.cc(198)] Failed to post task from FlushAndNotifyInBackground@net/extras/sqlite/sqlite_persistent_store_backend_base.cc:246 to client_task_runner_.
[8103:8108:1001/125111.834472:WARNING:sqlite_persistent_store_backend_base.cc(198)] Failed to post task from FlushAndNotifyInBackground@net/extras/sqlite/sqlite_persistent_store_backend_base.cc:246 to client_task_runner_.
[8073:8073:1001/125111.842156:WARNING:internal_linux.cc(78)] Failed to read /proc/8103/stat
[8073:8073:1001/125111.842246:ERROR:kill_posix.cc(33)] waitpid(8103): No child processes (10)
[8073:8073:1001/125111.859023:WARNING:pref_notifier_impl.cc(41)] Pref observer for media_router.cast_allow_all_ips found at shutdown.
raphy@raohy:~/code/chromium_git/chromium/src/out/Debug_GN_x64$ 

I've found this Ubuntu's Forum post:https://askubuntu.com/questions/1402752/firefox-stopped-working-with-a-badalloc-x-window-system-error-on-ubuntu-21-10

But the suggestions there seem do not apply on my case, since the installed nvidia-driver is already the latest :

raphy@raohy:~$ sudo ubuntu-drivers devices
[sudo] password for raphy: 
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001184sv00001569sd00001184bc03sc00i00
vendor   : NVIDIA Corporation
model    : GK104 [GeForce GTX 770]
driver   : nvidia-driver-470-server - distro non-free
driver   : nvidia-driver-450-server - distro non-free
driver   : nvidia-driver-470 - distro non-free recommended
driver   : nvidia-driver-418-server - distro non-free
driver   : nvidia-driver-390 - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

raphy@raohy:~$ 

raphy@raohy:~$ sudo apt-get install nvidia-driver-470
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nvidia-driver-470 is already the newest version (470.199.02-0ubuntu0.22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
raphy@raohy:~$ 

raphy@raohy:~$ sudo lshw -c video
  *-display                 
       description: VGA compatible controller
       product: GK104 [GeForce GTX 770]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:33 memory:f6000000-f6ffffff memory:e8000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:c0000-dffff
  *-graphics
       product: EFI VGA
       physical id: 2
       logical name: /dev/fb0
       capabilities: fb
       configuration: depth=32 resolution=1024,768
raphy@raohy:~$ 

raphy@raohy:~$ lspci -nn | grep -E 'VGA|Display'
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK104 [GeForce GTX 770] [10de:1184] (rev a1)

Strangely enough, I tried to run cefclient with cefclient --use-views --initial-show-state=minimized and... the window is not minimized, but it does not crash anymore when choosing "Show DevTools" :

image

I discovered that with just --use-views the window does not crash anymore when choosing "Show DevTools" :

image

Why does this happen, and how to make it work without crashing with just ./cefclient ?

magreenblatt commented 11 months ago

I tried to run cefclient with cefclient --use-views --initial-show-state=minimized and the window is not minimized

That is issue #3572

I discovered that with just --use-views the window does not crash anymore when choosing "Show DevTools"

Thanks, that confirms the issue is specific to GTK usage in cefclient

magreenblatt commented 10 months ago

Duplicate of #3165