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

Partial file crash #1444

Open
baoizbak opened this issue Nov 22, 2022 · 3 comments
Open

Partial file crash #1444

baoizbak opened this issue Nov 22, 2022 · 3 comments

Comments

@baoizbak
Copy link

Expected behaviour

Caspar to stop the current consumer or load the background clip if it's there. Older version of caspar just stop playing the clip (Froze). Something like this we can detect and tell caspar to load a new clip. There are unforseen circumstance that we failed to check for partial files.

Current behaviour

When playing a partial file, caspar will crash when it reached to the end.


Steps to reproduce

  1. Play any partial file (incomplete download)
  2. ...

Environment

  • Commit: 670bec3 Dev
  • Server version: Server 2.3.3
  • Operating system: [e.g. Windows 10]

Screenshots

[2022-09-12 13:19:32.461] [info] Received message from Console: play 1-10 partial\r\n
[2022-09-12 13:19:32.744] [warning] ffmpeg[partial.mp4|0.0000/706.4724] Latency: 4
[2022-09-12 13:19:40.131] [info] Received message from Console: add 1 screen\r\n
[2022-09-12 13:19:40.134] [info] Screen consumer [1|NTSC] Initialized.
[2022-09-12 13:21:10.667] [info] Received message from Console: loadbg 1-10 partial\r\n
[2022-09-12 13:21:11.183] [error] [ffmpeg] [mov,mp4,m4a,3gp,3g2,mj2 @ 000001D0C27C7A00] stream 1, offset 0xab3855f: partial file
[2022-09-12 13:21:11.183] [error]
[2022-09-12 13:21:11.184] [error] Exception: C:\Program Files (x86)\Jenkins\workspace\casparcg-server-dep\master\src\modules\ffmpeg\producer\av_input.cpp(64): Throw in function auto _cdecl caspar::ffmpeg::Input::{ctor}::<lambda_fb20fb3672206abbfd8e24b0901bbc5b>::operator ()(void) const
[2022-09-12 13:21:11.184] [error] Dynamic exception type: class boost::exception_detail::clone_impl
[2022-09-12 13:21:11.184] [error] [struct boost::errinfo_api_function
* _ptr64] = av_read_frame
[2022-09-12 13:21:11.184] [error] [struct boost::errinfo_errno
* __ptr64] = 1094995529, "Unknown error"
[2022-09-12 13:21:11.184] [error] [struct caspar::ffmpeg::tag_ffmpeg_errn_info * __ptr64] = -1094995529
[2022-09-12 13:21:11.184] [error] [struct caspar::tag_stacktrace_info * __ptr64] = 0# 0x00007FF60689A53E in casparcg
[2022-09-12 13:21:11.184] [error] 1# 0x00007FF6068D35B0 in casparcg
[2022-09-12 13:21:11.184] [error] 2# 0x00007FF606AE7799 in casparcg
[2022-09-12 13:21:11.184] [error] 3# 0x00007FF606C6D953 in casparcg
[2022-09-12 13:21:11.184] [error] 4# configthreadlocale in ucrtbase
[2022-09-12 13:21:11.184] [error] 5# BaseThreadInitThunk in KERNEL32
[2022-09-12 13:21:11.184] [error] 6# RtlUserThreadStart in ntdll
[2022-09-12 13:21:11.184] [error]
[2022-09-12 13:21:11.184] [error]

[2022-09-12 13:21:11.184] [error] 0# 0x00007FF60689A53E in casparcg
[2022-09-12 13:21:11.184] [error] 1# 0x00007FF606899E6F in casparcg
[2022-09-12 13:21:11.184] [error] 2# 0x00007FF606E27F27 in casparcg
[2022-09-12 13:21:11.184] [error] 3# _C_specific_handler in VCRUNTIME140
[2022-09-12 13:21:11.184] [error] 4# _FrameUnwindFilter in VCRUNTIME140
[2022-09-12 13:21:11.184] [error] 5# RtlCaptureContext2 in ntdll
[2022-09-12 13:21:11.184] [error] 6# 0x00007FF606AE7899 in casparcg
[2022-09-12 13:21:11.184] [error] 7# 0x00007FF606C6D953 in casparcg
[2022-09-12 13:21:11.184] [error] 8# configthreadlocale in ucrtbase
[2022-09-12 13:21:11.184] [error] 9# BaseThreadInitThunk in KERNEL32
[2022-09-12 13:21:11.184] [error] 10# RtlUserThreadStart in ntdll
[2022-09-12 13:21:11.184] [error]
[2022-09-12 13:21:14.442] [error] [ffmpeg] [h264 @ 000001D0CE125E00] Invalid NAL unit size (14663 > 302).
[2022-09-12 13:21:14.442] [error]
[2022-09-12 13:21:14.442] [error] [ffmpeg] [h264 @ 000001D0CE125E00] Error splitting the input into NAL units.
[2022-09-12 13:21:14.442] [error]
[2022-09-12 13:21:14.477] [fatal] #######################
[2022-09-12 13:21:14.477] [fatal] UNHANDLED EXCEPTION:
[2022-09-12 13:21:14.477] [fatal] Adress:00007FFDDE184FD9
[2022-09-12 13:21:14.477] [fatal] Code:3765269347
[2022-09-12 13:21:14.477] [fatal] Flag:1
[2022-09-12 13:21:14.477] [fatal] Info:00000029081FF550
[2022-09-12 13:21:14.477] [fatal] Continuing execution.
[2022-09-12 13:21:14.477] [fatal] #######################

@Julusian
Copy link
Member

Could you provide a sample file that reproduces this crash?

@baoizbak
Copy link
Author

@jpc0
Copy link
Contributor

jpc0 commented Mar 21, 2023

This seems like it's linked to #1451 and #1460, may even be the exact same issue as #1460

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants