yuzu icon indicating copy to clipboard operation
yuzu copied to clipboard

Crash: VK_ERROR_FEATURE_NOT_PRESENT: vkCreateImageView(): 2D views on 3D images can only be used as color attachments.

Open Halopend opened this issue 1 year ago • 7 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Affected Build(s)

Mainline / EA (16939b1a6e14459f1cc8416d46715b09572b4c06)

Description of Issue

Can't find where people are getting the # versioning numbers from, but I've been experiencing this bug for a week (and only started compiling this week)

Seems related to https://github.com/KhronosGroup/MoltenVK/issues/970

Note I'm inferring it happens in EA as the game crashes in the same spot (beginning), but I'm having separate compilation issues there so I can't double check (issue on my end).

Expected Behavior

Not Crashing

Reproduction Steps

Build from source using:

export LDFLAGS="-L/opt/homebrew/opt/qt@5/lib"
export CPPFLAGS="-I/opt/homebrew/opt/qt@5/include"
export Qt5_DIR="/opt/homebrew/opt/qt@5/lib/cmake"
cd build
cmake .. -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DYUZU_USE_BUNDLED_VCPKG=OFF -DYUZU_TESTS=OFF -DENABLE_WEB_SERVICE=OFF -DENABLE_LIBUSB=OFF

ninja

Run Using

#!/bin/sh
export LIBVULKAN_PATH=/opt/homebrew/lib/libvulkan.dylib
build/bin/yuzu.app/Contents/MacOS/yuzu

Log File

[  24.111232] Service.FS <Info> core/hle/service/filesystem/fsp_srv.cpp:OpenSaveDataFileSystem:873: called.
[  24.124824] Service <Warning> core/hle/service/sm/sm_controller.cpp:QueryPointerBufferSize:72: (STUBBED) called
[  24.127775] Service.AM <Warning> core/hle/service/am/am.cpp:SetOperationModeChangedNotification:406: (STUBBED) called flag=true
[  24.127802] Service.AM <Warning> core/hle/service/am/am.cpp:SetPerformanceModeChangedNotification:416: (STUBBED) called flag=true
[  24.144844] Service.FS <Info> core/hle/service/filesystem/fsp_srv.cpp:OpenSaveDataFileSystem:873: called.
[  24.145161] Debug <Critical> core/hle/service/filesystem/fsp_srv.cpp:operator():897: Assertion Failed!
[  24.149093] Debug <Critical> core/hle/service/service.cpp:operator():135: Assertion Failed!
Unknown / unimplemented function 'OpenCacheStorageList': port='fsp-srv' cmd_buf={[0]=0x6, [1]=0xC, [2]=0x0, [3]=0x0, [4]=0x100001, [5]=0x1, [6]=0x0, [7]=0x0, [8]=0x49434653}
[  24.150471] HW.Memory <Error> core/memory.cpp:operator():652: Unmapped Read64 @ 0x0000000000000008
[  24.150475] HW.Memory <Error> core/memory.cpp:operator():652: Unmapped Read64 @ 0x0000000000000010
[  24.150476] HW.Memory <Error> core/memory.cpp:operator():652: Unmapped Read64 @ 0x0000000000000000
[  24.153118] Service.FS <Info> core/hle/service/filesystem/fsp_srv.cpp:OpenSaveDataFileSystem:873: called.
[  24.160942] Service.FS <Warning> core/hle/service/filesystem/fsp_srv.cpp:Commit:478: (STUBBED) called
[  24.164179] Service.FS <Warning> core/hle/service/filesystem/fsp_srv.cpp:Commit:478: (STUBBED) called
[  24.165579] Service.FS <Info> core/hle/service/filesystem/fsp_srv.cpp:OpenSaveDataFileSystem:873: called.
[  24.167737] Service.FS <Info> core/hle/service/filesystem/fsp_srv.cpp:OpenSaveDataFileSystem:873: called.
[  24.452801] Service.NVDRV <Warning> core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp:ZBCSetTable:251: (STUBBED) called
[  24.452804] Service.NVDRV <Warning> core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp:ZBCSetTable:259: Avoiding passing null pointer to memcpy
[  24.453200] Service.NVDRV <Warning> core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp:ZBCSetTable:251: (STUBBED) called
[  24.453202] Service.NVDRV <Warning> core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp:ZBCSetTable:259: Avoiding passing null pointer to memcpy
[mvk-info] Created 3 swapchain images with initial size (200, 60) and contents scale 2.0 for screen Built-in Retina Display.
[  27.013665] Service <Warning> core/hle/service/sm/sm_controller.cpp:QueryPointerBufferSize:72: (STUBBED) called
[mvk-info] Created 3 swapchain images with initial size (1886, 1504) and contents scale 2.0 for screen Built-in Retina Display.
[  27.830760] Service <Warning> core/hle/service/sm/sm_controller.cpp:QueryPointerBufferSize:72: (STUBBED) called
[  27.835300] Service.NFP <Info> core/hle/service/nfp/nfp_interface.cpp:Initialize:31: called
[  27.836250] Service.NFP <Info> core/hle/service/nfp/nfp_interface.cpp:AttachAvailabilityChangeEvent:646: called
[  28.897282] Service.FS <Info> core/hle/service/filesystem/fsp_srv.cpp:OpenSaveDataFileSystem:873: called.
[  28.905661] Service.AM <Warning> core/hle/service/am/am.cpp:NotifyRunning:1672: (STUBBED) called
[  29.159584] Service.AM <Warning> core/hle/service/am/am.cpp:SetIdleTimeDetectionExtension:509: (STUBBED) called idle_time_detection_extension=1
[  30.126075] Service.FS <Warning> core/hle/service/filesystem/fsp_srv.cpp:Commit:478: (STUBBED) called
[  30.189571] Service.FS <Warning> core/hle/service/filesystem/fsp_srv.cpp:Commit:478: (STUBBED) called
[  30.275022] Service.FS <Warning> core/hle/service/filesystem/fsp_srv.cpp:Commit:478: (STUBBED) called
[  30.336381] Service.FS <Warning> core/hle/service/filesystem/fsp_srv.cpp:Commit:478: (STUBBED) called
[  30.421481] Service.FS <Warning> core/hle/service/filesystem/fsp_srv.cpp:Commit:478: (STUBBED) called
[  30.485117] Service.FS <Warning> core/hle/service/filesystem/fsp_srv.cpp:Commit:478: (STUBBED) called
Task Terminated with exit code 134
[mvk-error] VK_ERROR_FEATURE_NOT_PRESENT: vkCreateImageView(): 2D views on 3D images can only be used as color attachments.
libc++abi: terminating due to uncaught exception of type Vulkan::vk::Exception: VK_ERROR_FEATURE_NOT_PRESENT
/var/folders/_h/j3nzvpfx6234bms3x4ylc87c0000gn/T/com.panic.Nova/69E2F770-29B8-4781-90E3-ABD13C91117F.sh: line 3: 48588 Abort trap: 6

System Configuration

CPU: Apple M1 Pro GPU/Driver: Vulkan RAM: 16GB OS: Ventura 13.1.1

Halopend avatar May 05 '23 14:05 Halopend