Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4486362

dispose of dialog hangs the VM and the whole browser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.1
    • deploy
    • None
    • beta2
    • x86
    • windows_nt

      The entire browser will hang. It is hanging because an instance of a JDialog
      was created (CustomDialog) when the applet was initialized. But if you
      attempt to reload the html page without ever opening the dialog, the plugin
      still tries to dispose of the dialog, causing the VM to hang. I've included
      a JDB dump (hang.TXT) that indicates which threads are hung.

      BTW, I can also reproduce the hang by making duplicate or redundant calls to
      dispose the dialog and then trying to refresh the HTML page. If you play
      with the Show and Dispose buttons on the applet, you can make the browser
      hang (sometimes without even refreshing the html page).

      The problem is quite easy to recreate. I've included the files in
      dialog_dispose.jar.

      1) Put the .class files in a /lib directory off the root of your web server
      2) Put the .html file in a /html directory off the root of your web server
      3) Launch the applet - e.g. http://myhost/html/HangDialogApplet.html
      4) Click the browser refresh button (without opening the dialog)

      The problem reproduces on NT4.0 workstation with Java plug-in 1.3.1 and
      IE5.5.

            stanleyh Stanley Ho (Inactive)
            mhmccart Mary Mccarthy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: