Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLS command randomly fails and throws an exception #30

Open
dotarmin opened this issue Dec 6, 2018 · 4 comments
Open

CLS command randomly fails and throws an exception #30

dotarmin opened this issue Dec 6, 2018 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@dotarmin
Copy link
Contributor

dotarmin commented Dec 6, 2018

Expected behaviour

CLS should return a list of available media files.

Current behaviour

CLS works sometimes and sometimes it randomly throws an exception and makes server v2.2 return 501 CLS FAILED.


Steps to reproduce

  1. Start media-scanner
  2. Start Server v2.2
  3. Write CLS a couple of times or have another system doing it.

From CasparCG Server v2.2 log

[2018-12-06 13:12:26.715] [error]   Exception: C:\Program Files (x86)\Jenkins\workspace\casparcg-server-dep\master\src\protocol\util\http_request.cpp(71): Throw in function struct caspar::http::HTTPResponse __cdecl caspar::http::request(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)
[2018-12-06 13:12:26.715] [error]   Dynamic exception type: class boost::exception_detail::clone_impl<struct caspar::io_error>
[2018-12-06 13:12:26.715] [error]   [struct caspar::tag_msg_info * __ptr64] = Invalid Response
[2018-12-06 13:12:26.715] [error]   [struct caspar::tag_stacktrace_info * __ptr64] =  0# 0x000000013FA2983E in casparcg
[2018-12-06 13:12:26.715] [error]    1# 0x000000013FA58BE0 in casparcg
[2018-12-06 13:12:26.715] [error]    2# 0x000000013FBDE13E in casparcg
[2018-12-06 13:12:26.715] [error]    3# 0x000000013FB9C0FB in casparcg
[2018-12-06 13:12:26.715] [error]    4# 0x000000013FB93576 in casparcg
[2018-12-06 13:12:26.715] [error]    5# 0x000000013FB8C1CC in casparcg
[2018-12-06 13:12:26.715] [error]    6# 0x000000013FBD5D9D in casparcg
[2018-12-06 13:12:26.715] [error]    7# 0x000000013FBD4DAB in casparcg
[2018-12-06 13:12:26.715] [error]    8# 0x000000013FA923C8 in casparcg
[2018-12-06 13:12:26.715] [error]    9# 0x000000013FB0DD9F in casparcg
[2018-12-06 13:12:26.715] [error]   10# 0x000000013FB0AF80 in casparcg
[2018-12-06 13:12:26.715] [error]   11# 0x000000013FA24559 in casparcg
[2018-12-06 13:12:26.715] [error]   12# o__realloc_base in ucrtbase
[2018-12-06 13:12:26.715] [error]   13# BaseThreadInitThunk in kernel32
[2018-12-06 13:12:26.715] [error]   14# RtlUserThreadStart in ntdll
[2018-12-06 13:12:26.715] [error]   
[2018-12-06 13:12:26.715] [error]   
[2018-12-06 13:12:26.715] [error]    0# 0x000000013FA2983E in casparcg
[2018-12-06 13:12:26.715] [error]    1# 0x000000013FA2916F in casparcg
[2018-12-06 13:12:26.715] [error]    2# 0x000000013FF33AD7 in casparcg
[2018-12-06 13:12:26.715] [error]    3# 0x000007FEF5BD1030 in VCRUNTIME140
[2018-12-06 13:12:26.715] [error]    4# is_exception_typeof in VCRUNTIME140
[2018-12-06 13:12:26.715] [error]    5# RtlRestoreContext in ntdll
[2018-12-06 13:12:26.715] [error]    6# 0x000000013FBD4DAB in casparcg
[2018-12-06 13:12:26.715] [error]    7# 0x000000013FA923C8 in casparcg
[2018-12-06 13:12:26.715] [error]    8# 0x000000013FB0DD9F in casparcg
[2018-12-06 13:12:26.715] [error]    9# 0x000000013FB0AF80 in casparcg
[2018-12-06 13:12:26.715] [error]   10# 0x000000013FA24559 in casparcg
[2018-12-06 13:12:26.715] [error]   11# o__realloc_base in ucrtbase
[2018-12-06 13:12:26.715] [error]   12# BaseThreadInitThunk in kernel32
[2018-12-06 13:12:26.715] [error]   13# RtlUserThreadStart in ntdll
[2018-12-06 13:12:26.715] [error]   
[2018-12-06 13:12:26.777] [error]   Failed to execute command: CLS
[2018-12-06 13:12:26.777] [info]    Sent message to 10.23.62.1:501 CLS FAILED\r\n
@dotarmin dotarmin changed the title CLS related exception in the server CLS command randomly fails and throws an exception Dec 6, 2018
@ronag
Copy link
Member

ronag commented Dec 6, 2018

Invalid Response probably a problem with media scanner

@ronag
Copy link
Member

ronag commented Dec 6, 2018

Too bad the error doesn't print what the response code was...

@dotarmin
Copy link
Contributor Author

dotarmin commented Dec 6, 2018

Invalid Response probably a problem with media scanner

Do you want the issue in the media-scanner repo instead?

Too bad the error doesn't print what the response code was...

Sent message to 10.23.62.1:501 CLS FAILED\r\n or are you thinking of the http response code it-self?

@ronag
Copy link
Member

ronag commented Dec 9, 2018

@dotarmin this seems related to media-scanner. Move issue there and maybe someone else can look at it?

@ronag ronag removed their assignment Dec 9, 2018
@dotarmin dotarmin transferred this issue from CasparCG/server Dec 10, 2018
@dotarmin dotarmin added the bug Something isn't working label Dec 10, 2018
@dotarmin dotarmin added this to the 2.2.0 milestone Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants