You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HandleUsingDestroyedMutex assert can occur on Impeller/Vulkan if a command is submitted after shutdown of the FenceWaiter #187703
Run Gallery on Android with Impeller/Vulkan using a host_debug_unopt build
Go to the Shrine demo
Scroll quickly though the images
Use the Android back gesture to suspend the app before all of the images have been decoded and displayed
On a Pixel 6a, the Mali Vulkan implementation may abort with a call to HandleUsingDestroyedMutex that triggers an assert: Abort message: 'FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xb4000074243e87c4)
This happens because CommandQueueVK::Submit submitted a command buffer with a fence that is then passed to FenceWaiterVK::AddFence. But AddFence fails because the FenceWaiterVK was terminated during engine shutdown.
AddFence then destroys the fence, but the Vulkan implementation still associates the fence with the command buffer. The assert then happens when the command buffer completes and attempts to signal the destroyed fence.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[Impeller] Move queue submission into a callback that is invoked by F…
[Impeller] Move queue submission into a callback that is invoked by F…
[Impeller] Move queue submission into a callback that is invoked by F…
github-actions commentedon Jul 14, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.