Bug 247302 - Crash trying to scroll a main frame PDF with UI-side compositing on macOS.
Summary: Crash trying to scroll a main frame PDF with UI-side compositing on macOS.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Process Model (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-31 19:32 PDT by Simon Fraser (smfr)
Modified: 2022-11-01 15:33 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2022-10-31 19:32:40 PDT
EventDispatcher has a null ScrollingTree:

Thread 16 Crashed::  Dispatch queue: com.apple.WebKit.EventDispatcher
0   WebCore                       	       0x71bff0bd9 bool std::__1::__cxx_atomic_compare_exchange_weak<unsigned char>(std::__1::__cxx_atomic_base_impl<unsigned char>*, unsigned char*, unsigned char, std::__1::memory_order, std::__1::memory_order) + 2 (atomic:1050) [inlined]
1   WebCore                       	       0x71bff0bd9 std::__1::__atomic_base<unsigned char, false>::compare_exchange_weak(unsigned char&, unsigned char, std::__1::memory_order) + 2 (atomic:1681) [inlined]
2   WebCore                       	       0x71bff0bd9 WTF::Atomic<unsigned char>::compareExchangeWeak(unsigned char, unsigned char, std::__1::memory_order) + 2 (Atomics.h:89) [inlined]
3   WebCore                       	       0x71bff0bd9 WTF::LockAlgorithm<unsigned char, (unsigned char)1, (unsigned char)2, WTF::EmptyLockHooks<unsigned char> >::lockFastAssumingZero(WTF::Atomic<unsigned char>&) + 2 (LockAlgorithm.h:53) [inlined]
4   WebCore                       	       0x71bff0bd9 WTF::Lock::lock() + 2 (Lock.h:65) [inlined]
5   WebCore                       	       0x71bff0bd9 WTF::Locker<WTF::Lock>::Locker(WTF::Lock&) + 2 (Lock.h:158) [inlined]
6   WebCore                       	       0x71bff0bd9 WTF::Locker<WTF::Lock>::Locker(WTF::Lock&) + 2 (Lock.h:157) [inlined]
7   WebCore                       	       0x71bff0bd9 WebCore::ScrollingTree::hasProcessedWheelEventsRecently() + 25 (ScrollingTree.cpp:784)
8   WebCore                       	       0x71bffad05 WebCore::ThreadedScrollingTree::scrollingThreadIsActive() + 5 (ThreadedScrollingTree.cpp:354) [inlined]
9   WebCore                       	       0x71bffad05 WebCore::ThreadedScrollingTree::displayDidRefresh(unsigned int) + 21 (ThreadedScrollingTree.cpp:532)
10  WebKit                        	       0x71330b04b WebKit::EventDispatcher::notifyScrollingTreesDisplayWasRefreshed(unsigned int) + 181 (EventDispatcher.cpp:306)
11  WebKit                        	       0x71330b0eb WebKit::EventDispatcher::displayWasRefreshed(unsigned int, WebCore::DisplayUpdate const&, bool) + 67 (EventDispatcher.cpp:321)
Comment 1 Radar WebKit Bug Importer 2022-10-31 19:33:37 PDT
<rdar://problem/101786249>
Comment 2 Simon Fraser (smfr) 2022-10-31 19:34:36 PDT
Pull request: https://github.com/WebKit/WebKit/pull/5990
Comment 3 EWS 2022-11-01 15:33:48 PDT
Committed 256199@main (5172b1f269aa): <https://commits.webkit.org/256199@main>

Reviewed commits have been landed. Closing PR #5990 and removing active labels.