Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Images broken on available updates #595

Closed

Description

@clemmy

screen shot 2015-07-19 at 2 53 34 pm

Activity

  1. mnquintana commented on Jul 19, 2015

    @mnquintana
    Contributor

    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

  2. rjv commented on Aug 3, 2015

    @rjv

    Seeing same issue on Windows 7, Atom v1.0.3.

  3. jensljungblad commented on Aug 24, 2015

    @jensljungblad

    +1

  4. vjandrea commented on Oct 4, 2015

    @vjandrea

    +1

  5. joshschumacher commented on Oct 23, 2015

    @joshschumacher

    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 ¯_(ツ)_/¯

  6. defeated commented on Feb 14, 2016

    @defeated

    Confirmed this is still happening in Atom 1.5.3 -

  7. davidspiess commented on Mar 11, 2016

    @davidspiess

    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/plain which obviously is broken.

    image

  8. senoadiw commented on Mar 11, 2016

    @senoadiw

    Deleting the settings-view dir in %userprofile%\AppData\Roaming\Atom\Cache and reloading the window seems to regenerate the icon cache.

  9. deakster commented on Apr 5, 2016

    @deakster

    Deleting the folder @senoadiw mentioned did fix it for me briefly, but the issue came back pretty quickly.

  10. berniedurfee commented on Apr 6, 2016

    @berniedurfee

    +1

    Atom 1.6.2
    Mac OS X - 10.10.5 - Yosemite

  11. nicholasdunbar commented on Apr 20, 2016

    @nicholasdunbar

    I am having this problem as well.

    +1

    Atom 1.6.2
    Mac OS X - 10.11.4 - El Capitan

  12. dbwest commented on May 3, 2016

    @dbwest

    +1

  13. zachjs commented on May 4, 2016

    @zachjs

    +1

  14. digeomel commented on May 24, 2016

    @digeomel

    +1 on atom 1.7.4 - RHEL 7 behind proxy

  15. yustnip commented on May 25, 2016

    @yustnip

    The same. Also through proxy.

  16. danielmahon commented on Jun 8, 2016

    @danielmahon

    +1 Atom 1.8 OSX El Capitan

  17. MichaelAquilina commented on Jun 8, 2016

    @MichaelAquilina

    +1 Ubuntu Atom 1.7.4 no proxy

  18. rdmcgregor commented on Aug 1, 2016

    @rdmcgregor

    +1 Atom 1.8 OSX El Capitan

  19. jmdelros commented on Aug 2, 2016

    @jmdelros

    +1 Atom 1.9 on Windows 10 behind a proxy

  20. MichaelAquilina commented on Aug 4, 2016

    @MichaelAquilina

    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.

  21. bastilian commented on Aug 5, 2016

    @bastilian
    Contributor

    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.

  22. winstliu commented on Aug 5, 2016

    @winstliu
    Contributor

    @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.

  23. cvega commented on Aug 9, 2016

    @cvega

    +1 Atom 1.9.6, OSX - El Capitan (10.11.6)

  24. damieng commented on Aug 18, 2016

    @damieng
    Contributor

    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.

  25. damieng commented on Aug 19, 2016

    @damieng
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions