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
Result of dumps is corrupt in 3.8.4 (windows only) #331
Comments
Is there a line in the test cases that consistently fails on that machine? Was this a prebuilt wheel? Those are built on Windows VMs and exercise the library a good amount. |
Yes, I use pre-build wheel via pip. (orjson-3.8.4-cp311-none-win_amd64.whl) Look at output JSON that results in an error in a binary editor, it looks like a NULL is inserted before the key. |
I looped and got samples for the same data when it was handled correctly and when it was corrupted. In another Windows environment with a clean install is same result. |
Ok, I can reproduce it on CI. Thank you for the research. I've released 3.8.5 with a fix for Windows at the cost of performance. If someone wants to investigate this further, please do. I'm not up on Windows. |
Thanks, I have confirmed that 3.8.5 has solved the problem in some Windows environments |
After updating to 3.8.4, I have seen some errors.
The dumps results are giving "JSONDecodeError" and not decoding correctly as JSON.
Revert to 3.8.3, I don't have this problem.
I have tried it in Windows and Mac environments, but it only occurs in Windows. Therefore, it is possible that this is a problem specific to me, but I am reporting it just in case.
I noticed that some of the data that corrupts the output appears to be random, but has a high probability of being corrupted. I created a simple program to test a file (errors.json) that collected them.
testcase.zip
Python version is 3.11.1 / Windows11
The text was updated successfully, but these errors were encountered: