JyotsnaT / xuggle

Automatically exported from code.google.com/p/xuggle
0 stars 0 forks source link

Windows: JVM crash for DecodeAndPlayVideo, DecodeAndPlayAudio or DecodeAndPlayAudioAndVideo #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On Windows, with RC2

What steps will reproduce the problem?
1. Run one of the mentioned class with different files:
  e.g.: http://samples.mplayerhq.hu/V-
codecs/h263/baikonur_r7_overflight.mov
2. Always have a JVM crash

Original issue reported on code.google.com by legege on 19 Jan 2009 at 12:22

GoogleCodeExporter commented 9 years ago
I'll take a look today.

Original comment by art.cla...@gmail.com on 19 Jan 2009 at 6:05

GoogleCodeExporter commented 9 years ago
Could you attach the java crash log (usually a file starting with hs_pid in the
directory you ran from) if you have it?

Original comment by art.cla...@gmail.com on 19 Jan 2009 at 6:43

GoogleCodeExporter commented 9 years ago

Original comment by art.cla...@gmail.com on 19 Jan 2009 at 7:43

GoogleCodeExporter commented 9 years ago
Hey there,

So we're not able to reproduce this issue at all.  Some potential things I'd 
like you
to check:

1) make sure you have no old versions of libxuggle-xuggler.dll or avcodec.dll 
(or
others) anywhere in your path.
2) uninstall the Xuggler software using the installer AND REBOOT
3) install the Xuggler software AND REBOOT
4) try to reproduce again

Thanks,

- Art

Original comment by art.cla...@gmail.com on 19 Jan 2009 at 7:52

GoogleCodeExporter commented 9 years ago
Here is the crash log. There is no output other than that in the console...
Still having the problem after reboot.

Thanks,

Original comment by legege on 19 Jan 2009 at 10:02

Attachments:

GoogleCodeExporter commented 9 years ago
When Java crashes, I see for few milliseconds a Java window trying to come up.

Original comment by legege on 19 Jan 2009 at 10:04

GoogleCodeExporter commented 9 years ago
Is this with 1.17.RC3?

Original comment by art.cla...@gmail.com on 20 Jan 2009 at 11:56

GoogleCodeExporter commented 9 years ago
It's still happening with RC3. I'm going to try with Linux.

Attached is a HS file.

** Only once I got this exception in stderr **
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: disposed 
component
    at sun.java2d.windows.Win32SurfaceData.initOps(Native Method)
    at sun.java2d.windows.Win32SurfaceData.<init>(Win32SurfaceData.java:416)
    at sun.java2d.windows.Win32SurfaceData.createData(Win32SurfaceData.java:270)
    at 
sun.awt.Win32GraphicsConfig.createSurfaceData(Win32GraphicsConfig.java:302)
    at sun.awt.windows.WComponentPeer.replaceSurfaceData(WComponentPeer.java:379)
    at sun.awt.windows.WComponentPeer.replaceSurfaceData(WComponentPeer.java:360)

** Stdout contains **
15:13:15.119 [main] DEBUG org.ffmpeg - [mov,mp4,m4a,3gp,3g2,mj2 @ 0x33bd050] 
ISO: 
File Type Major Brand: qt  

Original comment by legege on 22 Jan 2009 at 8:16

Attachments:

GoogleCodeExporter commented 9 years ago
Not confirmed yet, but it occurs when container.readNextPacket() is invoked.

Original comment by legege on 22 Jan 2009 at 8:19

GoogleCodeExporter commented 9 years ago
This is very strange, and we still can't repro.  To help debug, can you 
download the
Windows Dependency Walker tool:
http://dependencywalker.com/

And run it, and open the file c:\Program Files\Xuggle\bin\libxuggle-xuggler.dll

and take a screenshot of the output and send to me?

- Art

Original comment by art.cla...@gmail.com on 22 Jan 2009 at 8:24

GoogleCodeExporter commented 9 years ago
I don't have "libxuggle-xuggler.dll", but "libxuggle-xuggler-1.dll".

Original comment by legege on 22 Jan 2009 at 8:34

Attachments:

GoogleCodeExporter commented 9 years ago
For the AVCODEC-52, I have this message.

Original comment by legege on 22 Jan 2009 at 8:37

Attachments:

GoogleCodeExporter commented 9 years ago
It looks like %XUGGLE_HOME%\bin is not in your Windows PATH, or is not expanding
correctly.  Can you check?

