Jump to content

Strange new issue. Stuck sessions


Recommended Posts

frankie64
Posted

I get these "stuck" sessions now, they do not clear unless i do a restart of the server. The other thing i noticed about this is that the time on this item is 43:21 out of 43:12.  Running 4.8.8.0 on ubuntu linux.

image.png.89baae97d50adad08c99f5f2e534faee.png

  • Agree 2
Posted
1 hour ago, frankie64 said:

the time on this item is 43:21 out of 43:12

Hi.  That part is just because of how that functionality works.  The apps don't report to the server every second so the server makes some assumptions about progress until the next time it hears from the app.

What happened on the app side?

frankie64
Posted

The app is closed, I almost think its specific to Roku, but now sure about that, this is a new issue however. The window will stay in that position forever, in fact I have also seen where when the user starts another episode it flips back and forth with the 'stale' one and the live one. 

Posted
3 minutes ago, frankie64 said:

I almost think its specific to Roku.

That's a good point. I see this issue with 1 of my users, and they are using Roku. I don't see this with other users. 

Happy2Play
Posted

I have yet to have a Roku session get stuck on dashboard but have seen my android tablet have stuck session but nothing ever consistent.  But yes that are several topics on stuck sessions on dashboard and all you can currently do is restart your server.

  • Like 1
Posted
49 minutes ago, frankie64 said:

The app is closed

Do you know exactly how it was closed?  Did they hit the "home" button right at the end of playback, perhaps?

frankie64
Posted
1 hour ago, ebr said:

Do you know exactly how it was closed?  Did they hit the "home" button right at the end of playback, perhaps?

No I do not, I have some roku sticks coming is so i will try this, however this is new behaviour.  (at least for me). And I do not know how to debug it.  everytime I see the stuck session is shows at the end of the program and also shows more time left vs total time of the show. which it should never do, you should never be able to get to 101% of the time.

Posted
1 minute ago, frankie64 said:

however this is new behaviour.

Yes, I believe the session not being removed from the dash is new with the 4.8.x release of the server but one thing I think may cause it would be what I asked about (hitting home right as the show was ending instead of exiting normally).

frankie64
Posted
5 hours ago, ebr said:

Yes, I believe the session not being removed from the dash is new with the 4.8.x release of the server but one thing I think may cause it would be what I asked about (hitting home right as the show was ending instead of exiting normally).

Also One of the things with that is, when I click on the stop button for the session, it has no effect. so the only way to clear the session is to restart the server.

Posted
20 hours ago, frankie64 said:

The app is closed, I almost think its specific to Roku, but now sure about that, this is a new issue however. The window will stay in that position forever, in fact I have also seen where when the user starts another episode it flips back and forth with the 'stale' one and the live one. 

I have the exact same issue, including it flipping back and forth. Yes, it is from Roku.

Posted
13 hours ago, frankie64 said:

when I click on the stop button for the session, it has no effect

That's because all that button does is send a message to the Roku telling it to stop but the Roku has already stopped so nothing happens.

If  you can reproduce this, please provide a server log and exact time for when the item got "stuck".

Thanks.

frankie64
Posted
20 hours ago, ebr said:

That's because all that button does is send a message to the Roku telling it to stop but the Roku has already stopped so nothing happens.

If  you can reproduce this, please provide a server log and exact time for when the item got "stuck".

Thanks.

ok session is stuck , last comment in the activity screen is :

"jjk is playing The Fosters (2013) - Escapes and Reversals on 40' RCA Roku TV

7/19/2024, 8:46:50 PM"

attached log files, coming from a roku. 

let me know if there is anything else you need.

embyserver-63856985059.txt

Posted

There doesn't appear to be any activity from a Roku in that log.  Are you sure it is the right one?

Happy2Play
Posted
10 hours ago, frankie64 said:

ok session is stuck , last comment in the activity screen is :

"jjk is playing The Fosters (2013) - Escapes and Reversals on 40' RCA Roku TV

7/19/2024, 8:46:50 PM"

attached log files, coming from a roku. 

let me know if there is anything else you need.

embyserver-63856985059.txt 3.09 MB · 1 download

That log ends at 2024-07-19 11:24:19.785 (am) so that session would be in the next log most likely.

frankie64
Posted
1 hour ago, Happy2Play said:

That log ends at 2024-07-19 11:24:19.785 (am) so that session would be in the next log most likely.

sorry about that. here is the next log session.

 

embyserver-63857030400.txt

Posted

Okay so it looks like the server returns a 500 on a request for subs to the Roku and then the Roku stops sending any more messages and the server eventually kills off the session.  Not sure what the reason for the 500 could be.

2024-07-19 21:33:25.208 Info Server: http/1.1 Response 500 to host7. Time: 4906ms. GET http://emby_remote_ip:9115/emby/videos/5364493/hls1/subs/474.vtt?PlaySessionId=3a50a8e99a8f403fbe057c38fd3dc344&VttTimestampMap=900000&CurrentSubtitleStreamIndex=100
...
2024-07-19 21:43:02.297 Info SessionManager: Session c44c78f9a4074942a1d87eb218c2da2a has gone idle while playing
2024-07-19 21:43:02.298 Info SessionManager: Removing playSession c44c78f9a4074942a1d87eb218c2da2a from session a6037f44abe8d9fe1d0829d80b48e13c

That may be the scenario that causes it to "stick" on the dash.

Posted

I get the same thing with my firestick, been doing it since last few uddates

  • 2 weeks later...
Posted

HI, we're looking into it. Thanks for reporting.

  • 2 weeks later...
plupien79
Posted

Any updates or tracking on this. I didn't know it was a Roku issue. I have 3 different Roku devices and my dashboard is a mess.

Posted
30 minutes ago, plupien79 said:

I didn't know it was a Roku issue

It is not really a Roku issue it is just a lot of people use Roku and seem to see this situation with it.  We've had many reports with other apps as well.

Posted
3 hours ago, plupien79 said:

Any updates or tracking on this. I didn't know it was a Roku issue. I have 3 different Roku devices and my dashboard is a mess.

Hi, we are looking into this. Thanks.

frankie64
Posted
3 hours ago, ebr said:

It is not really a Roku issue it is just a lot of people use Roku and seem to see this situation with it.  We've had many reports with other apps as well.

My current work around for this issue, is at the top of the console , just do a "restart emby server" and because the connections are not real, they will clear and then not come back.  The server restart does not seem to bother active sessions as they re-connect and start nicely.

 

  • 5 months later...
PuffyToesToo
Posted

I am having this issue just in the last 3-4 days. It happens on my server (but not my hubby's with the same Roku TVs), and I am getting it remotely from my family member who is using chrome. The issue is that I am watching a playlist, or even just several episodes of a show and the screen goes black and hangs. You can't do anything but exit Emby at that point as it is unresponsive. Just thought I would add to everyone else's reports.

  • Thanks 1
  • 5 weeks later...
Posted

I'm also experiencing this issue. I have users on iPhones and Androids; Sony and Apple TVs - the only sessions that hang are from Rokus or a Samsung "Smart TV".

pwhodges
Posted

If you end playback on the Roku by pressing the home button instead of the back button, the Emby client is killed stone dead and cannot notify the server about it.  The server is supposed to realise after a while, but it can't act too quickly in case you had pressed pause - there are still some issues with the logic concerned.

Paul

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...