You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
I've reproduced this with Atom 1.0.3-0fe4183, but not consistently. I think this can happen in any view with package cards though - not just the Updates panel.
I've been annoyed by this small bug for a long time too, decided to try to look into it. Opened up the inspector view (View > Developer > Toggle Developer Tools) to inspect one of the failing avatars. Weird thing was, inspector thought the image was just fine - it showed a popup preview when I hovered over the image src (file:///Users/josh/Library/Application%20Support/Atom/Cache/settings-view/tststs-1445582599869). Went to view that image directly on the filesystem and it was hunky-dory. Reloaded the Updates panel to watch a network inspector load and what do you know - all of the images loaded.
Hoping maybe the repro steps will help someone that is familiar with the code base because now it's working for me and I can't reproduce ¯_(ツ)_/¯
Random note while I was looking into this. I tried inspecting using the developer tools and I set the width of the img element to 20 and it seemed to fix itself. Dont know if this is just a side effect of the browser reloading the image after it becomes available though.
When the images are requested, it might happen that they time out, but a file still gets saved, which is not an image and therefore causes broken avatar images.
#813 will include a fix that removes the file in case of an error and hopefully will address the issue.
@bastilian I think that's a different issue (#327). The issue here is that all avatars are showing as broken on the Available Updates page while they work fine on others, such as the Install pane.
I'm not convinced this is a different underlying issue - it also goes direct to the cache and attempts to load files just like the other pages and they both display the broken indicator if that file is corrupt/zero bytes.
Rewritten a bunch of the avatar image caching code to better handle bad responses, errors and non-image bodies and not cache them. This should solve these issues and the ones in #327 better than the size check (it would previously cache 500 errors as an image) and is better performing.
Activity
mnquintana commentedon Jul 19, 2015
I've reproduced this with Atom 1.0.3-0fe4183, but not consistently. I think this can happen in any view with package cards though - not just the Updates panel.
/cc @benogle
rjv commentedon Aug 3, 2015
Seeing same issue on Windows 7, Atom v1.0.3.
jensljungblad commentedon Aug 24, 2015
+1
vjandrea commentedon Oct 4, 2015
+1
joshschumacher commentedon Oct 23, 2015
I've been annoyed by this small bug for a long time too, decided to try to look into it. Opened up the inspector view (View > Developer > Toggle Developer Tools) to inspect one of the failing avatars. Weird thing was, inspector thought the image was just fine - it showed a popup preview when I hovered over the image src (file:///Users/josh/Library/Application%20Support/Atom/Cache/settings-view/tststs-1445582599869). Went to view that image directly on the filesystem and it was hunky-dory. Reloaded the Updates panel to watch a network inspector load and what do you know - all of the images loaded.
Hoping maybe the repro steps will help someone that is familiar with the code base because now it's working for me and I can't reproduce ¯_(ツ)_/¯
defeated commentedon Feb 14, 2016
Confirmed this is still happening in Atom 1.5.3 -
davidspiess commentedon Mar 11, 2016
I think the problem is a wrong mime type. I can see two image request in my dev tools. The first call with type
text/plainwhich obviously is broken.senoadiw commentedon Mar 11, 2016
Deleting the settings-view dir in %userprofile%\AppData\Roaming\Atom\Cache and reloading the window seems to regenerate the icon cache.
deakster commentedon Apr 5, 2016
Deleting the folder @senoadiw mentioned did fix it for me briefly, but the issue came back pretty quickly.
berniedurfee commentedon Apr 6, 2016
+1
Atom 1.6.2
Mac OS X - 10.10.5 - Yosemite
nicholasdunbar commentedon Apr 20, 2016
I am having this problem as well.
+1
Atom 1.6.2
Mac OS X - 10.11.4 - El Capitan
dbwest commentedon May 3, 2016
+1
zachjs commentedon May 4, 2016
+1
digeomel commentedon May 24, 2016
+1 on atom 1.7.4 - RHEL 7 behind proxy
yustnip commentedon May 25, 2016
The same. Also through proxy.
danielmahon commentedon Jun 8, 2016
+1 Atom 1.8 OSX El Capitan
MichaelAquilina commentedon Jun 8, 2016
+1 Ubuntu Atom 1.7.4 no proxy
rdmcgregor commentedon Aug 1, 2016
+1 Atom 1.8 OSX El Capitan
jmdelros commentedon Aug 2, 2016
+1 Atom 1.9 on Windows 10 behind a proxy
MichaelAquilina commentedon Aug 4, 2016
Random note while I was looking into this. I tried inspecting using the developer tools and I set the width of the
imgelement to 20 and it seemed to fix itself. Dont know if this is just a side effect of the browser reloading the image after it becomes available though.bastilian commentedon Aug 5, 2016
I think I found what the issue is.
When the images are requested, it might happen that they time out, but a file still gets saved, which is not an image and therefore causes broken avatar images.
#813 will include a fix that removes the file in case of an error and hopefully will address the issue.
winstliu commentedon Aug 5, 2016
@bastilian I think that's a different issue (#327). The issue here is that all avatars are showing as broken on the Available Updates page while they work fine on others, such as the Install pane.
cvega commentedon Aug 9, 2016
+1 Atom 1.9.6, OSX - El Capitan (10.11.6)
damieng commentedon Aug 18, 2016
I'm not convinced this is a different underlying issue - it also goes direct to the cache and attempts to load files just like the other pages and they both display the broken indicator if that file is corrupt/zero bytes.
damieng commentedon Aug 19, 2016
Rewritten a bunch of the avatar image caching code to better handle bad responses, errors and non-image bodies and not cache them. This should solve these issues and the ones in #327 better than the size check (it would previously cache 500 errors as an image) and is better performing.