I'm getting this error when I launch a cue from a midi interface or an osc-def (TouchOsc). The cues work, but I get this error when the GUI is open:
-> a CuePlayer
ERROR: Qt: You can not use this Qt functionality in the current thread. Try scheduling on AppClock instead.
ERROR: Primitive '_QObject_SetProperty' failed.
Failed.
RECEIVER:
Instance of NumberBox { (0x55f2d55acbe8, gc=D4, fmt=00, flg=00, set=06)
instance variables [46]
qObject : RawPointer 0x55f2d19f5420
finalizer : instance of Finalizer (0x55f2d55ad018, size=2, set=1)
virtualSlots : nil
wasRemoved : false
font : nil
resize : Integer 1
alpha : Float 1.000000 00000000 3FF00000
decorator : nil
layout : nil
userCanClose : true
deleteOnClose : true
action : instance of Function (0x55f2d532aa68, size=2, set=2)
mouseDownAction : nil
mouseUpAction : nil
mouseEnterAction : nil
mouseLeaveAction : nil
mouseMoveAction : nil
mouseOverAction : nil
mouseWheelAction : nil
keyDownAction : nil
keyUpAction : nil
keyModifiersChangedAction : nil
keyTyped : nil
focusGainedAction : nil
focusLostAction : nil
dragLabel : nil
beginDragAction : nil
canReceiveDragHandler : nil
receiveDragHandler : nil
toFrontAction : nil
endFrontAction : nil
onClose : nil
onResize : nil
onMove : nil
step : Float 0.100000 9999999A 3FB99999
shift_scale : Float 100.000000 00000000 40590000
ctrl_scale : Float 10.000000 00000000 40240000
alt_scale : Float 0.100000 9999999A 3FB99999
scroll : true
scroll_step : Integer 1
align : Symbol 'center'
buttonsVisible : false
normalColor : instance of Color (0x55f2d5331aa8, size=4, set=2)
typingColor : instance of Color (0x55f2d5352008, size=4, set=2)
object : nil
setBoth : true
}
CALL STACK:
MethodError:reportError
arg this = <instance of PrimitiveFailedError>
Nil:handleError
arg this = nil
arg error = <instance of PrimitiveFailedError>
Thread:handleError
arg this = <instance of Thread>
arg error = <instance of PrimitiveFailedError>
Object:throw
arg this = <instance of PrimitiveFailedError>
Object:primitiveFailed
arg this = <instance of NumberBox>
NumberBox:value_
arg this = <instance of NumberBox>
arg value = 1
CueTriggerCP:setCurrent
arg this = <instance of CueTriggerCP>
arg cueNumber = 1
arg cueObject = <instance of Function>
CuePlayerGUI:setCurrent
arg this = <instance of CuePlayerGUI>
arg cuePlayer = <instance of CuePlayer>
var currentCue = 1
CuePlayerGUI:update
arg this = <instance of CuePlayerGUI>
arg theChanged = <instance of CuePlayer>
arg message = 'current'
< FunctionDef in Method Set:do >
arg item = <instance of CuePlayerGUI>
ArrayedCollection:do
arg this = [*4]
arg function = <instance of Function>
var i = 3
Set:do
arg this = <instance of IdentitySet>
arg function = <instance of Function>
var i = 0
Object:changed
arg this = <instance of CuePlayer>
arg what = 'current'
arg moreArgs = [*0]
Cues:next
arg this = <instance of CuePlayer>
OSCMessageDispatcher:value
arg this = <instance of OSCMessageDispatcher>
arg msg = [*2]
arg time = 687.314069174
arg addr = <instance of NetAddr>
arg recvPort = 57120
Main:recvOSCmessage
arg this = <instance of Main>
arg time = 687.314069174
arg replyAddr = <instance of NetAddr>
arg recvPort = 57120
arg msg = [*2]
^^ The preceding error dump is for ERROR: Primitive '_QObject_SetProperty' failed.
Failed.
RECEIVER: a NumberBox
(
~cuelist = CuePlayer.new();
~cuelist.add({
~startingTheShow = Routine {
"starting".postln;
}.play;
});
//touchOsc as cue trigger
OSCdef(\cue, {~cuelist.next}, "/1/cue");
// LaunchPad as cue trigger. Can run at the same time as OSCdef...
if(~hasLaunchPad){
// LPButton is my own implementation of a MidiFunc
LPButton.new(8, onFunc: {~cuelist.next});
};
~cuelist.gui(
monitorInChannels: s.options.numInputBusChannels,
monitorOutChannels: s.options.numOutputBusChannels,
options:(
shortcuts:true,
metronome: false,
)
);
)