Open magreenblatt opened 1 year ago
What Java and CEF versions? How do the JCEF sample apps behave? Have you tried running without off-screen rendering?
I think it is related to this issue This error may occurred with the code blew
private fun getWindowHandleForMac(comp: Component?): Long {
var comp = comp
val result = LongArray(1)
while (comp != null) {
if (comp.isLightweight) {
comp = comp.parent
continue
}
val peer = AWTAccessor.getComponentAccessor().getPeer<ComponentPeer>(comp)
if (peer is LWComponentPeer<*, *>) {
val pWindow = peer.platformWindow
if (pWindow is CPlatformWindow) {
pWindow.execute { l -> result[0] = l }
break
}
}
comp = comp.parent
}
return result[0]
}
Original report by Joe Lauer (Bitbucket: jlauer, GitHub: jlauer).
On MacOS 13, jcef is unable to create a window handle for offscreen rendering, it asserts with a windowhandle value of zero. Right above that exception, is a warning printed by MacOS, which may be the culprit.
This appears to have also been an issue discovered in the electron project: https://github.com/electron/electron/issues/33685
After that log line, the browser component is never created, and this exception occurs: