Skip to content
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

ujson segfaults with numpy arrays #587

Open
jackieleng opened this issue Feb 5, 2019 · 1 comment
Open

ujson segfaults with numpy arrays #587

jackieleng opened this issue Feb 5, 2019 · 1 comment

Comments

@jackieleng
Copy link

In flask_restplus.representations:output_json (https://github.com/noirbizarre/flask-restplus/blob/master/flask_restplus/representations.py#L25)
usjon.dumps is called (when installed) with indent=4 when DEBUG is enabled. However this is causing a segfault when you're trying to serialize a numpy array. Without indent it also causes an error, but it's an OverflowError. See for example this issue: ultrajson/ultrajson#294

I know it's a problem with ujson, but it does kill the server and it's not easy to find the cause.

@ziirish
Copy link
Collaborator

ziirish commented Apr 10, 2019

I think we will probably drop ujson as stated in #589 because the project does not seem actively supported anymore.

Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants