-
Notifications
You must be signed in to change notification settings - Fork 744
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
Crash of jvm on grabbing devices from ffmpeg response #1445
Comments
Please try to set the "org.bytedeco.javacpp.nopointergc" system property to "true". |
I uses this java.exe -Xmx512m -Xms512m -Dorg.bytedeco.javacpp.nopointergc=true Log in the 1st case shows that the JVM crash appears on the line Log in 2nd case shows the crash appears on the same line but with another output. |
The code above
Entry point - method scanLocalDevices Crash always appears inside private static void execute(String format, String option, String device) sometimes on execute("dshow", "list_devices", "dummy"); sometimes on execute("dshow", "list_options", "video=" + videoDevice.alternativeName); sometime on execute("dshow", "list_options", "audio=" + audioDevice.alternativeName); but in all 3 cases on the line res = avformat_open_input(context, device, inputFormat, options); and most of the crashes appears on Execute: dshow, list_options, audio=@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{736173BF-B41F-48A4-9ED3-D161B6D3FF4F} Hardware details extracted via ffmpeg comand line
FFmpeg command to extract the device details
|
The current crash appears with the next case:
The code, which works with grabber is stable, work 24x7. Crash appears only when I try to capture the ffmpeg log with devices
|
Hi All,
&
sometimes I catch crash of JVM on the line
1st case of the output before crash log.txt
hs_err_pid12876.log
2nd case of the output before crash log2.txt
Source code:
The text was updated successfully, but these errors were encountered: