HISE Logo Forum
    • Categories
    • Register
    • Login

    Debugging from DAW Crash report

    Scheduled Pinned Locked Moved General Questions
    15 Posts 3 Posters 850 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.
    • ?
      A Former User
      last edited by A Former User

      Hello
      Cubase crashes with my fx plugin. Is there anyway to debug from DAW crash reports?

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @A Former User
        last edited by

        @Steve-Mohican Maybe, you should use a debug build of your plugin to get more info.

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

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @d.healey
          last edited by

          @d-healey It's good to know that we have this option.
          How can I do that? With only enabling debug mode in scripting settings?
          So if the plugin crashes, where will the log file located?

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @A Former User
            last edited by

            @Steve-Mohican

            How can I do that?

            That depends on your OS.
            On Windows I think you have to edit the batch file that HISE generates and replace the word "Release" with "Debug"

            On MacOS you have to select build for running in Xcode.

            So if the plugin crashes, where will the log file located?

            You'd need to ask Steinberg. If it was me I'd run Cubase the command line and it will output directly to the console in realtime.

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

            ? 1 Reply Last reply Reply Quote 0
            • ?
              A Former User @d.healey
              last edited by A Former User

              If it was me I'd run Cubase the command line and it will output directly to the console in realtime.

              Hmm interesting, can I open Cubase with command line in Windows?

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @A Former User
                last edited by

                @Steve-Mohican I don't know, try it and see.

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

                ? 1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @d.healey
                  last edited by

                  @d-healey Ok thank you, I'll try...

                  1 Reply Last reply Reply Quote 0
                  • Casey KolbC
                    Casey Kolb
                    last edited by Casey Kolb

                    Cubase crashes with my fx plugin. Is there anyway to debug from DAW crash reports?

                    @Steve-Mohican Yes, you can absolutely debug from a DAW crash report, but you need to be using a symbolicated version of your plugin when it crashes. To export a symbolicated plugin, you'll want your autogenerated Projucer file (found in the Binaries folder) to look like the screenshot below and then you must click the XCode button at the top and build from XCode with Product > Build For > Profiling.

                    Screen Shot 2021-02-18 at 1.27.53 PM.png

                    When the crash report is symbolicated, you can look at the crashed thread and try to gauge what C++ function calls are executed before the plugin crashed.

                    Casey Kolb
                    Founder & CEO of Lunacy Audio
                    Composer | Producer | Software Developer

                    1 Reply Last reply Reply Quote 0
                    • Casey KolbC
                      Casey Kolb
                      last edited by

                      So if the plugin crashes, where will the log file located?

                      @Steve-Mohican Crash logs can be found in the Mac Console app, which should list all the most recent crashes under "User Reports". It might be different depending on the computer, but I can always find mine here:

                      Screen Shot 2021-02-18 at 1.32.27 PM.png

                      Casey Kolb
                      Founder & CEO of Lunacy Audio
                      Composer | Producer | Software Developer

                      ? 1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @Casey Kolb
                        last edited by

                        @Lunacy-Audio Thank you so much Casey, that helped a lot!! Wonderful! I am using Windows so I need to add those same flags to VS2017 Release version, right?

                        Casey KolbC d.healeyD 2 Replies Last reply Reply Quote 0
                        • Casey KolbC
                          Casey Kolb @A Former User
                          last edited by

                          @Steve-Mohican I have yet to try on Windows! But I can imagine it's something similar. Maybe this forum post might provide some leads:

                          https://forum.juce.com/t/guide-symbolicating-release-builds/27151

                          Casey Kolb
                          Founder & CEO of Lunacy Audio
                          Composer | Producer | Software Developer

                          ? 1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @Casey Kolb
                            last edited by

                            @Lunacy-Audio Thank you!

                            1 Reply Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @A Former User
                              last edited by

                              @Steve-Mohican It's just the debug build I mentioned earlier.

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

                              Casey KolbC 1 Reply Last reply Reply Quote 0
                              • Casey KolbC
                                Casey Kolb @d.healey
                                last edited by

                                @Steve-Mohican It's just the debug build I mentioned earlier.

                                @d-healey I think it's slightly different, but correct me if I'm wrong. The Debug will be far less optimized than the symbolicated Release build, which may prevent you from testing it in a more realistic context. Sometimes crashes will only happen in Release builds and not the Debug because the Debug is so bloated and slow that the threading issues may not occur as they normally would. Just some food for thought. Probably a good idea to test in both. 😀

                                Casey Kolb
                                Founder & CEO of Lunacy Audio
                                Composer | Producer | Software Developer

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

                                  @Lunacy-Audio You're probably correct, the debug build has no optimisation.

                                  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

                                  22

                                  Online

                                  1.7k

                                  Users

                                  11.8k

                                  Topics

                                  102.6k

                                  Posts