-
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
JVM crash on grabber.stop() method #1568
Comments
Tracking code found that the exception is caused by |
Please send a pull request to fix this! Thanks |
I don't know how to fix this problem. That's why I put this bug to you |
A fatal error has been detected by the Java Runtime Environment:EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fff43bc935d, pid=2208, tid=0x0000000000000d68JRE version: Java(TM) SE Runtime Environment (8.0_231-b11) (build 1.8.0_231-b11)Java VM: Java HotSpot(TM) 64-Bit Server VM (25.231-b11 mixed mode windows-amd64 compressed oops)Problematic frame:C [msvcrt.dll+0x1935d]Failed to write core dump. Minidumps are not enabled by default on client versions of WindowsIf you would like to submit a bug report, please visit:http://bugreport.java.com/bugreport/crash.jspThe crash happened outside the Java Virtual Machine in native code.See problematic frame for where to report the bug.--------------- T H R E A D --------------- Current thread (0x0000000003726000): JavaThread "main" [_thread_in_native, id=3432, stack(0x0000000003120000,0x0000000003220000)] siginfo: ExceptionCode=0xc0000005, reading address 0x000000001ec0d2f8 Registers: Top of Stack: (sp=0x000000000321ed70) Instructions: (pc=0x00007fff43bc935d) Register to memory mapping: RAX=0x000000001d6c96c0 is an unknown value Stack: [0x0000000003120000,0x0000000003220000], sp=0x000000000321ed70, free space=1019k Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) --------------- P R O C E S S --------------- Java Threads: ( => current thread ) Other Threads: VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None heap address: 0x0000000081e00000, size: 2018 MB, Compressed Oops mode: 32-bit Heap: Card table byte_map: [0x0000000012be0000,0x0000000012fe0000] byte_map_base: 0x00000000127d1000 Marking Bits: (ParMarkBitMap*) 0x0000000057246d90 Polling page: 0x0000000001880000 CodeCache: size=245760Kb used=5075Kb max_used=5075Kb free=240684Kb Compilation events (10 events): |
Ok, I've fixed that in commit d6afac0. Thanks for reporting! |
Everything is OK. What resources do I need to release manually in RAM mode? |
As long as you call close()/stop() everything should get released. |
The fix has been released with JavaCV 1.5.5! Enjoy |
When I set grabber's ImageMode to FrameGrabber.ImageMode.RAW, the JVM crashes when I call the stop method.
The code looks like this
Drop this line "Comment it out grabber.setImageMode ( FrameGrabber.ImageMode.RAW ); "
Everything is OK
The text was updated successfully, but these errors were encountered: