ihsplay icon indicating copy to clipboard operation
ihsplay copied to clipboard

[BUG] Video Freezes Randomly

Open SargoDarya opened this issue 3 years ago • 37 comments

Issue Summary

Screen randomly freezes on LG G2 after some amount of time. It doesn't matter if you're in a game or just big picture mode. Audio continues to play and inputs are still recognized however the screen stays frozen.

No errors displayed.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Connect TV to Steam PC
  2. Wait until freeze

Expected Behavior

Screen does not freeze

Basic Information

LG G2

IHSplay Information

Version: 0.2.2 Audio Module: ndl-webos5 Video Module: ndl-webos5 webOS Version: 7.3.0

Computer Setup

GPU: Radeon 5700 XT CPU: AMD Ryzen 9 3900X 2560x1440 Resolution

Additional Context

Add any other context about the problem here. For example error message on the screen, and settings in IHSplay

SargoDarya avatar Feb 11 '23 09:02 SargoDarya

Is "Hardware-Accelerated GPU Scheduling" enabled on your machine?

mariotaku avatar Feb 15 '23 04:02 mariotaku

I have "Hardware-Accelerated GPU Scheduling" enabled.

sheaffe avatar Feb 15 '23 22:02 sheaffe

Could you try turning it off? Some people encounter similar issues when they use moonlight. I'd like to see if it's the case.

mariotaku avatar Feb 16 '23 01:02 mariotaku

This made no difference when I tried.

sheaffe avatar Feb 18 '23 06:02 sheaffe

I've seen this a lot as well, although for me the screen goes black but audio continues and inputs are still working. Sometimes disconnecting the stream and reconnecting fixes it and sometimes I can fix it by vaguely knowing what buttons I'm pressing in the Steam menus and exiting the game or even sometimes just pressing the Guide button and opening the Steam menu will fix it.

harb88 avatar Feb 26 '23 15:02 harb88

even i have the issue the stream freezes after 5-10 minutes, the thing i do is reconnect it by going back and it works. but the problem is i have to do this everytime after 5-10 minutes, can you implement something like automatic reconnecting by clicking a button on remote, it takes only 5-6 seconds to to reconnect by going back on the homebrew menu, try to implement something which will do it automatic. thank you for this homebrew appreciate it <3

joyas11 avatar Apr 24 '23 14:04 joyas11

@trxshnumb Hi, the stream freezing is a bug and should be fixed later, so reconnect is not necessary.

mariotaku avatar Apr 25 '23 05:04 mariotaku

its been a month bro, please atleast add a quick reconnect button

joyas11 avatar May 25 '23 13:05 joyas11

On Thu, 25 May 2023 at 9:29 PM, Mariotaku @.***> wrote:

@trxshnumb https://github.com/trxshnumb Did you try newer version, and does it work for you?

— Reply to this email directly, view it on GitHub https://github.com/mariotaku/ihsplay/issues/15#issuecomment-1563150389, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARATU2KRYOCF2RQMXA6YYJLXH56XNANCNFSM6AAAAAAUYTGRWU . You are receiving this because you were mentioned.Message ID: @.***>

i have the one from webos manager, ill try the one from github thanks for reminding me 😅

joyas11 avatar May 25 '23 16:05 joyas11

@trxshnumb I deleted my last reply because I was replying to a wrong repo. I know it feels like forever to wait, but there are multiple projects to update... The good news is I'm going to work on ihsplay next.

mariotaku avatar May 25 '23 16:05 mariotaku

On Thu, 25 May 2023 at 9:33 PM, Mariotaku @.***> wrote:

@trxshnumb https://github.com/trxshnumb I deleted my last reply because I was replying to a wrong repo. I know it feels like forever to wait, but there are multiple projects to update... The good news is I'm going to work on ihsplay next.

— Reply to this email directly, view it on GitHub https://github.com/mariotaku/ihsplay/issues/15#issuecomment-1563155489, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARATU2JJBNHKKLTUHF2BXXDXH57EDANCNFSM6AAAAAAUYTGRWU . You are receiving this because you were mentioned.Message ID: @.***>