Original comment by art.cla...@gmail.com on 22 Jan 2009 at 8:42

GoogleCodeExporter commented 9 years ago
Also, it's very STRANGE that %XUGGLE_HOME%\bin doesn't include avcodec... can 
you
post the entire contents of your %XUGGLE_HOME%\bin directory?

Original comment by art.cla...@gmail.com on 22 Jan 2009 at 8:43

GoogleCodeExporter commented 9 years ago
Yes, %XUGGLE_HOME%\bin is in my PATH, but it seams that the Dependency Walker 
isn't 
able to find the referenced lib.

I tried:
- Uninstall Xuggler
- Reboot
- Install Xuggler
- Reboot

Still have JVM crash.

/cygdrive/c/Programs/Xuggle/bin# ls -la
total 52912
drwx------+ 2 legege None        0 Jan 22 16:03 .
drwx------+ 6 legege None        0 Jan 22 16:03 ..
-rwx------+ 1 legege None 10651295 Jan 19 21:11 avcodec-52.11.0.dll
-rwx------+ 1 legege None 10651295 Jan 19 21:11 avcodec-52.dll
-rwx------+ 1 legege None 10651295 Jan 19 21:11 avcodec.dll
-rwx------+ 1 legege None   470192 Jan 19 21:11 avdevice-52.1.0.dll
-rwx------+ 1 legege None   470192 Jan 19 21:11 avdevice-52.dll
-rwx------+ 1 legege None   470192 Jan 19 21:11 avdevice.dll
-rwx------+ 1 legege None  2531680 Jan 19 21:11 avformat-52.24.1.dll
-rwx------+ 1 legege None  2531680 Jan 19 21:11 avformat-52.dll
-rwx------+ 1 legege None  2531680 Jan 19 21:11 avformat.dll
-rwx------+ 1 legege None   175603 Jan 19 21:11 avutil-49.14.0.dll
-rwx------+ 1 legege None   175603 Jan 19 21:11 avutil-49.dll
-rwx------+ 1 legege None   175603 Jan 19 21:11 avutil.dll
-rwx------+ 1 legege None  1022715 Jan 19 21:11 ffmpeg.exe
-rwx------+ 1 legege None  1620834 Jan 19 21:11 lame.exe
-rwx------+ 1 legege None  1123449 Jan 19 21:11 libmp3lame-0.dll
-rwx------+ 1 legege None   241707 Jan 19 21:11 libspeex-1.dll
-rwx------+ 1 legege None   185214 Jan 19 21:11 libspeexdsp-1.dll
-rwx------+ 1 legege None  2647065 Jan 19 21:11 libxuggle-ferry-1.dll
-rwx------+ 1 legege None  3407002 Jan 19 21:11 libxuggle-xuggler-1.dll
-rwx------+ 1 legege None  1166927 Jan 19 21:11 libxuggle-xuggler-io-1.dll
-rwx------+ 1 legege None   413328 Jan 19 21:11 swscale-0.6.1.dll
-rwx------+ 1 legege None   413328 Jan 19 21:11 swscale-0.dll
-rwx------+ 1 legege None   413328 Jan 19 21:11 swscale.dll

Original comment by legege on 22 Jan 2009 at 9:15

