Bug 244851 - REGRESSION(254047@main): [ iOS Debug wk2 ] platform/ios/mediastream/video-muted-in-background-tab.html is a near constant crash
Summary: REGRESSION(254047@main): [ iOS Debug wk2 ] platform/ios/mediastream/video-mut...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-06 12:07 PDT by Hercules Hjalmarsson
Modified: 2022-09-09 09:35 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hercules Hjalmarsson 2022-09-06 12:07:10 PDT
platform/ios/mediastream/video-muted-in-background-tab.html

Is a constant crash on iOS Debug ToT and since 254047@main.

HISTORY:
https://results.webkit.org/?suite=layout-tests&test=platform/ios/mediastream/video-muted-in-background-tab.html

DIFF:
ASSERTION FAILED: !m_statusBarManager
platform/mediastream/mac/CoreAudioSharedUnit.cpp(691) : auto WebCore::CoreAudioSharedUnit::setIsInBackground(bool)::(anonymous class)::operator()() const
1   0x78f2a91f9 WTFCrash
2   0x80444a73b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x808ea935e WebCore::CoreAudioSharedUnit::setIsInBackground(bool)::$_6::operator()() const
4   0x808ea9219 WTF::Detail::CallableWrapper<WebCore::CoreAudioSharedUnit::setIsInBackground(bool)::$_6, void>::call()
5   0x80446b5a2 WTF::Function<void ()>::operator()() const
6   0x804833e59 WebCore::MediaCaptureStatusBarManager::didError()
7   0x804833d25 -[WebCoreMediaCaptureStatusBarHandler start]::'block-literal'::$_0::operator()() const
8   0x804833b89 WTF::Detail::CallableWrapper<-[WebCoreMediaCaptureStatusBarHandler start]::'block-literal'::$_0, void>::call()
9   0x78f2d5752 WTF::Function<void ()>::operator()() const
10  0x78f367e02 WTF::RunLoop::performWork()
11  0x78f36b72e WTF::RunLoop::performWork(void*)
12  0x7886494a7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
13  0x78864939f __CFRunLoopDoSource0
14  0x78864886c __CFRunLoopDoSources0
15  0x788642f68 __CFRunLoopRun
16  0x788642704 CFRunLoopRunSpecific
17  0x788f9b049 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
18  0x788f9b267 -[NSRunLoop(NSRunLoop) run]
19  0x789c16fef _xpc_objc_main
20  0x789c18fd8 xpc_main
21  0x7b525494a WebKit::XPCServiceMain(int, char const**)
22  0x7b728236b WKXPCServiceMain
23  0x104140db2 main
24  0x78820bf21
25  0x10f92551e
com.apple.WebKit.WebContent.Development terminated (pid 62619) for reason: crash
Comment 1 Radar WebKit Bug Importer 2022-09-06 12:07:30 PDT
<rdar://problem/99614035>
Comment 2 Hercules Hjalmarsson 2022-09-06 12:13:24 PDT
This issue can be bisected to 254047@main using command: 

run-webkit-tests --debug --ios-simulator --iterations=20 platform/ios/mediastream/video-muted-in-background-tab.html 

254046@main appears to be broken causing testing it to crash the tool. It can be remedied by downloading the debug build similar to the bots and running the test on that build instead.
Comment 3 Hercules Hjalmarsson 2022-09-06 12:45:04 PDT
(In reply to Hercules Hjalmarsson from comment #2)
> This issue can be bisected to 254047@main using command: 
> 
> run-webkit-tests --debug --ios-simulator --iterations=20
> platform/ios/mediastream/video-muted-in-background-tab.html 
> 
> 254046@main appears to be broken causing testing it to crash the tool. It
> can be remedied by downloading the debug build similar to the bots and
> running the test on that build instead.

The way I repo'd this may not be enough since this is almost a constant crash. A better way to repo this issue 100% of the time, is to run:

run-webkit-tests -f --exit-after-n-failures 1 --force --debug --child-processes=5 --ios-simulator --iterations=200 platform/ios/mediastream/video-muted-in-background-tab.html
Comment 4 EWS 2022-09-06 14:24:16 PDT
Test gardening commit 254199@main (a6018582eb51): <https://commits.webkit.org/254199@main>

Reviewed commits have been landed. Closing PR #4065 and removing active labels.
Comment 5 EWS 2022-09-06 14:34:28 PDT
Test gardening commit 254200@main (9b3f0f908b08): <https://commits.webkit.org/254200@main>

Reviewed commits have been landed. Closing PR #4070 and removing active labels.
Comment 6 youenn fablet 2022-09-07 07:41:17 PDT
Pull request: https://github.com/WebKit/WebKit/pull/4070
Comment 7 EWS 2022-09-09 09:35:03 PDT
Committed 254303@main (27fd2059f7ad): <https://commits.webkit.org/254303@main>

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