jcefmaven icon indicating copy to clipboard operation
jcefmaven copied to clipboard

[BUG] icudtl.dat not found in bundle in Compose Desktop

Open alexstyl opened this issue 1 year ago • 0 comments

Describe the bug I am trying to use CEF in my Compose Desktop app. I follow the examples on the read me. The download finishes without an issue and then the app crashes with icudtl.dat not found in bundle.

To Reproduce Use the following code and run the app:

fun main() = application(exitProcessOnExit = true) {
    
    val builder = CefAppBuilder();

    builder.setInstallDir(File("jcef-bundle")); //Default
    builder.setProgressHandler(ConsoleProgressHandler()); //Default
    builder.getCefSettings().windowless_rendering_enabled = true; //Default - select OSR mode
    val app = builder.build();

Expected behavior Download the required files, the app to run without crashing

Stack trace

> Task :run FAILED
Sept 20, 2023 4:56:46 PM me.friwi.jcefmaven.impl.progress.ConsoleProgressHandler handleProgress
INFO: LOCATING |> In progress...
Sept 20, 2023 4:56:46 PM me.friwi.jcefmaven.impl.progress.ConsoleProgressHandler handleProgress
INFO: INITIALIZING |> In progress...
Sept 20, 2023 4:56:46 PM me.friwi.jcefmaven.impl.progress.ConsoleProgressHandler handleProgress
INFO: INITIALIZED |> In progress...
initialize on Thread[AWT-EventQueue-0,6,main] with library path /Users/alexstyl/projects/MyApp/jcef-bundle
[0920/165646.613882:ERROR:icu_util.cc(178)] icudtl.dat not found in bundle
[0920/165646.613920:ERROR:icu_util.cc(240)] Invalid file descriptor to ICU data received.

Execution failed for task ':run'.
> Process 'command '/Users/alexstyl/.sdkman/candidates/java/18-open/bin/java'' finished with non-zero exit value 133

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

Environment (please complete the following information):

  • OS:macos
  • Architecture: arm64
  • Version me.friwi:jcefmaven:110.0.25 me.friwi:jcefmaven:110.0.25.1

All files seem to be downloded. I can see the icudtl.dat file in /jcef-bundle/Chromium Embedded Framework.framework/Resources/icudtl.dat Screenshot 2023-09-20 at 16 58 22

alexstyl avatar Sep 20 '23 08:09 alexstyl