GoogleCodeExporter commented 9 years ago
OK; can you try changing the contents of your PATH variable to expand 
%XUGGLE_HOME%
yourself (i.e. change it in Windows to be "C:\Program Files\Xuggle\bin" instead 
of
"%XUGGLE_HOME%\bin"; I'm trying to determine if for some reason Window's isn't
expanding that variable.

Original comment by art.cla...@gmail.com on 22 Jan 2009 at 9:21

GoogleCodeExporter commented 9 years ago
I already tried that, when echoing the PATH var in a shell, it's ok.

C:\Users\legege>echo %PATH%
C:\Programs\Xuggle\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C
:\Programs\TortoiseSVN\bin;C:\Programs\CollabNet Subversion;C:\Programs\QuickTim
e\QTSystem\;C:\Programs\Intel\WiFi\bin\;C:\Programs\CollabNet Subversion;c:\cygw
in\bin;d:\software\bin;D:\devel\tools\maven\bin;C:\Programs\Druide\Antidote

Original comment by legege on 22 Jan 2009 at 9:23

GoogleCodeExporter commented 9 years ago
Can you run "depends" from a Windows command shell, NOT CYGWIN, and see if you 
get
the same errors?

Original comment by art.cla...@gmail.com on 22 Jan 2009 at 9:41

GoogleCodeExporter commented 9 years ago
Same error... :(

Original comment by legege on 22 Jan 2009 at 9:52

GoogleCodeExporter commented 9 years ago
Can you post the movie file you're crashing with (h263only-2.mov) so I can see 
if I
can repro the error with that?

- Art

Original comment by art.cla...@gmail.com on 22 Jan 2009 at 10:16

GoogleCodeExporter commented 9 years ago
I have tested on another Windows machine. Same problem.

Original comment by legege on 22 Jan 2009 at 10:19

Attachments:

GoogleCodeExporter commented 9 years ago
I just tested that file on my windows boxes and it worked fine on both.  Two 
other
things to try:

1) Please tell me if XUGGLE_HOME is set in the NT environment variables
(computer->properties), and if the NT environment variable (same page) for PATH 
has
the bin directory in it (just trying to make sure you don't have CYGWIN or a 
BAT file
setting those up).

2) Can you try running the demos under Java 1.5 instead of 1.6?

- Art

Original comment by art.cla...@gmail.com on 22 Jan 2009 at 10:57

GoogleCodeExporter commented 9 years ago
also, if you're on skype, we could try talking through this if/when you have 
time. 
My skype-id is artbclarke.

Original comment by art.cla...@gmail.com on 22 Jan 2009 at 11:14

GoogleCodeExporter commented 9 years ago
Also, so far I've only had Vista machines to test on.  I'm trying to get my 
hands on
a XP box and will post you when I do.

Original comment by art.cla...@gmail.com on 22 Jan 2009 at 11:18

GoogleCodeExporter commented 9 years ago
1) Yes
XUGGLE_HOME=C:\Programs\Xuggle
PATH=%XUGGLE_HOME%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\
Wbem;
C:\Programs\TortoiseSVN\bin;C:\Programs\CollabNet 
Subversion;C:\Programs\QuickTime\QTSystem\;C:\Programs\Intel\WiFi\bin\

2) In a few minutes, installing...

Original comment by legege on 22 Jan 2009 at 11:20

GoogleCodeExporter commented 9 years ago
2) Same error with Java 1.5.0_17.

Original comment by legege on 22 Jan 2009 at 11:27

GoogleCodeExporter commented 9 years ago
Hi Georges,

I managed to get a copy of XP, and will try setting up a build server on it this
weekend to see if we can either reproduce the image, or if building on XP seems 
to
fix your issue in RC4.

Original comment by art.cla...@gmail.com on 24 Jan 2009 at 1:36

GoogleCodeExporter commented 9 years ago
So I have XP installed now and am trying to repro.

Original comment by art.cla...@gmail.com on 25 Jan 2009 at 8:08

GoogleCodeExporter commented 9 years ago
And great news for you (not so much for me), but I can reproduce the same 
problem
you're experiencing on XP.

Now the question becomes how to fix it.  Stay tuned.

- Art

Original comment by art.cla...@gmail.com on 25 Jan 2009 at 9:23

GoogleCodeExporter commented 9 years ago
Issue #17 may be related to this one?

Original comment by legege on 26 Jan 2009 at 12:33

GoogleCodeExporter commented 9 years ago
They may be the same issue or they may not; I reopened 18 because on XP I can 
see
both that, and this issue now.

Still haven't figured out why though...

Original comment by art.cla...@gmail.com on 26 Jan 2009 at 3:49

GoogleCodeExporter commented 9 years ago
Issue 17 has been merged into this issue.

Original comment by art.cla...@gmail.com on 26 Jan 2009 at 11:06

GoogleCodeExporter commented 9 years ago
And fixed in r127.

will be included in Xuggler 1.18.RC4.

Original comment by art.cla...@gmail.com on 26 Jan 2009 at 11:27

GoogleCodeExporter commented 9 years ago
If you're curious, the problem is that I was creating .dll.a stub linkage files 
from
FFMPEG's generated .DEF files.  This worked on Vista, but not on XP.

Instead, we now require MSVC++'s LIB tool, which FFMPEG will use to generate 
.LIB
files.  We then copy those files into .dll.a files for Xuggler to link against 
and
the problems seem to go away.

Original comment by art.cla...@gmail.com on 26 Jan 2009 at 11:29