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

Swing Deadlocks during application startup on multi processor hardware, MediaTra

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2
    • None
    • 1.3.0
    • client-libs
    • None

    Description


      When starting the application on an dual processor Solaris machine the app
      deadlocks. The thread dump (attached below) suggests its an issue with
      ImageIcon and MediaTracker. This is further supported by some tests I've run
      using JButton(string) instead of JButton(imageIcon) which run fine.

      The deadlock occurs on 90% of appliation starts.

      The application is quite large and I've not had time to produce a small test
      case.

      Untar the attachment and run RUNME to start the app. The app will either start OK (ie all windows are painted) or will freeze with all windows grey.

      You will need to install Java3D to run the app, however the Java3D threads
      have not started when the Swing Deadlock occurs.

      I've tested on JDK 1.3 Beta and JDK 1.3 build 1.3.0-b22

      I've also tried various ways to load and track the images before creating the
      ImageIcons, but the app still freezes in MediaTracker even once my loading
      code has completed OK.


      The JButtons containing the ImageIcons are created in
      com/sun/j3d/demos/j3dedit/j3deditor/ConfigLoader.java, line 151 onwards

      Attachments

        Issue Links

          Activity

            People

              svioletsunw Scott Violet (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: