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

NGTriangleMesh: buildGeometry failed in native if a Box has more than 2 dimensions getting degenerated.

    Details

      Description

      In Box.createMesh, comment out
       367 if (w * h * d == 0) {
       368 return null;
       369 }


      D3DMesh::buildBuffers: vertexBufferSize = 0, indexBufferSize = 36
      java.lang.RuntimeException: NGTriangleMesh: buildGeometry failed
      D3DMesh.buildBuffers: CreateVertexBuffer's result = ---- D3DERR_INVALIDCALL
      D3DMesh.buildBuffers: VertexBuffer's result = ---- D3DERR_INVALIDCALL
      D3DMesh.buildBuffers: IndexBuffer's result = ---- D3DERR_INVALIDCALL
      D3DMesh::buildBuffers: vertexBufferSize = 0, indexBufferSize = 36
      D3DMesh.buildBuffers: CreateVertexBuffer's result = ---- D3DERR_INVALIDCALL
      D3DMesh.buildBuffers: VertexBuffer's result = ---- D3DERR_INVALIDCALL
      D3DMesh.buildBuffers: IndexBuffer's result = ---- D3DERR_INVALIDCALL
      D3DMesh::buildBuffers: vertexBufferSize = 0, indexBufferSize = 36
      at com.sun.javafx.sg.prism.NGTriangleMesh.validate(NGTriangleMesh.java:64)
      at com.sun.javafx.sg.prism.NGTriangleMesh.createMesh(NGTriangleMesh.java:57)
      at com.sun.javafx.sg.prism.NGShape3D.renderMeshView(NGShape3D.java:82)
      at com.sun.javafx.sg.prism.NGBox.renderMeshView(NGBox.java:44)
      at com.sun.javafx.sg.prism.NGShape3D.renderContent(NGShape3D.java:193)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
      at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:237)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:203)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
      at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
      at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:222)
      at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
      at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:131)
      at java.lang.Thread.run(Thread.java:722)
      D3D Vram Pool: 3,200,000 used (1.2%), 3,200,000 managed (1.2%), 268,435,456 total
      1 total resources being managed
      0 permanent resources (0.0%)
      1 resources locked (100.0%)
      0 resources contain interesting data (0.0%)
      0 resources disappeared (0.0%)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yaow Yao Wang (Inactive)
                Reporter:
                yaow Yao Wang (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: