Bug 283874

Summary: Web Inspector: Crash when opening the web inspector for the first time
Product: WebKit Reporter: Jeff Johnson <opendarwin>
Component: Web InspectorAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac (Apple Silicon)   
OS: All   

Jeff Johnson
Reported 2024-12-01 11:17:09 PST
This bug occurs in Safari Technology Preview 208 (Safari 18.2, WebKit 19621.1.5.1). It does not occur in Safari 18.1.1 (19619.2.8.111.7, 19619). Steps to reproduce: 1. Launch Safari Technology Preview 208 2. Press option-command-i or select Show Web Inspector from the Develop menu. The crash doesn't occur if you use Inspect Element in the contextual menu. It also doesn't occur the second time that you try to open the web inspector after launch. Here's the crash: Process: com.apple.WebKit.WebContent [62321] Path: /Applications/Safari Technology Preview.app/Contents/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent Identifier: com.apple.WebKit.WebContent Version: 19621 (19621.1.5.1) Build Info: WebKit-7621001005001000~6 Code Type: ARM-64 (Native) Parent Process: launchd [1] Responsible: Safari Technology Preview [62307] User ID: 501 Date/Time: 2024-12-01 13:11:50.8592 -0600 OS Version: macOS 14.7.1 (23H222) Report Version: 12 Anonymous UUID: 9E4AAA80-9852-D2C7-39C9-0F4A8B8740F8 Sleep/Wake UUID: 6A9D658A-7D73-47CE-A06A-C7BA4E52E7F1 Time Awake Since Boot: 280000 seconds Time Since Wake: 864 seconds System Integrity Protection: disabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BREAKPOINT (SIGKILL) Exception Codes: 0x0000000000000001, 0x000000010538e5d0 Termination Reason: Namespace PAC_EXCEPTION, Code 1 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 WebKit 0x10538e5d0 WebKit::WebInspectorUI::updateConnection() + 324 1 WebKit 0x105609130 WebKit::WebInspectorUI::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 692 2 WebKit 0x10545d328 WebKit::WebPage::dispatchMessage(IPC::Connection&, IPC::Decoder&) + 236 3 WebKit 0x10561500c WebKit::WebPage::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 43408 4 WebKit 0x10571a4f8 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::Decoder&) + 272 5 WebKit 0x104ed4618 WebKit::AuxiliaryProcess::dispatchMessage(IPC::Connection&, IPC::Decoder&) + 40 6 WebKit 0x105714564 IPC::Connection::dispatchMessage(WTF::UniqueRef<IPC::Decoder>) + 272 7 WebKit 0x105717e3c WTF::Detail::CallableWrapper<IPC::Connection::enqueueIncomingMessage(WTF::UniqueRef<IPC::Decoder>)::$_14, void>::call() + 128 8 JavaScriptCore 0x10b0e23e4 WTF::RunLoop::performWork() + 204 9 JavaScriptCore 0x10b0e33bc WTF::RunLoop::performWork(void*) + 36 10 CoreFoundation 0x18ed054b8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 11 CoreFoundation 0x18ed0544c __CFRunLoopDoSource0 + 176 12 CoreFoundation 0x18ed051bc __CFRunLoopDoSources0 + 244 13 CoreFoundation 0x18ed03da8 __CFRunLoopRun + 828 14 CoreFoundation 0x18ed03414 CFRunLoopRunSpecific + 608 15 Foundation 0x18fe37868 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 16 Foundation 0x18feb14a4 -[NSRunLoop(NSRunLoop) run] + 64 17 libxpc.dylib 0x18e93d468 _xpc_objc_main + 684 18 libxpc.dylib 0x18e94ce58 _xpc_main + 324 19 libxpc.dylib 0x18e93d014 xpc_main + 64 20 WebKit 0x104c83ad8 WebKit::XPCServiceMain(int, char const**) + 44 21 dyld 0x18e89b154 start + 2476
Attachments
Alexey Proskuryakov
Comment 1 2024-12-02 09:28:47 PST
Thank you for the report. I was able to reproduce this in a blank window in STP 207.
Radar WebKit Bug Importer
Comment 2 2024-12-02 09:28:58 PST
Chris Dumez
Comment 3 2024-12-02 22:19:17 PST
EWS
Comment 4 2024-12-03 08:40:54 PST
Committed 287282@main (d60bec76831e): <https://commits.webkit.org/287282@main> Reviewed commits have been landed. Closing PR #37357 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.