bdogan / go-atem

BlackMagicDesign ATEM switcher protocol implementation. Written in go.
13 stars 4 forks source link

PreviewInput/ProgramInput nil on "connected" event #4

Open chxmbley opened 5 years ago

chxmbley commented 5 years ago

Occasionally, atem.emit panics with signal SIGSEGV: segmentation violation due to the .Call(in) at this line

chxmbley commented 5 years ago

Actually, .Call is at the bottom of the stack trace. This is the line at the top of the trace 😕

chxmbley commented 5 years ago

Problem was caused by atem.ProgramInput occasionally being nil. Added a check in 95b9f33 to catch this.

bdogan commented 5 years ago

On "connected" event program or preview input must not actually be nil. I will check it later