Grayjay.Desktop icon indicating copy to clipboard operation
Grayjay.Desktop copied to clipboard

Youtube videos playing only 59 seconds before error.

Open eddie-who opened this issue 1 year ago • 2 comments

What happened?

Since today all Youtube videos only play 59 seconds, then error pop up to reaload video. Reloading does not work though.

Grayjay Version

2

What plugins are you seeing the problem on?

Youtube

Plugin Version

251

Which operating system are you using?

Windows

When do you experience the issue?

  • [ ] While logged in
  • [x] While logged out
  • [ ] N/A

Are you using a VPN?

No

Relevant log output

--- Script error details follow ---
   Error: No streams for requesting segment 7
       at executeRequest (Script [3]:2384:10) ->                        throw new ScriptException("No streams for requesting segment " + segment + ((overrideSegment && overrideSegment > 0) ? (", override: " + overrideSegment) : ""));^M
   --- End of inner exception stack trace ---^M
   at Microsoft.ClearScript.V8.SplitProxy.V8SplitProxyNative.Invoke(Action`1 action)^M
   at Microsoft.ClearScript.V8.SplitProxy.V8ContextProxyImpl.InvokeWithLock(Action action)^M
   at Microsoft.ClearScript.V8.V8ScriptEngine.ScriptInvoke[T](Func`1 func)^M
   at Microsoft.ClearScript.V8.V8ScriptItem.InvokeMethod(Boolean marshalResult, String name, Object[] args)^M
   at Grayjay.Engine.Models.Video.Additions.RequestExecutor.ExecuteRequest(String url, Dictionary`2 headers)^M
   at Grayjay.ClientServer.Controllers.DetailsController.<>c__DisplayClass30_0.<getRequestExecutorProxy>b__0(HttpProxyRequest req)^M
   at Grayjay.ClientServer.Proxy.HttpProxySession.RunAsync()^M
   at Grayjay.ClientServer.Proxy.HttpProxySession.<Start>b__7_0()
   --- Script error details follow ---
   Error: No streams for requesting segment 7
       at executeRequest (Script [3]:2384:10) ->                        throw new ScriptException("No streams for requesting segment " + segment + ((overrideSegment && overrideSegment > 0) ? (", override: " + overrideSegment) : ""));^M
i HttpProxy:Client accepted.^M
i Plugin [Youtube]:UMP: https://grayjay.internal/video/internal/segment.webm?segIndex=9^M
i Plugin [Youtube]:UMP [video]: disposing segment 8 (<9 || >15)^M
i Plugin [Youtube]:UMP [video] requesting segment: 9, time: 42367, itag: 247^M
v DetailsController:Progress https://www.youtube.com/watch?v=G-uN37qwW8s - 3356 - 2130 (PlaybackTracker: False)^M
i HttpProxy:Client accepted.^M
i Plugin [Youtube]:IGNORING itag:251, segmentIndex: 0, segmentLength: 2148, completed: true^M
i Plugin [Youtube]:IGNORING itag:251, segmentIndex: 5, segmentLength: 175118, completed: true^M
i Plugin [Youtube]:IGNORING itag:251, segmentIndex: 6, segmentLength: 173345, completed: true^M
i Plugin [Youtube]:UMP [video] stream resps:
itag:247, segmentIndex: 9, segmentLength: 703933, completed: true
itag:247, segmentIndex: 10, segmentLength: 559274, completed: true
itag:247, segmentIndex: 11, segmentLength: 663151, completed: true
itag:247, segmentIndex: 12, segmentLength: 636003, completed: true^M
i Plugin [Youtube]:Expected segment 9 got 9^M
i Plugin [Youtube]:Clearing POST ArrayBuffer?^M
i Plugin [Youtube]:UMP [video]: segment 9 - 703933^M
i Plugin [Youtube]:UMP: https://grayjay.internal/audio/internal/segment.webm?segIndex=7^M
i Plugin [Youtube]:UMP [audio] requesting segment: 7, time: 60001, itag: 251^M
i Plugin [Youtube]:UMP: No streams found?^M
i Plugin [Youtube]:UMP Resp: 47 12 10 5 8 0 16 176 9 18 3 16 240 46 58 2 8 2 53 11 8 232 7 18 6 8 136 39 16 163 99 35 47 8 152 117 16 152 117 24 224 212 3 58 35 16 0 66 28 8 251 1 16 149 176 195 217 155 223 130 3 26 14 67 103 103 75 65 50 82 121 89 120 73 66 77 81 200 1 1

eddie-who avatar Jan 17 '25 22:01 eddie-who

Hi, this has been finally fixed and new version of Grayjay has been released!

Go update and test and tell us if you find issues except the one below.

We are aware that age restricted, controversial videos, or other videos that require login may not yet work. We will be working on this next week.

The desktop release that is required for this fix will also be released next week.

Zvonimir-FUTO avatar Jan 17 '25 22:01 Zvonimir-FUTO

It goes fine for the first minute of the video, then it starts to re-download the whole video and re-start where it left off. Inreasing how it does it, first time once for few seconds, then more and more until it does it multiple times per seconds and when it's too much he consider the video is finished whatever the place he was and end playing (happens always at the same time, same frequency, same all)

[2026-06-18 00:37:45.169] [INFO] [Program] AppContext.BaseDirectory: /gnu/store/2cl8sh5qbmc1h6q4ibshhxa70in9mmlc-grayjay-12/lib/grayjay/
[2026-06-18 00:37:45.197] [INFO] [Program] Base Directory: /home/$USER/.local/share/Grayjay
[2026-06-18 00:37:45.198] [INFO] [Program] Temporary Directory: /home/$USER/.local/share/Grayjay/temp_files
[2026-06-18 00:37:45.202] [INFO] [ManagedThreadPool] New threadpool created (16)
[2026-06-18 00:37:45.265] [INFO] [Program] Log Level: Warning
[2026-06-18 00:37:45.265] [INFO] [Program] Log file path: /home/$USER/.local/share/Grayjay/log.txt
Log flusher exited with exception: System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at Grayjay.Desktop.POC.Log.<.ctor>b__7_0()
[2026-06-18 00:37:45.590] [WARNING] [StatePlatform] StatePlatform Initialize
[2026-06-18 00:37:46.379] [WARNING] [StateDownloads] Found 0 redundant downloaded files, deleting
[2026-06-18 00:37:47.362] [ERROR] [V8Converter] FAILED TO PARSE VALUE ON String (Value: [undefined])
[2026-06-18 00:37:47.471] [ERROR] [Program] Failed to check updates
Exception: No updater found
Stack Trace:    at Grayjay.ClientServer.Updater.HasUpdate()
   at Grayjay.Desktop.Program.<>c__DisplayClass13_0.<EntryPoint>b__13()
[2026-06-18 00:37:48.062] [ERROR] [StatePlatform] Home failed for plugin [Rumble]: Captcha required
Exception: Captcha required
Stack Trace:    at Grayjay.Engine.GrayjayPlugin.InterceptExceptions[T](Func`1 act, String script)
   at Grayjay.Engine.GrayjayPlugin.EvaluateRawObject(String script, Boolean nullable)
   at Grayjay.Engine.GrayjayPlugin.EvaluatePager[T](String js, Action`1 modifier)
   at Grayjay.Engine.GrayjayPlugin.<GetHome>b__102_0()
   at Grayjay.Engine.GrayjayPlugin.WithIsBusy[T](Func`1 work)
   at Grayjay.Engine.GrayjayPlugin.GetHome()
   at Grayjay.Desktop.POC.Port.States.StatePlatform.<>c__DisplayClass45_0.<GetHomeLazy>b__1(GrayjayPlugin client)
