Hi,
I downloaded the latest 0.4.2 source and have been working on compiling the latest source on Windows XP Professional. Following the instruction in the INSTALL file, I managed to compile ffmpeg, however when I try to compile using the following command line:
KeyError: 'Libs':
File "C:\java\fobs-0.4.2\SConstruct", line 30:
env_ffmpeg.MergeFlags(res.get_output())
File "C:\java\fobs-0.4.2/scripts\fobscons.py", line 61:
return self['Libs']+" "+self['Cflags']
The reason I want to build and compile 0.4.2 is because I am getting JVM crash when I try to play a .FLV file.
Appreciate any help and pointers.
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6affd5b6, pid=4820, tid=1164
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing windows-x86)
# Problematic frame:
# C [fobs4jmf.dll+0x7d5b6]
#
# 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 (0x02a26400): JavaThread "Loop thread: com.omnividea.media.parser.video.VideoTrack@78a212" [_thread_in_native, id=1164, stack(0x04940000,0x04990000)]
[error occurred during error reporting (printing native stack), id 0xc0000005]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x00384c00/0x000000e4] Safepoint_lock - owner thread: 0x02a3bc00
[0x00384c60/0x000000f4] Threads_lock - owner thread: 0x02a3bc00
[0x00384e00/0x00000134] Heap_lock - owner thread: 0x02a27000
Heap
def new generation total 960K, used 890K [0x22960000, 0x22a60000, 0x22e40000)
eden space 896K, 92% used [0x22960000, 0x22a2eb08, 0x22a40000)
from space 64K, 100% used [0x22a50000, 0x22a60000, 0x22a60000)
to space 64K, 0% used [0x22a40000, 0x22a40000, 0x22a50000)
tenured generation total 4096K, used 1129K [0x22e40000, 0x23240000, 0x26960000)
the space 4096K, 27% used [0x22e40000, 0x22f5a5a0, 0x22f5a600, 0x23240000)
compacting perm gen total 12288K, used 1894K [0x26960000, 0x27560000, 0x2a960000)
the space 12288K, 15% used [0x26960000, 0x26b39828, 0x26b39a00, 0x27560000)
ro space 8192K, 62% used [0x2a960000, 0x2ae62a60, 0x2ae62c00, 0x2b160000)
rw space 12288K, 52% used [0x2b160000, 0x2b7a86e0, 0x2b7a8800, 0x2bd60000)
Hi,
I downloaded the latest 0.4.2 source and have been working on compiling the latest source on Windows XP Professional. Following the instruction in the INSTALL file, I managed to compile ffmpeg, however when I try to compile using the following command line:
./buildFobs.sh FFMPEG_HOME=/c/java/fobs-0.4.2/ffmpeg FOBS4JMF=yes OPTIMIZATIONS=yes
I get the following error:
KeyError: 'Libs':
File "C:\java\fobs-0.4.2\SConstruct", line 30:
env_ffmpeg.MergeFlags(res.get_output())
File "C:\java\fobs-0.4.2/scripts\fobscons.py", line 61:
return self['Libs']+" "+self['Cflags']
The reason I want to build and compile 0.4.2 is because I am getting JVM crash when I try to play a .FLV file.
Appreciate any help and pointers.
#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6affd5b6, pid=4820, tid=1164
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing windows-x86)
# Problematic frame:
# C [fobs4jmf.dll+0x7d5b6]
#
# 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 (0x02a26400): JavaThread "Loop thread: com.omnividea.media.parser.video.VideoTrack@78a212" [_thread_in_native, id=1164, stack(0x04940000,0x04990000)]
siginfo: ExceptionCode=0xc0000005, writing address 0x02b00000
Registers:
EAX=0x03fcf818, EBX=0x00000200, ECX=0x00000200, EDX=0x02b00000
ESP=0x0498f8e4, EBP=0x00000200, ESI=0x00000002, EDI=0xff020202
EIP=0x6affd5b6, EFLAGS=0x00010282
Top of Stack: (sp=0x0498f8e4)
0x0498f8e4: 000000b4 00000200 00000020 02b00000
0x0498f8f4: 02affa60 02aff540 03fabf14 03f7fe04
0x0498f904: 03fcf818 03fcf688 00000006 00000168
0x0498f914: 03f8a190 0498f9c0 6aff48c6 0498f9c0
0x0498f924: 03f8a190 00000168 0000010e 00000001
0x0498f934: 00000000 00000000 00000000 00000000
0x0498f944: 00000000 6aff1bb8 6aff1b70 00000006
0x0498f954: 00000006 0498f9c0 6aff1d50 00000000
Instructions: (pc=0x6affd5b6)
0x6affd5a6: ff 00 00 00 09 d7 8b 54 24 0c 81 cf 00 00 00 ff
0x6affd5b6: 89 3a 31 d2 8a 50 01 8b 44 24 04 8d 3c d2 8d 0c
Stack: [0x04940000,0x04990000], sp=0x0498f8e4, free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [fobs4jmf.dll+0x7d5b6]
[error occurred during error reporting (printing native stack), id 0xc0000005]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x02a27000 JavaThread "Loop thread: com.omnividea.media.parser.video.AudioTrack@1d85f79" [_thread_in_vm, id=2944, stack(0x04990000,0x049e0000)]
=>0x02a26400 JavaThread "Loop thread: com.omnividea.media.parser.video.VideoTrack@78a212" [_thread_in_native, id=1164, stack(0x04940000,0x04990000)]
0x02ac6800 JavaThread "Loop thread: com.sun.media.renderer.audio.DirectAudioRenderer@1c247a0" [_thread_in_vm, id=4224, stack(0x048f0000,0x04940000)]
0x02de4800 JavaThread "DirectSound Request Thread" [_thread_blocked, id=4240, stack(0x04800000,0x04850000)]
0x02de3800 JavaThread "Loop thread: com.omnividea.media.renderer.video.Java2DRenderer[Fobs Java2DRenderer,0,0,0x0,invalid,layout=java.awt.FlowLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=0,height=0]]" [_thread_blocked, id=5312, stack(0x045b0000,0x04600000)]
0x02de2800 JavaThread "JMF thread: com.sun.media.PlaybackEngine@1e8a1f6 ( prefetchThread)" [_thread_blocked, id=4456, stack(0x04460000,0x044b0000)]
0x02de1400 JavaThread "JMF thread: com.sun.media.content.unknown.Handler@861f24 ( prefetchThread)" [_thread_blocked, id=2864, stack(0x04410000,0x04460000)]
0x02a23800 JavaThread "Progress Slider thread" [_thread_blocked, id=-16645630, stack(0x04170000,0x041c0000)]
0x02a22400 JavaThread "Image Fetcher 3" daemon [_thread_blocked, id=3020, stack(0x04040000,0x04090000)]
0x02ac7800 JavaThread "Image Fetcher 2" daemon [_thread_blocked, id=4708, stack(0x03ff0000,0x04040000)]
0x02ac7400 JavaThread "Image Fetcher 1" daemon [_thread_blocked, id=3928, stack(0x03da0000,0x03df0000)]
0x02b06400 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=4428, stack(0x03e90000,0x03ee0000)]
0x02a25800 JavaThread "Loop thread" [_thread_blocked, id=4664, stack(0x03e10000,0x03e60000)]
0x02de8400 JavaThread "JMF thread: SendEventQueue: com.sun.media.PlaybackEngine" [_thread_blocked, id=3596, stack(0x03900000,0x03950000)]
0x02b08c00 JavaThread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" [_thread_blocked, id=2920, stack(0x03830000,0x03880000)]
0x00385400 JavaThread "DestroyJavaVM" [_thread_blocked, id=5800, stack(0x003a0000,0x003f0000)]
0x02b19000 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=4452, stack(0x037a0000,0x037f0000)]
0x02df8c00 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2732, stack(0x030c0000,0x03110000)]
0x02e20400 JavaThread "AWT-Shutdown" [_thread_blocked, id=5372, stack(0x03070000,0x030c0000)]
0x02adb800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=964, stack(0x03020000,0x03070000)]
0x02a4d800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4984, stack(0x02d00000,0x02d50000)]
0x02a47c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3576, stack(0x02cb0000,0x02d00000)]
0x02a46800 JavaThread "Attach Listener" daemon [_thread_blocked, id=1592, stack(0x02c60000,0x02cb0000)]
0x02a45800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5792, stack(0x02c10000,0x02c60000)]
0x02a41400 JavaThread "Finalizer" daemon [_thread_blocked, id=5684, stack(0x02bc0000,0x02c10000)]
0x02a3d000 JavaThread "Reference Handler" daemon [_thread_blocked, id=1408, stack(0x02b70000,0x02bc0000)]
Other Threads:
0x02a3bc00 VMThread [stack: 0x02b20000,0x02b70000] [id=4700]
0x02a57000 WatcherThread [stack: 0x02d50000,0x02da0000] [id=4236]
VM state:synchronizing (normal execution)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x00384c00/0x000000e4] Safepoint_lock - owner thread: 0x02a3bc00
[0x00384c60/0x000000f4] Threads_lock - owner thread: 0x02a3bc00
[0x00384e00/0x00000134] Heap_lock - owner thread: 0x02a27000
Heap
def new generation total 960K, used 890K [0x22960000, 0x22a60000, 0x22e40000)
eden space 896K, 92% used [0x22960000, 0x22a2eb08, 0x22a40000)
from space 64K, 100% used [0x22a50000, 0x22a60000, 0x22a60000)
to space 64K, 0% used [0x22a40000, 0x22a40000, 0x22a50000)
tenured generation total 4096K, used 1129K [0x22e40000, 0x23240000, 0x26960000)
the space 4096K, 27% used [0x22e40000, 0x22f5a5a0, 0x22f5a600, 0x23240000)
compacting perm gen total 12288K, used 1894K [0x26960000, 0x27560000, 0x2a960000)
the space 12288K, 15% used [0x26960000, 0x26b39828, 0x26b39a00, 0x27560000)
ro space 8192K, 62% used [0x2a960000, 0x2ae62a60, 0x2ae62c00, 0x2b160000)
rw space 12288K, 52% used [0x2b160000, 0x2b7a86e0, 0x2b7a8800, 0x2bd60000)
Dynamic libraries:
0x00400000 - 0x00423000 C:\Java\jre1.6.0_06\bin\javaw.exe
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f5000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f02000 C:\WINDOWS\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x7e410000 - 0x7e4a0000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
0x7c340000 - 0x7c396000 C:\Java\jre1.6.0_06\bin\msvcr71.dll
0x6d7c0000 - 0x6da10000 C:\Java\jre1.6.0_06\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x6d270000 - 0x6d278000 C:\Java\jre1.6.0_06\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d770000 - 0x6d77c000 C:\Java\jre1.6.0_06\bin\verify.dll
0x6d310000 - 0x6d32f000 C:\Java\jre1.6.0_06\bin\java.dll
0x6d7b0000 - 0x6d7bf000 C:\Java\jre1.6.0_06\bin\zip.dll
0x6d000000 - 0x6d12e000 C:\Java\jre1.6.0_06\bin\awt.dll
0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.dll
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
0x6d210000 - 0x6d263000 C:\Java\jre1.6.0_06\bin\fontmanager.dll
0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
0x10000000 - 0x10171000 C:\WINDOWS\system32\nview.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\SHELL32.dll
0x77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\COMCTL32.dll
0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
0x77690000 - 0x776b1000 C:\WINDOWS\system32\NTMARTA.DLL
0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
0x71bf0000 - 0x71c03000 C:\WINDOWS\system32\SAMLIB.dll
0x63000000 - 0x63014000 C:\WINDOWS\system32\SynTPFcs.dll
0x03670000 - 0x03685000 C:\WINDOWS\system32\jmutil.dll
0x6d570000 - 0x6d583000 C:\Java\jre1.6.0_06\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x6d590000 - 0x6d599000 C:\Java\jre1.6.0_06\bin\nio.dll
0x03880000 - 0x03895000 C:\WINDOWS\system32\nvwddi.dll
0x605d0000 - 0x605d9000 C:\WINDOWS\system32\mslbui.dll
0x763b0000 - 0x763f9000 C:\WINDOWS\system32\COMDLG32.DLL
0x77b40000 - 0x77b62000 C:\WINDOWS\system32\appHelp.dll
0x76fd0000 - 0x7704f000 C:\WINDOWS\system32\CLBCATQ.DLL
0x77050000 - 0x77115000 C:\WINDOWS\system32\COMRes.dll
0x77a20000 - 0x77a74000 C:\WINDOWS\System32\cscui.dll
0x76600000 - 0x7661d000 C:\WINDOWS\System32\CSCDLL.dll
0x75f80000 - 0x7607d000 C:\WINDOWS\system32\browseui.dll
0x77920000 - 0x77a13000 C:\WINDOWS\system32\SETUPAPI.dll
0x76990000 - 0x769b5000 C:\WINDOWS\system32\ntshrui.dll
0x76b20000 - 0x76b31000 C:\WINDOWS\system32\ATL.DLL
0x5b860000 - 0x5b8b4000 C:\WINDOWS\system32\NETAPI32.dll
0x769c0000 - 0x76a73000 C:\WINDOWS\system32\USERENV.dll
0x7e290000 - 0x7e401000 C:\WINDOWS\system32\shdocvw.dll
0x77a80000 - 0x77b14000 C:\WINDOWS\system32\CRYPT32.dll
0x77b20000 - 0x77b32000 C:\WINDOWS\system32\MSASN1.dll
0x754d0000 - 0x75550000 C:\WINDOWS\system32\CRYPTUI.dll
0x76c30000 - 0x76c5e000 C:\WINDOWS\system32\WINTRUST.dll
0x76c90000 - 0x76cb8000 C:\WINDOWS\system32\IMAGEHLP.dll
0x771b0000 - 0x7725a000 C:\WINDOWS\system32\WININET.dll
0x03d80000 - 0x03d8d000 C:\WINDOWS\system32\jmam.dll
0x74810000 - 0x7497d000 C:\WINDOWS\system32\quartz.dll
0x75f40000 - 0x75f51000 C:\WINDOWS\system32\devenum.dll
0x73940000 - 0x73a10000 C:\WINDOWS\system32\D3DIM700.DLL
0x72d20000 - 0x72d29000 C:\WINDOWS\system32\wdmaud.drv
0x72d10000 - 0x72d18000 C:\WINDOWS\system32\msacm32.drv
0x77be0000 - 0x77bf5000 C:\WINDOWS\system32\MSACM32.dll
0x77bd0000 - 0x77bd7000 C:\WINDOWS\system32\midimap.dll
0x73f10000 - 0x73f6c000 C:\WINDOWS\system32\DSOUND.DLL
0x73ee0000 - 0x73ee4000 C:\WINDOWS\system32\KsUser.dll
0x6d340000 - 0x6d346000 C:\Java\jre1.6.0_06\bin\jawt.dll
0x041c0000 - 0x041c9000 C:\WINDOWS\system32\jmfjawt.dll
0x6af80000 - 0x6bd2b000 C:\Java\fobs4jmf_0.4.1_win32\fobs4jmf.dll
0x03df0000 - 0x03dfc000 C:\WINDOWS\system32\jmdaud.dll
VM Arguments:
java_command: JMStudio
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Java\jdk1.6.0_06\bin
CLASSPATH=.;.;C:\PROGRA~1\JMF21~1.1E\lib\sound.jar;C:\PROGRA~1\JMF21~1.1E\lib\jmf.jar;C:\PROGRA~1\JMF21~1.1E\lib;
PATH=C:\Java\jdk1.6.0_06\bin;C:\ClarifyCRM12.5\Configurator\Common Files\CCAutomation;C:\ClarifyCRM12.5\ClarifyClient;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Java\apache-ant-1.7.0\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;c:\PHP;C:\msys\local\bin;C:\python25
USERNAME=vivsriva
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 11, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 11, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2062564k(1115872k free), swap 3453360k(2493164k free)
vm_info: Java HotSpot(TM) Client VM (10.0-b22) for windows-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 01:22:05 by "java_re" with MS VC++ 7.1
time: Mon Jun 23 15:28:17 2008
elapsed time: 16 seconds
Hi,
have you read this thread on Fobs-0.4.2 compilation?
https://sourceforge.net/forum/message.php?msg_id=5038137
Cheers,
Jose San Pedro