gpuRIR icon indicating copy to clipboard operation
gpuRIR copied to clipboard

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

Open PengyvWANG opened this issue 2 years ago • 4 comments

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

PengyvWANG avatar Aug 15 '22 10:08 PengyvWANG

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?

DavidDiazGuerra avatar Aug 22 '22 10:08 DavidDiazGuerra

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.

PengyvWANG avatar Aug 22 '22 11:08 PengyvWANG

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

DavidDiazGuerra avatar Aug 22 '22 12:08 DavidDiazGuerra

Okay, thanks for your reply and your work

PengyvWANG avatar Aug 22 '22 12:08 PengyvWANG