| Summary: | [ Mac wk2 Debug ] webgpu/whlsl/vector-compare.html is flaky crashing. | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jason Lawrence <Lawrence.j> | ||||||||||
| Component: | WebGPU | Assignee: | Justin Fan <justin_fan> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | darin, dino, ews-watchlist, graouts, justin_fan, kondapallykalyan, mmaxfield, webkit-bot-watchers-bugzilla, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Mac | ||||||||||||
| OS: | macOS 10.15 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Jason Lawrence
2020-03-12 16:09:35 PDT
I have marked this test as crashing while this issue is investigated here: https://trac.webkit.org/changeset/258368/webkit This issue is also being tracked here: <rdar://problem/57304995> That's a different issue according to the call stack. Importing as a new one. Created attachment 393568 [details]
Patch
Comment on attachment 393568 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=393568&action=review > Source/WebCore/platform/graphics/gpu/cocoa/GPUBindGroupAllocatorMetal.mm:160 > + // This method is called in ~GPUBindGroup(). A refCount of 2 means either only the GPUDevice and the > + // lone remaining GPUBindGroup reference this allocator, in which case a reset can occur, > + // or the GPUDevice has already been cleaned up and the 2 remaining GPUBindGroups cannot be used again anyway. > + if (refCount() != 2) > return; This seems super-fragile. If you change this 2 to a 1 does a test fail? Which test? If you change this 2 to a 3 does a test fail? Which test? Created attachment 394326 [details]
Patch
Comment on attachment 394326 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=394326&action=review > Source/WebCore/platform/graphics/gpu/cocoa/GPUBindGroupMetal.mm:242 > + m_allocator->tryReset(); Can't you do this with a weak pointer instead? Created attachment 394339 [details]
Patch for landing
Committed r258899: <https://trac.webkit.org/changeset/258899> All reviewed patches have been landed. Closing bug and clearing flags on attachment 394339 [details]. |