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

Lanai: Crash in MTLLayer blitTexture when Metal API Validation enabled

    XMLWordPrintable

Details

    • 2d

    Description

      Crash happens on start of SwingSet2 with METAL_DEVICE_WRAPPER_TYPE=1. Reproducible on Mac mini 2018 macOS 10.15.6

      -[MTLDebugBlitCommandEncoder internalValidateCopyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:options:], line 474: error '(sourceOrigin.y + sourceSize.height)(88) must be <= height(44).'
      -[MTLDebugBlitCommandEncoder internalValidateCopyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:options:]:474: failed assertion `(sourceOrigin.y + sourceSize.height)(88) must be <= height(44).'
      Signal: SIGABRT (signal SIGABRT)

      Here is the stack:
      __pthread_kill 0x00007fff6a8b633a
      pthread_kill 0x00007fff6a972e60
      abort 0x00007fff6a83d808
      __assert_rtn 0x00007fff6a83cac6
      MTLReportFailure.cold.2 0x00007fff35c39729
      MTLReportFailure 0x00007fff35c2ce88
      -[MTLDebugBlitCommandEncoder internalValidateCopyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:options:] 0x00007fff572452ae
      -[MTLDebugBlitCommandEncoder validateCopyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:options:move:] 0x00007fff5724570a
      -[MTLDebugBlitCommandEncoder copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:] 0x00007fff57245b97
      -[MTLLayer blitTexture] MTLLayer.m:107
      <unknown> 0x0000000105225d49
      <unknown> 0x000000010521f5dd
      <unknown> 0x000000010521f5dd
      <unknown> 0x000000010521fa4d
      <unknown> 0x000000010521f5dd
      <unknown> 0x0000000105216d4a
      JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*) javaCalls.cpp:426
      jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) jni.cpp:947
      ::jni_CallVoidMethod(JNIEnv *, jobject, jmethodID, ...) jni.cpp:1304
      -[MTLLayer blitCallback] MTLLayer.m:145
      -[MTLLayer display] MTLLayer.m:153
      CA::Layer::display_if_needed(CA::Transaction*) 0x00007fff3c1abe09
      CA::Context::commit_transaction(CA::Transaction*, double) 0x00007fff3c18a106
      CA::Transaction::commit() 0x00007fff3c188cf0
      __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke 0x00007fff2dacada1
      ___NSRunLoopObserverCreateWithHandler_block_invoke 0x00007fff2e1ea080
      __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 0x00007fff306ba335
      __CFRunLoopDoObservers 0x00007fff306ba267
      __CFRunLoopRun 0x00007fff306b9805
      CFRunLoopRunSpecific 0x00007fff306b8e3e
      RunCurrentEventLoopInMode 0x00007fff2f2e5abd
      ReceiveNextEventCommon 0x00007fff2f2e57d5
      _BlockUntilNextEventMatchingListInModeWithFilter 0x00007fff2f2e5579
      _DPSNextEvent 0x00007fff2d92b039
      -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] 0x00007fff2d929880
      -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] NSApplicationAWT.m:373
      -[NSApplication run] 0x00007fff2d91b58e
      +[NSApplicationAWT runAWTLoopWithApp:] NSApplicationAWT.m:331
      __SplashInitPlatform_block_invoke splashscreen_sys.m:229
      +[ThreadUtilities invokeBlockCopy:] ThreadUtilities.m:98
      __NSThreadPerformPerform 0x00007fff32d8f0dd
      __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ 0x00007fff306bad52
      __CFRunLoopDoSource0 0x00007fff306bacf1
      __CFRunLoopDoSources0 0x00007fff306bab0b
      __CFRunLoopRun 0x00007fff306b983a
      CFRunLoopRunSpecific 0x00007fff306b8e3e
      CreateExecutionEnvironment java_md_macosx.m:321
      CreateExecutionEnvironment java_md_macosx.m:354
      CreateExecutionEnvironment java_md_macosx.m:401
      JLI_Launch java.c:282
      main main.c:206
      start 0x00007fff6a76ecc9

      Attachments

        Activity

          People

            avu Alexey Ushakov
            avu Alexey Ushakov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: