Giter VIP home page Giter VIP logo

Comments (3)

DmitriySalnikov avatar DmitriySalnikov commented on September 27, 2024

I don't even have any idea what could be the reason to reset 🤷‍♂️. Try to read log.txt (%appdata%\OBSNotifier) immediately after the reset. Maybe some kind of exception will be mentioned there.
By itself, loading the settings is just reading a json file. Either the file is simply not being created for you, or something is deleting it, or the file is locked.
Although maybe I missed the formatting based on the region of the system somewhere and the wrong comma is written somewhere. You can also send a settings file (it stores the password, so you can delete it first).

from obsnotifier.

Metazolid avatar Metazolid commented on September 27, 2024

It just happened again, I had to kill OBSNotifier otherwise I couldn't open the .log
log.txt

Checking the settings.json (here attached as a .txt so Github lets me upload it), it seems just be reset to default. settings - Copy.json.txt

My uneducated guess is as follows; OBSNotifier sometimes, somehow starts the connection process before OBS is ready, can't establish a connection and during that process overwrites the settings file. I checked my startup programs to make sure I didnt add OBSN by mistake but it's only starting via the obs script. It might be noteworthy that I don't have a password set to connect OBSN to OBS with, I previously used it with a password but it apparently works without one as well so I didn't question it any further.

For now I'd probably just set the settings.json to read only and hope it helps, I dont know enough about programming or recreating the bug more frequently to see if a delay in the obs_notifier_autostart.lua could fix the issue.

from obsnotifier.

DmitriySalnikov avatar DmitriySalnikov commented on September 27, 2024

OBSNotifier sometimes, somehow starts the connection process before OBS is ready

The connection can occur only after authorization on the OBS webscoket server (key and password exchange).

For now I'd probably just set the settings.json to read only and hope it helps

most likely, this will lead to the fact that with such a "broken startup", the settings will be reset and they will return at the next startup.

It seems that I also had strange freezes and resets (I'm not sure about the reasons for the reset), but this usually happened when the websocket broke after several restarts due to a port change and debugging breakpoints after port change. The port remained blocked until the OS was rebooted.

And also obs-websocket-dotnet by BarRaider sometimes works strangely. I am especially "pleased" with the inconvenient connection and the output of 300 errors (literally) when disconnecting due to changing the password of the server.


I've run OBS 20 times and no problems. I tried to close it normally, killed it and OBSN separately, killed them at the same time. But no problem.

I had another guess. Perhaps you somehow save the settings before turning off the PC, but this saving does not have time to complete. When saving, the settings file is usually cleared, the file buffer is filled, and then this buffer is written to disk. Probably the file does not have time to be written (however, there are only a few KB).
Can you check for the contents of the file after your usual shutdown of the PC with the enabled OBSN before the reset occurs?

from obsnotifier.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.