AppImageCommunity / libappimage

Implements functionality for dealing with AppImage files
https://appimage.org
Other
46 stars 27 forks source link

Lots of directories created in /tmp #63

Open win8linux opened 5 years ago

win8linux commented 5 years ago

When diagnosing why my main system started to take a long time to boot, I was shocked to discover that there were approximately more than 30K directories all starting with libappimage- This is totaling to about 130+ GB of data. They all seem to have sizes of 4.0 KB each. Unfortunately, I can't give more exact details about this since I have deleted all of them already. Is this normal behavior or not?

azubieta commented 5 years ago

It's not a feature for sure, would you mind to share which system and AppImage related tools are you using. Please also include the versions.

probonopd commented 5 years ago

Is this normal behavior or not?

It is definitely not intended behavior. Any details would be highly welcome.

win8linux commented 5 years ago

Here's the output of neofetch --stdout:

OS: Ubuntu 18.04.2 LTS x86_64 
Host: X541UV 1.0 
Kernel: 4.15.0-45-generic 
Uptime: 15 hours, 9 mins 
Packages: 2580 
Shell: zsh 5.4.2 
Resolution: 1366x768 
DE: KDE 
WM: KWin 
Theme: Breeze Dark [KDE], Breeze-Dark [GTK2/3] 
Icons: Breeze-dark [KDE], Breeze-dark [GTK2/3] 
Terminal: konsole 
Terminal Font: Hack Nerd Font Mono 9 
CPU: Intel i5-6198DU (4) @ 2.800GHz 
GPU: Intel HD Graphics 510 
GPU: NVIDIA GeForce 920MX 
Memory: 3360MiB / 7838MiB

I am also using appimaged releases from the official repo here: https://github.com/AppImage/appimaged/releases

It has started happening again, too. The libappimage-* folders contain .desktop files and icons. Unfortunately, it is quite cumbersome for me to look into one of them from the terminal since there is just so many of them and the sheer amount is causing terminals to lock up. The best that I can do is ls /tmp/libappimage-* | wc -l, which says 41859 and keeps getting higher with each successive run of the command.

TheAssassin commented 5 years ago

Possibly broken by this weird "multithread integration fix thingy" @probonopd merged into appimaged, which I was suspicious of already. libappimage isn't threadsafe, and doesn't make any guarantees. It must be running wild, noone ever has that many AppImages on their system.

@azubieta can you please have a look?

@win8linux please remove appimaged so it won't bloat your system and waste I/O operations any more until this can be fixed.

win8linux commented 5 years ago

Thanks @TheAssassin! Removing appimaged solved the issue. For the record, there was only one AppImage used on the system (OpenToonz).

azubieta commented 5 years ago

@win8linux it would be useful if you could also share a link to the OpenToonz AppImage

win8linux commented 5 years ago

Here is the download page for it (payment optional): https://morevnaproject.org/opentoonz/download/

Should I try other AppImages and reinstall appimaged temporarily to see if it occurs with others?

azubieta commented 5 years ago

If you want to. But we already have the offender AppImage to reproduce the issue

win8linux commented 5 years ago

Asked a friend if he knew any other AppImaged programs and I was referred to Deezloader Remix. Strangely enough, OpenToonz has stopped appearing in /tmp and has seemingly been replaced by this new one. That's...odd.

EDIT: I've uninstalled appimaged again and took a look inside one of these folders. Here's the output of ls -lahR /tmp/libappimage-86YDXZ:

/tmp/libappimage-86YDXZ:
total 1.8M
drwx------  3 julius julius 4.0K Feb 12 08:57 .
drwxrwxrwt 36 root   root   1.8M Feb 12 09:03 ..
-rw-r--r--  1 julius julius  270 Feb 12 08:57 deezloader-rmx.desktop
drwx------  3 julius julius 4.0K Feb 12 08:57 usr

/tmp/libappimage-86YDXZ/usr:
total 12K
drwx------ 3 julius julius 4.0K Feb 12 08:57 .
drwx------ 3 julius julius 4.0K Feb 12 08:57 ..
drwx------ 3 julius julius 4.0K Feb 12 08:57 share

/tmp/libappimage-86YDXZ/usr/share:
total 12K
drwx------ 3 julius julius 4.0K Feb 12 08:57 .
drwx------ 3 julius julius 4.0K Feb 12 08:57 ..
drwx------ 3 julius julius 4.0K Feb 12 08:57 icons

