HISE Logo Forum
    • Categories
    • Register
    • Login

    Getting Crash in HISE Debug but not Release

    Scheduled Pinned Locked Moved C++ Development
    9 Posts 3 Posters 677 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.
    • langermarc19L
      langermarc19
      last edited by langermarc19

      Hi There,

      I am trying to debug a custom C++ node that I created. When I open the custom node in the Release build of HISE by using HardcodedMasterFX it opens, but when I try to debug by building from XCode with the HISE Debug as an executable, I get the following error when I try to open the custom effect:

      Screen Shot 2022-09-14 at 8.29.08 AM.png

      Looks like a double-free, but I'm not sure why this would happen in Debug and not Release. Any thoughts @Christoph-Hart ?

      @Casey-Kolb for reference

      1 Reply Last reply Reply Quote 1
      • langermarc19L
        langermarc19
        last edited by

        Hey @Christoph-Hart checking again to see if you have any thoughts here about where this might be coming from. Gonna go digging in a moment.

        langermarc19L 1 Reply Last reply Reply Quote 0
        • langermarc19L
          langermarc19 @langermarc19
          last edited by

          Update: this is happening for ANY compiled DLL that I load in HardcodedMasterFX while in DEBUG mode, seemingly when trying to initialize the parameter list

          langermarc19L 1 Reply Last reply Reply Quote 0
          • langermarc19L
            langermarc19 @langermarc19
            last edited by

            the crux of the issue seems to be that the array of parameters is cleared here before any elements of that array are actually assigned. I think.
            Screen Shot 2022-09-16 at 5.53.29 PM.png

            langermarc19L 1 Reply Last reply Reply Quote 0
            • langermarc19L
              langermarc19 @langermarc19
              last edited by

              Should add that these are coming from the XCode output

              Screen Shot 2022-09-16 at 6.30.38 PM.png

              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @langermarc19
                last edited by

                @langermarc19 Nah, that's just a false positive, the reason for this is some memory corruption at another place.

                Have you exported the DLL also in Debug mode? You need to compile both Debug and Release dlls if you want to load it in both Configurations and a mismatch might lead to these kind of vague errors.

                langermarc19L 1 Reply Last reply Reply Quote 0
                • langermarc19L
                  langermarc19 @Christoph Hart
                  last edited by langermarc19

                  @Christoph-Hart To test this I just deleted all of the compiled DLLs, re-exported from HISE debug, compiled and built in XCode in the debug configuration, then loaded HISE Debug as an executable and got the double-free in the same location.

                  Not sure where the memory corruption could be happening here but still hunting

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

                    @langermarc19 said in Getting Crash in HISE Debug but not Release:

                    I just deleted all of the compiled DLLs

                    There was more than one?

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

                    langermarc19L 1 Reply Last reply Reply Quote 0
                    • langermarc19L
                      langermarc19 @d.healey
                      last edited by

                      @d-healey There was a Debug one and a Release one

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

                      31

                      Online

                      1.7k

                      Users

                      11.7k

                      Topics

                      102.3k

                      Posts