The chrome profile directory is already / in use by another BrowserContext instance or process

I used the assessed jxbrowser which version is 6.14, I am writing a demo to use it. but i have a problem with it.

Use the demo app to start an app that can display a web interface, keep that app open, but then run the demo app again, the system will exit with an exception: chrome profile directory is already / in use by another instance or BrowserContext process

jxbrwowser can't run two clients on one pc? if can how to resolve it?

+3


source to share


1 answer


We strongly recommend that you do not use multiple instances BrowserContext

with the same profile. The Chromium engine was not designed for this use and does not support it. Even if you don't see any problems right now, problems will appear later in end-user environments. For example, on macOS, you will receive a Chromium error dialog box every time you launch your instance of an application designed this way.



Since this is a critical requirement in the Chromium engine, I don't think we'll be making it customizable in future releases. This is how the Chromium engine works. This is a recommendation that we must follow when working with the Chromium engine.

0


source







All Articles