/tmp/libappimage-86YDXZ/usr/share/icons:
total 12K
drwx------  3 julius julius 4.0K Feb 12 08:57 .
drwx------  3 julius julius 4.0K Feb 12 08:57 ..
drwx------ 12 julius julius 4.0K Feb 12 08:57 hicolor

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor:
total 48K
drwx------ 12 julius julius 4.0K Feb 12 08:57 .
drwx------  3 julius julius 4.0K Feb 12 08:57 ..
drwx------  3 julius julius 4.0K Feb 12 08:57 1024x1024
drwx------  3 julius julius 4.0K Feb 12 08:57 128x128
drwx------  3 julius julius 4.0K Feb 12 08:57 16x16
drwx------  3 julius julius 4.0K Feb 12 08:57 24x24
drwx------  3 julius julius 4.0K Feb 12 08:57 256x256
drwx------  3 julius julius 4.0K Feb 12 08:57 32x32
drwx------  3 julius julius 4.0K Feb 12 08:57 48x48
drwx------  3 julius julius 4.0K Feb 12 08:57 512x512
drwx------  3 julius julius 4.0K Feb 12 08:57 64x64
drwx------  3 julius julius 4.0K Feb 12 08:57 96x96

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/1024x1024:
total 12K
drwx------  3 julius julius 4.0K Feb 12 08:57 .
drwx------ 12 julius julius 4.0K Feb 12 08:57 ..
drwx------  2 julius julius 4.0K Feb 12 08:57 apps

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/1024x1024/apps:
total 120K
drwx------ 2 julius julius 4.0K Feb 12 08:57 .
drwx------ 3 julius julius 4.0K Feb 12 08:57 ..
-rw-r--r-- 1 julius julius 111K Feb 12 08:57 deezloader-rmx.png

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/128x128:
total 12K
drwx------  3 julius julius 4.0K Feb 12 08:57 .
drwx------ 12 julius julius 4.0K Feb 12 08:57 ..
drwx------  2 julius julius 4.0K Feb 12 08:57 apps

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/128x128/apps:
total 16K
drwx------ 2 julius julius 4.0K Feb 12 08:57 .
drwx------ 3 julius julius 4.0K Feb 12 08:57 ..
-rw-r--r-- 1 julius julius 6.7K Feb 12 08:57 deezloader-rmx.png

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/16x16:
total 12K
drwx------  3 julius julius 4.0K Feb 12 08:57 .
drwx------ 12 julius julius 4.0K Feb 12 08:57 ..
drwx------  2 julius julius 4.0K Feb 12 08:57 apps

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/16x16/apps:
total 12K
drwx------ 2 julius julius 4.0K Feb 12 08:57 .
drwx------ 3 julius julius 4.0K Feb 12 08:57 ..
-rw-r--r-- 1 julius julius  787 Feb 12 08:57 deezloader-rmx.png

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/24x24:
total 12K
drwx------  3 julius julius 4.0K Feb 12 08:57 .
drwx------ 12 julius julius 4.0K Feb 12 08:57 ..
drwx------  2 julius julius 4.0K Feb 12 08:57 apps

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/24x24/apps:
total 12K
drwx------ 2 julius julius 4.0K Feb 12 08:57 .
drwx------ 3 julius julius 4.0K Feb 12 08:57 ..
-rw-r--r-- 1 julius julius 1.4K Feb 12 08:57 deezloader-rmx.png

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/256x256:
total 12K
drwx------  3 julius julius 4.0K Feb 12 08:57 .
drwx------ 12 julius julius 4.0K Feb 12 08:57 ..
drwx------  2 julius julius 4.0K Feb 12 08:57 apps

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/256x256/apps:
total 24K
drwx------ 2 julius julius 4.0K Feb 12 08:57 .
drwx------ 3 julius julius 4.0K Feb 12 08:57 ..
-rw-r--r-- 1 julius julius  16K Feb 12 08:57 deezloader-rmx.png

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/32x32:
total 12K
drwx------  3 julius julius 4.0K Feb 12 08:57 .
drwx------ 12 julius julius 4.0K Feb 12 08:57 ..
drwx------  2 julius julius 4.0K Feb 12 08:57 apps

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/32x32/apps:
total 12K
drwx------ 2 julius julius 4.0K Feb 12 08:57 .
drwx------ 3 julius julius 4.0K Feb 12 08:57 ..
-rw-r--r-- 1 julius julius 1.5K Feb 12 08:57 deezloader-rmx.png

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/48x48:
total 12K
drwx------  3 julius julius 4.0K Feb 12 08:57 .
drwx------ 12 julius julius 4.0K Feb 12 08:57 ..
drwx------  2 julius julius 4.0K Feb 12 08:57 apps

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/48x48/apps:
total 12K
drwx------ 2 julius julius 4.0K Feb 12 08:57 .
drwx------ 3 julius julius 4.0K Feb 12 08:57 ..
-rw-r--r-- 1 julius julius 3.2K Feb 12 08:57 deezloader-rmx.png

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/512x512:
total 12K
drwx------  3 julius julius 4.0K Feb 12 08:57 .
drwx------ 12 julius julius 4.0K Feb 12 08:57 ..
drwx------  2 julius julius 4.0K Feb 12 08:57 apps

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/512x512/apps:
total 52K
drwx------ 2 julius julius 4.0K Feb 12 08:57 .
drwx------ 3 julius julius 4.0K Feb 12 08:57 ..
-rw-r--r-- 1 julius julius  42K Feb 12 08:57 deezloader-rmx.png

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/64x64:
total 12K
drwx------  3 julius julius 4.0K Feb 12 08:57 .
drwx------ 12 julius julius 4.0K Feb 12 08:57 ..
drwx------  2 julius julius 4.0K Feb 12 08:57 apps

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/64x64/apps:
total 12K
drwx------ 2 julius julius 4.0K Feb 12 08:57 .
drwx------ 3 julius julius 4.0K Feb 12 08:57 ..
-rw-r--r-- 1 julius julius 3.2K Feb 12 08:57 deezloader-rmx.png

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/96x96:
total 12K
drwx------  3 julius julius 4.0K Feb 12 08:57 .
drwx------ 12 julius julius 4.0K Feb 12 08:57 ..
drwx------  2 julius julius 4.0K Feb 12 08:57 apps

/tmp/libappimage-86YDXZ/usr/share/icons/hicolor/96x96/apps:
total 16K
drwx------ 2 julius julius 4.0K Feb 12 08:57 .
drwx------ 3 julius julius 4.0K Feb 12 08:57 ..
-rw-r--r-- 1 julius julius 6.4K Feb 12 08:57 deezloader-rmx.png
azubieta commented 5 years ago

libappimage 0.2 no longer use temporary files, this issue will become invalid once it's being used in the different tools.

TheAssassin commented 5 years ago

Let's keep this open then for the legacy branch, where this is still a problem.

azubieta commented 5 years ago

I suspect that this is produced by appimaged crashing several times and system-d reloading it