Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-138748

QContainerLayer is being erroneously passed to vkCreateMetalSurfaceEXT, causing a crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.11.0 FF
    • 6.10.0 Beta2
    • GUI: Vulkan
    • None
    • MacOS 26 Beta 4
      Qt 6.10.0 Beta 2
      Macbook Air 10,1 (M1)
    • macOS
    • 5f0e6482b (dev)

      I created an issue in the MoltenVK GitHub repository attempting to diagnose a crash which had appeared when running builds of [Azahar](https://github.com/azahar-emu/azahar) compiled using MacOS 26 Beta 4 and Qt 6.10.0 Beta 2.

      The developer who looked at my issue seemed to think this was an issue coming from within Qt. The title of this bug report is based on what they said, so forgive me if it's not 100% accurate because I don't really understand the root cause of the problem.

      This is the issue I originally created which I have been referencing: https://github.com/KhronosGroup/MoltenVK/issues/2587

      For the sake of completeness, I will copy the build instructions for Azahar which I included in the above issue. I will also attach the backtrace as a file.

      -------

      These are the steps I took to produce the problematic build:

      1. On MacOS 26 Beta 4, build and install qtbase, qtshadertools, and qtmultimedia from [here](https://download.qt.io/development_releases/qt/6.10/6.10.0-beta2/submodules/) according to [these instructions](https://doc.qt.io/qt-6/macos-building.html)
      2. Clone Azahar with submodules: `git clone --recursive https://github.com/azahar-emu/azahar`
      3. Inside the cloned directory, create and enter a `build` directory
      4. Configure CMake to use the Qt build we installed earlier and configure for a debug build: `cmake -DUSE_SYSTEM_QT=ON -DCMAKE_BUILD_TYPE="Debug" ..`
      6. Build Azahar: `cmake --build . - -j<jobs>`

      Once Azahar is built, it will be available at `./bin/Release/azahar.app`, with the executable built at `./bin/Release/azahar.app/Contents/MacOS/azahar`.

      To test running the emulator without access to actual 3DS games, you can download and run a simple 3DS homebrew app in the emulator such as this one: https://github.com/BlyZeDev/Paint3DS.

      Before starting the homebrew app, ensure that the Vulkan renderer is selected in the bottom right of the window, and you should encounter the same crash I did:

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lagocs Laszlo Agocs
            opensauce04 Daniel Bradbury
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There is 1 open Gerrit change