Reranko05 commented on PR #51038:
URL: https://github.com/apache/arrow/pull/51038#issuecomment-5696584333

   @pitrou @rok I tried a couple of things to narrow down the Emscripten 
failure:
   
   1. Kept the persistent `simdjson::ondemand::parser` and added a `try/catch` 
around the document stream iteration — the failure remained unchanged.
   2. Changed it to a local `simdjson::ondemand::parser` inside `DoParse()` to 
rule out parser reuse — the failure is still the same.
   
   In both cases the Emscripten job fails at:
   
   ```cpp
   [ RUN      ] TestJsonFormat.IsSupported
   Aborted()
   /build/cpp/debug/arrow-dataset-file-json-test.js:138
         throw ex;
         ^
   
   RuntimeError: Aborted(). Build with -sASSERTIONS for more info.
       at abort (/build/cpp/debug/arrow-dataset-file-json-test.js:491:11)
       at _abort (/build/cpp/debug/arrow-dataset-file-json-test.js:4483:7)
       at invoke_v (/build/cpp/debug/arrow-dataset-file-json-test.js:5907:29)
       at arrow-dataset-file-json-test.wasm.std::__terminate(void (*)()) 
(wasm://wasm/arrow-dataset-file-json-test.wasm-0f1ebc22:wasm-function[41577]:0x2787242)
       at arrow-dataset-file-json-test.wasm.std::terminate() 
(wasm://wasm/arrow-dataset-file-json-test.wasm-0f1ebc22:wasm-function[41575]:0x278721b)
       at 
arrow-dataset-file-json-test.wasm.simdjson::fallback::ondemand::document_stream::start()
 
(wasm://wasm/arrow-dataset-file-json-test.wasm-0f1ebc22:wasm-function[18910]:0xf7aedf)
       at arrow-dataset-file-json-test.wasm.arrow::Status arrow::Status 
arrow::json::HandlerBase::DoParse<arrow::json::Handler<(arrow::json::UnexpectedFieldBehavior)2>>(arrow::json::Handler<(arrow::json::UnexpectedFieldBehavior)2>&,
 std::__2::shared_ptr<arrow::Buffer> 
const&)::'lambda'(arrow::json::Handler<(arrow::json::UnexpectedFieldBehavior)2> 
const&)::operator()<simdjson::padded_string>(arrow::json::Handler<(arrow::json::UnexpectedFieldBehavior)2>
 const&) const 
(wasm://wasm/arrow-dataset-file-json-test.wasm-0f1ebc22:wasm-function[20153]:0x1029453)
       at invoke_viii (/build/cpp/debug/arrow-dataset-file-json-test.js:5885:29)
       at arrow-dataset-file-json-test.wasm.arrow::Status 
arrow::json::HandlerBase::DoParse<arrow::json::Handler<(arrow::json::UnexpectedFieldBehavior)2>>(arrow::json::Handler<(arrow::json::UnexpectedFieldBehavior)2>&,
 std::__2::shared_ptr<arrow::Buffer> const&) 
(wasm://wasm/arrow-dataset-file-json-test.wasm-0f1ebc22:wasm-function[20151]:0x102796a)
       at 
arrow-dataset-file-json-test.wasm.arrow::json::Handler<(arrow::json::UnexpectedFieldBehavior)2>::Parse(std::__2::shared_ptr<arrow::Buffer>
 const&) 
(wasm://wasm/arrow-dataset-file-json-test.wasm-0f1ebc22:wasm-function[20150]:0x10275b7)
   
   Node.js v24.19.0
   ```
   I am not sure what else could be causing this specifically in the Emscripten 
configuration. Any ideas on what I should look at next?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to