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

[XP] GUI hang, Warning: Calling other JNI functions in the scope of Get/ReleasePrimit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 5.0
    • client-libs

      FULL PRODUCT VERSION :
      java version "1.5.0_07"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
      Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP SP2

      A DESCRIPTION OF THE PROBLEM :
      some times my applicatoin UI will hang up, it's very random. when I put -Xcheck:jni, everytime when the GUI hang, the console keep printing "Warning: Calling other JNI functions in the scope of Get/ReleasePrimitiveArrayCritical or Get/ReleaseStringCritical". it seems the thread is waiting the state. But there is no way to know which thread and which JNI function caused the problem.

      below are some log messages, looks like the probelm is occured when call sun.awt.windows.XXXX.
      (1)
      [Dynamic-linking native method sun.awt.windows.WComponentPeer.enable ... JNI]
      [Dynamic-linking native method sun.awt.windows.WInputMethod.handleNativeIMEEvent ... JNI]
      Warning: Calling other JNI functions in the scope of Get/ReleasePrimitiveArrayCritical or Get/ReleaseStringCritical
      Warning: Calling other JNI functions in the scope of Get/ReleasePrimitiveArrayCritical or Get/ReleaseStringCritical
      ....


      (2)
      [Dynamic-linking native method sun.awt.windows.WInputMethod.destroyNativeContext ... JNI]
      Warning: Calling other JNI functions in the scope of Get/ReleasePrimitiveArrayCritical or Get/ReleaseStringCritical
      Warning: Calling other JNI functions in the scope of Get/ReleasePrimitiveArrayCritical or Get/ReleaseStringCritical
      .....

      (3)
      [Dynamic-linking native method sun.awt.windows.WComponentPeer.enable ... JNI]
      Warning: Calling other JNI functions in the scope of Get/ReleasePrimitiveArrayCritical or Get/ReleaseStringCritical
      Warning: Calling other JNI functions in the scope of Get/ReleasePrimitiveArrayCritical or Get/ReleaseStringCritical
      .....



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      just start my application, it could occur at any time.


      REPRODUCIBILITY :
      This bug can be reproduced often.

            nishjain Nishit Jain
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: