Crash observed while running Media->Streaming Media Player sample with metal pipeline.
System : macBook pro 16" with discrete graphics card
OS : macOS Ventura 13.2.1
Note :
1) When started, the sample plays media well. The crash happens randomly once the video plays past 75% of the video timeline.
2) This crash is observed with Media-> Overlay Media Player sample as well
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0xa) at pc=0x00007ffa1f1a8588, pid=43397, tid=28163
#
# JRE version: Java(TM) SE Runtime Environment (19.0+26) (build 19-ea+26-2060)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (19-ea+26-2060, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-amd64)
# Problematic frame:
# C [AMDRadeonX6000MTLDriver+0x26588] amdMtl_DeviceAcquireEncoderIdAddr(GFXAAMD_MtlDevice*)+0xd9
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- S U M M A R Y ------------
Command Line: --module-path=/Users/ajitghaisas/dev/work/jfx_workspace/jfx_sandbox/build/sdk/lib --add-modules=javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web ./apps/samples/Ensemble8/dist/Ensemble8.jar
Host: "MacBookPro16,1" x86_64 2600 MHz, 12 cores, 32G, Darwin 22.3.0, macOS 13.2.1 (22D68)
Time: Tue May 30 12:59:28 2023 IST elapsed time: 135.213604 seconds (0d 0h 2m 15s)
--------------- T H R E A D ---------------
Current thread (0x00007f9b6b90ee00): JavaThread "QuantumRenderer-0" daemon [_thread_in_native, id=28163, stack(0x000070000fc25000,0x000070000fd25000)]
Stack: [0x000070000fc25000,0x000070000fd25000], sp=0x000070000fd22ea0, free space=1015k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [AMDRadeonX6000MTLDriver+0x26588] amdMtl_DeviceAcquireEncoderIdAddr(GFXAAMD_MtlDevice*)+0xd9
C [AMDRadeonX6000MTLDriver+0x9f1a8] amdMtl_CmdBuffer_BeginEncoder(GFXAAMD_MtlCmdBuffer*)+0x75
C [AMDRadeonX6000MTLDriver+0x16b678] -[GFX10_MtlRenderCmdEncoder initWithCommandBuffer:descriptor:]+0xc05
C [AMDRadeonX6000MTLDriver+0xfcc67] -[GFX10_MtlCmdBuffer renderCommandEncoderWithDescriptor:]+0x39
C [libprism_mtl.dylib+0x3ae9] -[MetalContext drawIndexedQuads:ofColors:vertexCount:]+0x99
C [libprism_mtl.dylib+0x50a3] Java_com_sun_prism_mtl_MTLContext_nDrawIndexedQuads+0x63
J 3557 com.sun.prism.mtl.MTLContext.nDrawIndexedQuads(J[F[BI)I javafx.graphics@21-internal (0 bytes) @ 0x0000000112850f0f [0x0000000112850e20+0x00000000000000ef]
J 4007 c2 com.sun.prism.mtl.MTLContext.renderQuads([F[BI)V javafx.graphics@21-internal (187 bytes) @ 0x0000000112898dc8 [0x0000000112895640+0x0000000000003788]
J 5423 c2 com.sun.prism.impl.ps.BaseShaderContext.checkState(Lcom/sun/prism/impl/ps/BaseShaderGraphics;ILcom/sun/javafx/geom/transform/BaseTransform;Lcom/sun/prism/ps/Shader;)V javafx.graphics@21-internal (211 bytes) @ 0x00000001126fa998 [0x00000001126fa6c0+0x00000000000002d8]
J 5056 c2 com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(Lcom/sun/prism/impl/ps/BaseShaderGraphics;Lcom/sun/javafx/geom/transform/BaseTransform;Lcom/sun/prism/impl/ps/BaseShaderContext$MaskType;Lcom/sun/prism/Texture;FFFF)Lcom/sun/prism/ps/Shader; javafx.graphics@21-internal (321 bytes) @ 0x0000000112950ea4 [0x0000000112950c00+0x00000000000002a4]
J 6531 c2 com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(FFFFFFFFFFLcom/sun/javafx/geom/transform/BaseTransform;Lcom/sun/prism/impl/ps/BaseShaderContext$MaskType;FFFF)V javafx.graphics@21-internal (1199 bytes) @ 0x00000001129abda8 [0x00000001129ab8c0+0x00000000000004e8]
J 6534 c2 com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(FFFFFFLcom/sun/prism/impl/ps/BaseShaderContext$MaskType;Lcom/sun/prism/BasicStroke;)V javafx.graphics@21-internal (388 bytes) @ 0x00000001129adfc0 [0x00000001129adea0+0x0000000000000120]
J 6556 c2 com.sun.javafx.sg.prism.NGRegion.renderBackgroundRectanglesDirectly(Lcom/sun/prism/Graphics;FF)V javafx.graphics@21-internal (346 bytes) @ 0x00000001129b4160 [0x00000001129b4060+0x0000000000000100]
J 6551 c2 com.sun.javafx.sg.prism.NGRegion.renderBackgroundRectangle(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (1168 bytes) @ 0x00000001129b1e18 [0x00000001129b1ac0+0x0000000000000358]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681218 [0x0000000112681120+0x00000000000000f8]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 5060 c2 com.sun.javafx.sg.prism.NGGroup.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (422 bytes) @ 0x0000000112953650 [0x00000001129534c0+0x0000000000000190]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681280 [0x0000000112681120+0x0000000000000160]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 5060 c2 com.sun.javafx.sg.prism.NGGroup.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (422 bytes) @ 0x0000000112953650 [0x00000001129534c0+0x0000000000000190]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681280 [0x0000000112681120+0x0000000000000160]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 5060 c2 com.sun.javafx.sg.prism.NGGroup.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (422 bytes) @ 0x0000000112953650 [0x00000001129534c0+0x0000000000000190]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681280 [0x0000000112681120+0x0000000000000160]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 5060 c2 com.sun.javafx.sg.prism.NGGroup.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (422 bytes) @ 0x0000000112953650 [0x00000001129534c0+0x0000000000000190]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681280 [0x0000000112681120+0x0000000000000160]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 5060 c2 com.sun.javafx.sg.prism.NGGroup.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (422 bytes) @ 0x0000000112953650 [0x00000001129534c0+0x0000000000000190]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681280 [0x0000000112681120+0x0000000000000160]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 5060 c2 com.sun.javafx.sg.prism.NGGroup.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (422 bytes) @ 0x0000000112953650 [0x00000001129534c0+0x0000000000000190]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681280 [0x0000000112681120+0x0000000000000160]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 4610 c2 com.sun.javafx.sg.prism.NGNode.render(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (39 bytes) @ 0x00000001128eb144 [0x00000001128eb0c0+0x0000000000000084]
J 6080 c1 com.sun.javafx.tk.quantum.ViewPainter.doPaint(Lcom/sun/prism/Graphics;Lcom/sun/javafx/sg/prism/NodePath;)V javafx.graphics@21-internal (206 bytes) @ 0x000000010acdc5d4 [0x000000010acdb740+0x0000000000000e94]
J 6491 c1 com.sun.javafx.tk.quantum.ViewPainter.paintImpl(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (1455 bytes) @ 0x000000010b732794 [0x000000010b7300a0+0x00000000000026f4]
J 6387 c1 com.sun.javafx.tk.quantum.UploadingPainter.run()V javafx.graphics@21-internal (1148 bytes) @ 0x000000010b6dea8c [0x000000010b6d7960+0x000000000000712c]
J 6488 c1 java.util.concurrent.Executors$RunnableAdapter.call()Ljava/lang/Object; java.base@19-ea (14 bytes) @ 0x000000010b72d7d4 [0x000000010b72d6c0+0x0000000000000114]
J 6487 c1 java.util.concurrent.FutureTask.runAndReset()Z java.base@19-ea (125 bytes) @ 0x000000010b72b7ac [0x000000010b72afa0+0x000000000000080c]
J 6382 c1 com.sun.javafx.tk.RenderJob.run()V javafx.graphics@21-internal (95 bytes) @ 0x000000010b0ea39c [0x000000010b0ea320+0x000000000000007c]
j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+92 java.base@19-ea
j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 java.base@19-ea
j com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run()V+8 javafx.graphics@21-internal
j java.lang.Thread.run()V+13 java.base@19-ea
v ~StubRoutines::call_stub 0x00000001120dccc6
V [libjvm.dylib+0x5638f1] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x2a1
V [libjvm.dylib+0x562967] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x147
V [libjvm.dylib+0x562a33] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x63
V [libjvm.dylib+0x60ace8] thread_entry(JavaThread*, JavaThread*)+0x98
V [libjvm.dylib+0xa63719] JavaThread::thread_main_inner()+0xc9
V [libjvm.dylib+0xa61c7f] Thread::call_run()+0xcf
V [libjvm.dylib+0x8f66d7] thread_native_entry(Thread*)+0x147
C [libsystem_pthread.dylib+0x6259] _pthread_start+0x7d
C [libsystem_pthread.dylib+0x1c7b] thread_start+0xf
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 3557 com.sun.prism.mtl.MTLContext.nDrawIndexedQuads(J[F[BI)I javafx.graphics@21-internal (0 bytes) @ 0x0000000112850e94 [0x0000000112850e20+0x0000000000000074]
J 4007 c2 com.sun.prism.mtl.MTLContext.renderQuads([F[BI)V javafx.graphics@21-internal (187 bytes) @ 0x0000000112898dc8 [0x0000000112895640+0x0000000000003788]
J 5423 c2 com.sun.prism.impl.ps.BaseShaderContext.checkState(Lcom/sun/prism/impl/ps/BaseShaderGraphics;ILcom/sun/javafx/geom/transform/BaseTransform;Lcom/sun/prism/ps/Shader;)V javafx.graphics@21-internal (211 bytes) @ 0x00000001126fa998 [0x00000001126fa6c0+0x00000000000002d8]
J 5056 c2 com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(Lcom/sun/prism/impl/ps/BaseShaderGraphics;Lcom/sun/javafx/geom/transform/BaseTransform;Lcom/sun/prism/impl/ps/BaseShaderContext$MaskType;Lcom/sun/prism/Texture;FFFF)Lcom/sun/prism/ps/Shader; javafx.graphics@21-internal (321 bytes) @ 0x0000000112950ea4 [0x0000000112950c00+0x00000000000002a4]
J 6531 c2 com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(FFFFFFFFFFLcom/sun/javafx/geom/transform/BaseTransform;Lcom/sun/prism/impl/ps/BaseShaderContext$MaskType;FFFF)V javafx.graphics@21-internal (1199 bytes) @ 0x00000001129abda8 [0x00000001129ab8c0+0x00000000000004e8]
J 6534 c2 com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(FFFFFFLcom/sun/prism/impl/ps/BaseShaderContext$MaskType;Lcom/sun/prism/BasicStroke;)V javafx.graphics@21-internal (388 bytes) @ 0x00000001129adfc0 [0x00000001129adea0+0x0000000000000120]
J 6556 c2 com.sun.javafx.sg.prism.NGRegion.renderBackgroundRectanglesDirectly(Lcom/sun/prism/Graphics;FF)V javafx.graphics@21-internal (346 bytes) @ 0x00000001129b4160 [0x00000001129b4060+0x0000000000000100]
J 6551 c2 com.sun.javafx.sg.prism.NGRegion.renderBackgroundRectangle(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (1168 bytes) @ 0x00000001129b1e18 [0x00000001129b1ac0+0x0000000000000358]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681218 [0x0000000112681120+0x00000000000000f8]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 5060 c2 com.sun.javafx.sg.prism.NGGroup.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (422 bytes) @ 0x0000000112953650 [0x00000001129534c0+0x0000000000000190]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681280 [0x0000000112681120+0x0000000000000160]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 5060 c2 com.sun.javafx.sg.prism.NGGroup.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (422 bytes) @ 0x0000000112953650 [0x00000001129534c0+0x0000000000000190]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681280 [0x0000000112681120+0x0000000000000160]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 5060 c2 com.sun.javafx.sg.prism.NGGroup.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (422 bytes) @ 0x0000000112953650 [0x00000001129534c0+0x0000000000000190]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681280 [0x0000000112681120+0x0000000000000160]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 5060 c2 com.sun.javafx.sg.prism.NGGroup.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (422 bytes) @ 0x0000000112953650 [0x00000001129534c0+0x0000000000000190]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681280 [0x0000000112681120+0x0000000000000160]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 5060 c2 com.sun.javafx.sg.prism.NGGroup.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (422 bytes) @ 0x0000000112953650 [0x00000001129534c0+0x0000000000000190]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681280 [0x0000000112681120+0x0000000000000160]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 5060 c2 com.sun.javafx.sg.prism.NGGroup.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (422 bytes) @ 0x0000000112953650 [0x00000001129534c0+0x0000000000000190]
J 5488 c2 com.sun.javafx.sg.prism.NGRegion.renderContent(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (115 bytes) @ 0x0000000112681280 [0x0000000112681120+0x0000000000000160]
J 5422 c2 com.sun.javafx.sg.prism.NGNode.doRender(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (473 bytes) @ 0x0000000112817018 [0x0000000112816e20+0x00000000000001f8]
J 4610 c2 com.sun.javafx.sg.prism.NGNode.render(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (39 bytes) @ 0x00000001128eb144 [0x00000001128eb0c0+0x0000000000000084]
J 6080 c1 com.sun.javafx.tk.quantum.ViewPainter.doPaint(Lcom/sun/prism/Graphics;Lcom/sun/javafx/sg/prism/NodePath;)V javafx.graphics@21-internal (206 bytes) @ 0x000000010acdc5d4 [0x000000010acdb740+0x0000000000000e94]
J 6491 c1 com.sun.javafx.tk.quantum.ViewPainter.paintImpl(Lcom/sun/prism/Graphics;)V javafx.graphics@21-internal (1455 bytes) @ 0x000000010b732794 [0x000000010b7300a0+0x00000000000026f4]
J 6387 c1 com.sun.javafx.tk.quantum.UploadingPainter.run()V javafx.graphics@21-internal (1148 bytes) @ 0x000000010b6dea8c [0x000000010b6d7960+0x000000000000712c]
J 6488 c1 java.util.concurrent.Executors$RunnableAdapter.call()Ljava/lang/Object; java.base@19-ea (14 bytes) @ 0x000000010b72d7d4 [0x000000010b72d6c0+0x0000000000000114]
J 6487 c1 java.util.concurrent.FutureTask.runAndReset()Z java.base@19-ea (125 bytes) @ 0x000000010b72b7ac [0x000000010b72afa0+0x000000000000080c]
J 6382 c1 com.sun.javafx.tk.RenderJob.run()V javafx.graphics@21-internal (95 bytes) @ 0x000000010b0ea39c [0x000000010b0ea320+0x000000000000007c]
j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+92 java.base@19-ea
j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 java.base@19-ea
j com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run()V+8 javafx.graphics@21-internal
j java.lang.Thread.run()V+13 java.base@19-ea
v ~StubRoutines::call_stub 0x00000001120dccc6