-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 Java using 1.5.4 on Mac with libx264 #1519
Comments
Please provide some code and data to reproduce this. |
Thank you for your reply.
|
Thanks! Can you reduce that to ~10 lines for code and provide a sample image that fails? |
I've taken some parts that it don't need, but it's difficult to fit in 10 lines.
|
It happens only when you use it with the rest of your code? It doesn't happen only with FFmpegFrameRecorder? |
*The expression is immature because English is not my mother tongue, but it is not malicious. |
Your English is fine, don't worry! Your code looks fine, but I cannot test it because some functions are missing. Because of that, I assume that FFmpegFrameRecorder works fine when used outside your application, am I correct? |
Thank you for my English, |
The tests here encode in H.264 and work just fine: |
Thank you for your information.
|
Thank you! I am able to reproduce this crash on Mac, but not on Linux. Indeed, it looks like the latest version of libx264 has issues on Mac. You might want to report this upstream: https://www.videolan.org/developers/x264.html In the meantime, OpenH264 doesn't seem to have any issues on Mac, so you could use that codec if that one is OK as well: recorder.setVideoCodecName("libopenh264"); |
Thank you for reporting the workaround and confirmation. |
…ork around crashes (issue bytedeco/javacv#1519)
If you need libx264, I was able to work around this by disabling assembly optimizations. |
The workaround has been released with JavaCV 1.5.5, but it would still be nice to figure out how we could use the assembly optimizations even on Mac. In any case, thanks for reporting this problem! |
No really important, but a bit funny: 1.5.4 actually works on Macs with M1 chips, when translated with Rosetta 2 (still doesn't work on Intel Macs, of course). |
There seems to be a problem with the FFmpegFrameRecorder that worked fine from 1.5.1 to 1.5.3.
It seems that there is no problem if the codec is mpeg4, but when I use h264, Java will be crashed.
I would appreciate it if you could let me know if there is a workaround.
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x00000001c7c9ed92, pid=6835, tid=0x000000000001e60f
JRE version: Java(TM) SE Runtime Environment (8.0_172-b11) (build 1.8.0_172-b11)
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.172-b11 mixed mode bsd-amd64 compressed oops)
Problematic frame:
C [libavcodec.58.dylib+0xfc2d92] aver_isf_history+0x2ae3a2
The text was updated successfully, but these errors were encountered: