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

Gesture support is not initialized on iOS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: openjfx13
    • Fix Version/s: openjfx14
    • Component/s: javafx
    • Labels:
    • Subcomponent:
    • CPU:
      aarch64
    • OS:
      iOS

      Description

      On iOS, when gesture support methods are invoked, there is a crash:

      Thread 0 name: Dispatch queue: com.apple.main-thread
      Thread 0 Crashed:
      0 anonymousApp 0x00000001010f205c JNIJavaCallWrappers_varargsJavaCallTrampoline_96f844bf1aadbc12a2974b78babd13a7e5b59374 + 4
      1 anonymousApp 0x0000000101a7e420 -[GlassViewDelegate scrollViewDidScroll:] + 23684128 (GlassViewDelegate.m:297)
      2 UIKitCore 0x00000001aef0ce14 -[UIScrollView+ 13557268 (UIScrollViewInternal) _notifyDidScroll] + 72
      3 UIKitCore 0x00000001aeef7f40 -[UIScrollView setContentOffset:] + 760
      4 UIKitCore 0x00000001aef11940 _UIScrollViewAdjustForOverlayInsetsChangeIfNecessary + 364
      5 UIKitCore 0x00000001aef11bd4 -[UIScrollView+ 13577172 (UIScrollViewInternal) setSafeAreaInsets:] + 312
      6 UIKitCore 0x00000001aef50b78 -[UIView _updateCombinedInsetsIfNecessary] + 72
      7 UIKitCore 0x00000001aef6d568 -[UIView+ 13952360 (Internal) _addSubview:positioned:relativeTo:] + 2876

      which happens at this call in scrollViewDidScroll (GlassViewDelegate.m):

      (*env)->CallStaticVoidMethod(env,
                                       jGestureSupportClass,
                                       jGestureSupportScrollGesturePerformed,
                                       self.jView,
                                       modifiers,
                                       isInertia,
                                       viewLoc.x, viewLoc.y,
                                       viewLoc.x, viewLoc.y,
                                       point.x, point.y);

       as it turns out the class jGestureSupportclass hasn't been initialized:

       jGestureSupportclass is 0x0

        Attachments

          Activity

            People

            • Assignee:
              jvos Johan Vos
              Reporter:
              jpereda Jose Pereda
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: