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
  #21  
Old 06-28-2018, 07:21 PM
cat6man's Avatar
cat6man cat6man is offline
Sage Fanatic
 
Join Date: Jan 2006
Location: West of NYC, East of SF
Posts: 910
Quote:
Originally Posted by stuckless View Post
Well, I finally got the Android 8 update (Shield)... and I have to say, this is not good. Android appears to throw errors loading the various images from the server (and everything is an image in sagetv). Not sure what to make of this, to be honest. I've spent some time researching but I've come up wtih nothing. In the mean time, I have to move to Plex for my viewing, and I hate to say it, but it might be the end of road for me with SageTV

I don't know what would change from android 7 to 8 that would cause this. I found one thread saying that 16bit pngs were failing to load since upgrading.
do you have problems with standard STV?
__________________
Q: dad, when will you stop changing all the electronics?
A: never, so you might as well get used to it.
Reply With Quote
  #22  
Old 06-29-2018, 02:14 AM
crarbo1 crarbo1 is offline
Sage Aficionado
 
Join Date: Jul 2008
Posts: 472
Quote:
Originally Posted by stuckless View Post
Well, I finally got the Android 8 update (Shield)... and I have to say, this is not good. Android appears to throw errors loading the various images from the server (and everything is an image in sagetv). Not sure what to make of this, to be honest. I've spent some time researching but I've come up wtih nothing. In the mean time, I have to move to Plex for my viewing, and I hate to say it, but it might be the end of road for me with SageTV

I don't know what would change from android 7 to 8 that would cause this. I found one thread saying that 16bit pngs were failing to load since upgrading.
That is discouraging. What other options are you considering if you stop using SageTV? I still have cable TV with a cable card and I only using the mini client on my ShieldTV box for viewing with the Gemstone UI. I don't normally watch live TV or channel surf, but my wife does and loosing the current setup wouldn't be good for me, because if her.

Is there a way to roll back the ShieldTV update if I go ahead and update it to see how bad this is on my setup?

Thanks for all of your work on this as the mini client was a lifesaver for me because it gave me new option to view SageTV when the extenders died.

Thanks again,
Chuck
__________________
OS: Windows 10 Pro (64 bit)
Motherboard/CPU/RAM: Gigabyte EP43-UD3/Intel Core 2 Quad Q9550 @ 2.83 GHz/8 GB RAM
System Drive : Samsung 850 Pro SSD (256 GB)
Recording Drive's: 2 x WD WD4001FAEX (4 TB)
Tuner's: 2 x Ceton InfiniTV 4's
Clients: 3 x Nvidia Shield TV's; Spares: 2 x HD300's
SageTV v9.1.2.662 with OpenDCT v0.5.28
Java 1.8.0_111-b14 (32bit)
Reply With Quote
  #23  
Old 06-29-2018, 03:18 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by cat6man View Post
do you have problems with standard STV?
I didn't do extensive testing, but the default stv doesn't appear to be as badly affected. Keep in mind this is not an issue with Gemstone, but rather how Android loads the images sent from the server. And since everything is an image in sagetv, I wouldn't be surprised to see it having some issues, just not a many as Gemstone.

Quote:
Originally Posted by crarbo1 View Post
That is discouraging. What other options are you considering if you stop using SageTV? I still have cable TV with a cable card and I only using the mini client on my ShieldTV box for viewing with the Gemstone UI. I don't normally watch live TV or channel surf, but my wife does and loosing the current setup wouldn't be good for me, because if her.

Is there a way to roll back the ShieldTV update if I go ahead and update it to see how bad this is on my setup?

Thanks for all of your work on this as the mini client was a lifesaver for me because it gave me new option to view SageTV when the extenders died.

Thanks again,
Chuck
I've had plex setup for a while, so, I'll try to make do with that. I will likely keep sagetv running for recordings, but I might switch to plex for my viewing (although I tried it last night, and I wasn't really happy -- much of it has to do with the fact that plex knows nothing about what I've watched in sagetv.)

