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

Mac: JVM Crash on Mac involving TableView and ObjectProperty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 8
    • 7u15
    • javafx
    • OS Version: Mac OS X 10.7.5 (11G63)
      Path: /Library/Java/JavaVirtualMachines/jdk1.7.0_15.jdk/Contents/Home/bin/java

      Hi,

      the JVM crashes on Mac OS X when running the attached program and dragging the scrollbar handle up and down several times.
      The crash occurs on JDK 1.7 u15 and JDK 1.7 u7 (I tried it with these).

      Several things contribute to the crash:

      1) The class Item uses an ObjectProperty to hold a File instance and this property is used in Items.equals().

      2) The program creates a Scene with nested BorderPanes and finally a TableView<Item>.

      3) When Item.equals() is commented out, the crash disappears.

      4) In Item.equals() when the call to ObjectProperty's equals() is replaced with the call to value's equals(), the crash disappears. (file.equals() -> file.get().equals() )

      5) When the layout is changed in some way, the crash disappears (for instance having only one BorderPane).

      (I can't seem to attach files, so I put them in separate comments)

      Best wishes,
      Rainer Schwarze

            pchelko Petr Pchelko (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: