obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
59.02k stars 7.86k forks source link

Error "failed to find locale/en-US.ini" and subsequent "Failed to load locale" error after task scheduler autostart #9413

Closed D4n2021 closed 1 year ago

D4n2021 commented 1 year ago

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

29.1.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/Hw9OxKpmUYB72d2Y

OBS Studio Crash Log URL

No response

Expected Behavior

OBS to autostart in background, or at all

Current Behavior

first error window "failed to find locale/en-US.ini" appears, then when clicking "OK", next error window "Failed to load locale" appears, then clicking "OK", OBS is entirely closed.

Steps to Reproduce

  1. create a task scheduler task with the settings compiled in the .xml file inside this .zip (or import that .xml file, it should work afaik? I exported it from task scheduler) OBS buffer.zip
  2. reboot PC
  3. error should appear after Windows login

Anything else we should know?

No response

D4n2021 commented 1 year ago

(User ID in XML redacted)

notr1ch commented 1 year ago

OBS expects to be started from its own working directory, this is not a bug.

D4n2021 commented 1 year ago

@notr1ch thanks for the super quick reply! Fixed it with shell:startup, that does work for some strange reason.

Arkenervs commented 7 months ago

@notr1ch thanks for the super quick reply! Fixed it with shell:startup, that does work for some strange reason.

sorry to reopen this, but how did you fix it with shell:startup for the task scheduler?

Ahh damn, after more research I found out my problem was that I used "C:\Program Files\obs-studio\bin\64bit\" and not C:\Program Files\obs-studio\bin\64bit\ for the startup location with task scheduler. Removing the "" let it work fine. I did it with the quotes because the default shortcut had the quotes in it.

D4n2021 commented 7 months ago

@notr1ch thanks for the super quick reply! Fixed it with shell:startup, that does work for some strange reason.

sorry to reopen this, but how did you fix it with shell:startup for the task scheduler?

Ahh damn, after more research I found out my problem was that I used "C:\Program Files\obs-studio\bin\64bit" and not C:\Program Files\obs-studio\bin\64bit\ for the startup location with task scheduler. Removing the "" let it work fine. I did it with the quotes because the default shortcut had the quotes in it.

aaah alright! Glad you figured it out. I'm using it as a "ShadowPlay" alternative, so I use "...\obs64.exe" --startreplaybuffer --disable-shutdown-check" commands. Those don't work in task scheduler afaik so that's why I had to switch to the shell:startup function. :(