I have two other options...
1. I start a new client for Android TV using native AndroidTV UI. (ie, it's an app like YouTube, Plex, Netflix, etc)
2. I see what I can do by creating a new UI renderer for Android, and see if I can somehow bypass the Android image loading.

In looking at where the issues are happening, I can't be sure that I'm not dealing with some sort of OpenGL issue either, because some of the images that it is complaining about are actually temporary surfaces that are used to composit other images. But something definately changed in the Android Software with this update.
Reply With Quote
  #24  
Old 06-29-2018, 05:23 AM
DarkWolf77 DarkWolf77 is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 169
Talk about discouraging.

Plex isn't a great option for me as I'm too used to comskip abs my wife loves being able to fast forward with the thumbnail navigation that gemstone provides...

Well, whatever you decide to do, we're behind you. I, for one, will be glad to help out in any way I can.
Reply With Quote
  #25  
Old 06-29-2018, 05:41 AM
gclayto's Avatar
gclayto gclayto is offline
Sage User
 
Join Date: Dec 2010
Location: US
Posts: 61
The Fire TV with 4K Ultra HD is still working fine with the MiniClient. I switched to it when my Nexus updated to Oreo. Another option is to use Pheonix on the MiniClient it is more usable. Some of the menus don't work correctly, but you can count your button clicks to get where you want to go.
Reply With Quote
  #26  
Old 06-29-2018, 05:49 AM
samgreco samgreco is offline
Sage Expert
 
Join Date: Jul 2004
Location: Villa Park, IL (Outside Chicago)
Posts: 617
Oreo has really made a mess of things. For me, it's made the mini-client unusable.

I've been running a parallel NextPVR/Kodi setup for a month or so and I actually like Kodi as a client. NextPVR leaves a lot to be desired as a backend. Wish I had Sage as a backend option.

I still have an HD200 on the system and may use that for a bit. But I think switching to KODI may be my answer. And the new V18 will be integrating with Google Assitant.
Reply With Quote
  #27  
Old 06-29-2018, 07:48 AM
DarkWolf77 DarkWolf77 is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 169
For what it's worth I was able to get a log file from my phone, same issues there. I'm seeing the errors you're probably talking about, that say some bitmap is in the wrong format.
Attached Files
File Type: txt sagetv-miniclient.txt (137.9 KB, 159 views)
Reply With Quote
  #28  
Old 06-29-2018, 08:42 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by stuckless View Post
Well, I finally got the Android 8 update (Shield)... and I have to say, this is not good. Android appears to throw errors loading the various images from the server (and everything is an image in sagetv). Not sure what to make of this, to be honest. I've spent some time researching but I've come up wtih nothing. In the mean time, I have to move to Plex for my viewing, and I hate to say it, but it might be the end of road for me with SageTV

I don't know what would change from android 7 to 8 that would cause this. I found one thread saying that 16bit pngs were failing to load since upgrading.
So.... I am running the miniclient on android 8.1 on my phone and have not seen any of these issues. Assuming it should be pretty easy to see. Are you sure this is not specifically a Shield issue? Can this be reproduced in emulation of and android tv running 8.1?

Thanks,
Josh
Reply With Quote
  #29  
Old 06-29-2018, 08:59 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by DarkWolf77 View Post
For what it's worth I was able to get a log file from my phone, same issues there. I'm seeing the errors you're probably talking about, that say some bitmap is in the wrong format.
Was this in the Stock STV? Can this be reproduced in the stock STV?

Josh
Reply With Quote
  #30  
Old 06-29-2018, 10:30 AM
DarkWolf77 DarkWolf77 is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 169
Quote:
Originally Posted by jvl711 View Post
Was this in the Stock STV? Can this be reproduced in the stock STV?

Josh
Sadly, no, it's on gemstone and the UI is so broken that I can't actually switch to stock. I'm thinking of removing the client properties file when I get home to get it to reset to the default settings to see if that makes any difference.
Reply With Quote
  #31  
Old 06-29-2018, 12:06 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by DarkWolf77 View Post
Sadly, no, it's on gemstone and the UI is so broken that I can't actually switch to stock. I'm thinking of removing the client properties file when I get home to get it to reset to the default settings to see if that makes any difference.
So it is only effecting Gemstone. No other STV is effected? Is it possible there are images in the STV which are not in an acceptable format?

Is it possible the image cache is getting corrupted? Did any try turning off the cache and see if the issue goes away?

Last edited by jvl711; 06-29-2018 at 12:18 PM.
Reply With Quote
  #32  
Old 06-29-2018, 01:06 PM
DarkWolf77 DarkWolf77 is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 169
Quote:
Originally Posted by jvl711 View Post
So it is only effecting Gemstone. No other STV is effected? Is it possible there are images in the STV which are not in an acceptable format?

Is it possible the image cache is getting corrupted? Did any try turning off the cache and see if the issue goes away?
I'm afraid not. I took a few minutes on my lunch break to poke around. I cleared the app data entirely including the cache (no reinstall, but I doubt that would impact anything) and was able to get the default STV to load up - but it was even more broken the Gemstone was - going to "tv" yielded a complete blank screen. The only thing still rendering was the main menu. Unfortunately, I can't get it to produce another log file now.
Reply With Quote
  #33  
Old 06-29-2018, 01:17 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by DarkWolf77 View Post
I'm afraid not. I took a few minutes on my lunch break to poke around. I cleared the app data entirely including the cache (no reinstall, but I doubt that would impact anything) and was able to get the default STV to load up - but it was even more broken the Gemstone was - going to "tv" yielded a complete blank screen. The only thing still rendering was the main menu. Unfortunately, I can't get it to produce another log file now.
Wow... That is crazy.

I am using Android 8.1.0 / LineageOS 15.1 on a Mate 9 and I am seeing no issues rendering.


From looking at the code if I am reading it correctly I wonder if any portion of rendering the screen fails than all following items will fail as well... I might no understand that code that well though


I woulder if we put a try catch on renderQueue.get(i).run(); and let the render image fail if the next items would render ok. I also wonder if we should check the image that it is failing on to see if there are any issues with it.

Code:
synchronized (renderQueue) {
            try {
                batch.begin();
                batch.setColor(Color.BLACK);
                for (int i=0;i<size;i++) {
                    renderQueue.get(i).run();
                }
            } catch (Throwable t) {
                log.error("Render Failed.  This should never happen.  Developer should figure out why", t);
                // TODO: How should we manage this.. request a re-render??
            } finally {
                batch.end();
                renderQueue.clear();
            }
        }
Reply With Quote
  #34  
Old 06-29-2018, 02:06 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
The problem is that the image is always bad. In my setup the image always fails no matter how many times you render it. And I did add code to clean the cached image and re render but it didn't change anything. Of course it would help if I knew why android thinks the image is bad but doesn't tell me.


Quote:
Originally Posted by jvl711 View Post
Wow... That is crazy.

I am using Android 8.1.0 / LineageOS 15.1 on a Mate 9 and I am seeing no issues rendering.


From looking at the code if I am reading it correctly I wonder if any portion of rendering the screen fails than all following items will fail as well... I might no understand that code that well though


I woulder if we put a try catch on renderQueue.get(i).run(); and let the render image fail if the next items would render ok. I also wonder if we should check the image that it is failing on to see if there are any issues with it.

Code:
synchronized (renderQueue) {
            try {
                batch.begin();
                batch.setColor(Color.BLACK);
                for (int i=0;i<size;i++) {
                    renderQueue.get(i).run();
                }
            } catch (Throwable t) {
                log.error("Render Failed.  This should never happen.  Developer should figure out why", t);
                // TODO: How should we manage this.. request a re-render??
            } finally {
                batch.end();
                renderQueue.clear();
            }
        }
Reply With Quote
  #35  
Old 06-29-2018, 02:14 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by stuckless View Post
The problem is that the image is always bad. In my setup the image always fails no matter how many times you render it. And I did add code to clean the cached image and re render but it didn't change anything. Of course it would help if I knew why android thinks the image is bad but doesn't tell me.
I am having a super hard time reproducing this. I am wondering what the variables are that are effecting the rendering of the image. I am not seeing any issues on my phone running Android 8.1. I am also not able to repro running Android TV 8.1 on an emulator from Android Studio. Are you using an emulator, or are you only reproducing this on the Shield?

I would like to try and help if I can find a way to repo the issue.

Josh
Reply With Quote
  #36  
Old 06-29-2018, 02:47 PM
kklee kklee is offline
Sage User
 
Join Date: Jul 2013
Posts: 5
Just wanted to add more info on this issue.

I'm using Gemstone.

I use the Miniclient occasionally on my Pixel 2 XL, last time was a couple of months ago and it worked fine at that time.

I tested it now on my phone and it now has the same messed up menu issue as the updated Shield TV.

It doesn't seem to be specific to the Shield TV.

My Pixel 2 XL is running the latest stock Oreo update from Google. So maybe something in one of the recent Oreo updates?
Reply With Quote
  #37  
Old 06-29-2018, 04:17 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
I am having a super hard time reproducing this. I am wondering what the variables are that are effecting the rendering of the image. I am not seeing any issues on my phone running Android 8.1. I am also not able to repro running Android TV 8.1 on an emulator from Android Studio. Are you using an emulator, or are you only reproducing this on the Shield?

I would like to try and help if I can find a way to repo the issue.

Josh
Using gemstone on the emulator in it could reproduce it easily. It's how I found the errors about the 'bad bitmaps'. using the default stv, things appear to work better. Just gemstone uses a lot more images.
Reply With Quote
  #38  
Old 06-30-2018, 06:36 AM
DarkWolf77 DarkWolf77 is offline
Sage Advanced User
 
Join Date: Dec 2006
Posts: 169
Quote:
Originally Posted by stuckless View Post
Using gemstone on the emulator in it could reproduce it easily. It's how I found the errors about the 'bad bitmaps'. using the default stv, things appear to work better. Just gemstone uses a lot more images.
Well that's unfortunate - because on all of mine, the default STV is actually worse. Beyond the main menu screen, all menus render completely blank. The only thing that updates is the heading at the very top of the screen. With gemstone, at least the background would update to match what show was selected.

But then, after that first day, no menus of any kind are rendering past the main even on gemstone (I have a tablet and phone that's also on Oreo, so I can reproduce on all three). Unfortunately I can't get any logs to generate whatsoever. Very frustrating.

Even more frustrating is the complete inability to find any kind of changelog for Android 8.0. There is literally no place I can find what changes were made beyond the marketing bullet points about picture in picture and other features that we all know few 3rd party apps will ever support.

Last edited by DarkWolf77; 06-30-2018 at 06:41 AM.
Reply With Quote
  #39  
Old 06-30-2018, 07:50 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
I think I might have some possibly good news. I made the suggested change to the render code to allow the code to keep rendering if an error occurs. It looks like there are only a few images that may be causing most of the issues. In the gemstone it looks like it is three images on the header. Depending on the order of rendering than the whole screen might not render.

This minor change makes the screen continue to render. It does not resolve the issue completely, but it might make the client usable.

Code:
synchronized (renderQueue)
        {
            try
            {
                batch.begin();
                batch.setColor(Color.BLACK);
                for (int i=0;i<size;i++)
                {
                    try
                    {
                        renderQueue.get(i).run();
                    }
                    catch (Throwable t)
                    {
                        log.error("Render Queue Item Failed...  Continuing to process the rest of the items in the queue", t);
                    }
                }
            }
            catch (Throwable t)
            {
                log.error("Render Failed.  This should never happen.  Developer should figure out why", t);
                // TODO: How should we manage this.. request a re-render??
            } finally
            {
                batch.end();
                renderQueue.clear();
            }
        }
See attached imaged. The images that are in the yellow box are what did not render on my phone when I updated the code. I think we should see if the Gemstone developers can look at those image files and see if there may be something different about them.

Josh


ADDITIONAL INFO:

I went through and opened the MarkerSysAlert png files in Paint.net, and made no changes to them, and resaved, and the images started to render withouit issue. I am convinced there is something about those images that Android/OpenGL does not like now. Maybe there is something a little of in the format.
Attached Images
File Type: png BadImages.png (227.2 KB, 162 views)

Last edited by jvl711; 06-30-2018 at 08:16 AM.
Reply With Quote
  #40  
Old 06-30-2018, 09:30 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Looks like we arrived at the same conclusions I discovered this morning that a few images are causing issues and I started to compare those images to those that work. Using the "identify -verbose" tool they appeared to be very similar. I ran "optipng" on all pngs and then sagetv worked again. So while I can't fix this in the miniclient, it is likely it can be fixed by fixing the images, themselves. (and adding your try/catch is a good thing as well, since, it would prevent this, and possibly other render failures from causing the UI from being totally broken).

I'll see if I can get an update out this weekend.

Quote:
Originally Posted by jvl711 View Post
I think I might have some possibly good news. I made the suggested change to the render code to allow the code to keep rendering if an error occurs. It looks like there are only a few images that may be causing most of the issues. In the gemstone it looks like it is three images on the header. Depending on the order of rendering than the whole screen might not render.

This minor change makes the screen continue to render. It does not resolve the issue completely, but it might make the client usable.

See attached imaged. The images that are in the yellow box are what did not render on my phone when I updated the code. I think we should see if the Gemstone developers can look at those image files and see if there may be something different about them.

Josh


ADDITIONAL INFO:

I went through and opened the MarkerSysAlert png files in Paint.net, and made no changes to them, and resaved, and the images started to render withouit issue. I am convinced there is something about those images that Android/OpenGL does not like now. Maybe there is something a little of in the format.
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
Android TV Mini Client With VPN Cannot Connect To Server Tweeker SageTV Clients Development 9 05-08-2020 09:38 AM
Android TV Mini-client observations panteragstk SageTV Clients Development 29 10-29-2017 04:07 PM
Android Mini Client Transcoding KarylFStein SageTV Clients Development 16 08-26-2017 09:57 PM
Android Mini-Client UI Freeze KarylFStein SageTV Clients Development 5 07-06-2017 12:38 PM
[Android Mini Client] Integrate with Android TV 'Live Channels' dinki SageTV Clients Development 11 01-31-2016 09:43 AM


All times are GMT -6. The time now is 12:53 PM.


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