SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Clients Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Clients Development This forum is for discussions relating to SageTV Open Source Clients Development.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-09-2020, 01:18 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Exclamation WARNING: SageTV Android Client and Android 11

I upgraded my phone last night to Android 11 and the SageTV client no longer has images or fonts loading. I am pretty sure that this is an issue with the upgrade.

I am going to need to look into this. Not sure what is going on. It might take me a little while to figure out. This is an area of the code I am not very familiar with. So, if you do not want it to break, you may want to hold off on upgrading.

Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #2  
Old 09-10-2020, 04:19 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by jvl711 View Post
I upgraded my phone last night to Android 11 and the SageTV client no longer has images or fonts loading. I am pretty sure that this is an issue with the upgrade.

I am going to need to look into this. Not sure what is going on. It might take me a little while to figure out. This is an area of the code I am not very familiar with. So, if you do not want it to break, you may want to hold off on upgrading.

Josh
Did you re-install the app after upgrading? The miniclient will cache textures and fonts (which are textures as well) and I've seen where sometimes these can get corrupted. Do you see any images or just blackness?
Reply With Quote
  #3  
Old 09-10-2020, 05:29 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by stuckless View Post
Did you re-install the app after upgrading? The miniclient will cache textures and fonts (which are textures as well) and I've seen where sometimes these can get corrupted. Do you see any images or just blackness?
At first I was getting some objects that did not have images or fonts. Then after reinstalling I get just a black screen. I was thinking that maybe there is a error loading images.
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #4  
Old 09-10-2020, 07:27 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Stuckless I think I stumbled upon the issue by luck. I was wondering if you could give me some insight on this code block, and why you added this change. It seems like it was working perfectly until Android 11. It looks like Adroid 11 does not like Bitmap.Config.HARDWARE. Kinda odd.

Code:
public ImageHolder<GdxTexture> readImage(InputStream fis) throws Exception {
        long st = System.currentTimeMillis();

        BitmapFactory.Options options = new BitmapFactory.Options();
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
        {
            // this appears to work better since Android O (documentation says it's prefferred
            // for bitmaps that are only used to render to the screen (immutable)
            //options.inPreferredConfig = Bitmap.Config.HARDWARE;
            options.inPreferredConfig = Bitmap.Config.ARGB_8888;
        }
        else
        {
            options.inPreferredConfig = Bitmap.Config.ARGB_8888;
        }
        final Bitmap bitmap = BitmapFactory.decodeStream(fis, null, options);

        long time = System.currentTimeMillis() - st;
        totalTextureTime += time;
        longestTextureTime = Math.max(time, longestTextureTime);

        final GdxTexture t = new GdxTexture(bitmap);
        invokeLater(new Runnable() {
            @Override
            public void run() {
                t.load();
            }
        });
        return new ImageHolder<>(t, t.width, t.height);
    }
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #5  
Old 09-10-2020, 08:58 AM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by jvl711 View Post
I upgraded my phone last night to Android 11 and the SageTV client no longer has images or fonts loading. I am pretty sure that this is an issue with the upgrade.

I am going to need to look into this. Not sure what is going on. It might take me a little while to figure out. This is an area of the code I am not very familiar with. So, if you do not want it to break, you may want to hold off on upgrading.

Josh
Thanks for the warning, as I usually upgrade too soon....
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #6  
Old 09-10-2020, 11:51 AM
sic0048 sic0048 is offline
Sage Icon
 
Join Date: Nov 2007
Posts: 1,400
Edit - well apparently I'm an idiot. I took the Android 11 OTA update, but something must have gone wrong and the phone must have rebooted into the old Android 10 partition. I didn't notice I was still on Android 10 for a couple of days. (I was killing myself trying to root the phone and every time I booted the Android 11 modified boot image, I got a bootloop. Once I realized it was still on Android 10, I manually upgraded to 11 and rooted the phone just fine).

Long story short, this post of mine was made when I was still unknowingly on Android 10.

Quote:
I've also upgraded to Android 11 and I don't have any font/display issues with either version (1.54 or the older 1.4) of the Mini-client.

