-
Notifications
You must be signed in to change notification settings - Fork 152
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
[Bug]: Simple TE v3.0 program hanging on "Creating Default Controllers..." #219
Comments
I just tried this on macOS and got the following:
but it was playing the audio. I'm not quite sure what the reported problem is here? It looks like But have you run this in debug? You'll get assertions because you've not actually started the JUCE MessageManager. |
Huh that's interesting, was definitely not producing sound for me but good to know it's not just hanging. I actually thought I was running this in debug but looking at the code I forgot to put it in lol. To the point about the blocking Anyway thanks for the reply! Will do a bit more investigation & probably close this soon. |
It's a bit tricky as you really want to be creating a However, you might get away with adding a
|
Hello again! Sorry, I let this hang for a while, but trying to get it working again with TE V3. So I followed your suggestion and added the lines you mentioned, now my
This builds and runs fine, but all it does is print out the following & then immediately exits:
For the sake of completeness here is my CMakeLists.txt:
I know I could probably get it working if I just change it to a regular JUCE GUI App, but I'd really like to boil it down to the fewest possible moving parts if I can! Also I have an interest in using TE for a headless audio app and it would be great to know if this is actually possible. Thanks in advance if you have any thoughts! |
Is it actually quitting? If so, is a quit message being posted to the message queue? You should be able to put a breakpoint in the juce::application/message_manager classes to see where that is coming from. |
OK this is good stuff! So I registered an |
I added a bunch of logging and it's not silently crapping out early or anything. It runs all the way through to the end and returns. So |
So it's working as you hoped? |
No, because it doesn't play audio and exits immediately. With TE 2 it plays audio endlessly until I kill it, now it just exits without playing anything. |
Right, but you must be able to debug why it's quitting? If so, look at the line This isn't really a supported use case so I can't spend a bunch of time debugging it myself I'm afraid but I'm happy to help if you can debug it and find out what's actually happening. But you'll need to be able to use the debugger and breakpoints etc. to step in to the juce code. |
OK will try breakpointing it, thanks! |
Detailed steps on how to reproduce the bug
On macOS, go to https://github.com/debrisapron/tracktion-engine-hello-world/tree/upgrade-tracktion_engine and follow instructions in README. Should build successfully, print the block size & samplerate, then hang when it gets to "Creating Default Controllers...". This is against the v3.0 tag but I've also checked against the latest develop & same error. Note that I don't have any loopbacks or other exotic drivers installed.
What is the expected behaviour?
It should play the demo, as it does with the previous version.
Unit test to reproduce the error?
No response
Operating systems
macOS
What versions of the operating systems?
Sonoma 14.2.1 on M1 Max
Architectures
ARM
Stacktrace
No response
Plug-in formats (if applicable)
No response
Plug-in host applications (DAWs) (if applicable)
No response
Testing on the
develop
branchThe bug is present on the
develop
branchCode of Conduct
The text was updated successfully, but these errors were encountered: