asked Mar 12 '16 at 00:53 by Dettlaff (21)

System details:

OSX 10.11.3 Bitwig 1.3.x (latest stable) Audio: 96kHz Komplete Audio 6 MIDI device: Kat KT3 MIDI Drum set (crashes Bitwig audio engine - works on DAWs made by any BW competition)

I start Bitwig studio in terminal, to catch exceptions. Below you'll find two exceptions. First happens when I just connect online MIDI device to Bitwig (USB). Bitwig sees KT3 controller in UI. Then I try any controller script I can try.. and I'm unable to record anything from device in Bitwig instrument track.

and second part which totally crashes whole engine and UI is caused by my hacking control script. This script looks pretty harmless. But any configuration try using this script and KT3 ends with some instant crash like this.


script:

loadAPI(1);

host.defineController("VerKnowSys", "Kat KT3", "1.0", "d60c7451-b5bb-11e4-a5e3-0800200c9a67", "Daniel (dmilith) Dettlaff");
host.defineMidiPorts(1, 1);

var LOWEST_CC = 1;
var HIGHEST_CC = 119;

function init() {
   Generic = host.getMidiInPort(0).createNoteInput("Keys", "??????");
   Generic.setShouldConsumeEvents(false);

   host.getMidiOutPort(0).setShouldSendMidiBeatClock(true);
   host.getMidiInPort(0).setMidiCallback(onMidi);

   // Make CCs 2-119 freely mappable
   userControls = host.createUserControlsSection(HIGHEST_CC - LOWEST_CC + 1);

   for(var i=LOWEST_CC; i<=HIGHEST_CC; i++) {
      userControls.getControl(i - LOWEST_CC).setLabel("CC" + i);
   }
}

function onMidi(status, data1, data2) {
   if (isChannelController(status)) {
      if (data1 >= LOWEST_CC && data1 <= HIGHEST_CC) {
         var index = data1 - LOWEST_CC;
         userControls.getControl(index).set(data2, 128);
      }
   }
}

function exit() {
   // Nothing to do here... ;-)
}

stacktrace:

  ? ./Bitwig\ Studio.app/Contents/MacOS/BitwigStudio
2016-03-12 00:20:57.418 BitwigStudio[38605:9232324] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/p8/jzfshhn17znbz877lpzcs3gh0000gn/T/com.bitwig.studio.savedState
Connection broken with client: null
java.io.EOFException
    at com.bitwig.ramona.serial.dqN.AHL(SourceFile:260)
    at com.bitwig.ramona.serial.dqN.XkB(SourceFile:410)
    at bEL.pap(SourceFile:764)
    at bEL.lsa(SourceFile:573)
    at bEL.lsa(SourceFile:552)
    at com.bitwig.ramona.protocol.tFC.lsa(SourceFile:86)
    at bFG.OQQ(SourceFile:382)
    at bFH.run(SourceFile:270)
Could not de-obfuscate stack trace: /Users/dmilith/.BitwigStudio/b4bda29237448a40dc5ae1aeb3d2826975bf0371-MacOSX-release.txt not found.
Could not de-obfuscate stack trace: /Users/dmilith/.BitwigStudio/b4bda29237448a40dc5ae1aeb3d2826975bf0371-MacOSX-release.txt not found.
org.mozilla.javascript.WrappedException: Wrapped java.lang.IndexOutOfBoundsException: Index: 10, Size: 1 (GenericOMNIdmilith.control.js#15)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1773)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:183)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
    at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
    at org.mozilla.javascript.gen.c311._c1(GenericOMNIdmilith.control.js:15)
    at org.mozilla.javascript.gen.c311.call(GenericOMNIdmilith.control.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
    at org.mozilla.javascript.gen.c311.call(GenericOMNIdmilith.control.js)
    at com.bitwig.base.control_surface.ControlSurfaceScript.callVoidFunction(SourceFile:260)
    at com.bitwig.base.control_surface.ControlSurfaceScript.init(SourceFile:241)
    at Wyk.ijl(SourceFile:104)
    at Wyk.lsa(SourceFile:66)
    at gMv.run(SourceFile:433)
    at zh1.lsa(SourceFile:392)
    at hrV.run(SourceFile:69)
    at zh1.run(SourceFile:208)
Caused by: java.lang.IndexOutOfBoundsException: Index: 10, Size: 1
    at java.util.ArrayList.rangeCheck(ArrayList.java:653)
    at java.util.ArrayList.get(ArrayList.java:429)
    at com.bitwig.flt.control_surface.intention.sections.DirectNoteInput.getMidiReceiver(SourceFile:111)
    at com.bitwig.flt.control_surface.intention.sections.DirectNoteInput.<init>(SourceFile:31)
    at Wyk.lsa(SourceFile:460)
    at com.bitwig.flt.control_surface.intention.sections.MidiInPort.createNoteInput(SourceFile:47)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
    ... 15 more

zsh: exit 1     ./Bitwig\ Studio.app/Contents/MacOS/BitwigStudio
| | |

Solvable only by upgrading to Bitwig 2. There's no way of getting Bitwig 1 to work with devices like Kat KT3

link

answered Aug 07 at 11:57 by Dettlaff (21)

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×179
×35
×25
×19

Asked: Mar 12 '16 at 00:53

Seen: 730 times

Last updated: Aug 07 at 11:57