Everything (menu, guides, live TV, etc) looks normal and works as expected.
__________________
i7-6700 server with about 10tb of space currently
SageTV v9 (64bit)
Ceton InfiniTV ETH 6 cable card tuner (Spectrum cable)
OpenDCT
HD-300 HD Extenders (hooked to my whole-house A/V system for synched playback on multiple TVs - great during a Superbowl party)
Amazon Firestick 4k and Nvidia Shield using the MiniClient
Using CQC to control it all

Last edited by sic0048; 09-22-2020 at 09:43 AM.
Reply With Quote
  #7  
Old 09-10-2020, 12:46 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by jvl711 View Post
Stuckless I think I stumbled upon the issue by luck. I was wondering if you could give me some insight on this code block, and why you added this change. It seems like it was working perfectly until Android 11. It looks like Adroid 11 does not like Bitmap.Config.HARDWARE. Kinda odd.

Code:
public ImageHolder<GdxTexture> readImage(InputStream fis) throws Exception {
        long st = System.currentTimeMillis();

        BitmapFactory.Options options = new BitmapFactory.Options();
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
        {
            // this appears to work better since Android O (documentation says it's prefferred
            // for bitmaps that are only used to render to the screen (immutable)
            //options.inPreferredConfig = Bitmap.Config.HARDWARE;
            options.inPreferredConfig = Bitmap.Config.ARGB_8888;
        }
        else
        {
            options.inPreferredConfig = Bitmap.Config.ARGB_8888;
        }
        final Bitmap bitmap = BitmapFactory.decodeStream(fis, null, options);

        long time = System.currentTimeMillis() - st;
        totalTextureTime += time;
        longestTextureTime = Math.max(time, longestTextureTime);

        final GdxTexture t = new GdxTexture(bitmap);
        invokeLater(new Runnable() {
            @Override
            public void run() {
                t.load();
            }
        });
        return new ImageHolder<>(t, t.width, t.height);
    }
I vaguely remember doing this, and likely it was done an as optimization when I moved to Oreo, but, I guess gess 11 doesn't like it. I assume you commented out the HARDWARE is is using ARGB888 and it works? If so, then I'd just remove the HARDWARE flag entirely and always use ARGB888
Reply With Quote
  #8  
Old 09-10-2020, 01:05 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by stuckless View Post
I vaguely remember doing this, and likely it was done an as optimization when I moved to Oreo, but, I guess gess 11 doesn't like it. I assume you commented out the HARDWARE is is using ARGB888 and it works? If so, then I'd just remove the HARDWARE flag entirely and always use ARGB888
Thanks Stuckless That is exactly what I did. I see why you added that code. It is supposed to be a good performance enhancement. I am going to push a fix to play store.

Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #9  
Old 09-10-2020, 01:07 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by sic0048 View Post
I've also upgraded to Android 11 and I don't have any font/display issues with either version (1.54 or the older 1.4) of the Mini-client.

Everything (menu, guides, live TV, etc) looks normal and works as expected.
Interesting. What hardware are you using? I am using Pixel 3xl. It might be specific to that hardware.
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #10  
Old 09-11-2020, 10:51 AM
sic0048 sic0048 is offline
Sage Icon
 
Join Date: Nov 2007
Posts: 1,400
Quote:
Originally Posted by jvl711 View Post
Interesting. What hardware are you using? I am using Pixel 3xl. It might be specific to that hardware.
I have a Pixel 3aXL. EDIT - that was apparently still on Android 10 (the Android 11 OTA must have failed and unknowingly rebooted into the old Android 10 partition).
__________________
i7-6700 server with about 10tb of space currently
SageTV v9 (64bit)
Ceton InfiniTV ETH 6 cable card tuner (Spectrum cable)
OpenDCT
HD-300 HD Extenders (hooked to my whole-house A/V system for synched playback on multiple TVs - great during a Superbowl party)
Amazon Firestick 4k and Nvidia Shield using the MiniClient
Using CQC to control it all

Last edited by sic0048; 09-22-2020 at 09:44 AM.
Reply With Quote
  #11  
Old 09-11-2020, 10:58 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by sic0048 View Post
I have a Pixel 3aXL.
They are really similar, but there is hardware differences in GUP/CPU. I wonder if this is a driver bug on my phone.

Regardless, I fixed the issue and pushed a new release just in case someone else has the issue I had.

Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #12  
Old 09-22-2020, 09:46 AM
sic0048 sic0048 is offline
Sage Icon
 
Join Date: Nov 2007
Posts: 1,400
I just wanted to update my original posts with an idiotic mistake I must have made.

Long story short, my phone was still on Android 10 when I posted that I didn't have any issues with the app. My only guess is that the OTA update failed, or something else caused the phone to reboot into the Android 10 partition. It may have been when I was trying to root it.
__________________
i7-6700 server with about 10tb of space currently
SageTV v9 (64bit)
Ceton InfiniTV ETH 6 cable card tuner (Spectrum cable)
OpenDCT
HD-300 HD Extenders (hooked to my whole-house A/V system for synched playback on multiple TVs - great during a Superbowl party)
Amazon Firestick 4k and Nvidia Shield using the MiniClient
Using CQC to control it all
Reply With Quote
  #13  
Old 09-23-2020, 11:02 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by sic0048 View Post
I just wanted to update my original posts with an idiotic mistake I must have made.

Long story short, my phone was still on Android 10 when I posted that I didn't have any issues with the app. My only guess is that the OTA update failed, or something else caused the phone to reboot into the Android 10 partition. It may have been when I was trying to root it.
Thanks for the followup. Just out of curiosity, did you see the issue? Were you able to get your phone updated.

Thanks,
Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #14  
Old 09-28-2020, 09:02 AM
alfi33 alfi33 is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 311
I experienced the issue after upgrading to Android 11 on my Pixel 4a. The issue was fixed for me in the newer release.
__________________
Server: SageTV v9 on unRAID Docker; i5-2400; 16GB RAM; 9TB storage array; SiliconDust HDHR3
Client: Windows10; Intel Core2Duo; 4GB RAM; NVIDIA GeForce GT 1030
Client: NVIDIA ShieldTV
Client: Fire TV Stick 4K
Reply With Quote
  #15  
Old 09-28-2020, 10:50 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by alfi33 View Post
I experienced the issue after upgrading to Android 11 on my Pixel 4a. The issue was fixed for me in the newer release.
Just out of curiosity, when you say fixed in newer release, you are talking about the android mini client, and not a patch to android 11?

Thanks,
Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #16  
Old 10-03-2020, 11:43 AM
alfi33 alfi33 is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 311
Quote:
Originally Posted by jvl711 View Post
Just out of curiosity, when you say fixed in newer release, you are talking about the android mini client, and not a patch to android 11?

Thanks,
Josh
Yep, your newer release of the android mini client (that you said includes a fix for this issue on 9/10) did, indeed, fix it for me on my Pixel 4a. Prior to updating to your fixed version of the mini client, I was just getting a black screen.
__________________
Server: SageTV v9 on unRAID Docker; i5-2400; 16GB RAM; 9TB storage array; SiliconDust HDHR3
Client: Windows10; Intel Core2Duo; 4GB RAM; NVIDIA GeForce GT 1030
Client: NVIDIA ShieldTV
Client: Fire TV Stick 4K
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SageTV Android mini client on an android based TV: Viable? Slack SageTV Software 32 08-26-2019 07:57 PM
SageTV Android Client up and running on Tinkerboard Redhawk56 Hardware Support 1 05-21-2017 05:57 PM
[Android Mini Client] Integrate with Android TV 'Live Channels' dinki SageTV Clients Development 11 01-31-2016 09:43 AM
Finally, a fully functional SageTV client on android and iphone! mkanet SageTV v7 Customizations 12 01-12-2013 12:22 AM
Android client? equalize SageTV Placeshifter 1 07-22-2010 09:37 AM


All times are GMT -6. The time now is 11:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.