Server: Console logging is strange on Windows 10

Created on 8 Mar 2018  路  11Comments  路  Source: CasparCG/server

Sometimes it just stops printing...

feedbacpull request wanted typbug

Most helpful comment

Fixed. 87791e16fbe1430f50811cfcd85c0abfcabee5d6

All 11 comments

I noticed this too at one point then couldn鈥檛 reproduce after restart. I have a suspicion it has to do with new line characters. There may have been a preceding new line in the commands I was pasting into console.

Seems to occur either when scrolling up to the very top, or stopping it from outputting (eg marking text) which it then never recovers from

Seems to occur either when scrolling up to the very top, or stopping it from outputting (eg marking text) which it then never recovers from

There may have been a preceding new line in the commands

Just FYI: can't reproduce this on linux/debian 9.3.

I've had this in several CasparCG builds and other console based app's on Windows 10. This solved it for me:

  1. Right Click the CasparCG Console window.
  2. Untick 'Quick Edit Mode'
  3. Untick 'Insert Mode'

Windows 10 behaviour for console windows is pretty poor, it also sometimes sleeps the window unless you do something to it (like press enter on it)

Would be nice if we could set these programmatically.

C++ isn't my thing at all. But the below unticks them both for me:

In ..\src\shell\main.cpp

Calling after print_info(); in run()

    HANDLE hConsole = GetStdHandle(STD_INPUT_HANDLE);
    SetConsoleMode(hConsole, ENABLE_EXTENDED_FLAGS);

source: https://docs.microsoft.com/en-us/windows/console/setconsolemode

At present this does prevent you typing in the console window however. Which is strange since manually disabling QuickEdit mode still allows you to type.

@Jeff-Clark-MST, thanks for helping out. @niklaspandersson will look at this issue this week and I'm sure this is helpful information!

Does this issue apply only on Windows 10 or Windows 7 as well?

I personally have only had the issue on windows 10.

I've had a number of console based apps (CasparCG server included) that have been used on both Windows 10 and Windows 7 machines and the console hanging until you give it focus or press a button on it has only occurred on Windows 10.

Thanks @Jeff-Clark-MST

Fixed. 87791e16fbe1430f50811cfcd85c0abfcabee5d6

Was this page helpful?
0 / 5 - 0 ratings

Related issues

premultiply picture premultiply  路  6Comments

malmgrenola picture malmgrenola  路  5Comments

saltomodules picture saltomodules  路  5Comments

ronag picture ronag  路  6Comments

krzyc picture krzyc  路  4Comments