CefApp.dispose() won't shut down JCEF

Having problems with building or using the JCEF Java binding? Ask your questions here.

CefApp.dispose() won't shut down JCEF

Postby stefanonafets » Mon Sep 12, 2016 10:47 am

Hello,

i am developing an application which requires an integrated JCEF.
My app is developed with java/javascript engine based on Eclipse called Servoy.
I have a problem, after calling CefApp.dispose() JCEF remains in state SHUTTING_DOWN, I also see that jcef_helper.exe remains in my process list as the servoy.exe, which is the process that starts the JVM.
If i kill servoy.exe (same as eclipse.exe) also jcef_helper.exe dies as consequence.

I did some tests, as closing browser and client manually before calling CefApp.dispose(), but didn't have any success.

I don't know where to start to analyze this behaviour, as jcef won't log any error at all, also if configured with verbose logging.
Any suggestions?

Thanks,
Stefano
stefanonafets
Newbie
 
Posts: 8
Joined: Fri Aug 12, 2016 12:07 pm

Re: CefApp.dispose() won't shut down JCEF

Postby valery » Thu Oct 13, 2016 10:14 am

Hi.
I got the same issue.
It seems shutdown is not called when browsers list is empty...
and browsers are not registered when they are created.
I fixed it by patching the methods dispose and createBrowser in CefClient.java

see attachment
valery
Newbie
 
Posts: 2
Joined: Thu Oct 13, 2016 9:57 am

Re: CefApp.dispose() won't shut down JCEF

Postby magreenblatt » Thu Oct 13, 2016 5:25 pm

Please add an issue in the JCEF issue tracker and submit a pull request with your fix.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: CefApp.dispose() won't shut down JCEF

Postby valery » Fri Oct 14, 2016 4:21 am

valery
Newbie
 
Posts: 2
Joined: Thu Oct 13, 2016 9:57 am

Re: CefApp.dispose() won't shut down JCEF

Postby stefanonafets » Mon Nov 28, 2016 12:46 pm

Hello valery,

I've tested your code and it works fine.
Please could you submit a PR as described in comments to the issue you have opened?
stefanonafets
Newbie
 
Posts: 8
Joined: Fri Aug 12, 2016 12:07 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 14 guests