Multiple DocumentWindows with GL contexts

opengl

#1

Hey guys -

I just updated to the latest and see an issue with multiple openGL contexts.

Will dig in more over the next week, but short version is that I have an application with multiple documentWindows each with their own openGLContext.

Previously this was fine, but after the update there is some sort of deadlock happening between various openGL threads swap buffers / etc.

Removing the attach/detach GL code from one of the docWindows solves the issue.

Anyway, like I said, not totally sure whats going on, but thought someone there might have an idea offhand.

Cheers!
Aaron


#2

Ok, I know you guys are working on this, and it looks like the same issue as here:

So I suspect that for some users it causes a crash, and for others just a slow-down.

Just pinging here to also point out that these warnings seem to have started recently as well:
Main Thread Checker: UI API called on a background thread:

With a stack trace that seems to indicate that just the typical gl rendering (with only one documentWindow in this case) is being called from the wrong thread. I am not calling it directly, but have set the continuousRepaint().

I assume that is a related issue.

Thanks for working on it, openGL is always rather painful, but I’m sure there will be a solution soon enough.