glad to hear it, i use your app on daily basis, ill try the version from github and will update you. thank you for the efforts ❤️

joyas11 avatar May 25 '23 16:05 joyas11

@trxshnumb Hi, multiple issues have been fixed though I need to verify. Would you like to try if v0.2.4 fixed video freezing issue?

mariotaku avatar Jun 03 '23 16:06 mariotaku

Yes, I would.

On Sat, 3 Jun 2023 at 10:20 PM, Mariotaku @.***> wrote:

@trxshnumb https://github.com/trxshnumb Hi, multiple issues have been fixed though I need to verify. Would you like to try if v0.2.4 fixed video freezing issue?

— Reply to this email directly, view it on GitHub https://github.com/mariotaku/ihsplay/issues/15#issuecomment-1575063691, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARATU2J5UNJJHJB4TVEAEQTXJNTNDANCNFSM6AAAAAAUYTGRWU . You are receiving this because you were mentioned.Message ID: @.***>

joyas11 avatar Jun 03 '23 16:06 joyas11

@trxshnumb It should be available for download on GitHub or via homebrew channel.

mariotaku avatar Jun 04 '23 04:06 mariotaku

hey, its just showing black screen now after connecting on latest version, audio is working fine but the screen is black,

on old version everything works good except for that lag/freeze.

i have sent you the video on your mail

On Sun, 4 Jun 2023 at 10:03 AM, Mariotaku @.***> wrote:

@trxshnumb https://github.com/trxshnumb It should be available for download on GitHub or via homebrew channel.

— Reply to this email directly, view it on GitHub https://github.com/mariotaku/ihsplay/issues/15#issuecomment-1575381391, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARATU2JL2ODKJ7X3YCRKJ4TXJQFZNANCNFSM6AAAAAAUYTGRWU . You are receiving this because you were mentioned.Message ID: @.***>

joyas11 avatar Jun 04 '23 09:06 joyas11

@trxshnumb Hi, multiple issues have been fixed though I need to verify. Would you like to try if v0.2.4 fixed video freezing issue?

In v0.2.4 the stream will connect then the video will immediately freeze. input and sound continue to funciton.

In v0.2.5 the stream will instantly disconnect (with the disconnected error message). If I attempt to connect again the app will crash and go to the home screen.

sheaffe avatar Jun 06 '23 04:06 sheaffe

@sheaffe In actions page, there are snapshot in each run. Would you like to try some newest snapshots?

mariotaku avatar Jun 06 '23 06:06 mariotaku

@sheaffe In actions page, there are snapshot in each run. Would you like to try some newest snapshots?

Snapshot in 8ffa6fb had same instant disconnect issue. Snapshot in 2a11aed was able to connect and stream for about 10-30 seconds before the video froze. Input and sound continued. Same as the original error in 0.2.2 release.

sheaffe avatar Jun 06 '23 07:06 sheaffe

Jumping in on this one as I have this issue now.

Issue Summary

Start stream, looks great, after about 30 seconds the image will be frozen. Sound still goes through.

IHSplay Information

Version: 0.2.8 Audio Module: alsa Video Module: ndl-webos4 System: webOS 4.9.0 (HE_DTV_W19P_AFADABAA)

Computer Setup

Windows 10 NVIDIA GeForce RTX 3080 2560 x 1440 main monitor I have multiple monitors

Extra info you might like

Checking if I am sending image data still

So I looked a little in wireshark to see if it seemed like I was still sending image data and I would absolutely say I do. When frozen I can move something around on the screen to increase the length and amount of packets sent. I assume it saves by sending less when less is changing on screen :)

Looking for some logs maybe

So I looked around into /var/log/ and saw 3 files that got updated when I connected. Tailed vcpu1 and watched on my lgtv when the image froze and marked where that was. The only difference I see in rtd_vcpu1.log is it stops logging:

