Suwayomi-Server-docker: CEF/WebView initialization fails on :preview tag for ARM64 with GLException
I’m not entirely sure if the WebView functionality is expected to be stable, but I saw some recent updates related to it and decided to test the :preview image. Unfortunately, I’ve run into the following issue.
Here are the details:
Environment:
- Architecture: ARM64 Server
- Platform: Docker Environment
Image:
ghcr.io/suwayomi/tachidesk:preview
Problem Description:
The application starts up correctly, for the ColaManga source feature that requires WebView , fails. The process eventually results in a Timed out decrypting image links error, which appears to be caused by an underlying GLException during the WebView (JCEF) initialization.
Troubleshooting Steps Taken: I have performed extensive diagnostics and can confirm the following:
- Dependencies Verified: All standard required dependencies such as
libgtk,libasound,xvfb,libgl1, andlibglx-mesa0are already present in the:previewimage. - Xvfb Script Confirmed: I have verified that the container’s
startup_script.shcorrectly includes logic to startXvfbif the command is available. - Sandbox Disabled: I attempted to disable the CEF sandbox by overriding the command with
java -Djcef.args="--no-sandbox", but the issue persists.
It seems to be a fundamental incompatibility between the CEF build included in the :preview image and the underlying OS environment (Ubuntu 24.04 on ARM64).
Docker logs are as follows:
08:22:41.357 [main] INFO io.javalin.Javalin -- Javalin started in 377ms \o/
08:22:41.390 [main] INFO io.javalin.Javalin -- Static file handler added: StaticFileConfig(hostedPath=/, directory=/home/suwayomi/.local/share/Tachidesk/webUI, location=EXTERNAL, precompress=false, aliasCheck=null, headers={Cache-Control=max-age=0}, mimeTypes={}). File system location: '/home/suwayomi/.local/share/Tachidesk/webUI'
08:22:41.398 [main] INFO io.javalin.Javalin -- Listening on http://0.0.0.0:4567/
08:22:41.449 [main] INFO io.javalin.Javalin -- You are running Javalin 6.6.0 (released April 13, 2025).
08:22:41.663 [DefaultDispatcher-worker-2] INFO KCEF -- KCEF download progress: 43%
08:22:41.678 [DefaultDispatcher-worker-1] INFO KCEF -- KCEF download progress: 44%
08:22:41.874 [DefaultDispatcher-worker-8] INFO KCEF -- KCEF download progress: 45%
08:22:41.895 [DefaultDispatcher-worker-5] INFO KCEF -- KCEF download progress: 46%
08:22:42.092 [DefaultDispatcher-worker-3] INFO KCEF -- KCEF download progress: 47%
08:22:42.285 [DefaultDispatcher-worker-2] INFO KCEF -- KCEF download progress: 48%
08:22:42.335 [DefaultDispatcher-worker-4] INFO KCEF -- KCEF download progress: 49%
08:22:42.508 [DefaultDispatcher-worker-2] INFO KCEF -- KCEF download progress: 50%
08:22:42.515 [DefaultDispatcher-worker-8] INFO KCEF -- KCEF download progress: 51%
08:22:42.716 [DefaultDispatcher-worker-6] INFO KCEF -- KCEF download progress: 52%
08:22:42.736 [DefaultDispatcher-worker-7] INFO KCEF -- KCEF download progress: 53%
08:22:42.930 [DefaultDispatcher-worker-5] INFO KCEF -- KCEF download progress: 54%
08:22:42.934 [DefaultDispatcher-worker-5] INFO KCEF -- KCEF download progress: 55%
08:22:43.148 [DefaultDispatcher-worker-1] INFO KCEF -- KCEF download progress: 56%
08:22:43.323 [DefaultDispatcher-worker-8] INFO KCEF -- KCEF download progress: 57%
08:22:43.336 [DefaultDispatcher-worker-6] INFO KCEF -- KCEF download progress: 58%
08:22:43.532 [DefaultDispatcher-worker-8] INFO KCEF -- KCEF download progress: 59%
08:22:43.543 [DefaultDispatcher-worker-5] INFO KCEF -- KCEF download progress: 60%
08:22:43.745 [DefaultDispatcher-worker-4] INFO KCEF -- KCEF download progress: 61%
08:22:43.754 [DefaultDispatcher-worker-8] INFO KCEF -- KCEF download progress: 62%
08:22:43.958 [DefaultDispatcher-worker-5] INFO KCEF -- KCEF download progress: 63%
08:22:44.153 [DefaultDispatcher-worker-7] INFO KCEF -- KCEF download progress: 64%
08:22:44.161 [DefaultDispatcher-worker-2] INFO KCEF -- KCEF download progress: 65%
08:22:44.366 [DefaultDispatcher-worker-6] INFO KCEF -- KCEF download progress: 66%
08:22:44.374 [DefaultDispatcher-worker-3] INFO KCEF -- KCEF download progress: 67%
08:22:44.571 [DefaultDispatcher-worker-2] INFO KCEF -- KCEF download progress: 68%
08:22:44.762 [DefaultDispatcher-worker-2] INFO KCEF -- KCEF download progress: 69%
08:22:44.769 [DefaultDispatcher-worker-2] INFO KCEF -- KCEF download progress: 70%
08:22:44.972 [DefaultDispatcher-worker-3] INFO KCEF -- KCEF download progress: 71%
08:22:44.991 [DefaultDispatcher-worker-4] INFO KCEF -- KCEF download progress: 72%
08:22:45.185 [DefaultDispatcher-worker-8] INFO KCEF -- KCEF download progress: 73%
08:22:45.192 [DefaultDispatcher-worker-7] INFO KCEF -- KCEF download progress: 74%
08:22:45.396 [DefaultDispatcher-worker-5] INFO KCEF -- KCEF download progress: 75%
08:22:45.588 [DefaultDispatcher-worker-4] INFO KCEF -- KCEF download progress: 76%
08:22:45.608 [DefaultDispatcher-worker-5] INFO KCEF -- KCEF download progress: 77%
08:22:45.804 [DefaultDispatcher-worker-4] INFO KCEF -- KCEF download progress: 78%
08:22:45.812 [DefaultDispatcher-worker-1] INFO KCEF -- KCEF download progress: 79%
08:22:46.016 [DefaultDispatcher-worker-3] INFO KCEF -- KCEF download progress: 80%
08:22:46.020 [DefaultDispatcher-worker-3] INFO KCEF -- KCEF download progress: 81%
08:22:46.215 [DefaultDispatcher-worker-8] INFO KCEF -- KCEF download progress: 82%
08:22:46.409 [DefaultDispatcher-worker-8] INFO KCEF -- KCEF download progress: 83%
08:22:46.425 [DefaultDispatcher-worker-8] INFO KCEF -- KCEF download progress: 84%
08:22:46.621 [DefaultDispatcher-worker-8] INFO KCEF -- KCEF download progress: 85%
08:22:46.640 [DefaultDispatcher-worker-7] INFO KCEF -- KCEF download progress: 86%
08:22:46.826 [DefaultDispatcher-worker-7] INFO KCEF -- KCEF download progress: 87%
08:22:46.835 [DefaultDispatcher-worker-7] INFO KCEF -- KCEF download progress: 88%
08:22:47.044 [DefaultDispatcher-worker-7] INFO KCEF -- KCEF download progress: 89%
08:22:47.055 [DefaultDispatcher-worker-8] INFO KCEF -- KCEF download progress: 90%
08:22:47.247 [DefaultDispatcher-worker-4] INFO KCEF -- KCEF download progress: 91%
08:22:47.445 [DefaultDispatcher-worker-3] INFO KCEF -- KCEF download progress: 92%
08:22:47.454 [DefaultDispatcher-worker-6] INFO KCEF -- KCEF download progress: 93%
08:22:47.651 [DefaultDispatcher-worker-8] INFO KCEF -- KCEF download progress: 94%
08:22:47.667 [DefaultDispatcher-worker-1] INFO KCEF -- KCEF download progress: 95%
08:22:47.858 [DefaultDispatcher-worker-8] INFO KCEF -- KCEF download progress: 96%
08:22:47.874 [DefaultDispatcher-worker-4] INFO KCEF -- KCEF download progress: 97%
08:22:48.068 [DefaultDispatcher-worker-2] INFO KCEF -- KCEF download progress: 98%
08:22:48.261 [DefaultDispatcher-worker-3] INFO KCEF -- KCEF download progress: 99%
08:22:48.277 [DefaultDispatcher-worker-1] INFO KCEF -- KCEF download progress: 100%
Could not load 'jcef' library
JCEF(22:52:388): initialized stderr logger, severity=LOGSEVERITY_DEFAULT
JCEF_I(22:52:390): CefApp: set state NEW
Could not load 'cef' library
JCEF_V(25:48:723): CefMessageRouter_N: org.cef.browser.CefMessageRouter_N@46a8f86f: add delayed action addHandler
JCEF_V(25:48:728): CefMessageRouter_N: org.cef.browser.CefMessageRouter_N@4e677777: add delayed action addHandler
08:25:48.759 [Thread-0] INFO android.util.Log -- [VERBOSE] KcefWebViewProvider: Exposing: vzwQhUPTHKePSsJ.passData
Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for EGLGraphicsDevice[type .egl, v0.0.0, nativeDisplayID 0x0, connection :0, unitID 0, handle 0x0, owner true, ResourceToolkitLock[obj 0x529ff7a0, isOwner true, <6b9b3d1, 65f56a39>[count 1, qsz 0, owner <Thread-0-SharedResourceRunner>]]] on thread Thread-0-SharedResourceRunner
[0]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:555)
[1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
[2]: java.base/java.lang.Thread.run(Unknown Source)
Caused[0] by GLException: Failed to created/initialize EGL display incl. fallback default: native 0x0, error 0x3008/0x3005 on thread Thread-0-SharedResourceRunner
[0]: jogamp.opengl.egl.EGLDisplayUtil.eglGetDisplayAndInitialize(EGLDisplayUtil.java:381)
[1]: jogamp.opengl.egl.EGLDisplayUtil.access$300(EGLDisplayUtil.java:61)
[2]: jogamp.opengl.egl.EGLDisplayUtil$1.eglGetAndInitDisplay(EGLDisplayUtil.java:404)
[3]: com.jogamp.nativewindow.egl.EGLGraphicsDevice.open(EGLGraphicsDevice.java:228)
[4]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:569)
[5]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:553)
[6]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
[7]: java.base/java.lang.Thread.run(Unknown Source)
Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x1f0fe7bf, isOwner true, <270e8c4e, 1cd0254>[count 1, qsz 0, owner <Thread-0-SharedResourceRunner>]]] on thread Thread-0-SharedResourceRunner
[0]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:555)
[1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
[2]: java.base/java.lang.Thread.run(Unknown Source)
Caused[0] by GLException: Failed to created/initialize EGL display incl. fallback default: native 0x0, error 0x3008/0x3005 on thread Thread-0-SharedResourceRunner
[0]: jogamp.opengl.egl.EGLDisplayUtil.eglGetDisplayAndInitialize(EGLDisplayUtil.java:381)
[1]: jogamp.opengl.egl.EGLDisplayUtil.access$300(EGLDisplayUtil.java:61)
[2]: jogamp.opengl.egl.EGLDisplayUtil$1.eglGetAndInitDisplay(EGLDisplayUtil.java:404)
[3]: com.jogamp.nativewindow.egl.EGLGraphicsDevice.open(EGLGraphicsDevice.java:228)
[4]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:569)
[5]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:553)
[6]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
[7]: java.base/java.lang.Thread.run(Unknown Source)
JCEF_V(25:49:590): CefBrowser_N: org.cef.browser.CefBrowserOsr@3613d779: add delayed action createBrowser
08:25:49.590 [Thread-0] INFO android.util.Log -- [DEBUG] KcefWebViewProvider: Page loaded from data at base URL https://www.colamanga.com/manga-sr042848/1/433.html
JCEF_V(26:18:690): CefBrowser_N: org.cef.browser.CefBrowserOsr@3613d779: native part of browser wasn't created yet, browser will be closed immediately after creation
JCEF_E(26:18:691): CefBrowser_N: org.cef.browser.CefBrowserOsr@3613d779: can't invoke native method 'stopLoad' before native context initialized
08:26:18.706 [DefaultDispatcher-worker-2] ERROR suwayomi.tachidesk.graphql.AsDataFetcherResult -- asDataFetcherResult: failed due to
java.lang.Exception: Timed out decrypting image links
at eu.kanade.tachiyomi.multisrc.colamanga.ColaManga.pageListParse(Unknown Source)
at eu.kanade.tachiyomi.source.online.ParsedHttpSource.pageListParse(ParsedHttpSource.kt:177)
at eu.kanade.tachiyomi.source.online.HttpSource.fetchPageList$lambda$16(HttpSource.kt:314)
at eu.kanade.tachiyomi.source.online.HttpSource.fetchPageList$lambda$17(HttpSource.kt:313)
at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:69)
at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onNext(OnSubscribeDoOnEach.java:101)
at eu.kanade.tachiyomi.network.OkHttpExtensionsKt$asObservable$1$requestArbiter$1.request(OkHttpExtensions.kt:38)
at rx.Subscriber.setProducer(Subscriber.java:211)
at rx.internal.operators.OnSubscribeMap$MapSubscriber.setProducer(OnSubscribeMap.java:102)
at rx.Subscriber.setProducer(Subscriber.java:205)
at eu.kanade.tachiyomi.network.OkHttpExtensionsKt.asObservable$lambda$0(OkHttpExtensions.kt:56)
at rx.Observable.unsafeSubscribe(Observable.java:10327)
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41)
at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30)
at rx.Observable.unsafeSubscribe(Observable.java:10327)
at rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:48)
at rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:33)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.Observable.subscribe(Observable.java:10423)
at rx.Observable.subscribe(Observable.java:10390)
at suwayomi.tachidesk.manga.impl.util.lang.RxCoroutineBridgeKt.awaitOne(RxCoroutineBridge.kt:28)
at suwayomi.tachidesk.manga.impl.util.lang.RxCoroutineBridgeKt.awaitSingle(RxCoroutineBridge.kt:22)
at eu.kanade.tachiyomi.source.online.HttpSource.getPageList$suspendImpl(HttpSource.kt:306)
at eu.kanade.tachiyomi.source.online.HttpSource.getPageList(HttpSource.kt)
at suwayomi.tachidesk.manga.impl.chapter.ChapterForDownload.fetchPageList(ChapterForDownload.kt:160)
at suwayomi.tachidesk.manga.impl.chapter.ChapterForDownload.updatePageList(ChapterForDownload.kt:151)
at suwayomi.tachidesk.manga.impl.chapter.ChapterForDownload.asDownloadReady(ChapterForDownload.kt:88)
at suwayomi.tachidesk.manga.impl.chapter.ChapterForDownloadKt.getChapterDownloadReady(ChapterForDownload.kt:40)
at suwayomi.tachidesk.manga.impl.chapter.ChapterForDownloadKt.getChapterDownloadReady$default(ChapterForDownload.kt:34)
at suwayomi.tachidesk.manga.impl.chapter.ChapterForDownloadKt.getChapterDownloadReadyById(ChapterForDownload.kt:43)
at suwayomi.tachidesk.graphql.mutations.ChapterMutation$fetchChapterPages$1.invokeSuspend(ChapterMutation.kt:242)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:124)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:820)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
Caused by: rx.exceptions.OnErrorThrowable$OnNextValue: OnError while emitting onNext value: okhttp3.Response.class
at rx.exceptions.OnErrorThrowable.addValueAsLastCause(OnErrorThrowable.java:118)
at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:73)
... 35 common frames omitted
JCEF_E(26:18:714): CefClientHandler: can't invoke native method 'removeContextMenuHandler' before native context initialized
JCEF_E(26:18:715): CefClientHandler: can't invoke native method 'removeDialogHandler' before native context initialized
JCEF_E(26:18:715): CefClientHandler: can't invoke native method 'removeDisplayHandler' before native context initialized
JCEF_E(26:18:715): CefClientHandler: can't invoke native method 'removeDownloadHandler' before native context initialized
JCEF_E(26:18:715): CefClientHandler: can't invoke native method 'removeDragHandler' before native context initialized
JCEF_E(26:18:715): CefClientHandler: can't invoke native method 'removeFocusHandler' before native context initialized
JCEF_E(26:18:715): CefClientHandler: can't invoke native method 'removeJSDialogHandler' before native context initialized
JCEF_E(26:18:715): CefClientHandler: can't invoke native method 'removeKeyboardHandler' before native context initialized
JCEF_E(26:18:715): CefClientHandler: can't invoke native method 'removeLifeSpanHandler' before native context initialized
JCEF_E(26:18:716): CefClientHandler: can't invoke native method 'removeLoadHandler' before native context initialized
JCEF_E(26:18:716): CefClientHandler: can't invoke native method 'removePrintHandler' before native context initialized
JCEF_E(26:18:716): CefClientHandler: can't invoke native method 'removeRenderHandler' before native context initialized
JCEF_E(26:18:716): CefClientHandler: can't invoke native method 'removeRequestHandler' before native context initialized
JCEF_E(26:18:716): CefClientHandler: can't invoke native method 'removeWindowHandler' before native context initialized
JCEF_E(26:18:716): CefClientHandler: can't invoke native method 'dispose' before native context initialized
JCEF_V(26:18:716): CefApp: client was disposed: org.cef.CefClient@1775dc35 [clients count 0]
JCEF_V(26:22:603): CefMessageRouter_N: org.cef.browser.CefMessageRouter_N@7394da72: add delayed action addHandler
JCEF_V(26:22:604): CefMessageRouter_N: org.cef.browser.CefMessageRouter_N@2d2d180e: add delayed action addHandler
08:26:22.604 [Thread-0] INFO android.util.Log -- [VERBOSE] KcefWebViewProvider: Exposing: kKkGklAcblWhZZn.passData
JCEF_V(26:22:607): CefBrowser_N: org.cef.browser.CefBrowserOsr@7aecc79e: add delayed action createBrowser
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 41 (21 by maintainers)
Commits related to this issue
- Add `LD_PRELOAD` to startup script Closes #131 — committed to cpiber/Suwayomi-Server-docker by cpiber a year ago
- Download JCEF at docker build step (#132) * Add `LD_PRELOAD` to startup script Closes #131 * Script to download and extract a JCEF release Closely mirrors what KCEF does, but written in glorious A... — committed to Suwayomi/Suwayomi-Server-docker by cpiber a year ago
It only applies to glibc systems, but
cannot allocate memory in static TLS blockis itself a glibc error. I don’t know how other libcs behave. The advantage is you aren’t preloading the lib into possibly every child process, only increasing the TLS static allocation size. And you don’t need to have the lib exist before the process starts, nor know the path.Got it. for mihon this extension working normal ,That is what i test before
Pre-downloading KCEF sounds good to me, we could have a enviornment variable(maybe
SUWAYOMI_KCEF_PATH) in the docker container that can be used for the InstallDir in the KCEF.init() block, and default back to our app data path when its not found.This is just a hypothesis based on my investigation, it might explain why the jbr_jcef-21.0.7-linux-aarch64-b1038.54 directory appears in the logs but is not present on the filesystem afterward. This is intended to provide a possible direction for analysis. Here’s my understanding of the step-by-step process that KCEF likely follows: Archive Discovery: KCEF first finds the required archive, likely named jbr_jcef-21.0.7-linux-aarch64-b1038.54.tar.gz (or similar). Create Temporary Extraction Directory: It creates a temporary, version-named directory for the extraction process, for example: /home/suwayomi/.local/share/Tachidesk/bin/kcef/jbr_jcef-21.0.7-linux-aarch64-b1038.54/. Extract Files to Temp Directory: It unpacks all the contents of the archive into this temporary directory. The openat(…, O_WRONLY|O_CREAT…) system calls observed in the strace log correspond to this step. At this point, libcef.so and libjcef.so are located within a subdirectory, such as …/jbr_jcef…/lib/. Relocate Files to Final Destination: After extraction is complete, KCEF moves all necessary files from the temporary directory to the final target directory, /home/suwayomi/.local/share/Tachidesk/bin/kcef/. The renameat system calls in the log are evidence of this. My previous ls output, which showed all library files (libcef.so, libjcef.so, etc.) neatly arranged directly inside the …/kcef/ directory Clean Up Temporary Directory: Once the files are moved, KCEF deletes the now-empty temporary jbr_jcef-21.0.7… directory to save space. This is why the directory is no longer found on the filesystem after the startup process is finished.
Hm, that is weird, both seem fine, so I’m not sure where the problem might be. I’ll try to get it running in a VM tomorrow so I can debug it myself
sorry,i just put this log(libcef.so)