Skip to content

Creating multiple browsers sometimes creates too many Cef Browsers #421

@magreenblatt

Description

@magreenblatt

Original report by Philip Hanson (Bitbucket: Philip Hanson).


Linux OS

JCEF Version = 100.0.14.294
CEF Version = 100.0.14
Chromium Version = 100.0.4896.75

Here is a bit of psudo code to explain

Initialize the CefApp

loop 5 {

Create a cef client using cefApp.clientCreate

Create a browser cefClient.create browser

add browser to JFrame

show the Jframe

}

The expected behaviour:

5 Jframes with browsers

CEF Debug window shows 5

Cef lifespanhandler afterCreated is called 5 times

Actual behaviour:

You always get the 5 JFrames

CEF debug window will show more than 5

Cef lifespanhandler afterCreated is calle more than 5 times

Notes:

I have seen over 100 processes created when doing this.

I have tried to wait until each browser has been loaded before creating another but I can still get it to break.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions