Java Application with JCEF crashes without exception message

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

Java Application with JCEF crashes without exception message

Postby JCEFBeginner » Tue Feb 16, 2021 11:53 am

Hello,

I have a problem with my Java application that uses JCEF. I imported JCEF as a maven decency (https://github.com/jcefmaven/jcefmaven).
To demonstrate it, I created a simple scratch application:

Code: Select all
import org.apache.commons.lang3.SystemUtils;
import org.cef.CefApp;
import org.cef.CefClient;
import org.cef.JCefLoader;
import org.cef.browser.CefBrowser;

import java.io.IOException;
import java.util.logging.Logger;

class Scratch {
    public static void main(String[] args) {
        try {
            Logger log = Logger.getLogger(Scratch.class.getName());
            log.info("Initialize CefApp");
            CefApp cefApp = JCefLoader.installAndLoadCef();
            log.info("Create CefClient");
            CefClient client = cefApp.createClient();
            log.info("Create CefBrowser");
            CefBrowser browser = client.createBrowser(
                    "file:///**path to a html file**",
                    SystemUtils.IS_OS_LINUX,
                    false);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}


Sometimes, when I run this (e.g. after a restart or after a longer time in that I was not starting the application), it just crashes:

Code: Select all
Feb 16, 2021 5:42:22 PM Scratch main
INFORMATION: Initialize CefApp
Feb 16, 2021 5:42:23 PM Scratch main
INFORMATION: Create CefClient
initialize on Thread[AWT-EventQueue-1,6,main] with library path /**path to project**/cef_bundle/84.3.8+gc8a556f+chromium-84.0.4147.105-linux64

Process finished with exit code 131 (interrupted by signal 3: SIGQUIT)


I think the problem comes not from my code. I hope someone can help me! :|

JCEFBeginner
JCEFBeginner
Techie
 
Posts: 18
Joined: Fri Feb 12, 2021 12:17 pm

Re: Java Application with JCEF crashes without exception mes

Postby JCEFBeginner » Sat Feb 27, 2021 10:22 am

Hello everyone,

I don't know why, but the problem does not persist anymore.

JCEFBeginner
JCEFBeginner
Techie
 
Posts: 18
Joined: Fri Feb 12, 2021 12:17 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 3 guests