chrome plugin crashes when calling javascript function

Bug #755036 reported by Lee Quarella
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Iced Tea
Invalid
Medium
chromium-browser (Ubuntu)
Invalid
Undecided
Gregory Berkley
icedtea-web (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Binary package hint: icedtea6-plugin

Working with chrome on ubuntu, have a basic java applet and javascript interaction. The javascript to java goes fine, but when I try having the java fire a javascript method, the chrome java plugin crashes. This all works fine in Fire Fox.

The Error:

    The following plug-in has crashed: icedTea NPR Web Broweser Plugin (using IcedTea6 1.9.7 (6b20-1.9.7-0ubuntu1~10.04.1))

The HTML:

    <object height='300' id='thisappletawesome' name='thisappletawesome'type='application/x-java-applet' width='550'>
        <param name='classid' value='java:JSHelloWorld.class'>
        <param name='codebase' value='/java/'>
    </object>

The Javascript:

    function updateWebPage(){
        alert("java is touching me");
        document.thisappletawesome.setText("hihihi")
    }

The Java:

    import java.applet.*;
    import java.awt.*;
    import netscape.javascript.*;
    import javax.swing.*;

    public class JSHelloWorld extends JApplet {
    JTextArea txt = new JTextArea(100,100);

    public void init(){
     JSObject jso = JSObject.getWindow(this);
     try {
      jso.call("updateWebPage", new String[] {"Hihi"});
        }
        catch (Exception ex) {
           ex.printStackTrace();
        }
    }

    public JSHelloWorld() {
        txt.setText("Hello World");
        getContentPane().add(txt);
    }

    public void setText(String s)
    {
        txt.setText(s);
    }

The problem looks like it was with OpenJDK.
     sudo aptitude remove icedtea6-plugin
     sudo aptitude install sun-java6-plugin
Fixed the problem.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in icedtea-web (Ubuntu):
status: New → Confirmed
Revision history for this message
Don Myers (donmyers) wrote :

I have the same issue using Ubuntu 12.04 Beta 2, 64 bit running Chrome 18.0.1025.142 beta and with IcedTea-Web Plugin (using IcedTea-Web 1.2 (1.2-1ubuntu1)). Java applets crash and a sad white face appears on a black background.

Revision history for this message
In , Matthias Klose (doko) wrote :

reported for icedtea-web-1.2, forwarded from
https://launchpad.net/bugs/755036

Working with chrome on ubuntu, have a basic java applet and javascript interaction. The javascript to java goes fine, but when I try having the java fire a javascript method, the chrome java plugin crashes. This all works fine in Fire Fox.

The Error:

    The following plug-in has crashed: icedTea NPR Web Broweser Plugin (using IcedTea6 1.9.7 (6b20-1.9.7-0ubuntu1~10.04.1))

The HTML:

    <object height='300' id='thisappletawesome' name='thisappletawesome'type='application/x-java-applet' width='550'>
        <param name='classid' value='java:JSHelloWorld.class'>
        <param name='codebase' value='/java/'>
    </object>

The Javascript:

    function updateWebPage(){
        alert("java is touching me");
        document.thisappletawesome.setText("hihihi")
    }

The Java:

    import java.applet.*;
    import java.awt.*;
    import netscape.javascript.*;
    import javax.swing.*;

    public class JSHelloWorld extends JApplet {
    JTextArea txt = new JTextArea(100,100);

    public void init(){
     JSObject jso = JSObject.getWindow(this);
     try {
      jso.call("updateWebPage", new String[] {"Hihi"});
        }
        catch (Exception ex) {
           ex.printStackTrace();
        }
    }

    public JSHelloWorld() {
        txt.setText("Hello World");
        getContentPane().add(txt);
    }

    public void setText(String s)
    {
        txt.setText(s);
    }
}

Changed in icedtea:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , Don Myers (donmyers) wrote :

I had no problems using IcedTea plugin 1.1.3- 1ubuntu1.1 with Chrome Beta in Ubuntu 11.10. I've upgraded four computers to 12.04 Beta 2 within the last week. All are using a newer 1.2 series IcedTea Plugin, which was updated in the updates that came out yesterday/last night. I do my own real estate website and use applets for the main navigation, as well as for marquees. The newer version of Iced Tea works perfectly with Firefox in Ubuntu 12.04. It crashed very frequently in Chrome Beta before yesterday's updates. Since the updates, the crashes are not as frequent, but they still occur. Firefox is still fine. I've replicated this on three of the four machines running Ubuntu 12.04. I don't have access to try it on the fourth. I'm sorry, but I'm not a programmer. If you want me to try to run something to check out, please tell me how to do whatever, and I will do it. The site I'm experiencing the issues with is http://www.cbur-ruralproperty.com . The menu is just under the logo. With the present updates I generally, in Chrome beta, need to refresh the page to get the menu to come up. Then if I click on the various links, by about the third or fourth page the plugin crashes.

Revision history for this message
In , Marius B. Kotsbak (mariusko) wrote :

It is also reproducable at this URL: view-source:https://www.bankid.no/Hjelp-og-nyttige-verktoy/Nyttige-verktoy/Test-din-BankID/

Just loading the page crashes the Java plugin. I guess it is because of the applet trying to communicate with the web page using Javascript calls (there are a lot of javascript and data on the page).

Revision history for this message
In , Marius B. Kotsbak (mariusko) wrote :

How can this be debugged, how can a stacktrace be found? Chromium does not give any details in its console output, and I see no option to show java console. This is all I see:

***MEMORY-ERROR***: exe[3953]: GSlice: assertion failed: aligned_memory == (gpointer) addr

Changed in chromium-browser (Ubuntu):
assignee: nobody → Gregory Berkley (berkley-greg)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in chromium-browser (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Adomurad (adomurad) wrote :

Hi Matthias & Don,
I'm unable to reproduce this with either the 1.2 that comes with Fedora, or the most up-to-date release of 1.2

Could you please tell me if you can reproduce the error with the current icedtea-web 1.2 that is provided with Ubuntu, and, if you can, build and try the plugin located at http://icedtea.classpath.org/hg/release/icedtea-web-1.3 ?

Revision history for this message
In , Marius B. Kotsbak (mariusko) wrote :

Are you sure this is not a duplicate of bug #838, which seems to be fixed in Icedtea-web 1.3:

http://icedtea.classpath.org/hg/release/icedtea-web-1.3/rev/41f03d932cdf

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

Could you please prepare a package of Icedtea-web-1.3 for Ubuntu? I tried building one but got some troubles, then built it directly from source, but it just crashed the browser tabs of Chromium.

Revision history for this message
In , Marius B. Kotsbak (mariusko) wrote :

I reproduce with 1.2 Ubuntu package, but browser pages just hangs using a 1.3 manually built plugin.

Revision history for this message
Don Myers (donmyers) wrote :

With Chrome 21.0.1180.41 Beta, java is not functional. I receive a message that the IcedTea is out of date. All updates from Ubuntu have been applied. I have openjdk-6-jre version 6b24.1.11.3-1ubuntu0.12.04.1. The plugin is IcedTea-plugin1.2-2ubuntu1. Shouldn't this be updated through Ubuntu?

Revision history for this message
In , Adomurad (adomurad) wrote :

Closing because it works for me.

Changed in icedtea:
status: Confirmed → Invalid
Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

Is this still an issue? According to comment #13, it seems to be fixed now.

Changed in chromium-browser (Ubuntu):
status: Confirmed → Incomplete
Changed in icedtea-web (Ubuntu):
status: Confirmed → Incomplete
Olivier Tilloy (osomon)
Changed in chromium-browser (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.