CasparCG / server

CasparCG Server is a Windows and Linux software used to play out professional graphics, audio and video to multiple outputs. It has been in 24/7 broadcast production since 2006. Ready-to-use downloads are available under the Releases tab https://casparcg.com.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2.4 - Decklink Unitializing

krushd opened this issue · comments

Expected behaviour

A "clean" start of all decklinkc hannels

### Current behaviour
This log is from a build of the latest cef-117 branch, but the same thing happesn with current master builds.
[2023-11-22 09:05:13.815] [info]    ############################################################################
[2023-11-22 09:05:13.815] [info]    CasparCG Server is distributed by the Swedish Broadcasting Corporation (SVT)
[2023-11-22 09:05:13.815] [info]    under the GNU General Public License GPLv3 or higher.
[2023-11-22 09:05:13.815] [info]    Please see LICENSE.TXT for details.
[2023-11-22 09:05:13.815] [info]    http://www.casparcg.com/
[2023-11-22 09:05:13.815] [info]    ############################################################################
[2023-11-22 09:05:13.815] [info]    Starting CasparCG Video and Graphics Playout Server 2.4.0 248d0b367 Dev
[2023-11-22 09:05:13.816] [info]    "...":
[2023-11-22 09:05:13.816] [info]    -----------------------------------------
[2023-11-22 09:05:13.816] [info]    <?xml version="1.0" encoding="utf-8"?>
[2023-11-22 09:05:13.816] [info]    <configuration>
[2023-11-22 09:05:13.816] [info]       <log-level>debug</log-level>
[2023-11-22 09:05:13.816] [info]       <paths>
[2023-11-22 09:05:13.816] [info]          <media-path>media/</media-path>
[2023-11-22 09:05:13.816] [info]          <log-path>log/</log-path>
[2023-11-22 09:05:13.816] [info]          <data-path>data/</data-path>
[2023-11-22 09:05:13.816] [info]          <template-path>template/</template-path>
[2023-11-22 09:05:13.816] [info]       </paths>
[2023-11-22 09:05:13.816] [info]       <html>
[2023-11-22 09:05:13.816] [info]          <enable-gpu>true</enable-gpu>
[2023-11-22 09:05:13.816] [info]       </html>
[2023-11-22 09:05:13.816] [info]       <lock-clear-phrase>secret</lock-clear-phrase>
[2023-11-22 09:05:13.816] [info]       <channels>
[2023-11-22 09:05:13.816] [info]          <channel>
[2023-11-22 09:05:13.816] [info]             <video-mode>1080p5994</video-mode>
[2023-11-22 09:05:13.816] [info]             <consumers>
[2023-11-22 09:05:13.816] [info]                <decklink>
[2023-11-22 09:05:13.816] [info]                   <device>1</device>
[2023-11-22 09:05:13.816] [info]                </decklink>
[2023-11-22 09:05:13.816] [info]             </consumers>
[2023-11-22 09:05:13.816] [info]          </channel>
[2023-11-22 09:05:13.816] [info]       </channels>
[2023-11-22 09:05:13.816] [info]       <controllers>
[2023-11-22 09:05:13.816] [info]          <tcp>
[2023-11-22 09:05:13.816] [info]             <port>5250</port>
[2023-11-22 09:05:13.816] [info]             <protocol>AMCP</protocol>
[2023-11-22 09:05:13.816] [info]          </tcp>
[2023-11-22 09:05:13.816] [info]       </controllers>
[2023-11-22 09:05:13.816] [info]       <amcp>
[2023-11-22 09:05:13.816] [info]          <media-server>
[2023-11-22 09:05:13.816] [info]             <host>localhost</host>
[2023-11-22 09:05:13.816] [info]             <port>8000</port>
[2023-11-22 09:05:13.816] [info]          </media-server>
[2023-11-22 09:05:13.816] [info]       </amcp>
[2023-11-22 09:05:13.816] [info]    </configuration>
[2023-11-22 09:05:13.816] [info]    -----------------------------------------
[2023-11-22 09:05:13.816] [info]    Initialized video modes.
[2023-11-22 09:05:14.018] [info]    Initializing OpenGL Device.
[2023-11-22 09:05:14.019] [info]    Initialized OpenGL 4.5.0 NVIDIA 535.98 NVIDIA Corporation
[2023-11-22 09:05:14.053] [info]    Initialized OpenGL Accelerated GPU Image Mixer for channel 1
[2023-11-22 09:05:14.053] [info]    video_channel[1|1080p5994] Successfully Initialized.
[2023-11-22 09:05:14.053] [info]    Initialized channels.
[2023-11-22 09:05:14.053] [info]    Initialized command repository.
[2023-11-22 09:05:14.053] [info]    Initialized image module.
[2023-11-22 09:05:14.053] [info]    Initialized ffmpeg module.
[2023-11-22 09:05:14.053] [info]    Initialized oal module.
[2023-11-[1122/090514.077:WARNING:policy_logger.cc(148)] :components\enterprise\browser\controller\chrome_browser_cloud_management_controller.cc(88) Could not create policy manager as CBCM is not enabled.
22 09:05:14.053] [info]    Initialized decklink module.
[2023-11-22 09:05:14.053] [info]    Initialized screen module.
[2023-11-22 09:05:14.054] [info]    Initialized newtek module.
[2023-11-22 09:05:14.054] [info]    Initialized artnet module.
[2023-11-22 09:05:14.096] [info]    Initialized html module.
[2023-11-22 09:05:14.097] [info]    Flash support is disabled
[2023-11-22 09:05:14.097] [info]    Initialized flash module.
[2023-11-22 09:05:14.098] [info]    Initialized bluefish module.
[2023-11-22 09:05:14.098] [info]    Initialized modules.
[2023-11-22 09:05:14.107] [debug]   [decklink_consumer] Destroying on asynchronous destruction thread.
[2023-11-22 09:05:14.108] [debug]   [decklink_consumer] Uninitializing.
[2023-11-22 09:05:14.108] [info]    [decklink_consumer] Uninitialized.
[2023-11-22 09:05:14.107] [error]   Exception: No diagnostic information available.
[2023-11-22 09:05:14.107] [error]    0# 0x00007FF602642C17 in casparcg
[2023-11-22 09:05:14.107] [error]    1# 0x00007FF6026426A5 in casparcg
[2023-11-22 09:05:14.107] [error]    2# 0x00007FF6028FA8D9 in casparcg
[2023-11-22 09:05:14.107] [error]    3# 0x00007FFA31EC1080 in VCRUNTIME140_1
[2023-11-22 09:05:14.107] [error]    4# _NLG_Return2 in VCRUNTIME140_1
[2023-11-22 09:05:14.107] [error]    5# RtlCaptureContext2 in ntdll
[2023-11-22 09:05:14.107] [error]    6# 0x00007FF6026699C5 in casparcg
[2023-11-22 09:05:14.107] [error]    7# 0x00007FF60266E099 in casparcg
[2023-11-22 09:05:14.107] [error]    8# 0x00007FF602644952 in casparcg
[2023-11-22 09:05:14.107] [error]    9# 0x00007FF602647E62 in casparcg
[2023-11-22 09:05:14.107] [error]   10# 0x00007FF6028B7E34 in casparcg
[2023-11-22 09:05:14.107] [error]   11# BaseThreadInitThunk in KERNEL32
[2023-11-22 09:05:14.107] [error]   12# RtlUserThreadStart in ntdll
[2023-11-22 09:05:14.107] [error]
[2023-11-22 09:05:14.172] [info]    Initialized startup producers.
[2023-11-22 09:05:14.172] [info]    Initialized controllers.
[2023-11-22 09:05:14.172] [info]    Initialized osc.

