Crash in WrapAsAUV2::CopyClumpName #398
Replies: 2 comments
-
|
The clump name is how you group params in Logic. JUCE does implement it. Create is correct here I think. https://stackoverflow.com/questions/5718415/corefoundation-ownership-follows-the-createrule I agree a check for outClimpName being non-null may be warranted here. But also we may need to use inDesiredNameLength and truncate the string accordingly. This is how the module name in clap gets through, by the way. If you have a super long module name wonder if that could do it. |
Beta Was this translation helpful? Give feedback.
-
|
Ahh ok that's what it's for. Thanks for the insights, it could very well be a name length thing. I have some quite long module names - maybe around 50 characters. I'll add some changes as mentioned and see if that means this crash can't trigger again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Got a crash report as follows.
Host: Live 12.1.11 (2025-04-08_ce4b7c22b0) (CLAP-as-AUv2)
OS: macOS 15.4.1
Reason: address not mapped to object
Looking at our code, I can't see anything obvious.
Does anyone else notice a possible cause? Surely Live isn't sending is a nullptr for the output buffer?
clap-wrapper/src/wrapasauv2.cpp
Lines 524 to 537 in 5ba58f1
Other musings:
I wonder what does clump name do? I don't see JUCE implementing it.
Is the string copying correct in our clump name code? I honestly have no idea if this is the cause but I've been bitten before by weird memory issues related to CFStrings. Is CFStringCreateWithCStringNoCopy a better option (again, really not sure but it's feasilbe)?
Beta Was this translation helpful? Give feedback.
All reactions