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

[ffmpeg] avformat_find_stream_info crashes with Read_packet_Pointer_BytePointer_int #732

Closed
nanguantong opened this issue May 23, 2019 · 8 comments

Comments

@nanguantong
Copy link
Contributor

warning: Unexpected size of section .reg-xstate/49454' in core file. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by /resources/'.
Program terminated with signal SIGABRT, Aborted.

warning: Unexpected size of section `.reg-xstate/49454' in core file.
#0 0x00007f4ec8a65428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f4e6b5f5700 (LWP 49454))]
(gdb) bt
#0 0x00007f4ec8a65428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007f4ec8a6702a in _GI_abort () at abort.c:89
#2 0x00007f4ec835f365 in os::abort(bool) ()
from /resources/jdk8/jre/lib/amd64/server/libjvm.so
#3 0x00007f4ec8503403 in VMError::report_and_die() ()
from /resources/jdk8/jre/lib/amd64/server/libjvm.so
#4 0x00007f4ec836565f in JVM_handle_linux_signal ()
from /resources/jdk8/jre/lib/amd64/server/libjvm.so
#5 0x00007f4ec835b683 in signalHandler(int, siginfo*, void*) ()
from /resources/jdk8/jre/lib/amd64/server/libjvm.so
#6
#7 0x00007f4ec810ab1f in jni_invoke_nonstatic(JNIEnv
, JavaValue, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) ()
from /resources/jdk8/jre/lib/amd64/server/libjvm.so
#8 0x00007f4ec811079d in jni_CallIntMethodA ()
from /resources/jdk8/jre/lib/amd64/server/libjvm.so
#9 0x00007f4e50327c5c in ?? () from /root/.javacpp/cache/ffmpeg-4.1.3-1.5-linux-x86_64.jar/org/bytedeco/ffmpeg/linux-x86_64/libjniavformat.so
#10 0x00007f4e4ba83ab6 in avformat_find_stream_info ()
from /root/.javacpp/cache/ffmpeg-4.1.3-1.5-linux-x86_64.jar/org/bytedeco/ffmpeg/linux-x86_64/libavformat.so.58

@nanguantong
Copy link
Contributor Author

nanguantong commented May 24, 2019

It crashes when multi-stream opened with buffer callback occasionally.

@saudet
Copy link
Member

saudet commented May 24, 2019 via email

@saudet
Copy link
Member

saudet commented May 24, 2019

Duplicate of #683

@saudet saudet marked this as a duplicate of #683 May 24, 2019
@saudet saudet closed this as completed May 24, 2019
@nanguantong
Copy link
Contributor Author

nanguantong commented May 25, 2019

Duplicate of #683

This case is different with #683.

@saudet
Copy link
Member

saudet commented May 25, 2019

Make sure to use the snapshots:
http://bytedeco.org/builds/

@saudet
Copy link
Member

saudet commented May 27, 2019

Some codecs are also known to have issues with threads: bytedeco/javacv#1139
You'll need to provide synchronization in Java to work around those issues.

@nanguantong
Copy link
Contributor Author

Some codecs are also known to have issues with threads: bytedeco/javacv#1139
You'll need to provide synchronization in Java to work around those issues.

The stream is only wraped rtp with h264 codec

@saudet
Copy link
Member

saudet commented Jun 12, 2019

If synchronization at the Java level is unacceptable, make sure to report this issue upstream!

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

2 participants