DawDreamer icon indicating copy to clipboard operation
DawDreamer copied to clipboard

Segmentation Faults happen sometimes - Not reproducible

Open AI-Guru opened this issue 2 years ago • 7 comments

Hi!

I sometime encounter segmentation faults:

Fatal Python error: pygame_parachute: (pygame parachute) Segmentation Fault
Python runtime state: initialized

Thread 0x00000002925ff000 (most recent call first):
  File "/Users/tristanbehrens/miniforge3/lib/python3.9/threading.py", line 316 in wait
  File "/Users/tristanbehrens/miniforge3/lib/python3.9/threading.py", line 574 in wait
  File "/Users/tristanbehrens/miniforge3/lib/python3.9/site-packages/tqdm/_monitor.py", line 60 in run
  File "/Users/tristanbehrens/miniforge3/lib/python3.9/threading.py", line 973 in _bootstrap_inner
  File "/Users/tristanbehrens/miniforge3/lib/python3.9/threading.py", line 930 in _bootstrap

Current thread 0x00000001035d8580 (most recent call first):
  [...]
zsh: abort      python testsonification.py generate
/Users/tristanbehrens/miniforge3/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 2 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '

This is impossible to reproduce.

Any ideas?

AI-Guru avatar Feb 16 '23 13:02 AI-Guru

Did you try to reproduce but it only happened once? If you manage to reproduce it please share a minimal reproducible example. There's a chance it's related to this singleton https://github.com/DBraun/DawDreamer/blob/d0d97e421241a66ffd3e0cb78d99174d7d8f61d6/Source/PluginProcessor.cpp#L69

DBraun avatar Feb 16 '23 17:02 DBraun

Can you try version 0.6.16? There's a possible fix.

DBraun avatar Feb 20 '23 02:02 DBraun

Wow! Thanks! I will keep you updated.

AI-Guru avatar Feb 28 '23 18:02 AI-Guru

Hi! I did a quick check today. I upgraded to 0.6.16. I immediately ran into a new problem.

It seems that synth.load_state(synth_state) does not work anymore.

I downgraded to 0.6.15.

AI-Guru avatar Mar 07 '23 19:03 AI-Guru

I did another test with 0.6.16. The semaphore problem is still there:

UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '

AI-Guru avatar Mar 07 '23 19:03 AI-Guru

Hi @DBraun! I believe I have a minimal script here. And it causes segmentation faults. Please suggest I way to share a zip file with you.

AI-Guru avatar Mar 08 '23 19:03 AI-Guru

You can email me [lastname]@ccrma.stanford.edu

DBraun avatar Mar 09 '23 04:03 DBraun