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

Native crash in HTMLEditor: Terminating app due to uncaught exception 'NSRangeException'

XMLWordPrintable

    • web
    • x86_64
    • os_x

      FULL PRODUCT VERSION :
      java version "1.8.0_162"
      Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
      Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      MacOS 10.12.6

      A DESCRIPTION OF THE PROBLEM :
      When typing in the JavaFX HTMLEditor the whole process suddenly crashes from time to time.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Just use a HTMLEditor and type, select, cut and copy text. I cannot reproduce it exactly, it happens from time to time when using the HTMLEditor. Maybe the crash details below will help.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      It shouldn't crash.
      ACTUAL -
      It crashes.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      2018-03-28 00:02:18.215 java[36139:9564341] Apple AWT Internal Exception: *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array
      2018-03-28 00:02:18.216 java[36139:9564341] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
      *** First throw call stack:
      (
      0 CoreFoundation 0x00007fffabc322cb __exceptionPreprocess + 171
      1 libobjc.A.dylib 0x00007fffc0a4948d objc_exception_throw + 48
      2 CoreFoundation 0x00007fffabb4badc -[__NSArrayM objectAtIndex:] + 204
      3 libglass.dylib 0x0000000128d3c995 Java_com_sun_glass_ui_mac_MacPasteboard__1getItemStringForUTF + 437
      4 ??? 0x0000000110b27e82 0x0 + 4575100546
      5 ??? 0x000000010e3771b0 0x0 + 4533481904
      )
      libc++abi.dylib: terminating with uncaught exception of type NSException

      REPRODUCIBILITY :
      This bug can be reproduced occasionally.

            pmangal Priyanka Mangal (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: