We are about to switch to a new forum software. Until then we have removed the registration on this forum.
When typing in examples from Chapter 16 in the Processing Handbook 2nd ed. I get the following error:
2018-03-31 10:46:14.941 java[26071:1074488] pid(26071)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
My Java is more than a little rusty. Why am I getting this error and how do I avoid it? Thanks.
Answers
Please post your code and provide details about what your code is doing.
Kf
Thank you for your reply. This code is straight out of Processing A Programming Handbook, 2nd ed, page 201.
size(100, 100, P3D);
background(0);
lights();
translate(0, height/2, -height/4);
sphere(50);
translate(width, 0, -height/2);
sphere(50);
It runs, but produces this error:
2018-03-31 14:42:04.609 java[29837:1300138] pid(29837)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
In fact, every code example I've typed in using P3D produces the same error.
you are on Win 10 using processing 3.3?
I'm on a Mac (Mac OS 10.13.4 - high Sierra) using Processing 3.3.7.
So you have a sketch window showing the sphere with the light effect?
What happens if you wrap the code above in a setup function like this:
Kf
I get the same error.
Run an example first using a default renderer (aka no P3D) to see if the problem persist. Since the code above requires P3D, you will need to use another example. If the problem is associated with P3D only, then you should consider opening a ticket in github: https://github.com/processing/processing/issues
Kf
Thank you very much for your replies. It does only occur when using P3D and I will open a ticket.
Reference to issue tracker: