gBroutin / gstreamer-java

Automatically exported from code.google.com/p/gstreamer-java
0 stars 0 forks source link

[How to fix] - EXCEPTION_ACCESS_VIOLATION (0xc0000005) #95

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have Windows 7 and Java-32 bit installed. Which is throwing this error, when 
i do manually it works. But whenever i use Gstreamer-java wrapper then it is 
causing the following.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x051f5993, pid=18440, 
tid=18500
#
# JRE version: 6.0_25-b06
# Java VM: Java HotSpot(TM) Client VM (20.0-b11 mixed mode, sharing windows-x86 
)
# Problematic frame:
# C  [libgstwinks.dll+0x5993]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The 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 (0x04a8b800):  JavaThread "Thread-3" [_thread_in_native, 
id=18500, stack(0x050d0000,0x05120000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000014

Registers:
EAX=0x00000000, EBX=0x05a936e0, ECX=0x057ad2f4, EDX=0x05acf358
ESP=0x0511f4d4, EBP=0x05bea1e0, ESI=0x052ac550, EDI=0x05a936e0
EIP=0x051f5993, EFLAGS=0x00010293

Top of Stack: (sp=0x0511f4d4)
0x0511f4d4:   052ac360 05c8fdd3 052ac360 05bea1e0
0x0511f4e4:   052ac360 00000001 0572a3eb 052ac360
0x0511f4f4:   05bea1e0 05c04568 052ac360 05bea1e0
0x0511f504:   0571814d 052ac360 05bea1e0 05bea1e0
0x0511f514:   05bea1e0 05bad088 0511f548 052bc738
0x0511f524:   0572a3eb 052ac360 05bea1e0 0511f620
0x0511f534:   00000000 0572a360 1000cbe7 05bad088
0x0511f544:   05bea1e0 0511f588 1000c7d9 1000c5c0 

Instructions: (pc=0x051f5993)
0x051f5973:   1f 05 50 68 4a 03 00 00 68 48 b0 1f 05 68 f8 b2
0x051f5983:   1f 05 6a 04 52 e8 2b 32 00 00 83 c4 20 8b 46 18
0x051f5993:   8b 48 14 8b 51 1c 52 ff 15 0c a0 1f 05 b8 01 00
0x051f59a3:   00 00 5e c3 cc cc cc cc cc cc cc cc cc 56 e8 ba 

Register to memory mapping:

EAX=0x00000000 is an unknown value
EBX=0x05a936e0 is an unknown value
ECX=0x057ad2f4 is an unknown value
EDX=0x05acf358 is an unknown value
ESP=0x0511f4d4 is pointing into the stack for thread: 0x04a8b800
EBP=0x05bea1e0 is an unknown value
ESI=0x052ac550 is an unknown value
EDI=0x05a936e0 is an unknown value

Stack: [0x050d0000,0x05120000],  sp=0x0511f4d4,  free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libgstwinks.dll+0x5993]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.sun.jna.Function.invokeInt(I[Ljava/lang/Object;)I+0
j  
com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;Z)Ljava/lang/Obj
ect;+315
j  
com.sun.jna.Function.invoke(Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)
Ljava/lang/Object;+214
j  
com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[
Ljava/lang/Object;)Ljava/lang/Object;+341
j  
org.gstreamer.lowlevel.GNative$Handler.invoke(Ljava/lang/Object;Ljava/lang/refle
ct/Method;[Ljava/lang/Object;)Ljava/lang/Object;+241
j  
$Proxy3.gst_element_send_event(Lorg/gstreamer/Element;Lorg/gstreamer/Event;)Z+20
j  org.gstreamer.Element.sendEvent(Lorg/gstreamer/Event;)Z+5
j  main.main.myPreset()V+51
j  socket.UDPServer.waitForConnections()V+72
j  main.main$2.run()V+28
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x04bcb800 JavaThread "gstreamer service thread 1" daemon [_thread_blocked, id=18524, stack(0x05d70000,0x05dc0000)]
  0x00c69400 JavaThread "DestroyJavaVM" [_thread_blocked, id=18448, stack(0x00390000,0x003e0000)]
  0x04a8c000 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=18504, stack(0x05160000,0x051b0000)]
