how to to fix "cr_LibraryLoader: Unable to load library: libwebviewchromium.so"

441 views
Skip to first unread message

Xuefer H

unread,
Jan 24, 2017, 3:52:01 PM1/24/17
to android-platform
i have my own chromium 56.0.2924.73 built as webview.apk, copied into /system/app/webview/ but it failed to load libwebviewchromium.so, so i unzip *.so into /system/app/webview/lib/x86_64/libwebviewchromium.so

01-25 00:20:49.402 23047 23047 D ApplicationLoaders: ignored Vulkan layer search path /system/app/webview/lib/x86_64:/system/app/webview/webview.apk!/lib/x86_64:/system/lib64:/vendor/lib64 f
or namespace 0x7ff8eb33b0f0
01-25 00:20:49.437 23047 23047 I WebViewFactory: Loading com.android.webview version 55.0.2883.91 (code 1)
01-25 00:20:50.639 23047 23047 I cr_LibraryLoader: Using linker: org.chromium.base.library_loader.ModernLinker
01-25 00:20:50.704 23047 23047 I cr_LibraryLoader: Loading webviewchromium
01-25 00:20:50.709 23047 23047 E cr_ChromiumAndroidLinker: GetLibraryLoadSize: Failed to find library at address 0x7ff8b4ba4000
01-25 00:20:50.709 23047 23047 E cr_ChromiumAndroidLinker: LoadLibrary: Unable to find size for load at 0x7ff8b4ba4000
01-25 00:20:50.709 23047 23047 E cr_LibraryLoader: Unable to load library: libwebviewchromium.so
01-25 00:20:50.783 23047 23047 E WebViewFactory: error instantiating provider
01-25 00:20:50.783 23047 23047 E WebViewFactory: java.lang.reflect.InvocationTargetException
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at java.lang.reflect.Constructor.newInstance0(Native Method)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:198)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at android.webkit.WebIconDatabase.getInstance(WebIconDatabase.java:102)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at com.android.browser.Controller.openIconDatabase(Controller.java:469)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at com.android.browser.Controller.<init>(Controller.java:266)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at com.android.browser.BrowserActivity.createController(BrowserActivity.java:90)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at com.android.browser.BrowserActivity.onCreate(BrowserActivity.java:79)
--
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at android.app.ActivityThread.-wrap12(ActivityThread.java)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at android.os.Handler.dispatchMessage(Handler.java:102)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at android.os.Looper.loop(Looper.java:154)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at android.app.ActivityThread.main(ActivityThread.java:6126)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at java.lang.reflect.Method.invoke(Native Method)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:887)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:777)
01-25 00:20:50.783 23047 23047 E WebViewFactory: Caused by: java.lang.RuntimeException: Cannot load WebView
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at org.chromium.android_webview.AwBrowserProcess.loadLibrary(AwBrowserProcess.java:56)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at com.android.webview.chromium.WebViewChromiumFactoryProvider.initialize(WebViewChromiumFactoryProvider.java:233)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at com.android.webview.chromium.WebViewChromiumFactoryProvider.<init>(WebViewChromiumFactoryProvider.java:194)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        ... 20 more
01-25 00:20:50.783 23047 23047 E WebViewFactory: Caused by: org.chromium.base.library_loader.ProcessInitException
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:325)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at org.chromium.base.library_loader.LibraryLoader.loadNowOverrideApplicationContext(LibraryLoader.java:180)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at org.chromium.android_webview.AwBrowserProcess.loadLibrary(AwBrowserProcess.java:1164)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        ... 22 more
01-25 00:20:50.783 23047 23047 E WebViewFactory: Caused by: java.lang.UnsatisfiedLinkError: Unable to load library: libwebviewchromium.so
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at org.chromium.base.library_loader.ModernLinker.loadLibraryImpl(ModernLinker.java:415)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        at org.chromium.base.library_loader.LibraryLoader.loadAlreadyLocked(LibraryLoader.java:2569)
01-25 00:20:50.783 23047 23047 E WebViewFactory:        ... 24 more
01-25 00:20:50.784 23047 23047 D AndroidRuntime: Shutting down VM

i wonder why the prebuilts one get loaded (or not because it crash already in webview.apk for my cpu lack of sse4 required by android default built binaries)
is there any kernel config/patch required to load libwebviewchromium.so from within webview.apk?
Reply all
Reply to author
Forward
0 new messages