Skip to content

OpenGL error 1280 at bot beginDraw(): invalid enum [Cardboard] #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bizkitj opened this issue Jan 25, 2017 · 8 comments
Open

OpenGL error 1280 at bot beginDraw(): invalid enum [Cardboard] #281

bizkitj opened this issue Jan 25, 2017 · 8 comments
Assignees

Comments

@bizkitj
Copy link

bizkitj commented Jan 25, 2017

Origional report.
https://forum.processing.org/two/discussion/20334/opengl-error-1280-at-bot-begindraw-invalid-enum#latest

@bizkitj
Copy link
Author

bizkitj commented Jan 30, 2017

Update:
I was able to narrow the error down to #53 .

I have tested this simple code:

PImage img;
void setup () {
  //size(800, 800, P3D);
  fullScreen(P3D);
  img = loadImage("D:/Processing_app/image_exercises/exercies01/data/Image00001.jpg"); // replace the image 
}

void draw() {
  background(25);
  lights();
  translate(width/2, height/2);
  rotateX(map(mouseX, -width/2, width/2, 0, TWO_PI)); 
  rotateY(map(mouseY, -height/2, height/2, 0, TWO_PI));
  imageMode(CENTER);
  image(img,0,0);
}

@codeanticode
Copy link
Contributor

codeanticode commented Feb 1, 2017

Hi, thanks for your report.

However, I run both code samples (the one above, and the one posted on the forum) and didn't observe any errors. They appear to work as expected.

What version of the mode are you using? Also, what device and Android version?

@bizkitj
Copy link
Author

bizkitj commented Feb 2, 2017

Hello.
I am running Android Mode3.0.2. Installed via Contribution Manager;
Processing 3.2.3 ;
Android SDK API 7.1.1 (25);
Win10 64;

My android device,HUAWEI GRA-CL100, is on Android 6.0
Update: Just tested on another Android device, Honor SCL-AL100, Android is 5.1.1, same issue.

@codeanticode
Copy link
Contributor

Hi, tried again both sketches with Processing 3.2.4, Android Mode 3.0.2 and Android SDKs API 6.0 (23) and 7.1.1 (25), on a Moto E with Android 5.1.1 and a N5X with Android 7.1.1. I haven't seen any error.

The only significant different is that I'm using Mac OSX 10.10.5, but I don't think that would affect the execution of the sketches on the devices. I will try from a Windows 10 machine later.

Do you get similar GL errors with other sketches?

@xuv
Copy link

xuv commented Feb 10, 2017

Just to complete this report.
I have the same error with a fresh install of Processing 3.2.4, Android Mode 0257, Android SDK API 6.0 (23) and the Cardboard Cube example running on Nexus 5 X with Android 7.1.1

Running from a MacOS 10.12.3

It's not a blocking error. The sketch is running on the device.
Starting an empty sketch does not produce the error.

@bizkitj
Copy link
Author

bizkitj commented Feb 13, 2017

Update:
Hi codeanticode, I put the image into sketch 'data' folder, now it works.

img = loadImage("D:/Processing_app/image_exercises/exercies01/data/Image00001.jpg"); // replace the image
However, the annoy message "OpenGL error 1280 at bot beginDraw(): invalid enum" still on processing console.

@codeanticode
Copy link
Contributor

Hi, I can reproduce the OpenGL error when running the sketch as a cardboard app. I will look into it. Thanks!

@codeanticode codeanticode changed the title OpenGL error 1280 at bot beginDraw(): invalid enum OpenGL error 1280 at bot beginDraw(): invalid enum [Cardboard] Feb 13, 2017
@codeanticode codeanticode self-assigned this Feb 13, 2017
@clankill3r
Copy link

I also have the error, in case you need something tested some day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants