HISE Logo Forum
    • Categories
    • Register
    • Login

    Midi Overlay Panels in Compiled Plugin Crashing DAWS?

    Scheduled Pinned Locked Moved Bug Reports
    37 Posts 10 Posters 4.3k 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
      Soundavid @Goodflow
      last edited by

      @Goodflow Its working like charm for me too in my system, Im going to build it on windows today and report 🤞🏼

      GoodflowG 1 Reply Last reply Reply Quote 0
      • GoodflowG
        Goodflow @Soundavid
        last edited by

        @Soundavid All good on Windows here so far (tested HISE & plugin). Firing up a Linux vm to complete the trifecta, but this really seems to have done the trick.

        1 Reply Last reply Reply Quote 0
        • M
          mehmethand @Soundavid
          last edited by

          @Soundavid said in Midi Overlay Panels in Compiled Plugin Crashing DAWS?:

          @Goodflow Ok I debugged a lot this problem and I think I found the culprit... the problem persisted in my project when i called an expansion that loads the Midi Overlay and this is what I found.

          • The Plugin Crashes when is removed and loaded again but only if there is one instance running.

          • If you have multiple instances and remove/load the plugin works fine but when you remove the last one and try to load it again it crashes.

          This means that the problem is when the plugin is closed completely so I checked the Midi Overlay Factory class in the source code and I found that the class is derived from the DeletedAtShutdown class from JUCE, this class deletes everything when the app is closed but maybe JUCE doesn't call this in plugins until the last instance is closed...

          So, I removed the DeletedAtShutdown from the Midi Overlay Factory class in the Source code of the plugin (not re-building hise) and the problem disappears in the plugin...

          I tested the plugin today in Logic checking memory and Cpu loads and works perfectly for now but maybe this could be a problem with another type of Midi Overlays or using the Standalone App or Windows (im using two MO tiles, Drag n drop and Midi Viewer).

          @Christoph-Hart Maybe you might want to check this out 👆

          I have the same crash and I want to try your solution but I'm a little bit confused about what to delete where to delete? Can you point it more clear for a newby please?

          GoodflowG 1 Reply Last reply Reply Quote 0
          • GoodflowG
            Goodflow @mehmethand
            last edited by

            @mehmethand

            HISE/hi_components/midi_overlays/MidiOverlayFactory.h

            Line 40:

            class MidiOverlayFactory: public DeletedAtShutdown
            

            gets changed to

            class MidiOverlayFactory
            
            M ILIAMI 2 Replies Last reply Reply Quote 2
            • M
              mehmethand @Goodflow
              last edited by

              @Goodflow thank you so much.

              1 Reply Last reply Reply Quote 0
              • ILIAMI
                ILIAM @Goodflow
                last edited by

                @Goodflow said in Midi Overlay Panels in Compiled Plugin Crashing DAWS?:

                @mehmethand

                HISE/hi_components/midi_overlays/MidiOverlayFactory.h

                Line 40:

                class MidiOverlayFactory: public DeletedAtShutdown
                

                gets changed to

                class MidiOverlayFactory
                

                This fixes the Midioverlay Disappearing?
                @Matt_SF Matt, Take a look 👁️‍🗨️

                Matt_SFM d.healeyD 2 Replies Last reply Reply Quote 1
                • Matt_SFM
                  Matt_SF @ILIAM
                  last edited by

                  @ILIAM @Goodflow awesome. Thanks!

                  Develop branch
                  Win10 & VS17 / Ventura & Xcode 14. 3

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

                    @ILIAM Is there a PR for this on github?

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

                    Matt_SFM 1 Reply Last reply Reply Quote 0
                    • Matt_SFM
                      Matt_SF @d.healey
                      last edited by

                      @d-healey not yet. I though i'd make a PR tonight after verifying it

                      Develop branch
                      Win10 & VS17 / Ventura & Xcode 14. 3

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

                        @Matt_SF Noice, yeah good idea to check it doesn't break anything

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

                        1 Reply Last reply Reply Quote 1
                        • ustkU
                          ustk
                          last edited by

                          Is there not a risk to let something pending in memory if it's not deleted?

                          Hise made me an F5 dude, browser just suffers...

                          1 Reply Last reply Reply Quote 0
                          • Matt_SFM
                            Matt_SF
                            last edited by

                            I haven't faced any weirdness while tesing it, but of course I can't test it on different systems, so that's a questions for @Christoph-Hart : should I make a PR ?

                            Develop branch
                            Win10 & VS17 / Ventura & Xcode 14. 3

                            ILIAMI 1 Reply Last reply Reply Quote 0
                            • ILIAMI
                              ILIAM @Matt_SF
                              last edited by

                              @Matt_SF Matt,Hey
                              So the Disappearing tile fixed?
                              did you tried on different DAWs ?

                              Matt_SFM 1 Reply Last reply Reply Quote 0
                              • Matt_SFM
                                Matt_SF @ILIAM
                                last edited by

                                @ILIAM Yes. I've tested it in Ableton, FL Studio, Reaper and Cubase

                                Develop branch
                                Win10 & VS17 / Ventura & Xcode 14. 3

                                ILIAMI 1 Reply Last reply Reply Quote 1
                                • ILIAMI
                                  ILIAM @Matt_SF
                                  last edited by

                                  @Matt_SF said in Midi Overlay Panels in Compiled Plugin Crashing DAWS?:

                                  t in Ableton, FL Studio, Reaper and Cubase

                                  Yeah Man, Lets goo
                                  022063d48f1a54c620df440030c99bf0.gif

                                  ILIAMI 1 Reply Last reply Reply Quote 0
                                  • ILIAMI
                                    ILIAM @ILIAM
                                    last edited by

                                    @Matt_SF So this is what you changed?

                                    MidiOverlayFactory.h

                                    class MidiOverlayFactory: public DeletedAtShutdown
                                    {
                                    public:
                                    
                                    Changed to (public DeletedAtShutdown >> Removed )
                                    
                                    class MidiOverlayFactory
                                    {
                                    public:
                                    

                                    Correct?

                                    ILIAMI 1 Reply Last reply Reply Quote 0
                                    • ILIAMI
                                      ILIAM @ILIAM
                                      last edited by

                                      MidiOverlayFactory.h

                                      class MidiOverlayFactory: public DeletedAtShutdown
                                      {
                                      public:
                                      
                                      Changed to (public DeletedAtShutdown >> Removed )
                                      
                                      class MidiOverlayFactory
                                      {
                                      public:
                                      

                                      🔥 Great news, fam! Everything’s runnin’ smooth as butter — no issues at all with the MIDI Overlay Panel on Windows 10.

                                      Tested the plugin in these DAWs so far: Ableton, Reaper, Cakewalk Sonar, and FL Studio — all solid! 💪🎶

                                      big shoutout to @Goodflow for puttin’ in that work, squashin’ the bug, and droppin’ the fix! 🙌🔥

                                      1 Reply Last reply Reply Quote 0
                                      • ILIAMI
                                        ILIAM
                                        last edited by

                                        @Matt_SF You tested on Windows too or Mac?

                                        Matt_SFM 1 Reply Last reply Reply Quote 0
                                        • Matt_SFM
                                          Matt_SF @ILIAM
                                          last edited by

                                          @ILIAM On windows only - My plugin is not compiling on mac yet because of network compiling errors, on the latest commit.

                                          Develop branch
                                          Win10 & VS17 / Ventura & Xcode 14. 3

                                          ILIAMI 1 Reply Last reply Reply Quote 1
                                          • ILIAMI
                                            ILIAM @Matt_SF
                                            last edited by

                                            Yo @Matt_SF, I’ma give it a shot. I’m runnin’ the 2024 HISE build right now — don’t think there’s been any major changes to the MIDI Overlay Panel lately, so if it’s solid on the older version, it should be all good on the new one too. I’ll report back with the Mac results in a few hours! 💻🔥

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

                                            27

                                            Online

                                            2.0k

                                            Users

                                            12.7k

                                            Topics

                                            110.3k

                                            Posts