HISE Logo Forum
    • Categories
    • Register
    • Login

    Logic Pro crash when playing MIDI

    Scheduled Pinned Locked Moved General Questions
    23 Posts 3 Posters 213 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.
    • S
      Sampletekk @Lindon
      last edited by

      @Lindon said in Logic Pro crash when playing MIDI:

      @Sampletekk said in Logic Pro crash when playing MIDI:

      I've tested one of my AU instruments in progress on Logic Pro 10.7.4, running on OS 13.6.1. When playing a midi file and starting/stopping, it will cause Logic to crash. Anyone else experiencing this?
      Just loading instrument and playing it works, it's when starting/stopping a midi-file that it happens.

      What is AUVal telling you?

      What's AUVal?

      S LindonL 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @Sampletekk
        last edited by

        @Sampletekk said in Logic Pro crash when playing MIDI:

        Here's the snippet of the project,

        UI script isn't deferred and messing with Messages in the UI script is not a good combination. I would start there.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        S 3 Replies Last reply Reply Quote 0
        • S
          Sampletekk @Sampletekk
          last edited by

          @Sampletekk said in Logic Pro crash when playing MIDI:

          @Lindon said in Logic Pro crash when playing MIDI:

          @Sampletekk said in Logic Pro crash when playing MIDI:

          I've tested one of my AU instruments in progress on Logic Pro 10.7.4, running on OS 13.6.1. When playing a midi file and starting/stopping, it will cause Logic to crash. Anyone else experiencing this?
          Just loading instrument and playing it works, it's when starting/stopping a midi-file that it happens.

          What is AUVal telling you?

          What's AUVal?

          Skärmavbild 2025-05-08 kl. 15.57.51.png

          Looks fine

          LindonL 1 Reply Last reply Reply Quote 0
          • S
            Sampletekk @d.healey
            last edited by

            @d-healey Thanks! I check!

            1 Reply Last reply Reply Quote 0
            • S
              Sampletekk @d.healey
              last edited by

              @d-healey said in Logic Pro crash when playing MIDI:

              UI script isn't deferred

              Sorry, from Sweden... What does that mean?

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @Sampletekk
                last edited by

                @Sampletekk Read this - https://forum.hise.audio/topic/79/scripting-best-practices

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                1 Reply Last reply Reply Quote 0
                • LindonL
                  Lindon @Sampletekk
                  last edited by

                  @Sampletekk said in Logic Pro crash when playing MIDI:

                  @Lindon said in Logic Pro crash when playing MIDI:

                  @Sampletekk said in Logic Pro crash when playing MIDI:

                  I've tested one of my AU instruments in progress on Logic Pro 10.7.4, running on OS 13.6.1. When playing a midi file and starting/stopping, it will cause Logic to crash. Anyone else experiencing this?
                  Just loading instrument and playing it works, it's when starting/stopping a midi-file that it happens.

                  What is AUVal telling you?

                  What's AUVal?

                  from the Apple AU Development documentation;

                  Audio Unit Validation and Testing
                  
                  Audio Unit Validation with the auval Tool
                  Apple strongly recommends validating your audio units using the auval command-line 
                  tool during development. The auval tool (named as a contraction of "audio unit 
                  validation") comes with OS  X. It performs a comprehensive suite of tests on:
                  
                  An audio unit’s plug-in API, as defined by its programmatic type
                  An audio unit’s basic functionality including such things as which audio 
                  data channel configurations are available, time required to instantiate 
                  the audio unit, and the ability of the audio unit to render audio
                  The auval tool tests only an audio unit proper. It does not test 
                  any of the following:
                  
                  Audio unit views
                  Audio unit architecture, in terms of using the recommended model-view-controller 
                  design pattern for separation of concerns
                  Correct use of the Audio Unit Event API
                  Quality of DSP, quality of audio generation, or quality of audio data format 
                  conversion
                  
                  The auval tool can validate every type of audio unit defined by Apple. When you run it, 
                  it outputs a test log and summarizes the results with a “pass” or "fail” indication.
                  
                  For more information, refer to the auval built-in help system. To see auval help text, 
                  enter the following command at a prompt in the Terminal application:
                  
                  auval -h
                  
                  

                  HISE Development for hire.
                  www.channelrobot.com

                  1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @Sampletekk
                    last edited by Lindon

                    @Sampletekk said in Logic Pro crash when playing MIDI:

                    @Sampletekk said in Logic Pro crash when playing MIDI:

                    @Lindon said in Logic Pro crash when playing MIDI:

                    @Sampletekk said in Logic Pro crash when playing MIDI:

                    I've tested one of my AU instruments in progress on Logic Pro 10.7.4, running on OS 13.6.1. When playing a midi file and starting/stopping, it will cause Logic to crash. Anyone else experiencing this?
                    Just loading instrument and playing it works, it's when starting/stopping a midi-file that it happens.

                    What is AUVal telling you?

                    What's AUVal?

                    Skärmavbild 2025-05-08 kl. 15.57.51.png

                    Looks fine

                    That's not Auval thats Plug-In manager...

                    HISE Development for hire.
                    www.channelrobot.com

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sampletekk @d.healey
                      last edited by Sampletekk

                      @d-healey said in Logic Pro crash when playing MIDI:

                      @Sampletekk said in Logic Pro crash when playing MIDI:

                      Here's the snippet of the project,

                      UI script isn't deferred and messing with Messages in the UI script is not a good combination. I would start there.

                      I realize there's a lot to learn here! Would you suggest putting the messages in scriptprocessors? For instance, these, that now are in onNoteOn callback in the UI script into a scriptprocessor for the sampler that triggers the samples when playing a note?

                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @Sampletekk
                        last edited by

                        @Sampletekk I recommend everyone always adds Synth.deferCallbacks(true); in the on init of their Interface script. It's very rare that you wouldn't want this.

                        Once you do this HISE will start giving you some errors if you try and do non-deferred stuff in the on note on callback. Anything it complains about you can move to a separate (non-deferred) MIDI processor.

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          Sampletekk @d.healey
                          last edited by

                          @d-healey So, by putting Synth.deferCallbacks(true); in the onInit interface script you don't need to ad it to other callbacks in interface scripts, that's the only place you should put it?

                          d.healeyD 1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey @Sampletekk
                            last edited by

                            @Sampletekk Correct

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

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

                            50

                            Online

                            1.7k

                            Users

                            11.7k

                            Topics

                            101.8k

                            Posts