[00001238.255856](VCPU1):06952ac5|[VDEC]` [33]:H264_DEC: bitstream underflow in S0 (fullness: S0=616924152 S1=0)

In rtd_logfile.log it stops logging

<4>[00001238.745857](S-KER:0)#IHSVideo #[00000000]: Alignment trap: IHSVideo (2786) PC=0x96b6ee60 Instr=0x448c3004 Address=0x28220243 FSR 0x811

and starts sending

<5>[00001238.785857](S-KER:0)#hdmi_detect_tsk#[00000000]: [[HDMI][SCDCF]] SCDC STS HDMI[p1]: SCDCCR=fffe0005; CERCR=204a0840,TMDS_config(reg,FW40x,FWscrb,FWtoggle,UpdateCnt)=(00,0 ,0,0,0),scdc_update_flag(reg)=01; SCDC:0x10=01,0x20=00,0x21=00,0x30=00,0x40=0f,0x41=00;FSM=VIDEO_READY(6) <5>[00001238.785857](S-KER:0)#hdmi_task #[00000000]: [[HDMI][CEDF]] Signal STS HDMI[p1]: PhyState=9; CHAR(r,g,b)=(0,0,0)); BIT(r,g,b)=(0,0,0); BCH_ERR 1bit=0,2bit=0; AVMUTE=0 ; BGRHV=0x1f; MAC CRC0=0x0; FSM=VIDEO_READY(6) <0>[00001238.925857](S-KER:0)#audio_task #[00000000]: [[HDMI][AUDIOF]] Audio STS : FSM=5(CHECK), hbr=0/0, sample_cnt= 60702, hbr_sample_cnt=0, fifo_ov=0, type=2(LPCM), ch_mode

acpu is unaffected, seems to be sound stuff

This is just snippets of the log that I believe were relevant. rtd_acpu1.log rtd_logfile.log rtd_vcpu1.log

Micadurp avatar Jun 23 '23 11:06 Micadurp

@Micadurp Very interesting find! This indicates vdec encountered unrecovered errors. I'll try to find the reason.

mariotaku avatar Jun 23 '23 16:06 mariotaku

same issue for me, Version: 0.2.8, System: webOS 4.3.0 (HE_DTV_W180_AFABABAA). Host is on Windows 10, 1080ti, 2560 x 1440. It just randomly freezes during the play. Often I still have sound and controller inputs are working, but video shows only 1 stuck frame. Switching to the other app and back to ihsplay then clicking start streaming works, but really annoying.

GriwMF avatar Aug 02 '23 07:08 GriwMF

Same problem for me...installed today ...image freeze but sound and input work

Giantarqui avatar Sep 16 '23 17:09 Giantarqui

I've installed today and the same problem happened. The image freezes and then it disconnects...

thereis avatar Sep 23 '23 21:09 thereis

i have the same issue with 0.2.8, i remember in previous version it worked fine, just somotimes it frozen but now it every time like 2 or 5 minutes. Srry for the bad english. I love te project!!

Apalaco avatar Nov 01 '23 17:11 Apalaco

Please fix this bug first, it makes the app unusable

artem-vavilov avatar Nov 19 '23 15:11 artem-vavilov

@artem-vavilov Hi, please consider using https://github.com/mariotaku/moonlight-tv instead. This project is not very active recently because of many reasons. Moonlight + Sunshine has even better performance, which is at least 1 frame faster than Steam Link.

mariotaku avatar Nov 20 '23 00:11 mariotaku

Any updates on this? Moonlight is not an option for AMD GPU's.

DarthGigi avatar Dec 09 '23 13:12 DarthGigi

Any updates on this? Moonlight is not an option for AMD GPU's.

Sunshine will get you covered. It supports AMD/Intel GPU too.

mariotaku avatar Dec 10 '23 00:12 mariotaku

It's happening on my TV:

Version: 0.2.9 Audio Module: alsa Video Module: ndl-webos4 System: webOS 4.10.0 (HE_DTV_W19P_AFADATAA) Device: 49UM731C0SA Firmware: 05.40.10

I could'nt find the mentioned logs here, but here it what is in my dmesg after the freezing:

https://gist.github.com/klarkc/64612d94e669b3765549a405238715de

klarkc avatar Jan 18 '24 15:01 klarkc

@klarkc looks like some crash. This info is super useful and I'll take a look when I get some time.

mariotaku avatar Jan 18 '24 16:01 mariotaku