LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bodhi (https://www.linuxquestions.org/questions/bodhi-92/)
-   -   Disappearing Icons (efreet cache) (https://www.linuxquestions.org/questions/bodhi-92/disappearing-icons-efreet-cache-4175641045/)

enigma9o7 10-24-2018 12:26 PM

Disappearing Icons (efreet cache)
 
I've been mentioning this in discord, but decided it's worthy of a forum post as I still have no solution.

The problem is that intermittently, most menu and tasker icons turn blank and stay that way. I just tried to take a screenshot as an example, but the printscrn key doesn't seem to function when menu is open... here it is so you can at least see the tasker is misking icons for gradio and discord, but firefox still has one.
https://i.imgur.com/W2deaEA.jpg

So, one solution that works, is
Code:

rm -rf ~/.cache/efreet
reboot

This was good enough when it only happened occasionally, but lately it's happening every day so I need something better as I don't like rebooting as this computer is a media server and could be in use.

In discord it was suggested try resetting moksha (twice) after the delete, but that doesn't work. In fact, it makes things worse. That blanks out ibar icons too, turns some tasker icons to question marks, and restores some. In this case, firefox and lxterminal have question marks, gradio and discord got their icons back. Also it does something weird to the background of the qbittorrent system tray icon and put some system menu icons back in the menu but they're not from my normal theme, they're all green, and didnt restore application icons.


https://i.imgur.com/GqRw3KR.jpg

This all gets fixed if I reboot, just showing this is a non-solution.

So ideally, I want a permanent fix.

But at least I'd like a procedure to restore tasker icons without full reboot. Menu items aren't so important.

rrashkin 10-25-2018 06:49 AM

Just a thought: does it make a difference which theme you're using?

rbtylee 10-25-2018 10:49 AM

I hate to offer advice on a problem I don't have and or can't duplicate.
But anyway lets try to force efreet to rebuild the icons caches.
If you are using 64 bit Bodhi 5.0 then try:

Code:

rm -rf ~/.cache/efreet
/usr/lib/x86_64-linux-gnu/efreet/v-1.20/efreet_desktop_cache_create -d /usr/share/applications ~/.local/share/applications
/usr/lib/x86_64-linux-gnu/efreet/v-1.20/efreet_icon_cache_create -d /usr/share/icons ~/.icons -e .png .svg .jpg .xpm
enlightenment_remote -restart

For 32 bit Bodhi 5.0 try:

Code:

rm -rf ~/.cache/efreet
/usr/lib/i386-linux-gnu/efreet/v-1.20/efreet_desktop_cache_create -d /usr/share/applications ~/.local/share/applications
/usr/lib/i386-linux-gnu/efreet/v-1.20/efreet_icon_cache_create -d /usr/share/icons ~/.icons -e .png .svg .jpg .xpm
enlightenment_remote -restart

For any other version of Bodhi find where the efreet programs used above are installed and adjust the paths accordingly.

As for a permanent solution you need find out what is causing this issue. Anything showing up in any system log? How much memory do you have? I have noticed enlightenment/moksha and other apps not working well when the system runs low on memory and too much stuff is in swap. Altho for the record I don't have this problem but used to have it alot back around bodhi 1.x and earlier EFL versions. But I do push my systems to the max. Wish I could offer more.

enigma9o7 11-05-2018 11:25 AM

There's one other person in discord who is also having this occur regularly. Both of us have tried removing the forecast module from our shelf, and it seems to be working. This is the longest I've gone w/o losing icons that I can remember.

Someone on discord said they have forecast on their desktop and never had a problem. So I'm curious if anyone else has this problem, if they have forecast in shelf. And conversely, if anyone has forecast in their shelf and doesn't have this issue. In an effort to see if it's just coincidence or not.

enigma9o7 11-05-2018 11:28 AM

rrashkin: I didn't try another theme, but that's a good thought. If it reoccurs I'll try that, and also ask the other person if they happen to use the MokshaGreen theme as I do.

sixtharmy 11-07-2018 11:21 AM

Thank you enigma9o7. I've been having the same disappearing menu icons problem. It occurred repeatedly every day while using several different themes (default, detourious, MokshaBlueElectric, MokshaMoonlight, and MokshaRadiance). A simple reset of Moksha or a reboot would restore the icons, but the missing icons were annoying. I'm currently using MokshaRadiance. I removed the Forecasts module from the shelf on which I had it (though I didn't unload the module), and after several hours of use my menu icons remain unchanged. Thanks again.

mowestusa 11-07-2018 01:37 PM

I'm the other person on Discord that had the same issue as enigma9o7. I was also running the forecast module on the shelf with the default theme MokshaGreen. I also can verify that since I removed the forecast module over a week ago, I have kept my icons, and have not experienced an efreet cache crash yet.

So 3 users with probably 3 different kinds of hardware, but removing the forecast module on the shelf fixed the efreet cache.

I also have Bodhi 5.0 running on an even older computer with the forecast module running on the shelf and that machine has not experienced an efreet cache crash either, so I can understand that the developers will have a tough time tracking this bug down, because it seems to be hardware related with the forecast module playing a role in the crashes on only some machines.

I am thankful that simply removing the forecast module resolved a very annoying issue. I would rather live without the forecast module then jump to other distro. I'm really enjoying using Bodhi Linux on both my work and home machines.

enigma9o7 11-08-2018 12:42 AM

Is by any chance your older machine running legacy and the affect one 64-bit? I don't have it installed on my legacy machines so dunno, but maybe it only affects 64-bit.

Anyway a third person. Starting to sound less like coincidence. And I agree, I don't really need a forecast, but if it worked would keep it, but certainly not at the cost of regular efreet cache fail.

enigma9o7 11-08-2018 12:45 AM

Quote:

Originally Posted by rbtylee (Post 5919094)

As for a permanent solution you need find out what is causing this issue. Anything showing up in any system log? How much memory do you have? I have noticed enlightenment/moksha and other apps not working well when the system runs low on memory and too much stuff is in swap. Altho for the record I don't have this problem but used to have it alot back around bodhi 1.x and earlier EFL versions. But I do push my systems to the max. Wish I could offer more.

If it happens again I'll try the part I didn't quote. I'm not familiar with viewing my system log but should look into it, cordx reccommended a log viewer app recently I've been meaning to try. I have 6GB and rarely use swap.
Convince all the developers to put weather in their shelf, see if it starts happening for any of you guys ;)

the_waiter 11-08-2018 03:45 AM

Hello there

You claim the weather gadget on the shelf can cause the icon missing? I doubt. I know how the module works. It has nothing to do with the icons. The icons missing sometimes happens also here and I have never had weather gadget on the shelf. Everytime this happens, I just do rm -rf ~/.cache/efreet. And they are back. Anyway, I did not do any research about the reason why it use to happen. Maybe I will.

Stefan

sixtharmy 11-08-2018 10:13 AM

I don't know what to tell you Stefan, except that after removing the weather gadget I no longer have disappearing menu icons. As you say, getting the icons to re-display is trivial, nor is it really necessary since the menu still works without the icons. However, it was aesthetically annoying, and to me removing the annoyance is worth the loss of weather info. My hardware isn't new, but neither is it ancient: AMD Phenom II X4 955, ASUS M4A78, 16GB DDR2, Radeon HD 7750. This is a new install of Bodhi 5 and the problem's occurred with both Radeon and amdgpu-pro drivers. I'm no linux wizard, but I've been using Bodhi since Jeff first released it and I was using either debian or ubuntu before that. Good luck finding out what causes your disappearing icons.

mowestusa 11-08-2018 11:50 AM

Quote:

Originally Posted by enigma9o7 (Post 5923925)
Is by any chance your older machine running legacy and the affect one 64-bit? I don't have it installed on my legacy machines so dunno, but maybe it only affects 64-bit.

Anyway a third person. Starting to sound less like coincidence. And I agree, I don't really need a forecast, but if it worked would keep it, but certainly not at the cost of regular efreet cache fail.

No, the older machine is a 1st gen AMD dual core with the 64bit install of Bodhi. I used the same install medium for both computers. I can understand Stefan's statement. He is the second developer that can't imagine a connection between efreet cache crashes and the weather module so it seems like an unlikely connection.

I do feel that it isn't completely trivial issue when the icons disappear. The icons also disappear from the "everything launcher" which I find hampers the use of that tool. Also the icons enable me to find the menu entry that I'm looking for more quickly because I often have the color of the icon catch my attention. Also sometimes a refresh of the Moksha desktop after an efreet cache fail caused other elements like the shelf or other UI items to fail too. One time a refresh after an efreet cache fail left me with an unusable desktop, and I had to drop down to a terminal and do a forced "shutdown -h now" to reboot the computer and get everything working again. Admittedly that happened once out of 20+ times of just doing a "refresh" to get the icons back before I tried removing the weather module and havn't had issues since. I appreciate any work the developers can do on this bug, but it sounds like a tough one to track down.

the_waiter 11-08-2018 12:49 PM

OK guys. I asked guys on #e to help me with efreet bug. This is my conversation with raster:

<the_waiter> raster: sorry I know little about efreet. Can you tell me more?
<raster> but i'd need to reproduce it reliably to hunt it
<OnlyHuman> efl 1.21.1 might be better than efl 1.20.7 not sure if efreetd annoyance was ever fixed
<raster> well libefreet is linked into apps
<raster> it provides api' s that can load/parse desktop files
<raster> and that can load the efreetd cache files inot memory
<raster> it also will try and connect to efreetd if it exists
<raster> i the connections fails any app will sawn efreetd
<raster> spawn
<raster> so basically "first in wins"
<raster> efreetd scans the xdg dirs (icons, desktop) and sets up file monitors for them
<the_waiter> Yes onlyhuman, that is why I am asking here. If e-devs were solving this issue...
<raster> if anything changes in these it re-runs aniother efreet cache binary that generates the cache (or ere-rgenerates it)
<raster> thsi bionary loads all these dirst and files and indexed them into the cache dir
<raster> efreetd will run this bin if no cache exists
<raster> or if itsa scan of dirs and the files show it to be inconsistent with the cache data
<raster> thats the big picture
<OnlyHuman> doesn't bodhi update efl pkgs?
<raster> i dont know every detail - i didnt write it
<raster> i do know i dsilike the way the cache is laid out
<raster> i also think the cache couldbe vastly improved by not having efreet rely on opening the png/svg etc. files from the /usr/share etc. filesystem but the cache should actuallyimport this data directly into the efreet cache files
<raster> so literall yload and re-encode icons, desktop data etc.
<raster> the cache files also should be directly mmaped
<the_waiter> Oh, I ve just find sth
<the_waiter> https://www.enlightenment.org/_legac...reet_main.html
<raster> and not decoded into ram - save memory by sharing all the same mmaped files on disk
<raster> on my eternal list of things to do is rewrite it to be more like the above
<the_waiter> hmm, thx for info
<raster> but its lowish on my priority list
<raster> vs other things
<the_waiter> understand, not a big issue I know
<the_waiter> I just expected the answer: "yea, I know there was this issue and it was fixed with commit no: blabla" :)
<raster> the_waiter: sorry - nope. don't have that :)

This is an efreet info:
https://www.enlightenment.org/_legac...reet_main.html

So. No weather module is the culprit. Anyway, maybe newer efl could help. Or?

Stefan

enigma9o7 11-09-2018 01:03 AM

It can't be coincidence. I've never gone this long w/o losing icons.

I don't even care much about the menu icons. The one that affect me are the ones in my taskbar for open apps (tasker I think its called). Also, every time it happens, the weather module stops responding.

And for me, it isn't trivial. Cuz I haven't figured out how to restore them without reboot. And I run a media server for my AirBNB and so I can't just reboot whenever I feel like it, I have to check to make sure guests aren't streaming anything first, and most of the time in the evenings someone is, etc.

But for now my problem is solved, since I removed weather.

rbtylee 11-09-2018 06:17 AM

Quote:

Originally Posted by enigma9o7 (Post 5924329)
... Cuz I haven't figured out how to restore them without reboot. ...

Does not the advice I advice above restore them without a reboot? Because in theory it should.


Code:

rm -rf ~/.cache/efreet
/usr/lib/x86_64-linux-gnu/efreet/v-1.20/efreet_desktop_cache_create -d /usr/share/applications ~/.local/share/applications
/usr/lib/x86_64-linux-gnu/efreet/v-1.20/efreet_icon_cache_create -d /usr/share/icons ~/.icons -e .png .svg .jpg .xpm
enlightenment_remote -restart



All times are GMT -5. The time now is 08:22 PM.