asked Mar 12 '16 at 00:53 by dmilith (88)

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.



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", "??????");


   // 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... ;-)


  ? ./Bitwig\
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/
Connection broken with client: null
    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)
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(
    at org.mozilla.javascript.MemberBox.invoke(
    at org.mozilla.javascript.optimizer.OptRuntime.call2(
    at org.mozilla.javascript.gen.c311._c1(GenericOMNIdmilith.control.js:15)
    at org.mozilla.javascript.ContextFactory.doTopCall(
    at org.mozilla.javascript.ScriptRuntime.doTopCall(
    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 zh1.lsa(SourceFile:392)
Caused by: java.lang.IndexOutOfBoundsException: Index: 10, Size: 1
    at java.util.ArrayList.rangeCheck(
    at java.util.ArrayList.get(
    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(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.mozilla.javascript.MemberBox.invoke(
    ... 15 more

zsh: exit 1     ./Bitwig\
| | |

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


answered Aug 07 '17 at 11:57 by dmilith (88)

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]( "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



Asked: Mar 12 '16 at 00:53

Seen: 1,798 times

Last updated: Aug 07 '17 at 11:57