FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: Error invoking remote method 'generate-po-tokens': Error: VM operation timed out

Open ArthurKun21 opened this issue 9 months ago • 4 comments

Guidelines

Describe the bug

  1. Play any video
  2. Local API have problems fetching the video

Expected Behavior

Can play video just fine

Issue Labels

API issue

FreeTube Version

Nightly Build 5746 0be976f015f5cacc8392fccea30c5d52a9387507

Operating System Version

macOS Sonoma 14.6.1

Installation Method

.dmg

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

Nightly Build 5671 d95ddac6acbf64af1ac06aa29b5e728fbdeb1a62

Additional Information

bundle-1742229270363.log

This is my console log. I saw that the po-tokens got merged so I tried it out but appears to be having trouble loading videos.

I mainly tried music videos

https://youtu.be/RgKAFK5djSk

https://youtu.be/mNEUkkoUoIA

I downgraded after the filling of this issue

Nightly Build

ArthurKun21 avatar Mar 17 '25 16:03 ArthurKun21

Can you please provide a bit more information about your setup, as the issue is that it is hitting a timeout so it sounds like you must be using a slow setup? E.g. Which Mac model are you using? If it is an ARM one are you using the x64 build instead of the ARM one, if yes does the issue go away if you use the ARM build?

absidue avatar Mar 17 '25 17:03 absidue

Which Mac model are you using?

m1 air 8gb

If it is an ARM one are you using the x64 build instead of the ARM one, if yes does the issue go away if you use the ARM build?

I use x64. After switching to the arm builds appears to have been solved. Sorry for the trouble and much thanks.

For the apple gatekeeper

xattr -d com.apple.quarantine /Applications/FreeTube.app

ArthurKun21 avatar Mar 17 '25 18:03 ArthurKun21

Reopening to track the problem, as we still need to increase the timeout, but it is good to know that is really just caused by slow setups (emulating another architecture is always going to be slower than running an app with the native architecture).

absidue avatar Mar 18 '25 06:03 absidue

It have appeared once on my windows laptop

           Failed to load resource: the server responded with a status of 404 ()
renderer.js:2 Local API, poToken generation failed Error: Error invoking remote method 'generate-po-tokens': Error: VM operation timed out
    at IpcRenderer.invoke (node:electron/js2c/renderer_init:2:7078)
    at async tX (renderer.js:2:1837699)
    at async r.getVideoInformationLocal (renderer.js:2:2305493)
tX @ renderer.js:2
renderer.js:2 Error: Error invoking remote method 'generate-po-tokens': Error: VM operation timed out
    at IpcRenderer.invoke (node:electron/js2c/renderer_init:2:7078)
    at async tX (renderer.js:2:1837699)
    at async r.getVideoInformationLocal (renderer.js:2:2305493)
getVideoInformationLocal @ renderer.js:2
id.420129.xyz/api/v1/videos/t76yOE7gFz8?:1 

ArthurKun21 avatar Mar 19 '25 21:03 ArthurKun21

As i explain in the Matrix Chat, i also have this error. (

Error: Error invoking remote method 'generate-po-tokens': Error: VM operation timed out SyntaxError: Unexpected token 'A', "API disabled" is not valid JSON

) But the error only occurs when the program is running in the background.

My Setup:

Image

holzdieb avatar Mar 29 '25 07:03 holzdieb