bitfocus / companion-module-studiocoast-vmix

Studiocoast vMix module for Bitfocus Companion
MIT License
32 stars 10 forks source link

Message Prefix Issue using vmix 25.0.34 and latest Companion beta + Companion 2.3.1 #177

Closed stemcc closed 1 year ago

stemcc commented 1 year ago

Describe the bug

I'm receiving debug messages like the following:

22.09.20 21:28:41 instance(vmix_record): Unknown TCP message: Message prefix issue - Message length: 51776, Buffer length: 0, Full Message: <vmix><version>25.0.0.34</version><edition>Max</edition>

To Reproduce Sometimes it happens often, sometimes less often. I'm connected to ~ 4 different vmix instances and have seen this debug message for all of them at various times. It's not uncommon to lose button feedbacks or have severly delayed feedbacks on the vmix machines where this appears.

I can also regularly recreate this by creating a virtual input of a Mix input.

System (please complete the following information):

stemcc commented 1 year ago

I am also getting this in the debug log as soon as I add any video asset into the preset. The message is dumping the entire vMix XML but looks like the message ends before the XML does.

<overlay number="6" /><overla

This seems to be overloading companion, as when I get these flurry of messages that's when the feedbacks become spotty / stop working.

EDIT

I've now narrowed it down to when I add my 46th input. At 45, no prefix issue, but on the 46th, no matter the type, the debug log blows up and companion seems to get overloaded.

stemcc commented 1 year ago

This error has gone away after creating a fresh configuration and importing the pages I needed from another config. So I can only surmise this issue was caused by a corrupted configuration file.

stemcc commented 1 year ago

As a second and final follow up, this original error stems from the fact that the machine running companion could not quite keep up with the multiple vMix instances and # of inputs. Using a more powerful machine to run companion fixes the problem.