Scanner failing to run

Hi,

Scanner is failing to run for some reason - running it from cmd gives the following:

pkg/prelude/bootstrap.js:1872
throw error;
^

Error: Malformed comment
Line: 25
Column: 5
Char:
at error (C:\snapshot\media-scanner\node_modules\sax\lib\sax.js:651:10)
at strictFail (C:\snapshot\media-scanner\node_modules\sax\lib\sax.js:677:7)
at SAXParser.write (C:\snapshot\media-scanner\node_modules\sax\lib\sax.js:1195:13)
at Parser.parseString (C:\snapshot\media-scanner\node_modules\xml2js\lib\parser.js:337:31)
at Parser.parseString (C:\snapshot\media-scanner\node_modules\xml2js\lib\parser.js:5:59)
at Object. (C:\snapshot\media-scanner\dist\config.js)
at Module._compile (pkg/prelude/bootstrap.js:1926:22)
at Module._extensions..js (node:internal/modules/cjs/loader:1166:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:834:12)
Emitted ‘error’ event on Parser instance at:
at Parser.parseString (C:\snapshot\media-scanner\node_modules\xml2js\lib\parser.js:341:16)
at Parser.parseString (C:\snapshot\media-scanner\node_modules\xml2js\lib\parser.js:5:59)
[… lines matching original stack trace …]
at Module._load (node:internal/modules/cjs/loader:834:12)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at Module.require (pkg/prelude/bootstrap.js:1851:31)
at require (node:internal/modules/cjs/helpers:102:18)

This is on all versions (I have tried 2.4.3, 2.5.0 and the latest build of 2.6.0). It appears to have been starting fairly recently - possibly with a windows update?

I am also seeing some weirdness with the BMD card in this system - I can loop a video for a decent while, but after a few hours the embedded audio stops. The only way to fix this is to quit the server and restart it. The card is a Decklink Duo, with Desktop Video 16.1 running. Machine is Windows 11 25H2. There is nothing noted in the logs when the audio disappears.

Anyone else seen anything like this?

Regards,

Mark Thackeray
Broadcast Engineer, Royal Opera House, London

I think the scanner config parser is a bit particular about line endings or spacing or something like that.

For the audio disappearing, I think I had this happen earlier today while debugging another issue. I think windows 11 has gotten a lot more aggressive with limiting timers of ‘non foreground’ processes, which casparcg appears to it as most of the time. I suggest try adding a screen consumer and keeping that in focus/visible. If that resolves it then I have a fix in the works that will likely resolve this properly.

Thanks for the hint on the config parser - I’d commented something out, which was causing this.

Regarding the audio - even with a screen consumer visible & focused, still seeing the audio stop after a number of hours (not consistent - can be anywhere between 4 and 10). I do suspect it is a Windows thing, as we started seeing it earlier this year.

Regards,

Mark