Silent crash on GitHub CI that I don't know how to start debugging #5696
-
|
I help maintain a constraint solver implemented in Rust with a Python interface through PyO3. I wanted to make the python interface stateful, but our solver does not implement My question now is, is there anybody with an idea how to start debugging this problem? At the moment I do not even know where to start with the limited amount of information I have. Presumably, it has something to do with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hmm, I am unsure what the solution is here. It's surprising that it crashes in just 2s, that seems extremely fast, like an error during import? If you don't use PyO3's |
Beta Was this translation helpful? Give feedback.
-
|
After long debugging it seems to be a out-of-memory crash. The tests eagerly created instances of the Rust data type (which is extremely large). I refactored the tests to use pytest fixtures for delayed instantiation which fixed the problem. I noticed this by enabling tests step-by-step, but I still do not know if there is another way for me to have figured out it was a memory crash. Anyways, thank you for the great work on this amazing crate! |
Beta Was this translation helpful? Give feedback.
After long debugging it seems to be a out-of-memory crash. The tests eagerly created instances of the Rust data type (which is extremely large). I refactored the tests to use pytest fixtures for delayed instantiation which fixed the problem.
I noticed this by enabling tests step-by-step, but I still do not know if there is another way for me to have figured out it was a memory crash.
Anyways, thank you for the great work on this amazing crate!