question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python stops working with max_order over 31

See original GitHub issue

I am using pyroomacoustics purely to generate room impulse responses. I would like to generate more reverberant rooms, of at least one second.

The highest max_order that does not trigger “Python stopped working” is 31. Same behavior on two different computers. I could not find any documentation concerning this. Is it an issue, or am I doing something wrong? I attached a small code snippet that reproduces the error on my machines.

import pyroomacoustics as pra
import numpy as np

def compute_rir(order):
    fromPos = np.zeros((3))
    toPos = np.ones((3,1))
    roomSize = np.array([3,3,3])
    room = pra.ShoeBox(roomSize, fs = 1000, absorption=0.95, max_order=order)
    room.add_source(fromPos)
    mics = pra.MicrophoneArray(toPos, room.fs)
    room.add_microphone_array(mics)
    room.compute_rir()

compute_rir(31)
print("Completed 31")
compute_rir(32)
print("Completed 32")

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
Pvjespercommented, Jun 12, 2020

Thank you! I only have my laptop with me, but I tried it for a few orders, up to 95, and it works well. So I think it is really solved.

0reactions
fakufakucommented, Jun 11, 2020

@Pvjesper The latest version update includes a complete rewrite of the simulation core in C++ which seems to solve the problem. I have added a test for order over 31 that seems to run without problem. https://github.com/LCAV/pyroomacoustics/actions/runs/132155203 Can you try to update to v0.4.0 and let me know it this solves your problem ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python script stops at different lines and throws no exception
I have a Python script which does a big parsing job on a Word .docx file (and it has worked on all previous...
Read more >
"It was working yesterday, I swear!" What can you do? [closed]
If something worked yesterday and does not work now, then either you have non-deterministic behavior (like a race condition) and having it work...
Read more >
X-13ARIMA-SEATS Reference Manual - Census.gov
The X-13ARIMA-SEATS seasonal adjustment program is an enhanced version of the X-11 Variant of the Census. Method II seasonal adjustment program (Shiskin, ...
Read more >
"It was working yesterday, I swear!" What can you do? [closed]
If something worked yesterday and does not work now, then either you have non-deterministic behavior (like a race condition) and having it work...
Read more >
Using AWS Data Wrangler with AWS Glue Job 2.0
I would create a glue connection with redshift, use AWS Data Wrangler with AWS Glue 2.0 to read data from the Glue catalog...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found