=>0x04a8b800 JavaThread "Thread-3" [_thread_in_native, id=18500, 
stack(0x050d0000,0x05120000)]
  0x04a85c00 JavaThread "Thread-2" [_thread_in_native, id=18496, stack(0x05040000,0x05090000)]
  0x024ff800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=18492, stack(0x04fb0000,0x05000000)]
  0x024ff000 JavaThread "AWT-Shutdown" [_thread_blocked, id=18488, stack(0x04dd0000,0x04e20000)]
  0x024fe000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=18484, stack(0x04d80000,0x04dd0000)]
  0x024a6c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=18476, stack(0x04950000,0x049a0000)]
  0x024a0800 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=18472, stack(0x048c0000,0x04910000)]
  0x0249f800 JavaThread "Attach Listener" daemon [_thread_blocked, id=18468, stack(0x04830000,0x04880000)]
  0x0249c800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=18464, stack(0x047a0000,0x047f0000)]
  0x02495800 JavaThread "Finalizer" daemon [_thread_blocked, id=18460, stack(0x04710000,0x04760000)]
  0x02494400 JavaThread "Reference Handler" daemon [_thread_blocked, id=18456, stack(0x04680000,0x046d0000)]

Other Threads:
  0x02458000 VMThread [stack: 0x045f0000,0x04640000] [id=18452]
  0x024ba400 WatcherThread [stack: 0x049e0000,0x04a30000] [id=18480]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 4928K, used 1500K [0x244d0000, 0x24a20000, 0x29a20000)
  eden space 4416K,  22% used [0x244d0000, 0x245c7198, 0x24920000)
  from space 512K,  99% used [0x249a0000, 0x24a1fff0, 0x24a20000)
  to   space 512K,   0% used [0x24920000, 0x24920000, 0x249a0000)
 tenured generation   total 10944K, used 607K [0x29a20000, 0x2a4d0000, 0x344d0000)
   the space 10944K,   5% used [0x29a20000, 0x29ab7fb8, 0x29ab8000, 0x2a4d0000)
 compacting perm gen  total 12288K, used 2138K [0x344d0000, 0x350d0000, 0x384d0000)
   the space 12288K,  17% used [0x344d0000, 0x346e6b48, 0x346e6c00, 0x350d0000)
    ro space 10240K,  54% used [0x384d0000, 0x38a4e770, 0x38a4e800, 0x38ed0000)
    rw space 12288K,  55% used [0x38ed0000, 0x39574ac8, 0x39574c00, 0x39ad0000)

Code Cache  [0x02500000, 0x025f0000, 0x04500000)
 total_blobs=434 nmethods=240 adapters=130 free_code_cache=32573696 largest_free_block=0

Dynamic libraries:
0x00400000 - 0x00424000     c:\Program Files (x86)\Java\jdk1.6.0_25\bin\java.exe
0x775a0000 - 0x77720000     C:\Windows\SysWOW64\ntdll.dll
0x76bd0000 - 0x76ce0000     C:\Windows\syswow64\kernel32.dll
0x75630000 - 0x75676000     C:\Windows\syswow64\KERNELBASE.dll
0x753b0000 - 0x75450000     C:\Windows\syswow64\ADVAPI32.dll
0x74fa0000 - 0x7504c000     C:\Windows\syswow64\msvcrt.dll
0x75460000 - 0x75479000     C:\Windows\SysWOW64\sechost.dll
0x75080000 - 0x75170000     C:\Windows\syswow64\RPCRT4.dll
0x74c80000 - 0x74ce0000     C:\Windows\syswow64\SspiCli.dll
0x74c70000 - 0x74c7c000     C:\Windows\syswow64\CRYPTBASE.dll
0x7c340000 - 0x7c396000     c:\Program Files 
(x86)\Java\jdk1.6.0_25\jre\bin\msvcr71.dll
0x6d8a0000 - 0x6db4f000     c:\Program Files 
(x86)\Java\jdk1.6.0_25\jre\bin\client\jvm.dll
0x759d0000 - 0x75ad0000     C:\Windows\syswow64\USER32.dll
0x75ad0000 - 0x75b60000     C:\Windows\syswow64\GDI32.dll
0x77570000 - 0x7757a000     C:\Windows\syswow64\LPK.dll
0x76b30000 - 0x76bcd000     C:\Windows\syswow64\USP10.dll
0x74b50000 - 0x74b82000     C:\Windows\system32\WINMM.dll
0x74d70000 - 0x74dd0000     C:\Windows\system32\IMM32.DLL
0x75900000 - 0x759cc000     C:\Windows\syswow64\MSCTF.dll
0x74690000 - 0x746dc000     C:\Windows\system32\apphelp.dll
0x74780000 - 0x747b4000     C:\Windows\SysWOW64\nvinit.dll
0x6d850000 - 0x6d85c000     c:\Program Files 
(x86)\Java\jdk1.6.0_25\jre\bin\verify.dll
0x6d3d0000 - 0x6d3ef000     c:\Program Files 
(x86)\Java\jdk1.6.0_25\jre\bin\java.dll
0x75790000 - 0x75795000     C:\Windows\syswow64\PSAPI.DLL
0x6d890000 - 0x6d89f000     c:\Program Files (x86)\Java\jdk1.6.0_25\jre\bin\zip.dll
0x6d0b0000 - 0x6d1fb000     C:\Program Files (x86)\Java\jdk1.6.0_25\jre\bin\awt.dll
0x74090000 - 0x740e1000     C:\Windows\system32\WINSPOOL.DRV
0x754b0000 - 0x7560c000     C:\Windows\syswow64\ole32.dll
0x73e40000 - 0x73fde000 
    C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.76
01.17514_none_41e6975e2bd6f2b2\COMCTL32.dll
0x75680000 - 0x756d7000     C:\Windows\syswow64\SHLWAPI.dll
0x71000000 - 0x71013000     C:\Windows\system32\DWMAPI.DLL
0x71040000 - 0x710c0000     C:\Windows\system32\uxtheme.dll
0x6d2e0000 - 0x6d32f000     C:\Program Files 
(x86)\Java\jdk1.6.0_25\jre\bin\fontmanager.dll
0x68bb0000 - 0x68c08000     C:\Program Files (x86)\Common Files\microsoft 
shared\ink\tiptsf.dll
0x74ce0000 - 0x74d6f000     C:\Windows\syswow64\OLEAUT32.dll
0x74a40000 - 0x74a49000     C:\Windows\system32\version.dll
0x75e80000 - 0x76aca000     C:\Windows\syswow64\shell32.dll
0x6d6b0000 - 0x6d6c3000     C:\Program Files (x86)\Java\jdk1.6.0_25\jre\bin\net.dll
0x757a0000 - 0x757d5000     C:\Windows\syswow64\WS2_32.dll
0x756e0000 - 0x756e6000     C:\Windows\syswow64\NSI.dll
0x716e0000 - 0x7171c000     C:\Windows\system32\mswsock.dll
0x71150000 - 0x71156000     C:\Windows\System32\wship6.dll
0x71160000 - 0x71165000     C:\Windows\System32\wshtcpip.dll
0x74760000 - 0x74776000     C:\Windows\system32\CRYPTSP.dll
0x74720000 - 0x7475b000     C:\Windows\system32\rsaenh.dll
0x73b90000 - 0x73ba7000     C:\Windows\system32\USERENV.dll
0x74710000 - 0x7471b000     C:\Windows\system32\profapi.dll
0x70ff0000 - 0x71000000     C:\Windows\system32\NLAapi.dll
0x70cd0000 - 0x70ce0000     C:\Windows\system32\napinsp.dll
0x70cb0000 - 0x70cc2000     C:\Windows\system32\pnrpnsp.dll
0x72ea0000 - 0x72ee4000     C:\Windows\system32\DNSAPI.dll
0x70ca0000 - 0x70ca8000     C:\Windows\System32\winrnr.dll
0x716d0000 - 0x716dd000     C:\Windows\system32\wshbth.dll
0x70c70000 - 0x70c97000     C:\Program Files (x86)\Common Files\Microsoft 
Shared\Windows Live\WLIDNSP.DLL
0x71130000 - 0x7114c000     C:\Windows\system32\IPHLPAPI.DLL
0x71120000 - 0x71127000     C:\Windows\system32\WINNSI.DLL
0x70c20000 - 0x70c26000     C:\Windows\system32\rasadhlp.dll
0x70c30000 - 0x70c68000     C:\Windows\System32\fwpuclnt.dll
0x10000000 - 0x10054000 
    C:\Users\aviccs\AppData\Local\Temp\jna8564273336109287130.dll
