<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>250985</bug_id>
          
          <creation_ts>2023-01-22 11:09:23 -0800</creation_ts>
          <short_desc>[GTK] mesa fails to create shader cache, xdg cache dir not mounted in flatpak-spawn subsandbox</short_desc>
          <delta_ts>2023-06-28 06:42:55 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>218121</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeff Fortin">nekohayo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pgriffis</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1927303</commentid>
    <comment_count>0</comment_count>
    <who name="Jeff Fortin">nekohayo</who>
    <bug_when>2023-01-22 11:09:23 -0800</bug_when>
    <thetext>Originally reported at https://gitlab.gnome.org/GNOME/epiphany/-/issues/1957 :

With the EpiphanyDevel flatpak from gnome nightly, this gets printed multiple times in the terminal on startup:

`Failed to create /home/user/.var/app/org.gnome.Epiphany.Devel/cache for shader cache (No such file or directory)---disabling.`

...even with the local storage/caching setting turned on in the Privacy tab in the Preferences dialog. And yet, the folder exists, and has subfolders:

```
$ ls ~/.var/app/org.gnome.Epiphany.Devel/cache
epiphany
fontconfig
mesa_shader_cache
tmp
webkitgtk-6.0
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927330</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-22 14:18:52 -0800</bug_when>
    <thetext>Looks like the shader cache is an ANGLE thing, so *probably* an ANGLE bug, although I&apos;m failing to immediately find the code.

But wait, is your username literally &quot;user&quot;? Because the error message says &quot;/home/user&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927331</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-22 14:22:00 -0800</bug_when>
    <thetext>OK surprise, this is actually coming from mesa, not from ANGLE. It&apos;s in src/util/disk_cache_os.c.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1927332</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-22 14:32:50 -0800</bug_when>
    <thetext>Oh and I can reproduce:

Failed to create /home/mcatanzaro/.var/app/org.gnome.Epiphany.Devel/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/mcatanzaro/.var/app/org.gnome.Epiphany.Devel/cache for shader cache (No such file or directory)---disabling.

I think it doesn&apos;t exist in the flatpak-spawn subsandbox. We don&apos;t want to provide access to the real host dirs because that defeats the point of subsandboxing, but I guess we could create empty ones.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1964024</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-06-28 06:42:55 -0700</bug_when>
    <thetext>This is https://gitlab.freedesktop.org/mesa/mesa/-/issues/8294</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>