Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > QuickTime for Java: Applet crashes JVM and browsers on Windows

Reply
Thread Tools

QuickTime for Java: Applet crashes JVM and browsers on Windows

 
 
Mike
Guest
Posts: n/a
 
      07-29-2005
I've written an applet that uses QuickTime for Java to display some
video. I can run the applet in the appletviewer (with a sufficiently
lax security policy), but if I try to run it in a Web browser, the JVM
and browser crash. Both IE6 and Firefox are affected. I'm using the
Java plugin 1.5.0_02, and Windows XP.

The HotSpot error log (here hs_err_pid3044.log) starts out with the
following lines:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d6c9ab4, pid=3044,
tid=3140
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode,
sharing)
# Problematic frame:
# V [jvm.dll+0x89ab4]
#

and here's the top of the call stack:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j quicktime.WinNativeHelper.getDrawingSurface(Ljava/awt/ComponentI+0
j quicktime.WinJNIDrawingSurface.<init>(Ljava/awt/ComponentV+16
j quicktime.QTSession$QTFrame.addNotify()V+24
j java.awt.Window.pack()V+28
j quicktime.QTSession.initialize(ILjava/lang/ClassV+101
j quicktime.QTSession.initialize(I)V+2
j quicktime.QTSession.open(III)V+1
j quicktime.QTSession.open()V+3
....

At least the error was unexpected. Has anyone encountered this
problem, and is there a way to fix it?

 
Reply With Quote
 
 
 
 
Tim Tyler
Guest
Posts: n/a
 
      07-31-2005
Mike <(E-Mail Removed)> wrote or quoted:

> I've written an applet that uses QuickTime for Java to display some
> video. I can run the applet in the appletviewer (with a sufficiently
> lax security policy), but if I try to run it in a Web browser, the JVM
> and browser crash. Both IE6 and Firefox are affected. I'm using the
> Java plugin 1.5.0_02, and Windows XP.
>
> The HotSpot error log (here hs_err_pid3044.log) starts out with the
> following lines:
>
> # An unexpected error has been detected by HotSpot Virtual Machine:
> #
> # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d6c9ab4, pid=3044,
> tid=3140
> #
> # Java VM: Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode,
> sharing)
> # Problematic frame:
> # V [jvm.dll+0x89ab4]
> #
>
> and here's the top of the call stack:
>
> Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
> j quicktime.WinNativeHelper.getDrawingSurface(Ljava/awt/ComponentI+0
> j quicktime.WinJNIDrawingSurface.<init>(Ljava/awt/ComponentV+16
> j quicktime.QTSession$QTFrame.addNotify()V+24
> j java.awt.Window.pack()V+28
> j quicktime.QTSession.initialize(ILjava/lang/ClassV+101
> j quicktime.QTSession.initialize(I)V+2
> j quicktime.QTSession.open(III)V+1
> j quicktime.QTSession.open()V+3
> ...
>
> At least the error was unexpected. Has anyone encountered this
> problem, and is there a way to fix it?


The class names in the stack trace suggest JNI is being used.

Is that going to work in a web browser?
--
__________
|im |yler http://timtyler.org/ http://www.velocityreviews.com/forums/(E-Mail Removed) Remove lock to reply.
 
Reply With Quote
 
 
 
 
Mike
Guest
Posts: n/a
 
      08-01-2005
Indeed, QTJ does require JNI. But my system properties and java.policy
are set up as follows:

java.ext.dirs = C:\PROGRA~1\Java\JRE15~1.0_0\lib\ext
java.home = C:\PROGRA~1\Java\JRE15~1.0_0

grant codeBase "file:${{java.ext.dirs}}/*" {
permission java.security.AllPermission;
};
// copied from 1.4:
grant codeBase "file:${java.home}/lib/ext/*" {
permission java.security.AllPermission;
};

and QTJava.zip is in the directory C:\Program
Files\Java\jre1.5.0_02\lib\ext like it should be.

The directory names don't seem to match, but they do refer to the same
place:

03/28/2005 12:32 PM <DIR> JRE15~1.0_0 jre1.5.0_02

Any ideas?

 
Reply With Quote
 
oczkowy oczkowy is offline
Junior Member
Join Date: Mar 2008
Posts: 1
 
      03-10-2008
does anybody solve problem with applet qtj in windows?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
James Gosling the Creator of EMACS and JAVA - leaves ORACLE - Butthen reports started coming in of odd failures. Systems would crashstrangely. We'd get crashes in applications. All applications. Crashes in thekernel. small Pox C Programming 2 07-22-2010 10:07 PM
MS JVM and Sun JVM problem Young-Jin Lee Java 3 01-21-2004 04:25 AM
Different behavior for newStringUTF() for Sun JVM and IBM Jvm Lasse Java 1 01-05-2004 07:49 PM
Multiple JVM instances for Browsers Paul Thomas Java 0 10-29-2003 11:32 PM
Re: Handling both MS JVM and Sun JVM Kevin Hooke Java 2 09-02-2003 05:31 AM



Advertisments