0x05710000 - 0x057ba000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\bin\libgstreamer-0.10.dll
0x685c0000 - 0x686be000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\bin\libglib-2.0-0.dll
0x63a40000 - 0x63a8a000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\bin\libgobject-2.0-0.dll
0x65c40000 - 0x65c4d000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\bin\libgthread-2.0-0.dll
0x6dd00000 - 0x6dd0d000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\bin\libgmodule-2.0-0.dll
0x05830000 - 0x0598d000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\bin\libxml2-2.dll
0x66000000 - 0x660f2000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\bin\libiconv-2.dll
0x67880000 - 0x6789d000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\bin\z.dll
0x051f0000 - 0x05202000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\lib\gstreamer-0.10\libgstwinks.dll
0x74e00000 - 0x74f9d000     C:\Windows\syswow64\SETUPAPI.dll
0x75050000 - 0x75077000     C:\Windows\syswow64\CFGMGR32.dll
0x75610000 - 0x75622000     C:\Windows\syswow64\DEVOBJ.dll
0x71b40000 - 0x71b44000     C:\Windows\system32\ksuser.dll
0x053b0000 - 0x053c1000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\bin\libgstinterfaces-0.10.dll
0x05c80000 - 0x05cb4000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\bin\libgstbase-0.10.dll
0x05580000 - 0x055ae000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\lib\gstreamer-0.10\libgstcoreelements.dll
0x057c0000 - 0x057d5000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\lib\gstreamer-0.10\libgstvideoscale.dll
0x65680000 - 0x6570f000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\bin\liborc-0.4-0.dll
0x055f0000 - 0x055fc000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\bin\libgstvideo-0.10.dll
0x05a60000 - 0x05a71000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\lib\gstreamer-0.10\libgstjpeg.dll
0x6b800000 - 0x6b85b000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\bin\libjpeg-8.dll
0x05cc0000 - 0x05cc8000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\lib\gstreamer-0.10\libgstmultifile.dll
0x05cd0000 - 0x05d01000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\lib\gstreamer-0.10\libgstffmpegcolorspace.dll
0x05d10000 - 0x05d1b000     C:\Program Files 
(x86)\OSSBuild\GStreamer\v0.10.7\lib\gstreamer-0.10\libgstdirectdraw.dll
0x70f00000 - 0x70fe7000     C:\Windows\system32\DDRAW.dll
0x74510000 - 0x74516000     C:\Windows\system32\DCIMAN32.dll
0x6d400000 - 0x6d406000     c:\Program Files 
(x86)\Java\jdk1.6.0_25\jre\bin\jawt.dll
0x75480000 - 0x754ad000     C:\Windows\syswow64\WINTRUST.dll
0x75170000 - 0x7528d000     C:\Windows\syswow64\CRYPT32.dll
0x75450000 - 0x7545c000     C:\Windows\syswow64\MSASN1.dll

VM Arguments:
java_command: main.main
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.7\bin;C:\Program 
Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common 
Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA 
Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program 
Files\Intel\WiFi\bin\;C:\Program Files\Common 
Files\Intel\WirelessCommon\;C:\Program Files (x86)\Windows 
Live\Shared;C:\Program Files (x86)\Common Files\Roxio 
Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio 
Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio 
Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio 
Shared\OEM\12.0\DLLShared\;C:\Program Files 
(x86)\Roxio\OEM\AudioCore\;c:\Program Files (x86)\Java\jdk1.6.0_25\bin
USERNAME=aviccs
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel

---------------  S Y S T E M  ---------------

OS: Windows 7 Build 7601 Service Pack 1

CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, 
cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht

Memory: 4k page, physical 8291408k(6549620k free), swap 16580968k(14469052k 
free)

vm_info: Java HotSpot(TM) Client VM (20.0-b11) for windows-x86 JRE 
(1.6.0_25-b06), built on Apr 14 2011 01:04:32 by "java_re" with MS VC++ 7.1 
(VS2003)

time: Thu Jan 05 02:46:52 2012
elapsed time: 37 seconds

Original issue reported on code.google.com by iamtryin...@gmail.com on 5 Jan 2012 at 8:54

GoogleCodeExporter commented 8 years ago
Linux: No problem
Windows: This error caused by Gstreamer-Java when one of those are used:

1) Pipeline.sendEvent(new EOSEvent());

2) Gst.quit(); Gst.init();

3) Looking to kill this issue

Any more ideas please?

Original comment by iamtryin...@gmail.com on 5 Jan 2012 at 9:48

GoogleCodeExporter commented 8 years ago
Best thing i can do is:

if (myStock.getOs().equals("Linux") ) {
 Gst.quit();
 Gst.init();
 Pipeline.sendEvent(new EOSEvent());
} else {
 // Windows
 // Temporary i do not get that now but!!!
 // ??? what can i do ??? if i need them???
}

Original comment by iamtryin...@gmail.com on 5 Jan 2012 at 11:45

GoogleCodeExporter commented 8 years ago
currently it's not supported to run init multiple time. there is an unknown bug 
in the init/done code.

Original comment by lfar...@lfarkas.org on 13 Jan 2012 at 10:01