Skip to content

Lune module stops working #10

@dandante

Description

@dandante

I usually set "Auto reload script on" and then open my script. I tail the VCV log file while I am working and usually when I make a change to my script and save it, I'll see the script contents in the log file.

However, sometimes Lune gets into a state where it stops doing this and does not seem to be working at all. For example with a simple script like this:

config.frameDivider = 1
config.bufferSize = 8

buttonTrig = BooleanTrigger.new()

function process(block)
	if buttonTrig:process(block.button) then
		display('Button pressed')
	end
end

If I make a change and save the script, I do not see the script contents in the log file, and pressing the button on Lune does not display anything.
I also have a Helper module that doesn't seem to be working right either. If I mouse over a module, it correctly shows the module name, but if I then click the id button, it does not change the clipboard contents. Same with the dump button.

I have tried closing and reopening VCV Rack, removing and re-adding the Lune and Helper modules, and none of that seems to help.
I have not tried rebooting yet.
This is on an M1 Mac running Sonoma 14.5, VCV Rack Free 2.5.2, and ModScript 2.0.0 nightly.

This has happened a few times on two different machines. At some point the problem seems to fix itself, until it happens again.
Do you have any hints as to how to get things working again?

I do notice one thing - if I close my patch and create a new patch in VCV Rack, then add Lune, and open my script, it starts working again.
So I wonder if other modules are somehow putting Lune into a non-receptive state.
But this makes it hard/impossible to work on a Patch that includes Lune.

I also notice that Lune seems to have regular CPU spikes:

image

There is pretty much always a spike like this.

This seems like a super useful module! Looking forward to getting past this issue so I can make full use of it.
Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions