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

Lanai : Crash on graphics card switch when Metal API validation is enabled

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      System to test should have a dual graphics card.

      1) Enable Metal API validation (export METAL_DEVICE_WRAPPER_TYPE=1)
      2) Launch SwingSet2 demo or any other application with Metal rendering pipeline (-Dsun.java2d.metal=true)
      3) toggle "Automatic graphics switching" setting

      Application launched in step 2 crashes with following error.

      -[MTLDebugRenderCommandEncoder setFragmentSamplerState:atIndex:]:1950: failed assertion `sampler is associated with a different device'


      Note : the crash is observed both ways - a switch from integrated GPU to discrete GPU and the other way round.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aghaisas Ajit Ghaisas
              Reporter:
              aghaisas Ajit Ghaisas
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: