baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
8.86k stars 1.33k forks source link

failed assertion on xcode #2812

Closed phoenixgou closed 1 year ago

phoenixgou commented 1 year ago

dear, please help me~~ git checkout renderdoc then build a xcode project.

cmake -H. -Bbuild-xcode -G Xcode

run and capture a vulkan app successfully.

but when i try to open the .rdc, issue a assert.

here is the output and callback

DOC 032803: [22:21:04]          vk_core.cpp(2781) - Debug   - Allocating 2176 persistant bytes of memory for the log.
RDOC 032803: [22:21:04]          vk_core.cpp(2629) - Log     - Timer chunk initialisation - 529.216 ms
QTRD 032803: [22:21:04]    ReplayManager.cpp( 464) - Log     - QRenderDoc - renderer created for "/private/var/folders/sv/7jnlx0bs2_q7nkcwxb0_s5c80000gp/T/RenderDoc/VulkanTesting_2023.01.02_14.20.49_frame1016.rdc"
RDOC 032803: [22:21:04]   resource_manager.h(1347) - Debug   - Applying initial contents
RDOC 032803: [22:21:04]   resource_manager.h(1356) - Debug   - Applied 1
RDOC 032803: [22:21:04]         vk_apple.cpp( 107) - Debug   - Creating macOS surface with EXT_metal_surface
RDOC 032803: [22:21:04]         vk_apple.cpp( 107) - Debug   - Creating macOS surface with EXT_metal_surface
RDOC 032803: [22:21:04]         vk_apple.cpp( 107) - Debug   - Creating macOS surface with EXT_metal_surface
RDOC 032803: [22:21:04]         vk_apple.cpp( 107) - Debug   - Creating macOS surface with EXT_metal_surface
-[MTLDebugRenderCommandEncoder setVertexSamplerState:atIndex:]:1659: failed assertion `index(16) must be < 16.'
-[MTLDebugRenderCommandEncoder setVertexSamplerState:atIndex:]:1659: failed assertion `index(16) must be < 16.'
(lldb) 
#18 0x0000000109d78c81 in WrappedVulkan::SubmitCmds(VkSemaphore_T**, unsigned int*, unsigned int) at /Users/thomas/work/renderdoc/renderdoc/driver/vulkan/vk_core.cpp:347
#19 0x0000000109eedd27 in VulkanReplay::GetOutputWindowData(unsigned long long, bytebuf&) at /Users/thomas/work/renderdoc/renderdoc/driver/vulkan/vk_outputwindow.cpp:811
#20 0x000000010b38c8ad in ReplayOutput::DrawThumbnail(int, int, ResourceId, Subresource const&, CompType) at /Users/thomas/work/renderdoc/renderdoc/replay/replay_output.cpp:490
#21 0x000000010215bf97 in TextureViewer::UI_PreviewResized(ResourcePreview*)::$_92::operator()(IReplayController*) const at /Users/thomas/work/renderdoc/qrenderdoc/Windows/TextureViewer.cpp:2442
#22 0x000000010215bed2 in decltype(std::__1::forward<TextureViewer::UI_PreviewResized(ResourcePreview*)::$_92&>(fp)(std::__1::forward<IReplayController*>(fp0))) std::__1::__invoke<TextureViewer::UI_PreviewResized(ResourcePreview*)::$_92&, IReplayController*>(TextureViewer::UI_PreviewResized(ResourcePreview*)::$_92&, IReplayController*&&) at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/type_traits:3694
#23 0x000000010215be72 in void std::__1::__invoke_void_return_wrapper<void, true>::__call<TextureViewer::UI_PreviewResized(ResourcePreview*)::$_92&, IReplayController*>(TextureViewer::UI_PreviewResized(ResourcePreview*)::$_92&, IReplayController*&&) at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__functional_base:348
#24 0x000000010215be32 in std::__1::__function::__alloc_func<TextureViewer::UI_PreviewResized(ResourcePreview*)::$_92, std::__1::allocator<TextureViewer::UI_PreviewResized(ResourcePreview*)::$_92>, void (IReplayController*)>::operator()(IReplayController*&&) at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/functional:1558
#25 0x000000010215ad81 in std::__1::__function::__func<TextureViewer::UI_PreviewResized(ResourcePreview*)::$_92, std::__1::allocator<TextureViewer::UI_PreviewResized(ResourcePreview*)::$_92>, void (IReplayController*)>::operator()(IReplayController*&&) at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/functional:1732
#26 0x0000000101dd417a in std::__1::__function::__value_func<void (IReplayController*)>::operator()(IReplayController*&&) const at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/functional:1885
#27 0x0000000101db884d in std::__1::function<void (IReplayController*)>::operator()(IReplayController*) const at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/functional:2560
#28 0x0000000101db8317 in ReplayManager::run(int, QString const&, ReplayOptions const&, std::__1::function<void (float)>) at /Users/thomas/work/renderdoc/qrenderdoc/Code/ReplayManager.cpp:495
#29 0x0000000101dbca8d in ReplayManager::OpenCapture(QString const&, ReplayOptions const&, std::__1::function<void (float)>)::$_0::operator()() const at /Users/thomas/work/renderdoc/qrenderdoc/Code/ReplayManager.cpp:58
#30 0x0000000101dbc9fd in decltype(std::__1::forward<ReplayManager::OpenCapture(QString const&, ReplayOptions const&, std::__1::function<void (float)>)::$_0&>(fp)()) std::__1::__invoke<ReplayManager::OpenCapture(QString const&, ReplayOptions const&, std::__1::function<void (float)>)::$_0&>(ReplayManager::OpenCapture(QString const&, ReplayOptions const&, std::__1::function<void (float)>)::$_0&) at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/type_traits:3694
#31 0x0000000101dbc9ad in void std::__1::__invoke_void_return_wrapper<void, true>::__call<ReplayManager::OpenCapture(QString const&, ReplayOptions const&, std::__1::function<void (float)>)::$_0&>(ReplayManager::OpenCapture(QString const&, ReplayOptions const&, std::__1::function<void (float)>)::$_0&) at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/__functional_base:348
#32 0x0000000101dbc97d in std::__1::__function::__alloc_func<ReplayManager::OpenCapture(QString const&, ReplayOptions const&, std::__1::function<void (float)>)::$_0, std::__1::allocator<ReplayManager::OpenCapture(QString const&, ReplayOptions const&, std::__1::function<void (float)>)::$_0>, void ()>::operator()() at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/functional:1558
#33 0x0000000101dbb429 in std::__1::__function::__func<ReplayManager::OpenCapture(QString const&, ReplayOptions const&, std::__1::function<void (float)>)::$_0, std::__1::allocator<ReplayManager::OpenCapture(QString const&, ReplayOptions const&, std::__1::function<void (float)>)::$_0>, void ()>::operator()() at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/functional:1732
#34 0x0000000101c3f692 in std::__1::__function::__value_func<void ()>::operator()() const at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/functional:1885
#35 0x0000000101c3f635 in std::__1::function<void ()>::operator()() const at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/c++/v1/functional:2560
#36 0x0000000101db93cb in LambdaThread::process() at /Users/thomas/work/renderdoc/qrenderdoc/Code/QRDUtils.h:510
#37 0x0000000101db9a7b in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (LambdaThread::*)()>::call(void (LambdaThread::*)(), LambdaThread*, void**) at /usr/local/Cellar/qt@5/5.15.7_1/lib/QtCore.framework/Headers/qobjectdefs_impl.h:152
#38 0x0000000101db99ed in void QtPrivate::FunctionPointer<void (LambdaThread::*)()>::call<QtPrivate::List<>, void>(void (LambdaThread::*)(), LambdaThread*, void**) at /usr/local/Cellar/qt@5/5.15.7_1/lib/QtCore.framework/Headers/qobjectdefs_impl.h:185
#39 0x0000000101db9942 in QtPrivate::QSlotObject<void (LambdaThread::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) at /usr/local/Cellar/qt@5/5.15.7_1/lib/QtCore.framework/Headers/qobjectdefs_impl.h:418
#40 0x000000010790f2d4 in ___lldb_unnamed_symbol2598$$QtCore ()
#41 0x0000000107719b28 in QThread::started(QThread::QPrivateSignal) ()
#42 0x000000010771a326 in ___lldb_unnamed_symbol241$$QtCore ()
#43 0x0000000107d101b8 in _pthread_start ()
#44 0x0000000107d0baf7 in thread_start ()
baldurk commented 1 year ago

Hi there, your issue has been closed due to not correctly following the issue template. Please read the documentation about filing issues and open a new issue which does follow the issue template. Do not reply to this issue with more information or with a correctly formatted issue, as that will only lead to confusion.

I try to address all github issues and fix bugs quickly, but badly formatted issues or poorly described bug reports especially are a significant drain on project resources. Taking a few minutes to file a good issue makes a huge difference and will get it addressed faster - everybody wins!

In github when you first create a new issue the form is pre-populated with a template which you should read over and follow. As linked above there is documentation going into more detail about what makes a good issue.