Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8228640

Processing bug when midi input has been touch_2

    Details

    • CPU:
      x86
    • OS:
      os_x

      Description

      ADDITIONAL SYSTEM INFORMATION :
      IOS 10.13.6
      Processing 3.5.3
      Midi Bus library
      OSC P5

      A DESCRIPTION OF THE PROBLEM :
      I just made a report, but is no answer processing bug when midi input has been touch.)

      I'm not expert on this sector, but I'm working on my tesis, I need to solve this as quikly as posible:)
      I'm using processing 3.5.3, and when I run the sketch an error apears.
      Processing and IOS are in the last version,

      Not really familiar with this issues, but I’ve read that Processing uses his own version of Java. So I can’t change that. Literally I found this:

      It's never necessary to install Java to use Processing. Across all platforms, Processing uses its own copy of Java that's embedded inside the application. We don't yet support any of the Java 7 and Java 8 language features. Please help us fix this. Advanced users (loosely defined as “people who know that these features exist”) can always make use of Java 7 and 8 features from another IDE.
      People often reinstall Java when they have problems with Processing. Even though it may make you feel better, reinstalling won't help anything, because Java doesn't need to be installed in the first place.

      Here: https://github.com/processing/processing/wiki/Supported-Platforms

      So, how can I test this java version?

      And I add the sketch for your test!

      Thanks

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007fff41f63f7c, pid=2067, tid=0x000000000001f907
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_202-b08) (build 1.8.0_202-b08)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.202-b08 mixed mode bsd-amd64 compressed oops)
      # Problematic frame:
      # C [libGL.dylib+0x4f7c] glGenBuffers+0x12
      #
      # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # An error report file with more information is saved as:
      # /Users/ernestbioscarojas/hs_err_pid2067.log
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #
      Could not run the sketch (Target VM failed to initialize).
      For more information, read revisions.txt and Help → Troubleshooting.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Paste on processing , and play. With a midi device it crash whe is been touched

      ACTUAL -
      crash

      ---------- BEGIN SOURCE ----------
      import themidibus.*; //Import the library

      MidiBus myBus; // The MidiBus
      import codeanticode.syphon.*;

      SyphonServer server;

      void setup() {
        size(600, 600, P2D);
        background(0);
          server = new SyphonServer(this, "Processing Syphon");


        MidiBus.list();
        myBus = new MidiBus(this, 0, 1); /
      }

      void draw() {
          background(0);

        int channel = 0;
        int pitch = 64;
        int velocity = 127;

        int number = 0;
        int value = 90;
        
        myBus.sendNoteOn(channel, pitch, velocity); // Send a Midi noteOn
        delay(100);
        myBus.sendNoteOff(channel, pitch, velocity); // Send a Midi nodeOff


        myBus.sendControllerChange(channel, number, value); // Send a controllerChange
        delay(100);
          server.sendScreen();

      }

      void noteOn(int channel, int pitch, int velocity) {
        // Receive a noteOn
        println();
        println("Note On:");
        println("--------");
        println("Channel:"+channel);
        println("Pitch:"+pitch);
        println("Velocity:"+velocity);
      }

      void noteOff(int channel, int pitch, int velocity) {
        // Receive a noteOff
        println();
        println("Note Off:");
        println("--------");
        println("Channel:"+channel);
        println("Pitch:"+pitch);
        println("Velocity:"+velocity);
      }

      void controllerChange(int channel, int number, int value) {
        // Receive a controllerChange
        println();
        println("Controller Change:");
        println("--------");
        println("Channel:"+channel);
        println("Number:"+number);
        println("Value:"+value);
        
        
        if (number == 48){
              fill(204);
              float y = map(value, 0, 127, 0, height);
              ellipse(width/2, height/2, value*2, value*2);

        }
        
          if (number == 43){
              background(255, 204, 0);
            
        }
            if (number == 44){
              background(255, 204, 0);
            
        }
            if (number == 45){
              background(255, 204, 0);
            
        }
      }

      void delay(int time) {
        int current = millis();
        while (millis () < current+time) Thread.yield();
      }
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pardesha Pardeep Sharma
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: