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

An ERROR occurred when using both [beta_SabineEstimation] and [torchaudio] #38

Open
PengyvWANG opened this issue Aug 15, 2022 · 4 comments

Comments

@PengyvWANG
Copy link

CODE:
import torchaudio
import gpuRIR
beta = gpuRIR.beta_SabineEstimation([5.214221, 9.557418, 3.0626593],0.2)

ERROR:
Segmentation fault (core dumped)

Seems cannot use these at the same time

package version:
torchaudio 0.12.1
gpuRIR 1.2.0

@DavidDiazGuerra
Copy link
Owner

Hi Baron,

Your code doesn't crash on my computer with the package versions that you indicated (or with any others) so I guess there must be something else in your machine that is generating the issue. Does gpuRIR work well for you if you import torch instead of torchaudio? Have you tried with other versions of torch/torchaudio?

@PengyvWANG
Copy link
Author

PengyvWANG commented Aug 22, 2022

Hi there.

When I use both torch 1.12.1 and gpuRIR 1.2.0, no error happens. Actually, that's what I am doing now.
I have not tried with other versions.

I did some more experiments, found that it's OK if I import gpuRIR first. It confused me.

@DavidDiazGuerra
Copy link
Owner

I have no idea about what can be going on... In the past, I had some issues with incompatibilities with PyTorch that were due to having compiled gpuRIR with a compiler that wasn't ABI-compatible with the compiler PyTorch was built with (there's a note in the readme about this) but I guess this is not what's happening in your case since importing torch doesn't cause any problems.

I'll leave the issue open just in case someone has similar issues or has any idea about what can be happening.

Best regards,
David

@PengyvWANG
Copy link
Author

Okay, thanks for your reply and your work

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