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

Java3D fail to initialize underlying OGL/D3D library in jdk1.4 sometimes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.3.0, 1.4.0
    • client-libs
    • beta3
    • x86, sparc
    • solaris_8, windows_2000


      This can be reproduced easily if Canvas3D is place inside
      a swing interface and all the swing interface is created
      before java3d initialize the underyling native library.

      There is no such problem under previous version of JDK
      It indicate there is some conflict between the directx
      swing implementation with Java3D.

      Under J3D OGL version.
      wglCreateContext Failed: The handle is invalid
      wglMakeCurrent Failed: The handle is invalid
      extensionStr == null

      Under J3D using D3D 7.0
      Fail to create back buffer - DDERR_INVALIDPARAMS

      Under J3D using D3D 8.0
      Nothing shown, no error message

      -----------------

      It is not always reproduce before, but I do find a case which can
      be reproduced very time.

      --------------------------
      To reproduce
      install Java3D from:
      /net/java3d/export/java3d/builds/release/1.2.1_01/build/win32/release

      Then
      (1) cd /net/java3d/export/java3d/apps/jmvs
      (2) java JMVS
      At this time swing is initialize compeletely
      (3)
      Select File->Open, pdb/2bna.pdb
      This will initialize the underlying Java3D library and
      try to get the pixelFormat (for OGL) and fail.

            mmartaksunw Michael Martak (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: