ALARM ALARM - I have big problem I think....
-
Ok so I have my minimal example loaded in xcode...
Build for Testing?
How do I then attach my DAW (Reaper) to XCode?
Debug>Attach to Process?
-
OK so I did that and now XCode tells me this:
segFaulting`___lldb_unnamed_symbol22472$$segFaulting: 0x122b1d114 <+0>: stp x20, x19, [sp, #-0x20]! 0x122b1d118 <+4>: stp x29, x30, [sp, #0x10] 0x122b1d11c <+8>: add x29, sp, #0x10 ; =0x10 0x122b1d120 <+12>: ldr x8, [x0, #0x8] -> 0x122b1d124 <+16>: ldr x8, [x8, #0x10] 0x122b1d128 <+20>: ldr w9, [x8, #0x1dd4] 0x122b1d12c <+24>: movi.2d v0, #0000000000000000 0x122b1d130 <+28>: cmp w9, w1 0x122b1d134 <+32>: b.ls 0x122b1d1a4 ; <+144> 0x122b1d138 <+36>: ldr x8, [x8, #0x1dc8] 0x122b1d13c <+40>: ldr x19, [x8, w1, sxtw #3] 0x122b1d140 <+44>: add x8, x19, #0x20 ; =0x20 0x122b1d144 <+48>: mov w9, #0x1 0x122b1d148 <+52>: ldaddal w9, w9, [x8] 0x122b1d14c <+56>: mov w9, #-0x1 0x122b1d150 <+60>: ldaddal w9, w8, [x8] 0x122b1d154 <+64>: cmp w8, #0x1 ; =0x1 0x122b1d158 <+68>: b.ne 0x122b1d16c ; <+88> 0x122b1d15c <+72>: ldr x8, [x19] 0x122b1d160 <+76>: ldr x8, [x8, #0x8] 0x122b1d164 <+80>: mov x0, x19 0x122b1d168 <+84>: blr x8 0x122b1d16c <+88>: ldr x0, [x19, #0x1948] 0x122b1d170 <+92>: cbz x0, 0x122b1d184 ; <+112> 0x122b1d174 <+96>: ldr x8, [x0] 0x122b1d178 <+100>: ldr x8, [x8, #0x18] 0x122b1d17c <+104>: blr x8 0x122b1d180 <+108>: b 0x122b1d1a0 ; <+140> 0x122b1d184 <+112>: ldr x0, [x19, #0x1928] 0x122b1d188 <+116>: adrp x8, 2503 0x122b1d18c <+120>: ldr x1, [x8, #0xfe8] 0x122b1d190 <+124>: bl 0x122f8123c ; ___lldb_unnamed_symbol35450$$segFaulting 0x122b1d194 <+128>: ldr x8, [x0], #0x8 0x122b1d198 <+132>: ldr x8, [x8, #0x20] 0x122b1d19c <+136>: blr x8 0x122b1d1a0 <+140>: fcvt s0, d0 0x122b1d1a4 <+144>: ldp x29, x30, [sp, #0x10] 0x122b1d1a8 <+148>: ldp x20, x19, [sp], #0x20 0x122b1d1ac <+152>: ret 0x122b1d1b0 <+156>: bl 0x1223d7fbc ; ___lldb_unnamed_symbol27$$segFaulting
my app is called segfaulting by the way...
-
I just wanted to chime in. I am a beginner with HISE but I have experienced a similar issue which I think is related to the Offset from Faust's cubic distortion code.
-
@Hisenberb said in ALARM ALARM - I have big problem I think....:
I just wanted to chime in. I am a beginner with HISE but I have experienced a similar issue which I think is related to the Offset from Faust's cubic distortion code.
well I'm using the cubicNLDist code - so whats the problem with(and solution ) for this that you found?
Actually I DONt use it everywhere, and its crashing everywhere - so Idont think this is likely to be it...
nOpe that aint it...removed the Dist code and it still crashes,,,
-
Well, XCode may not have given us much info. but at least one crash here seems to have reported something more meaningful(hopefully) it seems to be something in scriptNode(duh!) , perhaps something in NodeBase.cpp?:
------------------------------------ Process: pluginval [5886] Path: /private/var/folders/*/pluginval.app/Contents/MacOS/pluginval Identifier: com.Tracktion.pluginval Version: 1.0.3 (1.0.3) Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2023-09-14 13:34:25.8799 +0100 OS Version: macOS 12.6.5 (21G531) Report Version: 12 Anonymous UUID: 8A518DFE-DF99-D520-8601-98829CE648C5 Time Awake Since Boot: 6800 seconds System Integrity Protection: enabled Crashed Thread: 0 JUCE Message Thread Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000001e04 Exception Codes: 0x0000000000000001, 0x0000000000001e04 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 Terminating Process: exc handler [5886] VM Region Info: 0x1e04 is not in any region. Bytes before following region: 105553518911996 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> MALLOC_NANO (reserved) 600018000000-600020000000 [128.0M] rw-/rwx SM=NUL ...(unallocated) Thread 0 Crashed:: JUCE Message Thread Dispatch queue: com.apple.main-thread 0 segFaulting Debug 0x15e5b44a8 juce::ArrayBase<scriptnode::Parameter*, juce::DummyCriticalSection>::size() const + 12 (juce_ArrayBase.h:201) 1 segFaulting Debug 0x15e46edc8 juce::ReferenceCountedArray<scriptnode::Parameter, juce::DummyCriticalSection>::size() const + 24 (juce_ReferenceCountedArray.h:164) 2 segFaulting Debug 0x15e46eda4 scriptnode::NodeBase::getNumParameters() const + 32 (NodeBase.cpp:365) 3 segFaulting Debug 0x15e206f38 scriptnode::DspNetwork::NetworkParameterHandler::getNumParameters() const + 32 (DspNetwork.h:585) 4 segFaulting Debug 0x15e117fdc scriptnode::DspNetwork::NetworkParameterHandler::getParameter(int) const + 40 (DspNetwork.h:593) 5 segFaulting Debug 0x15e4847a0 scriptnode::DspNetwork::ProjectNodeHolder::setEnabled(bool) + 352 (DspNetwork.cpp:2200) 6 segFaulting Debug 0x15e482d00 scriptnode::DspNetwork::DspNetwork(hise::ProcessorWithScriptingContent*, juce::ValueTree, bool, snex::ExternalDataHolder*) + 3780 (DspNetwork.cpp:143) 7 segFaulting Debug 0x15e4860b0 scriptnode::DspNetwork::DspNetwork(hise::ProcessorWithScriptingContent*, juce::ValueTree, bool, snex::ExternalDataHolder*) + 64 (DspNetwork.cpp:68) 8 segFaulting Debug 0x15e48d6d8 scriptnode::DspNetwork::Holder::restoreNetworks(juce::ValueTree const&) + 692 (DspNetwork.cpp:1597) 9 segFaulting Debug 0x15e105bf0 hise::JavascriptProcessor::restoreScript(juce::ValueTree const&) + 76 (ScriptProcessor.cpp:1598) 10 segFaulting Debug 0x15e112ce0 hise::JavascriptMasterEffect::restoreFromValueTree(juce::ValueTree const&) + 52 (ScriptProcessorModules.cpp:819) 11 segFaulting Debug 0x15d9a8a70 hise::Processor::restoreFromValueTree(juce::ValueTree const&) + 1364 (Processor.cpp:171) 12 segFaulting Debug 0x15d9a8a70 hise::Processor::restoreFromValueTree(juce::ValueTree const&) + 1364 (Processor.cpp:171) 13 segFaulting Debug 0x15d9e4484 hise::ModulatorSynth::restoreFromValueTree(juce::ValueTree const&) + 824 (ModulatorSynth.cpp:146) 14 segFaulting Debug 0x15d9f00f4 hise::ModulatorSynthChain::restoreFromValueTree(juce::ValueTree const&) + 168 (ModulatorSynthChain.cpp:388) 15 segFaulting Debug 0x15de2bd88 hise::FrontendProcessor::createPreset(juce::ValueTree const&) + 128 (FrontEndProcessor.cpp:412) 16 segFaulting Debug 0x15de2ba50 hise::FrontendProcessor::FrontendProcessor(juce::ValueTree&, juce::AudioDeviceManager*, juce::AudioProcessorPlayer*, juce::MemoryInputStream*, juce::MemoryInputStream*, juce::MemoryInputStream*, juce::MemoryInputStream*, juce::ValueTree*, juce::ValueTree*) + 2520 (FrontEndProcessor.cpp:356) 17 segFaulting Debug 0x15de2a608 hise::FrontendProcessor::FrontendProcessor(juce::ValueTree&, juce::AudioDeviceManager*, juce::AudioProcessorPlayer*, juce::MemoryInputStream*, juce::MemoryInputStream*, juce::MemoryInputStream*, juce::MemoryInputStream*, juce::ValueTree*, juce::ValueTree*) + 120 (FrontEndProcessor.cpp:249) 18 segFaulting Debug 0x15de2a134 hise::FrontendFactory::createPluginWithAudioFiles(juce::AudioDeviceManager*, juce::AudioProcessorPlayer*) + 432 (FrontEndProcessor.cpp:65) 19 segFaulting Debug 0x15d8934c4 createPluginFilter() + 20 (Plugin.cpp:22) 20 segFaulting Debug 0x15d8367f0 juce::createPluginFilterOfType(juce::AudioProcessor::WrapperType) + 28 (juce_CreatePluginFilter.h:39) 21 segFaulting Debug 0x15d8364e8 juce::JuceVST3Component::JuceVST3Component(Steinberg::Vst::IHostApplication*) + 300 (juce_VST3_Wrapper.cpp:2210) 22 segFaulting Debug 0x15d8363ac juce::JuceVST3Component::JuceVST3Component(Steinberg::Vst::IHostApplication*) + 36 (juce_VST3_Wrapper.cpp:2212) 23 segFaulting Debug 0x15d82a074 juce::createComponentInstance(Steinberg::Vst::IHostApplication*) + 36 (juce_VST3_Wrapper.cpp:3677) 24 segFaulting Debug 0x15d832b5c juce::JucePluginFactory::createInstance(char const*, char const*, void**) + 340 (juce_VST3_Wrapper.cpp:3813) 25 pluginval 0x104ad3b44 juce::DescriptionFactory::findDescriptionsAndPerform(juce::File const&) + 1048 26 pluginval 0x104ad3398 juce::VST3PluginFormat::findAllTypesForFile(juce::OwnedArray<juce::PluginDescription, juce::DummyCriticalSection>&, juce::String const&) + 280 27 pluginval 0x104ad8400 juce::KnownPluginList::scanAndAddFile(juce::String const&, bool, juce::OwnedArray<juce::PluginDescription, juce::DummyCriticalSection>&, juce::AudioPluginFormat&) + 692 28 pluginval 0x104ada880 juce::PluginDirectoryScanner::scanNextFile(bool, juce::String&) + 360 29 pluginval 0x104b0e048 juce::PluginListComponent::Scanner::timerCallback() + 304 30 pluginval 0x104a9dd14 juce::Timer::TimerThread::callTimers() + 212 31 pluginval 0x104aa1240 juce::MessageQueue::deliverNextMessage() + 60 32 pluginval 0x104aa11d0 juce::MessageQueue::runLoopCallback() + 44 33 CoreFoundation 0x1a4bd8f64 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 34 CoreFoundation 0x1a4bd8eb0 __CFRunLoopDoSource0 + 208 35 CoreFoundation 0x1a4bd8bb0 __CFRunLoopDoSources0 + 268 36 CoreFoundation 0x1a4bd7530 __CFRunLoopRun + 828 37 CoreFoundation 0x1a4bd6a54 CFRunLoopRunSpecific + 600 38 HIToolbox 0x1ad81a338 RunCurrentEventLoopInMode + 292 39 HIToolbox 0x1ad819fc4 ReceiveNextEventCommon + 324 40 HIToolbox 0x1ad819e68 _BlockUntilNextEventMatchingListInModeWithFilter + 72 41 AppKit 0x1a773e4b8 _DPSNextEvent + 860 42 AppKit 0x1a773cdb0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328 43 AppKit 0x1a772ef7c -[NSApplication run] + 596 44 pluginval 0x104a953d4 juce::JUCEApplicationBase::main() + 188 45 pluginval 0x104a952c8 juce::JUCEApplicationBase::main(int, char const**) + 88 46 dyld 0x10536d08c start + 520
-
@Lindon Does it happen with the AU or just the VST?
-
@d-healey when I tested the AU it happened there too...
-
@Lindon Are you using a frozen DspNetwork? If yes, try replacing it with a HardcodedFX module, might be more stable.
-
@Christoph-Hart said in ALARM ALARM - I have big problem I think....:
@Lindon Are you using a frozen DspNetwork? If yes, try replacing it with a HardcodedFX module, might be more stable.
pls downlaod the snippet I posted above to see I am using a hardcoded dspnetwork.
-
@Lindon now Im getting very confused.....
I get my minimal project to compile and not crash pluginval, I then load my "real" project and compile that - it makes pluginval fail...I go back to my minimal project and re-compile - now its failing....the more I do the more unstable it gets
-
@Lindon ...and.....I think @Hisenberb may be correct..its the non linear distortion effect in Faust.
I deleted all reference to distortion from my main project - removing code headers in two places as well as cpp files and removed the script node from the compiled DLL and the project builds and loads in pluginval....
Now to invent a non linear distortion .... to replace the one in Faust
@sletz I think this is now over to you.....
-
@Lindon what is the Faust DSP code ?
-
@sletz very simple I'm afraid:
// Faust Source File: FaustDistCode // Created with HISE on 2023-05-03 import("stdfaust.lib"); //drive drive = hslider("Drive", 0.2, 0, 1, 0.01); //offset offset = hslider("Offset", 0.2, 0, 1, 0.01); process = _,_ : ef.cubicnl_nodc(drive,offset),ef.cubicnl_nodc(drive,offset) : _,_;
-
pls downlaod the snippet I posted above to see I am using a hardcoded dspnetwork.
The crash report you posted says something different. You'll definitely initialising a DspNetwork from a script FX and it crashes at the parameter initialisation.
-
@Christoph-Hart said in ALARM ALARM - I have big problem I think....:
pls downlaod the snippet I posted above to see I am using a hardcoded dspnetwork.
The crash report you posted says something different. You'll definitely initialising a DspNetwork from a script FX and it crashes at the parameter initialisation.
well download the snippet I posted and you will see Im not doing that - ..or I dont think I am....
-
@Lindon heres a screen shot - no code no widgets nothing except these HardcodedFX
-
@Lindon Print that on your T-Shirt:
:)
-
@Christoph-Hart said in ALARM ALARM - I have big problem I think....:
@Lindon Print that on your T-Shirt:
:)
hmm, thers enough on my t-shirt already - but hey ho one more thing wont harm...
-
@Christoph-Hart said in ALARM ALARM - I have big problem I think....:
@Lindon Print that on your T-Shirt:
:)
So just so we are clear - the bypassed ScriptFX is this Faust NLDist thing, so are you saying:
- its this NLDist thing - which generally is my finding..
or
- I cant have a bypassed scriptNode version of something if I have also got a compiled version running in a HardCodedFX
-
@Lindon Having a non-compiled faust node in a compiled plugin is a nononononononono even if you have bypassed it (which doesn't change anything except for skipping the rendering).
- Develop the faust code
- Export it to a hardcoded FX
- Remove the scriptnode network that you've used for developing the faust code and kill every person that saw you do it.
- Export and enjoy a working plugin.