New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
weird warning when running uftrace record for chromadb python program #1904
Comments
Hmm.. this would be hard to debug. Can you find some more hints? |
I don't have more clues yet, but just posted it how to reproduce the issue. Isn't it possible to reproduce it in your environment? |
I did some search... reason:
|
Hi @yihong0618, thanks for your investigation. I can simply reproduce with a much simpler example as follows. $ cat onnx-test.py
#!/usr/bin/env python3
import onnxruntime
$ uftrace record ./onnx-test.py
2024-03-18 19:26:39.843928466 [W:onnxruntime:Default, onnxruntime_pybind_state.cc:2103 CreateInferencePybindStateModule] Init provider bridge failed. |
yes but I did not find the root cause in |
It's okay. I'm just leaving a note for later investigation. I will have a look when I have more time for this. Thanks very much for your help again! |
@yihong0618's investigation looks correct. The warning message is printed at https://github.com/microsoft/onnxruntime/blob/v1.17.1/onnxruntime/python/onnxruntime_pybind_state.cc#L2101-L2104. |
It looks the It's called with the sequence as follows. |
The
For some reasons, it looks uftrace blocks searching library from |
This part says
Maybe we should check whether uftrace bothers searching a library from |
I also found this, but hang here.... |
@honggyukim yes we can run it with no warning like
|
seems the same problem |
uftrace record for chromadb example shows an weird warning. Let's say there is an example as follows.
It shows nothing when running without uftrace.
But recording it shows a warning as follows.
This warning must be removed as if
test-chromadb.py
is executed without uftrace.The text was updated successfully, but these errors were encountered: