Forum
    • Categories
    • Register
    • Login

    Crash creating Script FX in SlotFX — null pointer in JavascriptMasterEffect::applyEffect

    Scheduled Pinned Locked Moved Bug Reports
    5 Posts 2 Posters 16 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tahinar
      last edited by

      HISE 4.1.0, macOS 26.5.2 (Tahoe), Apple Silicon (Mac17,2), standalone app.

      Crash occurs when adding a Script FX module to a SlotFX effect slot. Reproduced
      twice — first attempt with audio actively playing on the channel, second attempt
      on a muted channel with no kit loaded (to rule out a race condition), same crash
      both times.

      EXC_BAD_ACCESS (SIGSEGV), KERN_INVALID_ADDRESS at 0x0000000000001000.

      Crashing thread (Thread 9, com.apple.audio.IOThread.client):

      hise::JavascriptMasterEffect::applyEffect(juce::AudioBuffer&, int, int)
      hise::MasterEffectProcessor::renderWholeBuffer(juce::AudioBuffer&)
      hise::EffectProcessorChain::renderMasterEffects(juce::AudioBuffer&)
      hise::ModulatorSynth::renderNextBlockWithModulators(...)
      hise::ModulatorSampler::renderNextBlockWithModulators(...)
      hise::ModulatorSynthChain::renderNextBlockWithModulators(...) [x2, nested chains]
      hise::MainController::processBlockCommon(...)
      hise::BackendProcessor::processBlock(...)

      far: 0x0000000000001000 — reads as a near-null pointer dereference inside
      applyEffect(), suggesting the DSP network reference isn't valid at the point the
      audio thread tries to render through it.

      A second thread (Thread 0, JUCE Message Thread) was concurrently mid-construction
      of the ScriptNode editor panel when the crash was captured:

      scriptnode::DspNetworkGraph::DspNetworkGraph(scriptnode::DspNetwork*)
      hise::HiseShapeButton::HiseShapeButton(...)
      non-virtual thunk to scriptnode::DspNetworkGraph::RootUndoButtons::createPath(...)
      juce::Path::loadPathFromData(...)
      juce::MemoryInputStream::read(...)

      Not certain if these two are related or coincidental, including both since they
      were captured in the same crash report.

      Steps to reproduce:

      1. Fresh HISE 4.1.0 standalone project (also happens in [your project name])
      2. Add a SlotFX effect slot to a channel
      3. Set its effect type to Script FX via the Module Tree
      4. Crash occurs [immediately / when opening its DSP network editor — confirm which]

      Happy to attach the full crash log (I have it) and/or a minimal repro project if
      useful.

      David HealeyD T 2 Replies Last reply Reply Quote 0
      • David HealeyD
        David Healey @tahinar
        last edited by

        @tahinar Try with the latest version of HISE, 4.1.0 is ancient.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - HISE tutorials
        My Patreon - More HISE tutorials

        T 1 Reply Last reply Reply Quote 0
        • T
          tahinar @tahinar
          last edited by

          @David-Healey Where can I find an updated version? All I see is 4.1.0

          1 Reply Last reply Reply Quote 0
          • T
            tahinar @David Healey
            last edited by

            @David-Healey I think I have found the solution... https://setup.hise.dev/update

            David HealeyD 1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey @tahinar
              last edited by

              @tahinar Yes you need to build it from source. There are many posts on the forum with instructions.

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - HISE tutorials
              My Patreon - More HISE tutorials

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              16

              Online

              2.5k

              Users

              13.9k

              Topics

              121.2k

              Posts