OBS Crashes after setting up Clock.html in Scenes Collection

USAACE PAO

New Member
Background: latest version of OBS installed on Win 11. All software updated to current versions. No active/connected video sources.

Successfully setup a Time and Date Overlay using this guide: https://obsproject.com/forum/resources/time-and-date-overlay-updated.1461

Was adding the script in all my scene collections when OBS crashed (dump attached). OBS will not start in normal or safe mode, including after computer restart.

Renamed the Time and Date Overlay source file (.html) to keep it from loading at startup. No love, either in normal or safe mode.

Really could use the Team's help, have two livestreams tomorrow.
 

Attachments

  • Crash 2024-07-18 09-59-21.txt
    150 KB · Views: 52
Last edited:

USAACE PAO

New Member
The .html file will not upload, contents follow:

<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>A simple clock</title>

</head>

<body translate="no" >
<div id="output"
style= "display: inline-block;
font-family: monospace;
font-size: 120px;
text-align: left;
color: white;
border-radius: 10px;
padding: 10px;
background-color: rgba(0, 0, 0, 0.75);">
</div>

<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js'></script>
<script>
// https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript
var urlParams;
(function () {
var match,
pl = /\+/g, // Regex for replacing addition symbol with a space
search = /([^&=]+)=?([^&]*)/g,
decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); },
query = window.location.search.substring(1);
urlParams = {};
while (match = search.exec(query))
urlParams[decode(match[1])] = decode(match[2]);
})();
var output = document.getElementById("output");
if (urlParams["style"]) output.setAttribute("style", urlParams["style"]);
if (urlParams["bodyStyle"]) document.body.setAttribute("style", urlParams["bodyStyle"]);
var c;
setInterval(
c = function() {
output.innerText = moment().format(urlParams["format"] || 'dddd DDMMMMYY HH:mm:ss');
// output.innerText = moment().format(urlParams["format"] || '');
}, 1000);
c();
</script>
</body>
</html>
 
Top