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

Malloc error? #212

Open
maschinenzeitmaschine opened this issue Apr 14, 2023 · 1 comment
Open

Malloc error? #212

maschinenzeitmaschine opened this issue Apr 14, 2023 · 1 comment

Comments

@maschinenzeitmaschine
Copy link

maschinenzeitmaschine commented Apr 14, 2023

Hi,
I'm using the reference code from https://platform.stability.ai/docs/features/text-to-image?tab=python and sometimes it does work as intended, but about half of the runs (in a seemingly random fashion), Python crashes with the following error message:

Python(13180,0x1712a7000) malloc: Corruption of free object 0x142738330: msizes 8/7 disagree
Python(13180,0x1712a7000) malloc: *** set a breakpoint in malloc_error_break to debug

The mysterious part is, this happens AFTER the created image has successfully been saved to disk – I get the image, and then the malloc crash. I don't think it's rest of my program, as it works perfectly well if I replace the Stability api call with DALL-E, imagenAIry etc. – it only happens when using stability-sdk. Versions are stability-sdk 0.4.0, Python 3.10.10 (Flask app), Macos 13.13 (M1).
Any ideas anyone?

@maschinenzeitmaschine
Copy link
Author

Update, not a solution, but if someone should have the same problem: I just used the REST API, that works fine and there is even a Python code example: https://platform.stability.ai/rest-api#tag/v1generation/operation/textToImage

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

No branches or pull requests

1 participant