From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Giovanni Biscuolo <g@xelera.eu>
Cc: 63197@debbugs.gnu.org
Subject: bug#63197: video acceleration/libva segfaults caused by stale mesa shader cache
Date: Fri, 16 Jun 2023 20:36:49 -0400 [thread overview]
Message-ID: <878rcivs9q.fsf@gmail.com> (raw)
In-Reply-To: <87pm5w3ke9.fsf@xelera.eu> (Giovanni Biscuolo's message of "Thu, 15 Jun 2023 15:49:50 +0200")
Hello,
Giovanni Biscuolo <g@xelera.eu> writes:
> Hi Maxim,
>
> I learned about this issue today
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
>
> [...]
>
>>> After tracing the process, I noticed that the last thing it did was
>>> loading its mesa shader cache, stored under:
>>>
>>> ~/.cache/mesa_shader_cache
>>>
>>> Deleting that directory resolved the issue.
>>>
>>> It seems that'd be a bug in Mesa (for failing to determine that it
>>> should have invalidated its cache going from version 21 to 22 post
>>> core-updates merge).
>
> AFAIU this issue is still present using mesa 23 since Guillaume Le
> Vaillant had to use this workaround yesterday [1] and reported his
> backtrace upstream [2]
>
> If I'm not wrong (i.e. vlc et al are now using mesa 23) this should also
> be reported upstream (I can do it if needed).
Which upstream are you thinking about? My understanding is that this
problem is a Mesa problem, and it's already reported there (the issue
linked in [2]).
> AFAIU the only thing we can do to fix this bug is to disable the shader
> cache (MESA_SHADER_CACHE_DISABLE=true) until a proper fix is found
> upstream.
Disabling the shader cache sounds like a decent workaround or even
definitive solution. One less stale cache to worry about... If it's
like the Qt shader cache, the performance hit is probably too small to
be noticeable (maybe just slower startup times of complicated opengl
applications such as games?).
> ...or apply a patch to rename "~/.cache/mesa_shader_cache" to
> "~/.cache/mesa<version>_shader_cache"
That's another good idea.
> Alternatively, we should find a way to make Guix users aware of this
> kind of problems and possible workarounds they can apply (it's not
> related to this specific bug)
I would rather pursue the other above options you suggest, so that it
doesn't happen in the first place!
Thank you for sharing these ideas.
--
Maxim
next prev parent reply other threads:[~2023-06-17 0:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-01 2:42 bug#63197: video acceleration/libva segfaults caused by stale mesa shader cache Maxim Cournoyer
2023-05-01 2:58 ` Maxim Cournoyer
2023-06-15 13:49 ` Giovanni Biscuolo
2023-06-17 0:36 ` Maxim Cournoyer [this message]
2023-06-17 10:14 ` Giovanni Biscuolo
2023-06-26 16:21 ` Maxim Cournoyer
2024-04-25 18:47 ` Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878rcivs9q.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=63197@debbugs.gnu.org \
--cc=g@xelera.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.