-
Notifications
You must be signed in to change notification settings - Fork 56
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
Lingering renderer processes #2
Comments
When you saw the issue with the cefmixer application - were you just using the stock aquarium url? I've tried to reproduce this here with no luck yet. Just wondering if there was a particular page you are navigating to? |
I am able to reproduce the issue with the default fishgl URL in cefmixer. It's very random though. The only way I've been able to reproduce it somewhat consistently is if I launch 6+ instances of the application simultaneously and close them all after a couple of seconds. But even then there's no guarantee that it happens. |
I still have not been able to reproduce this issue locally yet. I'm curious if you build the latest
If it still happens - do you have a DEBUG build of CEF that can be attached to the hung process? |
I'll give the new As I've mentioned we do experience this issue in our own application as well. We only just recently switched I haven't compiled my own build of your patched CEF, but instead made use of your binary distributions, so I'm not able to debug it unfortunately. You don't happen to have built your distribution with debug symbols by any chance? Otherwise I'll see about compiling CEF/Chromium if the new |
It will take me a little while, but I will also get the symbols together for the sample distribution. |
So I finally managed to get my own build going, with debug symbols and everything, and I managed to reproduce the issue in the latest Here's the call stack for the lingering render process (on the
Let me know if you need anything else. |
Can confirm that I get the same call stack in our own application as well. It's constantly trying the |
With DEBUG builds I have seen a few issues with shutdown and DCHECKs failing. I also added a I believe the code I added to CEF originally is problematic:
This code was intended to get Chromium to use the Offscreen FBO, but it seems to have negative consequences. I removed this since it really turned out to be unnecessary because we have another flag on the compositor telling it to use shared textures with the method Anyway, I did reproduce the hung process issue here and my call stack was the same as yours - I'm testing the above change now to see if the results are more stable. It did resolve the DCHECK startup failures with multiple instances |
I am unfortunately still able to reproduce the issue with your latest commit, both with the |
The only way I can seem to reproduce this here is by running a DEBUG build in the debugger and the terminating it prematurely with a Stop Debugging command. I have yet to reproduce this locally with a Release build. Do you have any tips for reproducing this with a Release build? I've been attempting to launch several instances and quickly closing them ... no luck yet. Even force killing the browser process with Task Manager does not seem to exhibit the lingering render process |
One thing that made it easier for me to reproduce was to do... // ...
while (msg.message != WM_QUIT)
{
static int counter = 0;
if (counter++ > 1000)
exit(0);
if (PeekMessage(&msg, nullptr, 0, 0, PM_REMOVE))
// ... ... in You can probably come up with better ways to do the same thing, but that worked well enough for me, and lets me reproduce the issue within at most 20-30 launches. I have had this appear without doing |
Alright, so I just downloaded the So I assume that means it can't be an issue with your branch then. I'm gonna go back and try a couple of more builds from their archive and see if I can find when it started happening. Apologies for not trying this earlier on. We jumped straight from |
For posterity's sake, it seems to have been introduced with Chromium 64. I don't have the issue in build I'll try and track down what caused it and post an issue in the appropriate forum. |
Just gave this build a try in our application and in your sample
cefmixer
application. In both cases I have excellent performance. Disabling vsync in Chromium definitely helped with responsiveness.I do have an issue that shows up in both applications though, which is that the
--type=renderer
processes are hanging around after the browser process has closed, and they all seem to be spinning on one thread (each taking up 25% on my 4-core CPU). It seems somewhat random when this happens.Any idea what might be causing this?
Might be worth mentioning that I have an AMD RX 580 graphics card.
The text was updated successfully, but these errors were encountered: