Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GTK] Failed to create GBM buffer of size 0x0: Invalid argument #26043

Merged
merged 1 commit into from Mar 19, 2024

Commits on Mar 19, 2024

  1. [GTK] Failed to create GBM buffer of size 0x0: Invalid argument

    https://bugs.webkit.org/show_bug.cgi?id=265154
    
    Reviewed by Michael Catanzaro.
    
    This happens because in some cases we schedule a layer flush before the
    drawing area size is initially updated. It's easier to happen in the
    case of inspector because we don't delay the web process creation until
    the first load in that case. We should just ignore layer flush requests
    when the view size is empty since we won't be able to render anything
    anyway. Also set the device scale factor before the page is initialized
    to avoid sending an IPC message right after web page creation.
    
    * Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp:
    (webkitWebViewBaseCreateWebPage):
    * Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp:
    (WebKit::LayerTreeHost::scheduleLayerFlush):
    
    Canonical link: https://commits.webkit.org/276337@main
    carlosgcampos committed Mar 19, 2024
    Copy the full SHA
    c3a0173 View commit details
    Browse the repository at this point in the history