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

terminating with uncaught exception of type std::bad_alloc #20

Open
pfriesch opened this issue Feb 13, 2018 · 2 comments
Open

terminating with uncaught exception of type std::bad_alloc #20

pfriesch opened this issue Feb 13, 2018 · 2 comments

Comments

@pfriesch
Copy link
Contributor

pfriesch commented Feb 13, 2018

test = np.load("test.npz")
spectrogram = pyworld.cheaptrick(test["x"], test["f0"], test["timeaxis"], test["fs"])

exits with:
libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

test.npz.zip

Probably a problem with WORLD though. However, since the exception does not get propagated to python its really hard to find this error. Cython just straight up exits. I would suggest to add python exceptions.

@JeremyCCHsu
Copy link
Owner

May I have the original wav file and the arguments you passed to dio? As the pitch in test.npz.zip is totally out of range (extremely large positive and negative values; I don't think negative pitch is allowed), the behavior is unexpected and beyond the design of the WORLD vocoder.

@pfriesch
Copy link
Contributor Author

Sorry it's been some time. I think I used harvest though. And I agree that it is unexpected behavior. But in the case of a faulty input, the process just terminates. So I would be nice to be able to catch these cases with python.

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

2 participants