Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#9 Player: calling deallocate() only results in JVM crash

open
nobody
None
5
2006-12-08
2006-12-08
Andrey
No

JVM crashes when Player.deallocate() is being called w/o calling close() first.

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x10001259, pid=3008, tid=2440
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode, sharing)
# Problematic frame:
# C [jdshow.dll+0x1259]
#

--------------- T H R E A D ---------------

Current thread (0x00934450): JavaThread "Thread-6" daemon [_thread_in_native, id=2440]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000038

Registers:
EAX=0x00000008, EBX=0x26d11690, ECX=0x02e87150, EDX=0x02e87150
ESP=0x0353fb30, EBP=0x0353fb44, ESI=0x26d11690, EDI=0x00934450
EIP=0x10001259, EFLAGS=0x00010202

Top of Stack: (sp=0x0353fb30)
0x0353fb30: 02e87150 00948b10 00000001 02e87150
0x0353fb40: 00948b10 0353fb74 00c2832f 00934510
0x0353fb50: 0353fb88 0353fb84 0353fb58 00000000
0x0353fb60: 0353fb88 26d121a8 00000000 26d11690
0x0353fb70: 0353fb84 0353fbb0 00c22a8f 00000000
0x0353fb80: 00c26509 22bb7360 22c116a0 00000000
0x0353fb90: 22c10330 0353fb8c 26d0cab8 0353fbc0
0x0353fba0: 26d0e170 00000000 26d0cb48 0353fbc0

Instructions: (pc=0x10001259)
0x10001249: 89 45 f8 8b 4d fc 51 8b 55 f8 8b 02 8b 4d f8 51
0x10001259: ff 50 30 89 45 f4 8b 55 fc 52 8b 45 10 50 8b 4d

Stack: [0x03500000,0x03540000), sp=0x0353fb30, free space=254k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [jdshow.dll+0x1259]
j net.sf.jdshow.IMediaSeeking.GetCurrentPosition([J)I+0
j net.sf.fmj.ds.media.content.unknown.Handler.getMediaTime()Ljavax/media/Time;+16
j net.sf.fmj.ejmf.toolkit.media.AbstractClock.getMediaNanoseconds()J+1
j net.sf.fmj.ejmf.toolkit.gui.controls.StandardProgressControl.getTime()J+4
j net.sf.fmj.ejmf.toolkit.util.SourcedTimer.stop()V+17
j net.sf.fmj.ejmf.toolkit.gui.controls.StandardProgressControl.controllerUpdate(Ljavax/media/ControllerEvent;)V+49
j net.sf.fmj.ejmf.toolkit.media.ControllerEventQueue.dispatchEvent(Ljavax/media/ControllerEvent;)V+65
j net.sf.fmj.ejmf.toolkit.media.ControllerEventQueue.monitorEvents()V+76
j net.sf.fmj.ejmf.toolkit.media.ControllerEventQueue.run()V+1
v ~StubRoutines::call_stub
V [jvm.dll+0x86e84]
V [jvm.dll+0xddead]
V [jvm.dll+0x86d55]
V [jvm.dll+0x86ab2]
V [jvm.dll+0xa16b2]
V [jvm.dll+0x10f4ac]
V [jvm.dll+0x10f47a]
C [MSVCRT.dll+0x2a3b0]
C [kernel32.dll+0xb683]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j net.sf.jdshow.IMediaSeeking.GetCurrentPosition([J)I+0
j net.sf.fmj.ds.media.content.unknown.Handler.getMediaTime()Ljavax/media/Time;+16
j net.sf.fmj.ejmf.toolkit.media.AbstractClock.getMediaNanoseconds()J+1
j net.sf.fmj.ejmf.toolkit.gui.controls.StandardProgressControl.getTime()J+4
j net.sf.fmj.ejmf.toolkit.util.SourcedTimer.stop()V+17
j net.sf.fmj.ejmf.toolkit.gui.controls.StandardProgressControl.controllerUpdate(Ljavax/media/ControllerEvent;)V+49
j net.sf.fmj.ejmf.toolkit.media.ControllerEventQueue.dispatchEvent(Ljavax/media/ControllerEvent;)V+65
j net.sf.fmj.ejmf.toolkit.media.ControllerEventQueue.monitorEvents()V+76
j net.sf.fmj.ejmf.toolkit.media.ControllerEventQueue.run()V+1
v ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
0x00948ce0 JavaThread "Thread-18" daemon [_thread_blocked, id=1132]
0x00947600 JavaThread "DestroyJavaVM" [_thread_blocked, id=3524]
0x00935460 JavaThread "Thread-8" daemon [_thread_blocked, id=2960]
0x009342c0 JavaThread "Thread-7" daemon [_thread_blocked, id=3836]
=>0x00934450 JavaThread "Thread-6" daemon [_thread_in_native, id=2440]
0x00933cc0 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=2948]
0x0092de70 JavaThread "TimerQueue" daemon [_thread_blocked, id=3680]
0x0092be70 JavaThread "Thread-4" daemon [_thread_blocked, id=3960]
0x00928180 JavaThread "Thread-3" daemon [_thread_blocked, id=3108]
0x009290c0 JavaThread "Thread-2" daemon [_thread_blocked, id=3448]
0x009126f0 JavaThread "AWT-EventQueue-0" [_thread_in_vm, id=3520]
0x00910e70 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3600]
0x0090f2d0 JavaThread "AWT-Shutdown" [_thread_blocked, id=1532]
0x0090e370 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=4048]
0x009000d0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2620]
0x008ff5b0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=908]
0x008fe2f0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4056]
0x008fd930 JavaThread "Finalizer" daemon [_thread_blocked, id=1728]
0x008fc690 JavaThread "Reference Handler" daemon [_thread_blocked, id=228]

