Title: [276839] trunk/Source/WebCore
Revision
276839
Author
[email protected]
Date
2021-04-30 08:19:26 -0700 (Fri, 30 Apr 2021)

Log Message

REGRESSION (r276633): ASSERTION FAILED: !forbidMallocUseScopeCount || disableMallocRestrictionScopeCount under WebCore::AudioSampleDataSource::create()
https://bugs.webkit.org/show_bug.cgi?id=225196
<rdar://problem/77329071>

Reviewed by Eric Carlson.

Covered by API test no longer crashing.

* Modules/speech/SpeechRecognitionCaptureSourceImpl.cpp:
(WebCore::SpeechRecognitionCaptureSourceImpl::audioSamplesAvailable):
Disabling check here until we figure out a better way of doing things.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (276838 => 276839)


--- trunk/Source/WebCore/ChangeLog	2021-04-30 15:15:38 UTC (rev 276838)
+++ trunk/Source/WebCore/ChangeLog	2021-04-30 15:19:26 UTC (rev 276839)
@@ -1,3 +1,17 @@
+2021-04-30  Youenn Fablet  <[email protected]>
+
+        REGRESSION (r276633): ASSERTION FAILED: !forbidMallocUseScopeCount || disableMallocRestrictionScopeCount under WebCore::AudioSampleDataSource::create()
+        https://bugs.webkit.org/show_bug.cgi?id=225196
+        <rdar://problem/77329071>
+
+        Reviewed by Eric Carlson.
+
+        Covered by API test no longer crashing.
+
+        * Modules/speech/SpeechRecognitionCaptureSourceImpl.cpp:
+        (WebCore::SpeechRecognitionCaptureSourceImpl::audioSamplesAvailable):
+        Disabling check here until we figure out a better way of doing things.
+
 2021-04-30  Oriol Brufau  <[email protected]>
 
         [css-logical] Fix logical shorthands with var()

Modified: trunk/Source/WebCore/Modules/speech/SpeechRecognitionCaptureSourceImpl.cpp (276838 => 276839)


--- trunk/Source/WebCore/Modules/speech/SpeechRecognitionCaptureSourceImpl.cpp	2021-04-30 15:15:38 UTC (rev 276838)
+++ trunk/Source/WebCore/Modules/speech/SpeechRecognitionCaptureSourceImpl.cpp	2021-04-30 15:19:26 UTC (rev 276839)
@@ -83,6 +83,8 @@
 void SpeechRecognitionCaptureSourceImpl::audioSamplesAvailable(const MediaTime& time, const PlatformAudioData& data, const AudioStreamDescription& description, size_t sampleCount)
 {
 #if PLATFORM(COCOA)
+    DisableMallocRestrictionsForCurrentThreadScope scope;
+
     ASSERT(description.platformDescription().type == PlatformDescription::CAAudioStreamBasicType);
     auto audioDescription = toCAAudioStreamDescription(description);
     if (!m_dataSource || !m_dataSource->inputDescription() || *m_dataSource->inputDescription() != description) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to