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

Crash while running imported/w3c/canvas/2d.gradient.interpolate.overlap2.html

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
    • CPU:
      x86
    • OS:
      windows

      Backports

        Description

        Open the test case[1] in simple WebView to produce the crash.

        [1] http://w3c-test.org/2dcontext/fill-and-stroke-styles/2d.gradient.interpolate.overlap2.html

        Following exception was thrown,

                at com.sun.javafx.webkit.prism.PrismInvoker.runOnRenderThread(PrismInvoker.java:91)
                at com.sun.javafx.webkit.prism.RTImage.getPixelBuffer(RTImage.java:162)
                at com.sun.webkit.network.URLLoader.twkDidFinishLoading(Native Method)
                at com.sun.webkit.network.URLLoader.notifyDidFinishLoading(URLLoader.java:844)
                at com.sun.webkit.network.URLLoader.lambda$didFinishLoading$5(URLLoader.java:835)
                at com.sun.javafx.application.PlatformImpl.lambda$runLater$5(PlatformImpl.java:315)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:314)
                at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
                at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
                at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:189)
                at java.lang.Thread.run(Thread.java:804)
        Caused by: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Requested array size exceeds VM limit
                at java.util.concurrent.FutureTask.report(FutureTask.java:123)
                at java.util.concurrent.FutureTask.get(FutureTask.java:193)
                at com.sun.javafx.webkit.prism.PrismInvoker.runOnRenderThread(PrismInvoker.java:89)
                ... 11 more
        Caused by: java.lang.OutOfMemoryError: Requested array size exceeds VM limit
                at com.sun.prism.impl.paint.MultipleGradientContext.calculateSingleArrayGradient(MultipleGradientContext.java:263)
                at com.sun.prism.impl.paint.MultipleGradientContext.calculateLookupData(MultipleGradientContext.java:220)
                at com.sun.prism.impl.paint.MultipleGradientContext.<init>(MultipleGradientContext.java:137)
                at com.sun.prism.impl.paint.LinearGradientContext.<init>(LinearGradientContext.java:71)
                at com.sun.prism.impl.paint.PaintUtil.fillImageWithGradient(PaintUtil.java:81)
                at com.sun.prism.impl.BaseContext.getGradientTexture(BaseContext.java:526)
                at com.sun.prism.impl.ps.BaseShaderGraphics.renderWithComplexPaint(BaseShaderGraphics.java:433)
                at com.sun.prism.impl.ps.BaseShaderGraphics.fillRect(BaseShaderGraphics.java:1496)
                at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$1.doPaint(WCGraphicsPrismContext.java:525)
                at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1500)
                at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1485)
                at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.fillRect(WCGraphicsPrismContext.java:528)
                at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:99)
                at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:91)
                at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:102)
                at com.sun.webkit.graphics.WCImage.flushRQ(WCImage.java:52)
                at com.sun.javafx.webkit.prism.RTImage.lambda$getPixelBuffer$2(RTImage.java:163)
                at com.sun.javafx.webkit.prism.RTImage$$Lambda$244/1166350219.run(Unknown Source)
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
                at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:307)
                at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1158)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:632)
                at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125)
                ... 1 more


          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  arajkumar Arunprasad Rajkumar
                  Reporter:
                  arajkumar Arunprasad Rajkumar
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: