Hello dear fellow UE devs,
I’m using Unreal for my 2d sidescroller since ~4.20, currently using 5.0.2. Had to switch my nvidia gpu for a amd one and now that I’m able to use vulkan as a rendering backend I’m experiencing a lot of editor crashes when switching to orthographic view.
Here are a few examples:
- Switching from “Perspective” to “Right” mode (Right being the default for Paper2D, as opposed to front)
- Clicking on my orthographic camera actor (Must be because of that little preview window popping up)
- Playing in Fullscreen (Non-Fullscreen works with my ortho camera for some reason)
Setupwise, I’m using some rather exotic stuff, which wasnt a problem using OpenGL:
- Gentoo Linux
- amd rx6650 gpu
- Wayland (SwayWM, wlroots)
- custom Kernel
- a DIY apparmor profile for Unreal (though switching that off didnt help)
- UE5 built from source (vanilla 5.0.2, no modification)
- Vulkan (duh!)
The crash log tends looks like this:
Assertion failed: !EnumHasAnyFlags(StencilAccess, AnyCopy) [File:./Runtime/VulkanRHI/Private/VulkanBarriers.cpp] [Line: 439] Only the Stencil being transitioned to Copy state, this is not supported.
libUnrealEditor-VulkanRHI.so!GetDepthStencilStageAndAccessFlags(ERHIAccess, ERHIAccess, unsigned int&, unsigned int&, VkImageLayout&, bool) [/home/user/UnrealEngine/Engine/Source/./Runtime/VulkanRHI/Private/VulkanBarriers.cpp:439]
libUnrealEditor-VulkanRHI.so!FVulkanDynamicRHI::RHICreateTransition(FRHITransition*, FRHITransitionCreateInfo const&) [/home/user/UnrealEngine/Engine/Source/./Runtime/VulkanRHI/Private/VulkanBarriers.cpp:800]
libUnrealEditor-RenderCore.so!FRDGBarrierBatchBegin::CreateTransition() [/home/user/UnrealEngine/Engine/Source/./Runtime/RenderCore/Private/RenderGraphPass.cpp:162]
libUnrealEditor-RenderCore.so!FRDGBuilder::CreatePassBarriers() [/home/user/UnrealEngine/Engine/Source/./Runtime/RenderCore/Private/RenderGraphBuilder.cpp:2550]
libUnrealEditor-Core.so!TGraphTask<TFunctionGraphTaskImpl<void (ENamedThreads::Type, TRefCountPtr<FGraphEvent> const&), (ESubsequentsMode::Type)0> >::ExecuteTask(TArray<FBaseGraphTask*, TSizedDefaultAllocator<32> >&, ENamedThreads::Type, bool) [/home/user/UnrealEngine/Engine/Source/Runtime/Core/Public/Async/TaskGraphInterfaces.h:975]
libUnrealEditor-Core.so!void LowLevelTasks::FTask::Init<FTaskGraphCompatibilityImplementation::QueueTask(FBaseGraphTask*, bool, ENamedThreads::Type, ENamedThreads::Type)::'lambda'()>(char16_t const*, LowLevelTasks::ETaskPriority, FTaskGraphCompatibilityImplementation::QueueTask(FBaseGraphTask*, bool, ENamedThreads::Type, ENamedThreads::Type)::'lambda'()&&, bool)::'lambda'(bool)::operator()(bool) const [/home/user/UnrealEngine/Engine/Source/Runtime/Core/Public/Async/Fundamental/Task.h:350]
libUnrealEditor-Core.so!LowLevelTasks::TTaskDelegate<void (bool), 48u>::TTaskDelegateImpl<void LowLevelTasks::FTask::Init<FTaskGraphCompatibilityImplementation::QueueTask(FBaseGraphTask*, bool, ENamedThreads::Type, ENamedThreads::Type)::'lambda'()>(char16_t const*, LowLevelTasks::ETaskPriority, FTaskGraphCompatibilityImplementation::QueueTask(FBaseGraphTask*, bool, ENamedThreads::Type, ENamedThreads::Type)::'lambda'()&&, bool)::'lambda'(bool), false>::CallAndMove(LowLevelTasks::TTaskDelegate<void (bool), 48u>&, void*, unsigned int, bool) [/home/user/UnrealEngine/Engine/Source/Runtime/Core/Public/Async/Fundamental/TaskDelegate.h:171]
libUnrealEditor-Core.so!bool LowLevelTasks::FScheduler::TryExecuteTaskFrom<&(LowLevelTasks::TLocalQueueRegistry<1024u>::TLocalQueue::DequeueGlobal(bool, bool)), false>(LowLevelTasks::TLocalQueueRegistry<1024u>::TLocalQueue*, LowLevelTasks::TLocalQueueRegistry<1024u>::FOutOfWork&, bool, bool) [/home/user/UnrealEngine/Engine/Source/./Runtime/Core/Private/Async/Fundamental/Scheduler.cpp:278]
libUnrealEditor-Core.so!LowLevelTasks::FScheduler::WorkerMain(LowLevelTasks::FSleepEvent*, LowLevelTasks::TLocalQueueRegistry<1024u>::TLocalQueue*, unsigned int, bool) [/home/user/UnrealEngine/Engine/Source/./Runtime/Core/Private/Async/Fundamental/Scheduler.cpp:320]
libUnrealEditor-Core.so!FThreadImpl::Run() [/home/user/UnrealEngine/Engine/Source/./Runtime/Core/Private/HAL/Thread.cpp:66]
libUnrealEditor-Core.so!FRunnableThreadPThread::Run() [/home/user/UnrealEngine/Engine/Source/./Runtime/Core/Private/HAL/PThreadRunnableThread.cpp:25]
libUnrealEditor-Core.so!FRunnableThreadPThread::_ThreadProc(void*) [/home/user/UnrealEngine/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.h:185]
libc.so.6!UnknownFunction(0x87b26)
libc.so.6!UnknownFunction(0x109ffb
Anyone got any idea how to fix this? I’m absolutely clueless about SUCH low-levely stuff.
Guess I’m gonna file a bug right after this…
Any help is appreciated!
Greez
Vinni