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

Segmentation Faults happen sometimes - Not reproducible #146

Open
AI-Guru opened this issue Feb 16, 2023 · 7 comments
Open

Segmentation Faults happen sometimes - Not reproducible #146

AI-Guru opened this issue Feb 16, 2023 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@AI-Guru
Copy link

AI-Guru commented Feb 16, 2023

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?

@DBraun
Copy link
Owner

DBraun commented Feb 16, 2023

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

juce::MessageManager::getInstance(); // to avoid runtime jassert(false)

@DBraun DBraun self-assigned this Feb 16, 2023
@DBraun DBraun added the bug Something isn't working label Feb 16, 2023
@DBraun
Copy link
Owner

DBraun commented Feb 20, 2023

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

@AI-Guru
Copy link
Author

AI-Guru commented Feb 28, 2023

Wow! Thanks! I will keep you updated.

@AI-Guru
Copy link
Author

AI-Guru commented Mar 7, 2023

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
Copy link
Author

AI-Guru commented Mar 7, 2023

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
Copy link
Author

AI-Guru commented Mar 8, 2023

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.

@DBraun
Copy link
Owner

DBraun commented Mar 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants