<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>248688</bug_id>
          
          <creation_ts>2022-12-02 14:38:49 -0800</creation_ts>
          <short_desc>REGRESSION (257229@main): ASSERTION FAILED: !encoder-&gt;isAllowedWhenWaitingForSyncReply() &amp;&amp; !encoder-&gt;isAllowedWhenWaitingForUnboundedSyncReply()</short_desc>
          <delta_ts>2022-12-02 15:35:16 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=247673</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gavin.p</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1916342</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-12-02 14:38:49 -0800</bug_when>
    <thetext>The following API test is consistently asserting after https://commits.webkit.org/257229@main

    TestWebKitAPI.IPCTestingAPI.CanSendInvalidAsyncMessageToGPUProcessWithoutTermination
        ERROR: Error while launching com.apple.WebKit.Networking: Connection invalid
        /Volumes/Data/worker/Apple-Monterey-Debug-Build/build/Source/WebKit/UIProcess/Launcher/cocoa/ProcessLauncherCocoa.mm(212) : auto WebKit::ProcessLauncher::launchProcess()::(anonymous class)::operator()(xpc_object_t) const
        ASSERTION FAILED: !encoder-&gt;isAllowedWhenWaitingForSyncReply() &amp;&amp; !encoder-&gt;isAllowedWhenWaitingForUnboundedSyncReply()
        /Volumes/Data/worker/Apple-Monterey-Debug-Build/build/Source/WebKit/Platform/IPC/Connection.cpp(553) : bool IPC::Connection::sendMessage(UniqueRef&lt;IPC::Encoder&gt; &amp;&amp;, OptionSet&lt;IPC::SendOption&gt;, std::optional&lt;Thread::QOS&gt;)
        1   0x41f3e0169 WTFCrash
        2   0x40a3a29ab WTFCrashWithInfo(int, char const*, char const*, int)
        3   0x40d102506 IPC::Connection::sendMessage(WTF::UniqueRef&lt;IPC::Encoder&gt;&amp;&amp;, WTF::OptionSet&lt;IPC::SendOption&gt;, std::__1::optional&lt;WTF::Thread::QOS&gt;)
        4   0x40c926fd4 WebKit::IPCTestingAPI::sendMessageWithJSArguments(IPC::Connection&amp;, OpaqueJSContext const*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**)
        5   0x40c92f191 WebKit::IPCTestingAPI::JSIPC::sendMessage(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**)
        6   0x41fceadc4 long long JSC::APICallbackFunction::callImpl&lt;JSC::JSCallbackFunction&gt;(JSC::JSGlobalObject*, JSC::CallFrame*)
        7   0x41fcdfcad JSC::callJSCallbackFunction(JSC::JSGlobalObject*, JSC::CallFrame*)
        8   0x4dadf5e04027 (null)
        9   0x41fb9eb58 llint_entry
        10  0x41fb9eb58 llint_entry
        11  0x41fb9eb58 llint_entry
        12  0x41fb9eb58 llint_entry
        13  0x41fb7a3dd vmEntryToJavaScript
        14  0x4207a1432 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)
        15  0x420c1aa7a JSC::Interpreter::executeProgram(JSC::SourceCode const&amp;, JSC::JSGlobalObject*, JSC::JSObject*)
        16  0x421070e05 JSC::evaluate(JSC::JSGlobalObject*, JSC::SourceCode const&amp;, JSC::JSValue, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;)
        17  0x421070f4c JSC::profiledEvaluate(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::SourceCode const&amp;, JSC::JSValue, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;)
        18  0x3e6593eb8 WebCore::JSExecState::profiledEvaluate(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::SourceCode const&amp;, JSC::JSValue, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;)
        19  0x3e659392e WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&amp;, WebCore::DOMWrapperWorld&amp;)
        20  0x3e65936e9 WebCore::ScriptController::evaluateInWorldIgnoringException(WebCore::ScriptSourceCode const&amp;, WebCore::DOMWrapperWorld&amp;)
        21  0x3e6594135 WebCore::ScriptController::evaluateIgnoringException(WebCore::ScriptSourceCode const&amp;)
        22  0x3e6fa532d WebCore::ScriptElement::executeClassicScript(WebCore::ScriptSourceCode const&amp;)
        23  0x3e6fa30e7 WebCore::ScriptElement::prepareScript(WTF::TextPosition const&amp;, WebCore::ScriptElement::LegacyTypeSupport)
        24  0x3e75ea2ce WebCore::HTMLScriptRunner::runScript(WebCore::ScriptElement&amp;, WTF::TextPosition const&amp;)
        25  0x3e75ea0d4 WebCore::HTMLScriptRunner::execute(WTF::Ref&lt;WebCore::ScriptElement, WTF::RawPtrTraits&lt;WebCore::ScriptElement&gt; &gt;&amp;&amp;, WTF::TextPosition const&amp;)
        26  0x3e75c3a14 WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder()
        27  0x3e75c3ec1 WebCore::HTMLDocumentParser::pumpTokenizerLoop(WebCore::HTMLDocumentParser::SynchronousMode, bool, WebCore::PumpSession&amp;)
        28  0x3e75c3218 WebCore::HTMLDocumentParser::pumpTokenizer(WebCore::HTMLDocumentParser::SynchronousMode)
        29  0x3e75c29e0 WebCore::HTMLDocumentParser::pumpTokenizerIfPossible(WebCore::HTMLDocumentParser::SynchronousMode)
        30  0x3e75c4a4c WebCore::HTMLDocumentParser::append(WTF::RefPtr&lt;WTF::StringImpl, WTF::RawPtrTraits&lt;WTF::StringImpl&gt;, WTF::DefaultRefDerefTraits&lt;WTF::StringImpl&gt; &gt;&amp;&amp;, WebCore::HTMLDocumentParser::SynchronousMode)
        31  0x3e75c482f WebCore::HTMLDocumentParser::append(WTF::RefPtr&lt;WTF::StringImpl, WTF::RawPtrTraits&lt;WTF::StringImpl&gt;, WTF::DefaultRefDerefTraits&lt;WTF::StringImpl&gt; &gt;&amp;&amp;)


https://results.webkit.org/?suite=api-tests&amp;test=TestWebKitAPI.IPCTestingAPI.CanSendInvalidAsyncMessageToGPUProcessWithoutTermination</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916343</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-12-02 14:39:01 -0800</bug_when>
    <thetext>&lt;rdar://problem/102918462&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916347</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-12-02 14:42:29 -0800</bug_when>
    <thetext>The assert was added by the commit in question.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1916358</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-12-02 15:35:16 -0800</bug_when>
    <thetext>Reverted the cause in https://commits.webkit.org/257309@main</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>