Linux Build Not running
Problem when running in the linux platform
Task :composeApp:run [DefaultDispatcher-worker-1] INFO commons.Log - Initializing KCEF on /home/mathan/.local/share/TrueCast/ Could not load 'jcef' library Could not load 'cef' library JCEF(53:56:224): initialized stderr logger, severity=LOGSEVERITY_DEFAULT JCEF_I(53:56:225): CefApp: set state NEW
LaunchedEffect(Unit) {
withContext(Dispatchers.IO) {
KCEF.init(builder = {
Log.i("main", "Initializing KCEF on ${platform.directory}")
installDir(File(platform.directory + "kcef-bundle"))
progress {
onDownloading {
initialLaunchPreventScreen = false
downloading = String.format(Locale.ENGLISH, "%.2f", it)
}
onInitialized {
initialLaunchPreventScreen = false
initialized = true
}
}
release("jbr-release-17.0.10b1087.23")
settings {
cachePath = File(platform.directory + "cache").absolutePath
}
}, onError = {
it?.printStackTrace()
initialLaunchPreventScreen = false
initialized = true
}, onRestartRequired = {
restartRequired = true
})
}
}
@DatL4g Could you have a look at this issue?
Is there any update regarding this issue? I'm experiencing this issue on Raspberry Pi and can't find the reason.
@rudolfkopriva @mathankumar-dotworld
https://github.com/KevinnZou/compose-webview-multiplatform/pull/240 needs to be merged then you can use/bundle your app with the JetBrains JCEF JDK and load these binaries yourself. So no need of downloading anymore.
Probably your install or extract paths are off but this issue does not provide enough information so I can't do anything about it
@DatL4g I debugged the KCFE and found out the libjcef.so was failing with issue "cannot allocate memory in static TLS block". This is discussed in KCFE and JetBrains JCEF repositories.
It turned out the problem was in libc6, because I added some unofficial repository and it installed libc6 2.40-3. This version is causing the issue on Raspberry. I reverted it back to the 2.36-9+rpt2+deb12u8 and it started working.