Skip to main content
Topic: event-sound-cache.tdb files in my home cache (Read 1536 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

event-sound-cache.tdb files in my home cache

Hello, just wondering what & why could it be so?

I have two similar systems on different drives: both Artix XFCE runit editions.

The only difference: the left one is a couple of years old already, on the right - is a fresh install from a recent weekly ISO.

The screenshot: https://ik.imagekit.io/nxtusxlkr/cache.png

On my older setup I always have only one event-sound-cache.tdb file, while on a fresh install there can be dozens of them.

The exact name of the file is like this: event-sound-cache.tdb.e22bae71d3bd6aa450b39302634d6a91.x86_64-pc-linux-gnu
with some hash value (I guess, depending on the session hash, though I'm not sure exactly since I can't find any decent info)

The question is: probably there is some variable or setting that can make my session one and unique until I reboot my PC ? Because, again, I don't have such issue on an older setup.

Thanks.

Re: event-sound-cache.tdb files in my home cache

Reply #1
hello,
i just notices the same thing in my .cache repository.
about ~500 files or so
last one from today.

the 'file' command just indicates "TDB database version 6, little-endian hash size 131 bytes"
so no idea what this is.

(i use openrc and kde plasma, btw)

funniy thing, i searched on duckduckgo these file name, and first result was this thread :D

Re: event-sound-cache.tdb files in my home cache

Reply #2
I'm using XFCE and only alsa for sound :
https://forum.artixlinux.org/index.php/topic,4318.msg27848.html#msg27848

I only have a 12 KB event-sound-cache file in ~/.cache.

Code: [Select]
ls -as ~/.cache |grep event-sound-cache
   12 event-sound-cache.tdb.5c8ab84b4ce6e16ae49c78b05e7b35de.x86_64-pc-linux-gnu


It seems that libcamberra is targeted:
https://forum.xfce.org/viewtopic.php?id=17142
https://steamcommunity.com/app/1840/discussions/0/1640915206440907551/
https://forum.puppylinux.com/viewtopic.php?t=3581
https://bbs.archlinux.org/viewtopic.php?id=73681

Code: [Select]
fastfetch --logo none
jp@jp-artix-Acer
----------------
OS: Artix Linux x86_64
Host: Aspire ES1-732 (V1.18)
Kernel: Linux 6.12.34-1-lts
Uptime: 1 hour, 16 mins
Packages: 1302 (pacman)
Shell: bash 5.2.37
Display (CMN1734): 1600x900 @ 60 Hz in 17" [Built-in]
DE: Xfce4 4.20
WM: Xfwm4 (X11)
WM Theme: Daloa
Theme: Artix-dark [GTK2/3/4]
Icons: breeze-dark [GTK2/3/4]
Font: Noto Sans Medium (12pt) [GTK2/3/4]
Cursor: default
Terminal: xfce4-terminal 1.1.5
Terminal Font: Monospace (14pt)
CPU: Intel(R) Pentium(R) N4200 (4) @ 2.50 GHz
GPU: Intel HD Graphics 505 @ 0.75 GHz [Integrated]
Memory: 2.26 GiB / 3.65 GiB (62%)
Swap: 2.50 MiB / 19.91 GiB (0%)
Disk (/): 14.09 GiB / 19.06 GiB (74%) - ext4
Disk (/media/77): 714.12 GiB / 873.04 GiB (82%) - ext4
Local IP (eth0): 192.168.1.10/24
Locale: fr_FR.UTF-8

Re: event-sound-cache.tdb files in my home cache

Reply #3
salut le compatriote :D

thanks for digging into it and giving the possible solution
editing ~/.gtkxxx and setting "gtk-enable-event-sounds=0" should dot it.
in this file in my home folder, i had this line with value 1 instead of 0.
let's see tomorrow if these files appear again :)

 

Re: event-sound-cache.tdb files in my home cache

Reply #4
well.. theses weird files are still created in my .cache repo  :'(

Re: event-sound-cache.tdb files in my home cache

Reply #5
Why am I not surprised that libcanberra is spawn of the Poettering.
Last commit 2012.

cache.c from line 193
Code: [Select]
        /* This data is machine specific, hence we include some kind of
         * stable machine id here in the name. Also, we don't want to care
         * abouth endianess/packing issues, hence we include the compiler
         * target in the name, too. */

        pn = ca_sprintf_malloc("%s/" FILENAME ".%s." CANONICAL_HOST, c, id);

If you have more than one file then I guess the 'stable machine id' is not that stable ?

Re: event-sound-cache.tdb files in my home cache

Reply #6
Quote
i searched on duckduckgo these file name, and first result was this thread
my ddg.gg search shows this 1st line:
https://forum.puppylinux.com/viewtopic.php?t=8456

Re: event-sound-cache.tdb files in my home cache

Reply #7
If you have more than one file then I guess the 'stable machine id' is not that stable ?

The machine ID changes on every boot or even login/logout (not sure about the latter). Hence, different files.

The issue is: why so many on a new installation? Why aren't they removed. Because I don't have them on an older setup (only one file, even with reboots and logouts).

However, these files are very small and do not take up much space on our hard disks.

Also, I can totally get rid of these files without loosing any functionality by passing the --disable-tdb configure option to libcanberra (I've tested this already).

Re: event-sound-cache.tdb files in my home cache

Reply #8
I only have a 12 KB event-sound-cache file in ~/.cache.

I also have only one file on an older setup. But I have lots of them on a new one.

Re: event-sound-cache.tdb files in my home cache

Reply #9
The machine ID changes on every boot or even login/logout (not sure about the latter). Hence, different files.
Hence not stable.

I only have one. Something about how the sources libcanberra produces the ID from must differ on your machine between boots.

Another workaround would be to have, or add to, a user crontab using @reboot to delete them at every boot.
I have ~/.cache as a tmpfs so it gets cleared at every boot but I did just check and the file gets recreated with the same name here.