Other Threads:
0x008fb910 VMThread [id=3760]
0x00902c80 WatcherThread [id=3580]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 576K, used 252K [0x22b80000, 0x22c20000, 0x23060000)
eden space 512K, 44% used [0x22b80000, 0x22bb8800, 0x22c00000)
from space 64K, 41% used [0x22c10000, 0x22c16930, 0x22c20000)
to space 64K, 0% used [0x22c00000, 0x22c00000, 0x22c10000)
tenured generation total 1408K, used 797K [0x23060000, 0x231c0000, 0x26b80000)
the space 1408K, 56% used [0x23060000, 0x231274c8, 0x23127600, 0x231c0000)
compacting perm gen total 8192K, used 1763K [0x26b80000, 0x27380000, 0x2ab80000)
the space 8192K, 21% used [0x26b80000, 0x26d38ce0, 0x26d38e00, 0x27380000)
ro space 8192K, 63% used [0x2ab80000, 0x2b08d860, 0x2b08da00, 0x2b380000)
rw space 12288K, 46% used [0x2b380000, 0x2b920728, 0x2b920800, 0x2bf80000)

Dynamic libraries:
0x00400000 - 0x0040d000 F:\Program Files\Java\jre1.5.0_09\bin\javaw.exe
0x7c900000 - 0x7c9b0000 F:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000 F:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 F:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 F:\WINDOWS\system32\RPCRT4.dll
0x77d40000 - 0x77dd0000 F:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 F:\WINDOWS\system32\GDI32.dll
0x77c10000 - 0x77c68000 F:\WINDOWS\system32\MSVCRT.dll
0x76390000 - 0x763ad000 F:\WINDOWS\system32\IMM32.DLL
0x629c0000 - 0x629c9000 F:\WINDOWS\system32\LPK.DLL
0x74d90000 - 0x74dfb000 F:\WINDOWS\system32\USP10.dll
0x003c0000 - 0x003d7000 F:\Program Files\Common Files\Logitech\LVMVFM\LVPrcInj.dll
0x6d6c0000 - 0x6d85b000 F:\Program Files\Java\jre1.5.0_09\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 F:\WINDOWS\system32\WINMM.dll
0x6d280000 - 0x6d288000 F:\Program Files\Java\jre1.5.0_09\bin\hpi.dll
0x76bf0000 - 0x76bfb000 F:\WINDOWS\system32\PSAPI.DLL
0x6d690000 - 0x6d69c000 F:\Program Files\Java\jre1.5.0_09\bin\verify.dll
0x6d300000 - 0x6d31d000 F:\Program Files\Java\jre1.5.0_09\bin\java.dll
0x6d6b0000 - 0x6d6bf000 F:\Program Files\Java\jre1.5.0_09\bin\zip.dll
0x6d000000 - 0x6d169000 F:\Program Files\Java\jre1.5.0_09\bin\awt.dll
0x73000000 - 0x73026000 F:\WINDOWS\system32\WINSPOOL.DRV
0x774e0000 - 0x7761d000 F:\WINDOWS\system32\ole32.dll
0x73760000 - 0x737a9000 F:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000 F:\WINDOWS\system32\DCIMAN32.dll
0x6d240000 - 0x6d27f000 F:\Program Files\Java\jre1.5.0_09\bin\fontmanager.dll
0x74720000 - 0x7476b000 F:\WINDOWS\system32\MSCTF.dll
0x755c0000 - 0x755ee000 F:\WINDOWS\system32\msctfime.ime
0x7c9c0000 - 0x7d1d5000 F:\WINDOWS\system32\shell32.dll
0x77f60000 - 0x77fd6000 F:\WINDOWS\system32\SHLWAPI.dll
0x773d0000 - 0x774d3000 F:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
0x5d090000 - 0x5d12a000 F:\WINDOWS\system32\comctl32.dll
0x6d4c0000 - 0x6d4d3000 F:\Program Files\Java\jre1.5.0_09\bin\net.dll
0x71ab0000 - 0x71ac7000 F:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 F:\WINDOWS\system32\WS2HELP.dll
0x6d4e0000 - 0x6d4e9000 F:\Program Files\Java\jre1.5.0_09\bin\nio.dll
0x6d470000 - 0x6d495000 F:\Program Files\Java\jre1.5.0_09\bin\jsound.dll
0x6d4a0000 - 0x6d4a8000 F:\Program Files\Java\jre1.5.0_09\bin\jsoundds.dll
0x73f10000 - 0x73f6c000 F:\WINDOWS\system32\DSOUND.dll
0x77c00000 - 0x77c08000 F:\WINDOWS\system32\VERSION.dll
0x76c30000 - 0x76c5e000 F:\WINDOWS\system32\WINTRUST.dll
0x77a80000 - 0x77b14000 F:\WINDOWS\system32\CRYPT32.dll
0x77b20000 - 0x77b32000 F:\WINDOWS\system32\MSASN1.dll
0x76c90000 - 0x76cb8000 F:\WINDOWS\system32\IMAGEHLP.dll
0x72d20000 - 0x72d29000 F:\WINDOWS\system32\wdmaud.drv
0x72d10000 - 0x72d18000 F:\WINDOWS\system32\msacm32.drv
0x77be0000 - 0x77bf5000 F:\WINDOWS\system32\MSACM32.dll
0x77bd0000 - 0x77bd7000 F:\WINDOWS\system32\midimap.dll
0x10000000 - 0x10012000 G:\Programming\Java\SIP\fmj-examples\native\win32-x86\jdshow.dll
0x6d360000 - 0x6d366000 F:\Program Files\Java\jre1.5.0_09\bin\jawt.dll
0x76fd0000 - 0x7704f000 F:\WINDOWS\system32\CLBCATQ.DLL
0x77050000 - 0x77115000 F:\WINDOWS\system32\COMRes.dll
0x77120000 - 0x771ac000 F:\WINDOWS\system32\OLEAUT32.dll
0x74810000 - 0x7497c000 F:\WINDOWS\system32\quartz.dll
0x75f40000 - 0x75f51000 F:\WINDOWS\system32\devenum.dll
0x73940000 - 0x73a10000 F:\WINDOWS\system32\D3DIM700.DLL
0x73ee0000 - 0x73ee4000 F:\WINDOWS\system32\KsUser.dll

VM Arguments:
jvm_args: -Djava.library.path=G:\Programming\Java\SIP\fmj-examples\native\win32-x86
java_command: net.sf.fmj.examples.basicplayer.BasicPlayerWindow
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=F:\Program Files\Java\jdk1.5.0_09
CLASSPATH=.;F:\PROGRA~1\JMF21~1.1E\lib\mpeg4decoder.zip;F:\PROGRA~1\JMF21~1.1E\lib;
PATH=F:\WINDOWS\system32;F:\WINDOWS;F:\WINDOWS\System32\Wbem;F:\Program Files\Java\jdk1.5.0_09\bin;F:\Program Files\QuickTime\QTSystem\;F:\Program Files\cvsnt;F:\Program Files\Java\jre1.5.0_09\bin;F:\Program Files\mbone;F:\Program Files\Java\jre1.5.0_09\bin
USERNAME=Andrey
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel

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

OS: Windows XP Build 2600 Service Pack 2

CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 2 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 1048048k(301852k free), swap 1736796k(1014480k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b03) for windows-x86, built on Oct 12 2006 01:20:10 by "java_re" with MS VC++ 6.0

Discussion