yueying0083 / javachromiumembedded

Automatically exported from code.google.com/p/javachromiumembedded
0 stars 0 forks source link

Possible application crash if you run createBrowser() and browser.close() too fast one after another in windowed mode. #115

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get an instance of CefBrowser in non OSR-mode (windowed mode).
2. Add it to your UI
3. Remove it from the UI and destroy the Browser UI by calling "close()"
4. Repeat steps 1. to 3. quickly and several times one after another

What is the expected output? What do you see instead?

The browser UI should be created and destroyed several times. Instead it could 
happen that the application crashes. This is because the creation of the native 
browser counterpart isn't finished before it is destroyed again.

What version of the product are you using? On what operating system?

Win 7.x64
JCEF Version: Current trunk (r101)
CEF Version:  3.1916.1781
Java 1.7.0u65

Please provide any additional information below.

Attached you'll find a small patch file which will fixt that issue.

Original issue reported on code.google.com by k...@censhare.de on 15 Sep 2014 at 5:26

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, added in revision 102.

Original comment by magreenb...@gmail.com on 18 Sep 2014 at 3:04