HISE Logo Forum
    • Categories
    • Register
    • Login

    Unable to open project, Hise crashes

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 387 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.
    • ulrikU
      ulrik
      last edited by

      If anyone has time to help me and solve this for me I would be grateful :)
      The project is here:
      https://www.dropbox.com/s/6ibqo434f3ndi8d/Arkiv.zip?dl=0
      it's compressed but there is no samples in it.
      Since today I am unable to open it (using latest master code to build Hise)
      When I try and Hise starts to compile the scripts it crashes :(

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

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

        Try disabling all of your scripts, one at a time, and then load the project. If it loads then you'll know which script is causing the issue.

        I've already ran the xml files through a validator and they came out good so I don't think there is anything wrong with them.

        In general it's not a good idea to put characters like + in a file name (I think that is a reserved character on FAT file systems) but I don't think that is the cause of the issue here.

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

        ulrikU 2 Replies Last reply Reply Quote 1
        • ulrikU
          ulrik @d.healey
          last edited by

          @d-healey Thank you, I will do that.

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

          1 Reply Last reply Reply Quote 0
          • ulrikU
            ulrik @d.healey
            last edited by

            @d-healey Thank you David, I found why it crashed, the last thing I did before I closed and saved the project (before all crashes), was to replace the code for my timer, I had this code:

            function onTimer()
            {
                if(DemoSongs.getValue() == DemoSongsArr.length-1)
                    {
                        Synth.stopTimer();
                    }
                    Console.print(MIDIPlay.getPlaybackPosition());
                    if(MIDIPlay.getPlaybackPosition() == -0)
                    {
                        onDemoSongsControl(component, DemoSongs.getValue()+1);
                        DemoSongs.setValue(DemoSongs.getValue()+1);
                    }
            }
            

            and replaced it with a creatTimerObject and made an inline function on the init callback with this code:

            tDemo.setTimerCallback(function()
            {
            	if(DemoSongs.getValue() == DemoSongsArr.length-2)
                    {
                        tDemo.stopTimer();
                    }
                    Console.print(MIDIPlay.getPlaybackPosition());
                    if(MIDIPlay.getPlaybackPosition() == -0)
                    {
                        onDemoSongsControl(component, DemoSongs.getValue()+1);
                        DemoSongs.setValue(DemoSongs.getValue()+1);
                    }
            });
            

            However it seems the tDemo timerObject didn't stop so it crashed Hise instead, I wonder why it didn't work, any idea?

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

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

              @ulrik Impossible for me to say for certain without seeing the whole script and understanding what it's supposed to do but perhaps this line

              DemoSongs.getValue() == DemoSongsArr.length-2

              should be

              DemoSongs.getValue() == DemoSongsArr.length-1

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

              ulrikU 1 Reply Last reply Reply Quote 1
              • ulrikU
                ulrik @d.healey
                last edited by

                @d-healey Yes I understand, well thank you for all help I really appreciate it. :)

                Hise Develop branch
                MacOs 15.3.1, Xcode 16.2
                http://musikboden.se

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

                19

                Online

                1.7k

                Users

                11.8k

                Topics

                102.8k

                Posts