compose-webview-multiplatform icon indicating copy to clipboard operation
compose-webview-multiplatform copied to clipboard

Linux Build Not running

Open mathankumar-dotworld opened this issue 1 year ago • 4 comments

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
                })
            }
        }

mathankumar-dotworld avatar May 29 '24 12:05 mathankumar-dotworld

@DatL4g Could you have a look at this issue?

KevinnZou avatar Jun 02 '24 01:06 KevinnZou

Is there any update regarding this issue? I'm experiencing this issue on Raspberry Pi and can't find the reason.

rudolfkopriva avatar Oct 22 '24 19:10 rudolfkopriva

@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 avatar Oct 22 '24 20:10 DatL4g

@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.

rudolfkopriva avatar Oct 27 '24 12:10 rudolfkopriva