Image is skewed on Android TV
- Dominant language
- Java
- Stars
- 35k
- Forks
- 6.2k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 8
Description
When I try to load this particular image, it gets skewed as you can see.
That's the first time I see this issue on Android TV, I've never had this issue before (I'm also using images with the same resolution).
**Test image:** https://www.mycloud.ch/s/S00339A78D4B53E687A5F536B4AD90FD3B91180FC81D086F523D7813A130C2F1
**Result on screen:** https://www.mycloud.ch/s/S002854C7D41ACC6A035E5DDFADE5B3037098A1DC071E13E413AD251DE8EFFFA
I've observed that if I don't change the format, then the image is correctly rendered on screen.
Originally the image was loaded from the network (see logs), but it occurs also when used as a drawable.
Please notice that if I try to use this image on a sample application running on a mobile (S7 Edge, Android 7.0), everything works fine.
**Glide Version**: 3.7.0 and 3.8.0-SNAPSHOT
**Integration libraries**: okhttp3-integration:1.4.0@aar
**Device/Android Version**: Nvidia Shield TV, Android 7.0
**Issue details / Repro steps / Use case background**: loading an image in a ImageView
**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:
```java
Glide.with(context)
.load(R.drawable.test)
.asBitmap()
.format(PREFER_ARGB_8888)
.skipMemoryCache(true)
.diskCacheStrategy(DiskCacheStrategy.NONE)
.into(imageView);
```
**Layout XML**:
```xml
```
**Stack trace / LogCat**:
```ruby
03-02 13:44:03.771 1881-2009/? I/chromium: [1881:2009:INFO:mdns_cast_service.cc(706)] Recent mDNS app subtypes: [supported:'233637DE',] [unsupported:]
--------- beginning of system
03-02 13:44:04.183 679-1321/? I/ActivityManager: START u0 {cmp=com.swisscom.mycloud/.tv.slideshow.SlideshowActivity (has extras)} from uid 10140 on display 0
03-02 13:44:04.184 23865-23912/com.swisscom.mycloud D/ADBMobile: ADBMobile Debug : Analytics - Request Queued (ndh=1&cid.&AVID.&as=0&id=2C5C072F8530A64D-40000305C000219A&.AVID&.cid&aamlh=6&vid=18162109733677354189&ce=UTF-8&c.&a.&DeviceName=SHIELD%20Android%20TV&OSVersion=Android%207.0&TimeSinceLaunch=63&RunMode=Application&Resolution=1920x1080&AppID=myCloud%201.0.0%20%281%29&.a&mycloud_tvapp.&v2.&platform=Google%20Play&device=tv%20app&uid=18162109733677354189&language=de&subsection=photos%2Ftimeline%2Fphoto§ion=photos&channel=online&version=2016%2F09%2Fv%3A1.0.0&.v2&.mycloud_tvapp&.c&t=00%2F00%2F0000%2000%3A00%3A00%200%20-60&mid=80516297130458303154287904315188415800&pageName=tvapp%2Fphotos%2Ftimeline%2Fphoto&aamb=cIBAx_aQzFEHcPoEv0GwcQ&aid=2C5C072F8530A64D-40000305C000219A)
03-02 13:44:04.186 753-767/? D/RSMouse: mFeatureEnabled=true mPackageEnabled=false
03-02 13:44:04.228 23865-23865/com.swisscom.mycloud D/SlideshowFragment: ####### thumbnail URL: https://library.prod.mdl.swisscom.ch/thumbnail/Storage::Photos::Asset::dDRXWGZQVXN0QmtNS3FBdWR5cTlrdz09?cache=false&height=2160&access_token=Me4/EFx20UGYQ7Xltq4ozQ==
03-02 13:44:04.231 23865-23865/com.swisscom.mycloud D/SlideshowFragment: ####### thumbnail URL: https://library.prod.mdl.swisscom.ch/thumbnail/Storage::Photos::Asset::R1JnNzJWRXlvMDVwSks5VFZIRVRkUT09?cache=false&height=2160&access_token=Me4/EFx20UGYQ7Xltq4ozQ==
03-02 13:44:04.233 753-24287/? D/RSMouse: mFeatureEnabled=true mPackageEnabled=false
03-02 13:44:04.257 23865-23971/com.swisscom.mycloud D/ADBMobile: ADBMobile Debug : Analytics - Request Sent(ndh=1&cid.&AVID.&as=0&id=2C5C072F8530A64D-40000305C000219A&.AVID&.cid&aamlh=6&vid=18162109733677354189&ce=UTF-8&c.&a.&DeviceName=SHIELD%20Android%20TV&OSVersion=Android%207.0&TimeSinceLaunch=63&RunMode=Application&Resolution=1920x1080&AppID=myCloud%201.0.0%20%281%29&.a&mycloud_tvapp.&v2.&platform=Google%20Play&device=tv%20app&uid=18162109733677354189&language=de&subsection=photos%2Ftimeline%2Fphoto§ion=photos&channel=online&version=2016%2F09%2Fv%3A1.0.0&.v2&.mycloud_tvapp&.c&t=00%2F00%2F0000%2000%3A00%3A00%200%20-60&mid=80516297130458303154287904315188415800&pageName=tvapp%2Fphotos%2Ftimeline%2Fphoto&aamb=cIBAx_aQzFEHcPoEv0GwcQ&aid=2C5C072F8530A64D-40000305C000219A)
03-02 13:44:04.268 679-699/? I/ActivityManager: Displayed com.swisscom.mycloud/.tv.slideshow.SlideshowActivity: +75ms
03-02 13:44:04.279 23865-23907/com.swisscom.mycloud D/OpenGLRenderer: endAllActiveAnimators on 0x96649380 (AssetCardView) with handle 0x92da7eb0
```
Contributor guide
Assessment
This issue has not been assessed yet.