I have come across two .png images which cause a crash when it is being loaded with CommandList::LoadTextureFromFile. It seems to be an issue where the formats are mismatched when generating mips.
This is with the latest revision of master (at the time of writing).
D3D12 ERROR: ID3D12Device::CreateShaderResourceView: The Format (0x57, B8G8R8A8_UNORM) is invalid when creating a View; it is not a fully qualified format within the same family as the Format of the Resource (0x1c, R8G8B8A8_UNORM). [ STATE_CREATION ERROR #28: CREATESHADERRESOURCEVIEW_INVALIDFORMAT]
D3D12: **BREAK** enabled for the previous message, which was: [ ERROR STATE_CREATION #28: CREATESHADERRESOURCEVIEW_INVALIDFORMAT ]
Exception thrown at 0x00007FFE8608A388 (KernelBase.dll) in Tutorial4.exe: 0x0000087A (parameters: 0x0000000000000001, 0x0000000429168810, 0x000000042916A710).
Unhandled exception at 0x00007FFE8608A388 (KernelBase.dll) in Tutorial4.exe: 0x0000087A (parameters: 0x0000000000000001, 0x0000000429168810, 0x000000042916A710).
Tutorial4.exe!Texture::CreateShaderResourceView(const D3D12_SHADER_RESOURCE_VIEW_DESC * srvDesc) Line 189
Tutorial4.exe!Texture::GetShaderResourceView(const D3D12_SHADER_RESOURCE_VIEW_DESC * srvDesc) Line 217
Tutorial4.exe!CommandList::SetShaderResourceView(unsigned int rootParameterIndex, unsigned int descriptorOffset, const Resource & resource, D3D12_RESOURCE_STATES stateAfter, unsigned int firstSubresource, unsigned int numSubresources, const D3D12_SHADER_RESOURCE_VIEW_DESC * srv) Line 892
Tutorial4.exe!CommandList::GenerateMips_UAV(Texture & texture, DXGI_FORMAT format) Line 550
Tutorial4.exe!CommandList::GenerateMips(Texture & texture) Line 472
Tutorial4.exe!CommandList::GenerateMips(Texture & texture) Line 359
Tutorial4.exe!CommandList::LoadTextureFromFile(Texture & texture, const std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > & fileName, TextureUsage textureUsage) Line 346
Tutorial4.exe!Tutorial4::LoadContent() Line 195