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

hotspot crashes when changing GUI layout with forte 4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.4.1
    • 1.4.1
    • hotspot
    • hopper
    • x86
    • linux
    • Not verified

      While running forte 4, doing swing development with 1.4.1beta, using the GUI form editor.

      When using a GridBagLayout on a JPanel, trying to adjust the insets of a JCheckBox, forte will throw an exception (the exception thrown states that it is a null pointer.)


      One more note:

      I've tried running -server, -Xint, -Xcheck:jni, all produce the same output.


      After this happens, trying to close the project, or trying to continue work will cause the JVM to abort on sig 11. The JVM trace is attached to this report, I also have a ~300 meg core dump.

      -------------------------------------------------------------------------------
      Useful information from the hs_err* file:

      % more hs_err_pid11107.log

      Unexpected Signal : 11 occurred at PC=0x402C65F2
      Function=follow_stack__9MarkSweep+0x36
      Library=/usr/j2sdk1.4.1/jre/lib/i386/client/libjvm.so
      Elapsed Time = 278
      ...
      #
      # HotSpot Virtual Machine Error : 11
      # Error ID : 4F530E43505002E6
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.1-beta-b14 mixed mode)
      #
      % cd work
      % java ErrorID 4F530E43505002E6
      os.cpp, 742
      (NOT that useful)

      ###@###.### 2002-07-16


      Ok.. I've just verified that this same crash occurs on Solaris/Sparc.
      I've simplified the steps to reproduce somewhat, but it's still messy.

      Here are the steps:
      1) Get the SunONE Studio 4 (Forte 4) from the internal download page (onestop.eng), install it.

      2) Start SunONE Studio, answer all the first-time questions until you get to a blank project.

      3) In the Exporer [Filesystems] view, right-click the default 'sampledir' entry,
       go to New > GUI Forms > JFrame

      4) Name it whatever you wish, press the 'Finish' Button

      5) This should bring up a Source Window and Form Editor. In the Form Editor, right-click the JFrame (The large gray square), and go to 'Set Layout' > 'GridBagLayout'

      6) On the Swing widget toolbar at the top of the Form Editor, click on the JCheckBox icon, then click into the JFrame (The big gray box).. a JCheckBox should appear.

      7) Right-click the JFrame (anywhere in the gray box except on the JCheckBox), then go to 'Customize Layout...'

      8) In the Customizer Dialog that appears, click on the JCheckBox widget, then click on any one of the '+' buttons directly under the 'Inset's label.

      At this point, the JVM may crash. If it does not, press the 'Close' button, then repeat steps 7 and 8.

      You should receive a popup dialog stating that a stack trace occured. Press the OK button or close window button. Continue trying to set widget details, at some point the JVM will crash.



      Ok -- Using the debug JVM provided by Coleen, the crash does not happen -- everything works correctly.

      So.. it must have been fixed between build 14 and whatever build Coleen's debug JVM was based on.

            jmcilreesunw James Mcilree (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: