HISE Logo Forum
    • Categories
    • Register
    • Login

    Big Problems in Big Project....

    Scheduled Pinned Locked Moved Bug Reports
    8 Posts 2 Posters 186 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.
    • LindonL
      Lindon
      last edited by

      Hmm, I have some very strange behaviour in a large project I have:

      in HISE when I load the project it works fine....
      but it shows me this message in red:

      ! ! killing thread by force !!

      If I try to compile anything I get no problems - but all my panels stop working correctly(LAF and mouse events)

      Any one have any ideas?

      HISE Development for hire.
      www.channelrobot.com

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

        @Lindon JUCE error - https://github.com/christophhart/HISE/blob/master/JUCE/modules/juce_core/threads/juce_Thread.cpp#L229

        Time to run in debugger and follow the call stack to the root of the problem.

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

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

          @d-healey said in Big Problems in Big Project....:

          @Lindon JUCE error - https://github.com/christophhart/HISE/blob/master/JUCE/modules/juce_core/threads/juce_Thread.cpp#L229

          Time to run in debugger and follow the call stack to the root of the problem.

          yes I guess - my problem there is I never seem to get anything valuable out of this process...

          HISE Development for hire.
          www.channelrobot.com

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

            @d-healey

            I had better check I'm doing the right sorts of things...

            • I need to run the debug version of HISE inside Visual Studio no? The load my project and see what comes out?

            HISE Development for hire.
            www.channelrobot.com

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

              @Lindon well byuilding the debug version with Faust hits an immedate fail in VS:

              1>------ Build started: Project: HISE Standalone_App, Configuration: Debug with Faust x64 ------
              ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

              This isnt making any sense to me as all I'm doing is asking to build the exact HISE version I currently have built....

              Nope its me being stupid again - tshirt - medium please...

              HISE Development for hire.
              www.channelrobot.com

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

                -- well worst of all possible scenarios -- its working perfectly in debug mode....

                HISE Development for hire.
                www.channelrobot.com

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

                  Yes the problem persists in the release version of HISE but is not evident in the debug version - so I'm guessing it some sort of race condition - which I probably have little or no chance of finding....

                  any ideas @Christoph-Hart ??

                  HISE Development for hire.
                  www.channelrobot.com

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

                    --- Okay well, this is a very interesting problem.....here's what I think was/is happening....

                    As I said this is a VERY big project, but previously I have divided it down into a set of 32 include files..yeah there's a lot of code...

                    Many of these operate in their own namespace, but (sadly) not all....until today...

                    So it seems that I ran out of variable space, despite my (inconsistent) namespace usage, and HISE wasnt telling me about this, instead it went ahead and tried to compile the code. At some point it reached this limit of variables, but was in the middle of a for loop assigning widget references to these vars (theres a LOT of widgets). So the for loop never completed, and HISE lost patience and killed the thread by force.

                    So the solution was (here) to use namespaces everywhere.....

                    ..and the solution long term is:

                    1. Use namespaces everywhere
                    2. Ask @Christoph-Hart to look at getting a slightly better error message out of HISE (I realise the "by FORCE" message is in fact from JUCE - but if we can intercept this and check our var usage that would be a good thing to do I think)

                    Dear God let this be the problem/solution.....

                    HISE Development for hire.
                    www.channelrobot.com

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

                    13

                    Online

                    1.7k

                    Users

                    11.8k

                    Topics

                    102.4k

                    Posts