tadeja commented on PR #50792:
URL: https://github.com/apache/arrow/pull/50792#issuecomment-5172798144

   Although the first crossbow run failed with pre-existing `script timeout` at 
the end in the Chrome step, it actually shows problematic part now succeeds:
   
https://github.com/ursacomputing/crossbow/actions/runs/30844436419/job/91789163035#step:6:6200
   ```
   > await 
pyodide.loadPackage('/build/python/dist/pyarrow-26.0.0.dev99-cp312-cp312-pyemscripten_2024_0_wasm32.whl');
   
   Loading pyarrow
   Loaded pyarrow
   ```
   ( While in the issue logs [`Failed to load 
pyarrow`](https://github.com/ursacomputing/crossbow/actions/runs/30689621441/job/91341898998#step:6:6193))
   
   The log also shows [the export is present in the 
wheel](https://github.com/ursacomputing/crossbow/actions/runs/30844436419/job/91789163035#step:6:6130),
 meaning that the `PyInit_lib` ImportError is misleading message.
   
   
   Locally I traced the cause (with fix reverted failure reproduced), 
symbolized by patching `abort()` in pyodide.asm.js to print the stack, relinked 
with `--profiling-funcs`
   
   ```console
   > await 
pyodide.loadPackage('/build/python/dist/pyarrow-26.0.0a0-cp312-cp312-pyemscripten_2024_0_wasm32.whl');
   Loading pyarrow
   ABORT:  Error
       at abort (/pyodide/pyodide.asm.js:10:6334)
       at _abort (/pyodide/pyodide.asm.js:10:289408)
       at invoke_v (/pyodide/pyodide.asm.js:10:1224993)
       at wasm://wasm/0267d6e2:wasm-function[13105]:0x531c4b
       at 
libarrow_python.so.google::protobuf::FileDescriptorProto::SharedDtor(google::protobuf::MessageLite&)
 (wasm://wasm/libarrow_python.so-0fa2ac3a:wasm-function[48283]:0x2517a8a)
       at invoke_vi (/pyodide/pyodide.asm.js:10:1223725)
       at 
libarrow_python.so.google::protobuf::FileDescriptorProto::~FileDescriptorProto()
 (wasm://wasm/libarrow_python.so-0fa2ac3a:wasm-function[48282]:0x2517795)
       at 
libarrow_python.so.google::protobuf::EncodedDescriptorDatabase::Add(void 
const*, int) 
(wasm://wasm/libarrow_python.so-0fa2ac3a:wasm-function[48600]:0x2527cec)
       at invoke_iiii (/pyodide/pyodide.asm.js:10:1223129)
       at 
libarrow_python.so.google::protobuf::internal::AddDescriptors(google::protobuf::internal::DescriptorTable
 const*) 
(wasm://wasm/libarrow_python.so-0fa2ac3a:wasm-function[48861]:0x255572e)
   Aborted()
   Failed to load pyarrow
   The following error occurred while loading pyarrow:
   Aborted(). Build with -sASSERTIONS for more info.
   []
   ```
   The abort happens during static initialization of `libarrow_python.so`, 
inside protobuf's descriptor registration.


-- 
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