Steps to reproduce

  1. Add Decklink channels to config
  2. Open Caspar

Seeing errors with the original config which had multiple decklink channels - but cut it down to one with the same error. Tried various versions - but seems to happen with any 2.4 builds.

Environment

  • Commit: 248d0b3 & 25ba277
  • Server version: 2.4
  • Operating system: Windows 10
  • BMD Desktop Video: 12.5.1

I've been seeing this too, but restarting caspar usually fixes it so I haven't tried to figure out the cause yet

I haven't had luck with restarting caspar or the computer. This is with a Decklink Quad 2. I'll try testing another machine with a different card too.

Tried it out on another computer with the same errors. Tested on Windows 10 with Intel and AMD machines - with a Quad 2 and Duo 2 cards. On the 2nd machine, I tried restarting caspar several times - and out of 15 restarts, it did start without error 3 times. And a few times it errored for each channel started, and others just 1 of the 2.

Strangely I cant reproduce this today

@Julusian What version of Decklink drivers are you using?

One machine is windows 10 with a Quad 2 running 12.6, the other is ubuntu22.04 with a IP HD Optical running 12.7.1
I am pretty sure I saw this on both of them yesterday

I just upgraded to 12.7.1 on the Duo 2 card - now get the error less often. The Quad 2 on 12.7.1 on the other machine still gives the same error with no successful starts.

On a side note - seeing this message which might be an error in the warning logic (cef-117)?
[2023-11-23 10:46:35.559] [warning] Device supports video-format with conversion: 720p59.94

Could you give this debug build a try, hopefully it will produce more of a stack trace and give an idea of where to start looking in the code
https://builds.julusian.dev/casparcg/casparcg_server-debug-ff7791e4fe6e4c79ebe739397d25a41791d96aac.zip

Never mind, I managed to reproduce it and can see the cause

I'm glad you saw it! On both your debug build and then my debug build, I didn't get the error on the computer with the Quad 2.