danomatika / ofxPd

(maintained) a Pure Data addon for OpenFrameworks using libpd
Other
202 stars 45 forks source link

Cannot run ofxPd’s Example #97

Open tomo0407 opened 9 months ago

tomo0407 commented 9 months ago

Thank you for developing this wonderful addon. I am trying to use this Addon under MacOS=12.7.2, Xcode=14.2, of=0.12.0. When I run the Example project provided in the add-on, it builds, but I get the following error. com.apple.audio.IOThread.client (8): EXC_BAD_ACCESS (code=1, address=0x38) The following image is a screenshot of Xcode with the error. スクリーンショット 2024-01-29 21 06 01 After some investigation, I thought the cause was around AudioDevice, so I commented out the following section in ofApp.cpp. void ofApp::setup() { .... // setup OF sound stream ofSoundStreamSettings settings; settings.numInputChannels = 1; settings.numOutputChannels = 2; settings.sampleRate = 44100; settings.bufferSize = ofxPd::blockSize() * ticksPerBuffer; //settings.setInListener(this); ← I commented out ! //settings.setOutListener(this); ← I commented out ! ofSoundStreamSetup(settings); ... } Then, while there were no memory access errors, there was no audio output from PureData. The following image is a screenshot of Xcode when run with some ofSoundStreamSettings settings commented out. スクリーンショット 2024-01-29 21 17 16 Do you know a solution to this error?

danomatika commented 9 months ago

Look in your Xcode Build Settings for the Other CFlags variable and remove PDINSTANCE if it's there, then clean and rebuild.enohp ym morf tnes-----------Dan Wilcoxdanomatika.comrobotcowboy.comOn Jan 29, 2024, at 3:40 PM, tomo0407 @.**> wrote: Thank you for developing this wonderful addon. I am trying to use this Addon under MacOS=12.7.2, Xcode=14.2, of=0.12.0. When I run the Example project provided in the add-on, it builds, but I get the following error. com.apple.audio.IOThread.client (8): EXC_BAD_ACCESS (code=1, address=0x38) The following image is a screenshot of Xcode with the error. 2024-01-29.21.06.01.png (view on web) After some investigation, I thought the cause was around AudioDevice, so I commented out the following section in ofApp.cpp. void ofApp::setup() { .... // setup OF sound stream ofSoundStreamSettings settings; settings.numInputChannels = 1; settings.numOutputChannels = 2; settings.sampleRate = 44100; settings.bufferSize = ofxPd::blockSize() ticksPerBuffer; //settings.setInListener(this); ← I commented out ! //settings.setOutListener(this); ← I commented out ! ofSoundStreamSetup(settings); ... } Then, while there were no memory access errors, there was no audio output from PureData. The following image is a screenshot of Xcode when run with some ofSoundStreamSettings settings commented out. 2024-01-29.21.17.16.png (view on web) Do you know a solution to this error?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

danomatika commented 6 months ago

Any updates on this? If not, please close.