Forum
    • Categories
    • Register
    • Login

    Creating a custom preset save button

    Scheduled Pinned Locked Moved Scripting
    28 Posts 3 Posters 5.9k 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.
    • Tangerine_SoundsT
      Tangerine_Sounds
      last edited by

      Any ideas why HISE keeps crashing when I try to save a Preset?

      I get this message in XCode: JUCE Assertion failure in UserPresetHandler.cpp:689

      I can save presets in the preset browser but it crashes when I use the Custom Save button.

      David HealeyD ChazroxC 2 Replies Last reply Reply Quote 0
      • David HealeyD
        David Healey @Tangerine_Sounds
        last edited by

        @Tangerine_Sounds said in Creating a custom preset save button:

        I get this message in XCode: JUCE Assertion failure in UserPresetHandler.cpp:689

        That error is in the postPresetSave function. What are you doing in that function?

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

        Tangerine_SoundsT 1 Reply Last reply Reply Quote 0
        • Tangerine_SoundsT
          Tangerine_Sounds @David Healey
          last edited by

          @d-healey I'm not using the postPresetSave function. I'm just using the same code as in your video.

          I'll try it in a new HISE project and send a snippet

          1 Reply Last reply Reply Quote 1
          • Tangerine_SoundsT
            Tangerine_Sounds
            last edited by

            Created a new project but I'm still getting the same crash and error as before. I'm on a Mac if that makes any difference.

            HiseSnippet 1636.3ocsXssaSbDFd1jr.6RoTj5M8tEe0ZTjiMgbhnVbbRbIhjfab.ZETgFu6r1iX8LVyNaNHHRz2.dD5qPun20K3onOG8lpdI8e1Y8dvwoPiZWEkn4+32+27OmRGA2iDEwEHC6COcDAY7YlcOkIGr4.Lkg1YKjwWYdHIR5zQPhHRmt3iHNshkRNC05zQ3nHhOxvX1uUYtg0bnju+3AsvgXlGIWDB8TN0irKcHUlKsSyGQCCai8IGRGVv560bGONaSdHOFf1rl0QivduB2mrOVY1LlnGhiFfLtiYuFd0IK1yCi6gWir5pK06dqtxZXRC+FqrzxqsT805s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EZtFVR5OkDgBHYtOZ4mCCzvBv3sOuYw3b0xwI85Tp3bSyR6dVHdu8nxkkpYdmzM1TUjtLuhoxYDMZO9PHUXA3iwLEy80koWRQm61gbrD1m3PX4ZJBJJpXE076JVQAMOl5KGjI3cut4.Bs+f7K28yxloy35o2aZpQaqjMOEnIlC9qyOG7Ke3cenrz6lZbxWRe0L+9Llu11wohp6VU7Z1rx8062NVy1mLBmrEXzFQPnhGprH.GFkahd+6o6tZwdz4hIzPoMujpbwv1CpM5uuSi5YNsgu+zSwADFb21oqaKRHQdA55RvBuAsvhhJZiOhq1sTcK5LTjChhpK4VbXXGrbvX8QkHozZcGfG8Is3BfsJoe+3gZpU41hIhzielpS4.nohCJdNH2wodsEm3a9+kxAw+XRN1kFI2.NfIqNSyv7S6OYdoQ1A7i6f88gt8OU+xn6V7XlupRetVwdbQ5LzjZx6JmTyXd9bZsOCdaz4tFO7.BtebHVV9UEp2dkpfNwyxTWWGltjmV7sY+m8TiOUHdKyNTo2foiwYlBFgSK9+.ioOP6FlaGDP7j4.bNy1e++OuFCc.OVsY5dX35XvdolvhjtvFYdDH6LFITcJNrCsx0jw0UiULPWByOYvGfuTkMTiMRU1XrRzPrmf+RO8ozpm.dsDI.lXIOW1xbO0XmxGOqOkBdQ5K87JGpy43curNt3k0w6cYcboKqiKeYcbkKqiq9wcT8OLXiXIendYCBsWmsSN1yvXal5xLIcqn+F8iiJVC
            
            David HealeyD 1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey @Tangerine_Sounds
              last edited by David Healey

              It's not crashing here, which commit of HISE are you using? Is it crashing in HISE or just the compiled project?

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

              Tangerine_SoundsT 1 Reply Last reply Reply Quote 0
              • ChazroxC
                Chazrox @Tangerine_Sounds
                last edited by

                @Tangerine_Sounds Snippet works here.

                1 Reply Last reply Reply Quote 0
                • Tangerine_SoundsT
                  Tangerine_Sounds @David Healey
                  last edited by

                  @d-healey said in Creating a custom preset save button:

                  It's not crashing here, which commit of HISE are you using? Is it crashing in HISE or just the compiled project?

                  I'm using the latest Develop Branch. It's crashing HISE completely so I have to rebuild it in XCode

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

                    @Tangerine_Sounds said in Creating a custom preset save button:

                    It's crashing HISE completely so I have to rebuild it in XCode

                    The snippet you shared above is crashing in a fresh project?

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

                    Tangerine_SoundsT 1 Reply Last reply Reply Quote 0
                    • Tangerine_SoundsT
                      Tangerine_Sounds @David Healey
                      last edited by

                      @d-healey yes it is

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

                        @Tangerine_Sounds Can you test on another system?

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

                        Tangerine_SoundsT 2 Replies Last reply Reply Quote 0
                        • Tangerine_SoundsT
                          Tangerine_Sounds @David Healey
                          last edited by

                          @d-healey will try my old Mac mini tomorrow

                          1 Reply Last reply Reply Quote 0
                          • Tangerine_SoundsT
                            Tangerine_Sounds @David Healey
                            last edited by

                            @d-healey I’m still having the same issue on my Mac mini.

                            It’s not a huge issue. I can leave the button in my project and just not use it during development and testing. I can still save presets in the browser at least

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

                              @Tangerine_Sounds Can you make a video? I want to see it in action. @Chazrox Were you testing on Windows or Mac?

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

                              ChazroxC Tangerine_SoundsT 3 Replies Last reply Reply Quote 0
                              • ChazroxC
                                Chazrox @David Healey
                                last edited by

                                @d-healey Mac / Sequoia 15.2

                                git hash: 22fc80083350aa3daa41e39ef6fc5090db505056

                                1 Reply Last reply Reply Quote 0
                                • ChazroxC
                                  Chazrox @David Healey
                                  last edited by Chazrox

                                  @d-healey what about this?

                                  Screenshot 2025-04-23 at 5.38.07 AM.png

                                  Typo?

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

                                    @Chazrox I think that's left over from his main project - the reason it doesn't give an error is because there is no component called "btnPreset" in the snippet.

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

                                    Tangerine_SoundsT 1 Reply Last reply Reply Quote 0
                                    • Tangerine_SoundsT
                                      Tangerine_Sounds @David Healey
                                      last edited by

                                      @d-healey said in Creating a custom preset save button:

                                      Can you make a video? I want to see it in action.

                                      HISE Crash.mov

                                      1 Reply Last reply Reply Quote 0
                                      • Tangerine_SoundsT
                                        Tangerine_Sounds @David Healey
                                        last edited by

                                        @d-healey said in Creating a custom preset save button:

                                        I think that's left over from his main project

                                        Yes, that was copied over by mistake. My original project had the Next and Previous preset buttons

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

                                          @Tangerine_Sounds Does it only happen with overwrite existing preset or with a new preset too? (I only tested with a new preset).

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

                                          Tangerine_SoundsT 1 Reply Last reply Reply Quote 0
                                          • Tangerine_SoundsT
                                            Tangerine_Sounds @David Healey
                                            last edited by

                                            @d-healey I've tested both ways and it crashes just the same

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

                                            16

                                            Online

                                            2.1k

                                            Users

                                            13.0k

                                            Topics

                                            112.9k

                                            Posts