Unable to open project, Hise crashes



  • 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 😞



  • 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.



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



  • @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?



  • @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



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


Log in to reply
 

6
Online

453
Users

1.5k
Topics

11.3k
Posts