[2026-06-18 00:37:48.216] [ERROR] [StatePlatform] Home failed for plugin [Kick (Beta)]: Request [https://web.kick.com/api/v1/livestreams?page=1&limit=20&sort=featured_home&language=en] failed with code [403] (Line 328, Col 27)
Exception: Request [https://web.kick.com/api/v1/livestreams?page=1&limit=20&sort=featured_home&language=en] failed with code [403] (Line 328, Col 27)

[2026-06-18 00:38:55.123] [ERROR] [HttpProxy] Failed to handle data.
Exception: No streams for requesting segment 13 (Line 5410, Col 10)
   at Grayjay.Engine.Extensions.InvokeV8(IJavaScriptObject obj, PluginConfig config, String method, Object[] args)
   at Grayjay.Engine.Models.Video.Additions.RequestExecutor.ExecuteRequest(String url, Dictionary`2 headers)
   at Grayjay.ClientServer.Controllers.DetailsController.<>c__DisplayClass32_0.<getRequestExecutorProxy>b__0(HttpProxyRequest req)
   at Grayjay.ClientServer.Proxy.HttpProxySession.RunAsync()
   at Grayjay.ClientServer.Proxy.HttpProxySession.<Start>b__7_0()

[2026-06-18 00:39:58.998] [ERROR] [T] An exception occurred in the IPC
Exception: The operation was canceled.
Stack Trace:    at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.IO.Pipes.PipeStream.ReadAsyncCore(Memory`1 destination, CancellationToken cancellationToken)
   at System.IO.Stream.ReadAtLeastAsyncCore(Memory`1 buffer, Int32 minimumBytes, Boolean throwOnEndOfStream, CancellationToken cancellatio
nToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at DotCef.DotCefProcess.<Start>b__28_3()
[2026-06-18 00:39:59.003] [ERROR] [T] An exception occurred while handling UDP result: 'The operation was canceled.':    at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Net.Sockets.SocketReceiveFromResult>.GetResult(Int16 token)
   at System.Net.Sockets.UdpClient.<ReceiveAsync>g__WaitAndWrap|62_0(ValueTask`1 task)
   at FUTO.MDNS.MDNSListener.ReceiveLoopAsync(UdpClient client, CancellationToken cancellationToken) in /home/ubuntu/builds/t2_TNGVSV/0/videostreaming/Grayjay.Desktop/SyncServer/FUTO.MDNS/FUTO.MDNS/MDNSListener.cs:line 268
[2026-06-18 00:39:59.020] [ERROR] [WebSocketEndpoint] Failed to close socket
Exception: The WebSocket is in an invalid state ('Closed') for this operation. Valid states are: 'Open, CloseReceived'
Stack Trace:    at System.Net.WebSockets.WebSocketValidate.ThrowIfInvalidState(WebSocketState currentState, Boolean isDisposed, WebSocketState[] validStates)
   at System.Net.WebSockets.ManagedWebSocket.CloseOutputAsyncCore(WebSocketCloseStatus closeStatus, String statusDescription, CancellationToken cancellationToken)
   at Grayjay.ClientServer.WebSockets.WebSocketClient.Handle()
[2026-06-18 00:39:59.029] [ERROR] [HttpProxy] Failed to accept client.
Exception: Operation canceled
Stack Trace:    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Net.Sockets.Socket>.GetResult(Int16 token)
   at System.Net.Sockets.TcpListener.<AcceptTcpClientAsync>g__WaitAndWrap|32_0(ValueTask`1 task)
   at Grayjay.ClientServer.Proxy.HttpProxy.<Start>b__9_0()

bphd avatar Jun 18 '26 10:06 bphd