GLES3 – GL_INVALID_OPERATION: Operation illegal in current state (Unity Android native)

I use Unity(editor 2020.1.8f1). My application use android native .so lib that use GLES3. In order to use it first of all I have done these steps :

first: go to Project Settings >>> Player >>> Other Settings.  second: find "Auto Graphic API" and uncheck it.  third: Now you can see a new panel just below the "Auto Graphic API". It's a list of "Graphics APIs". Remove all graphics APIs and just add "OpenGLES3". 

Then in android CMakeList.txt file I marked that I use GLES3

... target_link_libraries(         libcocodec         GLESv3               <----------------  THIS LINE         decoder_engine_lib         $  {log-lib} ) ... 

And there is a usage :

void RenderAPI_OpenGLCoreES::EndModifyTexture(         void* textureHandle,         int textureWidth,         int textureHeight,         int rowPitch,         void* dataPtr,         bool destroy) {     GLuint gltex = (GLuint)(size_t)(textureHandle);     // Update texture data, and free the memory buffer     glBindTexture(GL_TEXTURE_2D, gltex);          GLenum format = GL_RG;      glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, textureWidth, textureHeight, format, GL_UNSIGNED_BYTE, dataPtr);     if (destroy)         delete[](unsigned char*)dataPtr; } 

and error message I get is –

2020-11-08 10:51:46.966 1512-1930/ E/Unity: OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_OPERATION: Operation illegal in current state      (Filename: ./Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 358) 

I assume that something wrong with usage of GLenum format = GL_RG;, because (just for test) – if I use GLenum format = GL_ALPHA; I don’t get any errors (as well as expected result). Looks like gles3 doesn’t know what is GL_RG format.

What am I doing wrong?

3 websites in a package – no illegal content only links are on our website

What are you selling?
3 domains and websites with them: – 35700uniques per month – 48000pviews – 6800uniques per month – 11000pviews – 8820uniques per month – 18400pviews

Why are you selling this site?
We are selling several websites which we don't wanna maintain anymore.

How is it monetized?
Ads on the site.

Does this site come with any social media accounts?

How much time does this site take to…

3 websites in a package – no illegal content only links are on our website

Changing to docker and receiving Illegal mix of collations (latin1_danish_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation ‘=’ error

I am atempting to change our application from a server to a docker on a virtual machine. We are using mysql for data, and tomcat (spring) for the gui. It seems to work well in the docker, execpt for when a stored procedure is called. It gives the error message:

Request processing failed; nested exception is java.lang.RuntimeException: java.sql.SQLException: Illegal mix of collations (latin1_danish_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '=' 

This error message does not occure when the application is run on the server (not the docker version), so I am asuming there is some configuration that I have not been able to transfere from the original application to the docker based application. Since it works with the same data on the server, I don’t think it should be nessesary to change the tables or the procedure.

The docker creates a mysql:5 container and a tomcat:8 contaner and they comunicate thru a docker network. The GUI connects with the database with this line:


I have only changed ‘localhost’ to ‘db’, as tomcat and mysql are on sepperate containers on the docker version. I have tried a few variations of characterEncoding, like latin2, but with no luck.

I have been loking at the config files in /etc/mysql/ but I haven’t found anything that seems relevant.

Does anyone know what settings I have been missing, or what more I can do to futher narriate the problem. I am new in this line of work, and is learning myself bouth docker and mysql while working on this transfer.

memory allocation & illegal access

In a practice question, we had to give examples of three different types of wrong memory access in C or C++:

Which I identified as the following:

• Reading/Writing without allocation

• Read/Writing after de-allocation

• Reading/Writing without previous write

Since I haven’t done much work in these languages before, I couldn’t come up with appropriate examples. For example, I understand that we deallocate in C like this:

int main(void)  {      int *ptr = (int*)malloc(10);       return 0;  }  

but how could I modify it to show an example of the second type?

Similarly, for the first type, I think this should suffice, but does it?

void foo() {    int i = 5;    MyClass obj;  ... } 

[ Photography ] Open Question : Is it illegal to use a photo of someone on a business card without their permission?

I’m a photographer and I’m in the process of making business cards for myself. On one side I have my personal info, and on the other I was going to use a photo that I took of somebody during one of my past gigs that showcases my style. However, a graphic designer friend of mine said that I can’t use a photo of someone on my card without their permission. Is this true?

Possibility of illegal stuffs using Web Assembly code or any website program

I recently discovered a website – where it is advertised that they rent our computing power for performing scientific calculations but actually I suspect that they do some bitcoin mining or the possibility of illegal stuff (like DDoS, malware, botnets, etc…), because I could not find anywhere in google/research news/articles.

I tested this service and actually I did receive payment. Of course in the virtue of electricity/CPU/internet/bandwidth, I found that its a loss. However, I wanted to know the legality of the tasks performed in the background by this service.

I found from the forum that a .wasm code gets downloaded when we run the tool – and this file gets downloaded to machine. (

But I am not pretty sure how to decode it and details in that code.

So, to know if there is any illegality associated when the website performs calculations (or runs the code), I used multiple tools – netmon, procmon (process monitor), Netlimiter, Kaspersky free scanner online for botnets,etc.. but I could not find any trace.

Any guidance to track or trace or check the legality of this file (main.wasm) would be helpful.

Error “illegal start of expression” en NetBeans

estoy programando una aplicacion y me tira el error “illegal start of expression”, por lo que deduzco que debe ser un error de escritura pero no lo encuentro. Aca abajo dejo el segmento del codigo que me causa este error:

`public static void main(string args[]){     java.awt.EventQueue.invokeLater(() -> {         new ventanauno().setVisible(true);     }); 

Why don’t some websites get shut down for illegal content? [on hold]

There is a cracking-related clearnet forums out there (.com domain) with thousands of active users, many of who are permitted to sell verified bank accounts (that come with information such as SSNs), verified PayPals, fake IDs and passports, cracking tools, stolen accounts, and so on.

Even though the admin claims to ‘ban’ discussion of such content, most of the forum staff lets users get away with it anyway for the sake of more forum activity.

Are they bound to get shut down and in legal trouble eventually (particularly since the admin’s identity is not fully private), or can they go on for many years without issues? The website has already been breached this year and its database and source code leaked.