chromium 77 for Android. Embedded WebView (xwalk) based on Chromium 77. (A web runtime built on Chrome)
ks32 / crosswalknative Goto Github PK
View Code? Open in Web Editor NEWEmbedded Crosswalk 77 webview based sample project.
Embedded Crosswalk 77 webview based sample project.
Hey @ks32 ,
The app is crashing 100% of times when trying to open www.youtube.com
mXWalkView.load("https://www.youtube.com/","");
I am not quite sure why it is crashing.
Do you know what is going on?
Thanks
My steps as follows:
step 1:
export XWALK_OS_ANDROID=1
step 2:
gclient config --name src/xwalk https://github.com/ks32/crosswalk.git@origin/ks_chromium_58
step 3:
echo "target_os = [ 'android' ]" >> ./.gclient
step 4:
gclient sync
ERRO:
{
Traceback (most recent call last):
File "src/xwalk/tools/fetch_deps.py", line 83, in
sys.exit(main())
File "src/xwalk/tools/fetch_deps.py", line 78, in main
deps_fetcher.DoGclientSyncForChromium()
File "src/xwalk/tools/fetch_deps.py", line 53, in DoGclientSyncForChromium
gclient_utils.CheckCallAndFilterAndHeader(gclient_cmd,
AttributeError: 'module' object has no attribute 'CheckCallAndFilterAndHeader'
Error: Command 'vpython src/xwalk/tools/fetch_deps.py -v' returned non-zero exit
}
instead of gclient sync --verbose --reset --force --with_branch_heads --delete_unversioned_trees --gclientfile=.gclient-xwalk is successful.
step 5:
cd src
./build/install-build-deps.sh
./build/install-build-deps-android.sh
step 6:
gn args out/Default
{
import("//xwalk/build/android.gni")
is_debug = false
target_os = "android"
target_cpu = "arm"
}
got erro:
{
Waiting for editor on "/home/crosswalk/src/out/Default/args.gn"...
Generating files...
ERROR at //media/BUILD.gn:35:3: Assertion failed.
assert(
^-----
proprietary codecs and ffmpeg_branding set to Chromium are incompatible
See //media/BUILD.gn:36:7:
ffmpeg_branding != "Chromium",
^----------------------------
This is where it was set.
See //BUILD.gn:297:7: which caused the file to be included.
"//media:media_unittests",
^------------------------
}
please help me ,how to solve this problem. is there any step i omitted ?
Hello author~
After modifying the minimum version to 19, the program crashes, can it only support 22 at the minimum?
ks32.crosswalk_native E/AndroidRuntime: FATAL EXCEPTION: main
Process: ks32.crosswalk_native, PID: 3005
java.lang.NoClassDefFoundError: org.chromium.base.ObserverList
at org.chromium.base.ApplicationStatus.(ApplicationStatus.java:97)
at ks32.crosswalk_native.App.onCreate(App.java:22)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4344)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
hello mr sk32
how can i solved this problem?plz thanks
2023-05-11 11:27:55.251 18756-18756/ks32.crosswalk_native I/qqq-xwalk: https://cloudposregister.gmonline-all.com/js/chunk-vendors.9948d682.js 67: Mixed Content: The page at 'https://cloudposregister.gmonline-all.com/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://139.194.85.8:8056/api/BestechCloudPos/Token'. This request has been blocked; the content must be served over HTTPS.
2023-05-11 11:27:55.285 18756-18756/ks32.crosswalk_native I/qqq-xwalk: https://cloudposregister.gmonline-all.com/js/app.ee79e7d2.js 1: Error: 连接不到服务器了,请检查当前网络状态
2023-05-11 11:27:56.806 18756-18756/ks32.crosswalk_native I/qqq-xwalk: https://cloudposregister.gmonline-all.com/js/app.ee79e7d2.js 1: confirm
Many packages of dependency in third_party is not downloaded automatically, such as Ndk and Sdk. When I run "./install-build-deps.sh./install-build-deps-android.sh",it got no mistakes,but ndk and sdk was not download.I am confused by the problem. I would appreciate it if you could offer me any help.
Hi, How can i build ks_chrome_77 for android webview? @ks32
Thank you in advance.
When I'm running the provided library (chromium 58) in Android 10 the <input>
tags do not get any of the keyboard input.
However when using a phone with Android 9 it works as expected.
Is this a known issue?
Hi,
I need to put a video view on the bottom of a webview.
When I put:
mXWalkView.setBackgroundColor(0x00000000);
The background don't turn in transparent mode, always the background is white.
When I put:
mXWalkView.setBackgroundColor(Color.RED);
Or any other color, works correctly. but the Color.TRANSPARENT don't work.
any suggestion?
Following crosswalk build instruction, get crosswlk77 source code.
1 gclient config --name src/xwalk https://github.com/ks32/crosswalk.git@origin/ks_chromium_77
2 gclient sync
In crosswalk/DEPS.xwalk file, chromium_crosswalk_rev = '9a967afdddfb7b7af327681f52c1f92b83944f3c', this rev is not a valid value.
[1:38:59] POST git-upload-pack (935 bytes)
[1:38:59] fatal: git fetch_pack: expected ACK/NAK, got 'ERR upload-pack: not our ref 9a967afdddfb7b7af327681f52c1f92b83944f3c'
[1:38:59] fatal: The remote end hung up unexpectedly
Which rev is a valid?
Hello @ks32 , I am not able to build the project as xwalk_main_fat-77.2.aar is not accessible via git lFS:
"batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
"
Are you able to include xwalk_main_fat-77.2.aar into Git instead of Git lfs?
Cheers
Hello Sir,
I just tried the latest updates, and when I try to upgrade the version to 29 (Android 10). When the webView trying to initialize and load URL. It will still crash and gives me these error messages.
Could you give me some advice to solve it?
@ks32 may I know your email address, I can provide some fund contribution for this fix
Thank you
E/chromium: [ERROR:compositor_impl_android.cc(685)] Failed to init ContextProvider for compositor.
E/chromium: [ERROR:compositor_impl_android.cc(685)] Failed to init ContextProvider for compositor.
A/chromium: [FATAL:compositor_impl_android.cc(686)] Too many context creation failures. Giving up...
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 24514 (rosswalk_native), pid 24514 (rosswalk_native)
As you are and as far as I know, the only person who managed to rebase crosswalk and update chromium.
I was wondering if you managed to do so by following the process in the link:
https://github.com/crosswalk-project/crosswalk-website/wiki/Rebasing-our-forks
I would like to update it further and any guidance is appreciated. Thank you
I enable remote debugging by using:
XWalkPreferences.setValue(XWalkPreferences.REMOTE_DEBUGGING, true);
I can see the current session in "chrome://inspect"... but clicking the Inspect button opens only an error page "HTTP/1.1 404 Not Found". Is this a known issue? Is there any workaround?
There will be a layer of shadow on the surface of XWalkView in ViewPager's Fragment, how to solve it
When I use the following Dockerfile to build crosswalk 77, there is a high probability that the build fails, and gn cannot generate XWalkCookieManager_jni.h or cors_origin_pattern.mojom-forward.h compilation file not found
I don’t have much experience in using gclient and gn. Is this a problem caused by some source repo updates?
#
# Build Require: 8 Core CPU, 16GB Ram, 60GB Free Disk Space
#
FROM ubuntu:18.04@sha256:9bc830af2bef73276515a29aa896eedfa7bdf4bdbc5c1063b4c457a4bbb8cd79
WORKDIR /root
ENV XWALK_OS_ANDROID=1
RUN apt update -y && \
apt install -y git curl wget python python3 && \
mkdir chromium && \
cd /root/chromium && \
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git && \
export PATH="$PATH:/root/chromium/depot_tools" && \
export && \
gclient config --name="src/xwalk" https://github.com/ks32/crosswalk.git@origin/ks_chromium_77 && \
echo "target_os = [\"android\", \"linux\"];" >> .gclient && \
cat .gclient && \
gclient sync -D --force --reset --with_branch_heads && \
ls -la
RUN export DEBIAN_FRONTEND=noninteractive && \
export TZ=Asia/Taipei && \
apt install -y lsb-core sudo tzdata && \
cd /root/chromium/src/build && \
./install-build-deps-android.sh
RUN cd /root/chromium && \
cd /root/chromium/src/ && \
rm -rf out/Default && \
mkdir -p out/Default && \
cd out/Default && \
echo "import(\"//xwalk/build/android.gni\")" > args.gn && \
echo "is_debug = false" >> args.gn && \
echo "target_os = \"android\"" >> args.gn && \
echo "ffmpeg_branding = \"Chrome\"" >> args.gn && \
echo "target_cpu = \"arm\"" >> args.gn && \
echo "disable_ftp_support = true" >> args.gn && \
echo "disable_libfuzzer = true" >> args.gn && \
echo "enable_plugins = false" >> args.gn && \
echo "disable_bundled_extensions = true" >> args.gn && \
echo "is_official_build = true" >> args.gn && \
echo "enable_nacl = false" >> args.gn && \
echo "symbol_level = 1" >> args.gn && \
echo "use_aura = false" >> args.gn && \
echo "use_ozone = false" >> args.gn && \
echo "v8_use_snapshot = true" >> args.gn && \
echo "v8_enable_i18n_support = false" >> args.gn && \
echo "disable_ftp_support = true" >> args.gn && \
echo "disable_libfuzzer = true" >> args.gn && \
cat args.gn && \
export PATH="$PATH:/root/chromium/depot_tools" && \
cd /root/chromium/src/ && \
ls -la ./services/network && \
gn gen out/Default && \
ninja -j6 -C out/Default/ -t clean && \
ninja -j6 -C out/Default/ xwalk_core_library
RUN cd /root/chromium/src/out/Default && \
sha1sum xwalk_core_library.aar
hi Mr ks32, could you tell me , how could i compile source codes for target_os = 'ios', thank you very much!
在ViewPager的Fragment中使用XWalkView表面会有一层阴影要怎么解决
Hello sir , when i git c from github, i can't do gclient sync successfull.
my .gclient
solutions = [
{ "name" : "src/xwalk",
"url" : "https://github.com/ks32/crosswalk.git",
"deps_file" : "DEPS",
"managed" : True,
"custom_deps" : {
},
"custom_vars": {},
},
]
target_os = [ 'android' ]
when i do gclient sysc , i got problems as bwlow,
1>________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://github.com/ks32/crosswalk.git /home/chrome/xwalk/src/_gclient_xwalk_9fJA79' in '/home/chrome/xwalk'
1>Cloning into '/home/chrome/xwalk/src/_gclient_xwalk_9fJA79'...
how can i get right github code, please tell me , thank you every much!
When playing any WebGL content, when using the android emulator (Android studio) API 28-29 (x86). The application does not give any errors, however, the rendering of the image stops and stops responding to any actions.
D/cr_iotto: [XWalkWebContentsDelegateAdapter.java:97] rendererUnresponsive
In unofficial emulators and on real devices (which I had), this problem was not noticed.
Some methods don't work and won't run, for example: shouldOverrideUrlLoading and onLoadStarted
xWalkView.setResourceClient(new XWalkResourceClient() {
@Override
public void onLoadStarted(XWalkView view, String url) {
Log.d("INFOURL", "onLoadStarted:" + url);
}
@Override
public boolean shouldOverrideUrlLoading(XWalkView view, String url) {
Log.d("INFOURL", "shouldOverrideUrlLoading:" + url);
view.loadUrl(url);
return false;
}
}
3) These are trifles, but there is a mistake in the name of the xwalk_core_lirary-77.aar (lirary -> library)
Thanks for this library. every thing is ok on x86 but with armeabi-v7a
this error appears
here is a screenshot for the error log....
http://i5.imgh.top/20jku2699.png
if you can do anything about it.
thanks for updating and bringing xwalk lib back alive.
XWalkCookieManager is no longer attached to the XWalk view. Which means that we can longer manage cookies when using this version of crosswalk.
You can test this issue by using the following line:
XWalkCookieManager().hasCookies()
will always return false even after login or accessing any websites. Other functions of XWalkCookieManager are not working like it used to be.
This class and functions used to work on previous versions of crosswalk.
Is there any way to fix it?
Logcat:
2022-07-04 20:06:28.548 30393-30393/ks32.crosswalk_native W/rosswalk_nativ: Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking) 2022-07-04 20:06:28.687 30393-30393/ks32.crosswalk_native W/rosswalk_nativ: Accessing hidden field Landroid/view/WindowInsets;->CONSUMED:Landroid/view/WindowInsets; (light greylist, reflection) 2022-07-04 20:06:28.716 30393-30393/ks32.crosswalk_native W/rosswalk_nativ: Accessing hidden method Landroid/view/View;->getAccessibilityDelegate()Landroid/view/View$AccessibilityDelegate; (light greylist, linking) 2022-07-04 20:06:28.839 30393-30393/ks32.crosswalk_native W/rosswalk_nativ: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection) 2022-07-04 20:06:28.842 30393-30393/ks32.crosswalk_native W/rosswalk_nativ: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection) 2022-07-04 20:06:28.932 30393-30393/ks32.crosswalk_native W/rosswalk_nativ: Accessing hidden method Landroid/app/ActivityThread;->currentActivityThread()Landroid/app/ActivityThread; (light greylist, reflection) 2022-07-04 20:06:28.932 30393-30393/ks32.crosswalk_native W/rosswalk_nativ: Accessing hidden method Landroid/app/ActivityThread;->getProcessName()Ljava/lang/String; (light greylist, reflection) 2022-07-04 20:06:28.951 30393-30393/ks32.crosswalk_native D/AndroidRuntime: Shutting down VM 2022-07-04 20:06:28.957 30393-30393/ks32.crosswalk_native E/AndroidRuntime: FATAL EXCEPTION: main Process: ks32.crosswalk_native, PID: 30393 java.lang.AssertionError at org.chromium.base.ApplicationStatus.initialize(ApplicationStatus.java:232) at org.xwalk.core.XWalkInitializer.<init>(XWalkInitializer.java:181) at ks32.crosswalk_native.MainActivity.onCreate(MainActivity.java:28) at android.app.Activity.performCreate(Activity.java:7144) at android.app.Activity.performCreate(Activity.java:7135) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2894) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3049) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1809) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6680) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 2022-07-04 20:06:28.981 30393-30393/ks32.crosswalk_native I/Process: Sending signal. PID: 30393 SIG: 9
Tested on:
Operating System: Android TV 9
I successfully build your xwalk_core_library_58.aar with cordova, however when the app starting the roor occured
Caused by: java.lang.NoSuchMethodException: getAssignedPackageIdentifiers []
at java.lang.Class.getConstructorOrMethod(Class.java:472)
at java.lang.Class.getMethod(Class.java:857)
at org.xwalk.core.internal.XWalkViewDelegate.<clinit>(XWalkViewDelegate.java:69)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61)
at org.xwalk.core.XWalkCoreWrapper.checkCoreArchitecture(XWalkCoreWrapper.java:349)
at org.xwalk.core.XWalkCoreWrapper.findEmbeddedCore(XWalkCoreWrapper.java:248)
at org.xwalk.core.XWalkCoreWrapper.attachXWalkCore(XWalkCoreWrapper.java:162)
at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:335)
at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:317)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
I' tried to search method getAssignedPackageIdentifiers at tenta-browser's XWalkViewDelegate.java - https://github.com/tenta-browser/crosswalk/blob/master/runtime/android/core_internal/src/org/xwalk/core/internal/XWalkViewDelegate.java
But this entire method doesn't exsists.
Do you have any workaround? Maybe I need to recompile xwalk_core_library.jar somehow.
hi @ks32 , would you please update the chrome kernel version to 81 or higher? Now the version 77 has some render errors just like drawing ruby-rt in Japanese.
Hi, is there a build of chrome 64 android example? @ks32
Thank you in advance.
hi mr ks32
when i use “addJavaScriptInterface” add a interface for my js code then i used the interface like this “window.Android.funtionName”
the will tell me “Uncaught TypeError: window.Android.funtionName is not a function”
@SuppressLint({"SetJavaScriptEnabled"})
private void initWebView(){
XWalkSettings webSettings = this.webView.getSettings();
webSettings.setLoadsImagesAutomatically(true);
webSettings.setSupportSpatialNavigation(true);
webSettings.setJavaScriptCanOpenWindowsAutomatically(true);
webSettings.setJavaScriptEnabled(true);
webSettings.setBuiltInZoomControls(false);
webSettings.setLoadWithOverviewMode(true);
webSettings.setUseWideViewPort(true);
webSettings.setDomStorageEnabled(true);
XWalkPreferences.setValue("remote-debugging", true);
webSettings.setAllowFileAccess(true);
webSettings.setAllowFileAccessFromFileURLs(true);
webSettings.setAllowUniversalAccessFromFileURLs(true);
webSettings.setAllowContentAccess(true);
webSettings.setAppCacheEnabled(true);
webSettings.setFullscreenSupported(true);
this.uiClient=new XwalkClientEXT(this,this.webView);
this.webView.setResourceClient(new XWalkResourceClient(){
@Override
public void onLoadFinished(XWalkView view, String url) {
super.onLoadFinished(view, url);
setImmersiveMode();
}
});
this.webView.setUIClient(this.uiClient);
this.webView.clearCache(true);
this.webView.requestFocus(130);
this.webView.addJavascriptInterface(new JavaScriptInterface(this),"Android");
CookieManager.getInstance().setAcceptCookie(true);
CookieManager.setAcceptFileSchemeCookies(true);
((FrameLayout)findViewById(R.id.webview)).addView(this.webView);
}
@JavascriptInterface
public String io_sb3FileExists(String file) { return "";}
if("true"==window.Android.io_sb3FileExists(fileName)){}
hi Mr32 i finally find why app don't work on android 10. because android 10 has forbidden app create share menory with /dev/file, it will throw erros like 'avc denied {open} xxx', i want to know if i can upgrade to chromium 77 or 80 in your project https://github.com/ks32/crosswalk/tree/ks_chromium_58. how can i do it, please help me thanks very much!!
Hi Ks32 when I gn args out/Dewfault , I got erros
IOError: [Errno 2] No such file or directory: '../../third_party/android_tools/sdk/extras/google/m2repository/com/google/android/gms/play-services-basement/10.2.0/play-services-basement-10.2.0.aar'
See //third_party/android_tools/BUILD.gn:191:1: whence it was called.
android_aar_prebuilt("google_play_services_basement_java") {
^-----------------------------------------------------------
See //skia/BUILD.gn:391:7: which caused the file to be included.
"//third_party/android_tools:cpu_features",
^-----------------------------------------
it seems need to get google_play_services, how can i di this thanks you!
Hello,
Google Play Store had stopped accepting app with targetSdkVersion 28.
We should atleast use sdk version 29.
But your code is crashing with targetSdkVersion 29
E/chromium: [ERROR:compositor_impl_android.cc(585)] Failed to init OutputSurface for compositor.
Please give me a fix
Can x86_64 architecture be added for xwalk_core_library-77 ?
Hello, do you know how to compile crosswalk 77?
I downloaded your repository, but I can't compile it.
.gclient
solutions = [
{ "name" : 'src/xwalk',
"url" : 'https://github.com/ks32/crosswalk.git@origin/ks_chromium_77',
"deps_file" : 'DEPS',
"managed" : True,
"custom_deps" : {
},
"custom_vars": {},
},
]
target_os = ['android']
FIle out/Release_Android/args.gn
import("//xwalk/build/android.gni")
is_debug = false
target_os = "android"
ffmpeg_branding = "Chrome"
target_cpu = "arm"
enable_nacl = false
symbol_level = 1
remove_webcore_debug_symbols = true
use_aura = false
use_ozone = false
enable_plugins = false
disable_bundled_extensions = true
v8_use_snapshot = true
enable_webrtc = true
is_official_build = true
v8_enable_i18n_support = false
disable_ftp_support = true
disable_libfuzzer = true
B365CD3:/home/77/src$ ninja -C out/Release_Android xwalk_core_library
[7/29739] CXX obj/xwalk/xwalk_cookies/cookie_manager.o
FAILED: obj/xwalk/xwalk_cookies/cookie_manager.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/xwalk/xwalk_cookies/cookie_manager.o.d -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DOFFICIAL_BUILD -DCHROMIUM_BUILD -DNO_UNWIND_TABLES -D_GNU_SOURCE -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r16_1 -DCR_CLANG_REVISION="365097-f7e52fbd-8" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=361348 -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen -fprofile-sample-use=../../chrome/android/profiles/afdo.prof -fprofile-sample-accurate -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -flto=thin -fsplit-lto-unit -fcomplete-member-pointers -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -isystem../../third_party/android_ndk/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=16 -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC=1 -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -mfpu=neon -mthumb -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wextra-semi -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -Oz -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g1 -fdebug-info-for-profiling -fvisibility=hidden -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=c++14 -fno-exceptions -fno-rtti -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include --sysroot=../../third_party/android_ndk/sysroot -isystem../../third_party/android_ndk/sources/android/support/include -fvisibility-inlines-hidden -c ../../xwalk/runtime/browser/android/cookie_manager.cc -o obj/xwalk/xwalk_cookies/cookie_manager.o
In file included from ../../xwalk/runtime/browser/android/cookie_manager.cc:5:
In file included from ../../xwalk/runtime/browser/android/cookie_manager.h:9:
In file included from ../../base/memory/scoped_refptr.h:15:
../../base/logging.h:23:10: fatal error: 'base/logging_buildflags.h' file not found
#include "base/logging_buildflags.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[17/29739] CXX obj/third_party/icu/icuuc/ubidi_props.o
ninja: build stopped: subcommand failed.
Hey @ks32,
Thanks for this great lib, It looks like cookies & session are no longer persisted after the app has been closed.
It used to be working on the original version (latest) of xwalk.
Please, do you know a proper way can persist cookies/sessions before the app close then restore cookies/sessions after the webview is created?
King regards!
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform xwalk_main_fat-77.2.aar (com.pakdata.xwalk:xwalk_main_fat:77.2) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=integration}.
> Execution failed for AarResourcesCompilerTransform: /Users/anz/Downloads/webview-master/caches/transforms-3/01e911ac7f93d00990680bd5eab1b529/transformed/jetified-xwalk_main_fat-77.2.
> /Users/anz/Downloads/webview-master/caches/transforms-3/01e911ac7f93d00990680bd5eab1b529/transformed/jetified-xwalk_main_fat-77.2/AndroidManifest.xml
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.
==============================================================================
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform xwalk_main_fat-77.2.aar (com.pakdata.xwalk:xwalk_main_fat:77.2) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.status=integration, org.gradle.usage=java-runtime}.
> Execution failed for AarToClassTransform: /Users/anz/Downloads/webview-master/caches/transforms-3/bf523f5ca791271cc1d5deb9f18caee2/transformed/jetified-xwalk_main_fat-77.2.aar.
> /Users/anz/Downloads/webview-master/caches/transforms-3/bf523f5ca791271cc1d5deb9f18caee2/transformed/jetified-xwalk_main_fat-77.2.aar
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.
==============================================================================
FATAL EXCEPTION: main
Process: ks32.crosswalk_native, PID: 14159
java.lang.AssertionError
at org.chromium.base.ApplicationStatus.initialize(ApplicationStatus.java:232)
at org.xwalk.core.XWalkInitializer.(XWalkInitializer.java:181)
at ks32.crosswalk_native.MainActivity.onCreate(MainActivity.java:28)
My compile Chrome58 sdq:
{"type":"offer","sdp":"v=0\r\no=- 3402851891471659047 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE audio video data\r\na=msid-semantic: WMS\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111 103 9 0 8 105 13 110 113 126\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufra
g:ttkl\r\na=ice-pwd:Cy0SXYVLYjb4mXiM8ZibGbLx\r\na=fingerprint:sha-256 71:4E:FF:1D:84:D2:CE:4D:28:8B:D1:AB:99:5D:23:2F:55:7F:06:CA:94:96:EA:80:33:8E:13:95:4B:55:CB:3E\r\na=setup:actpass\r\na=mid:audio\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=recvonly\r\na=rtcp-mux\r\na=rtpmap:11
1 opus/48000/2\r\na=rtcp-fb:111 transport-cc\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=rtpmap:103 isac/16000\r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:105 cn/16000\r\na=rtpmap:13 cn/8000\r\na=rtpmap:110 telephone-event/48000\r\na=rtpmap:113 telephone-eve
nt/16000\r\na=rtpmap:126 telephone-event/8000\r\nm=video 9 UDP/TLS/RTP/SAVPF 96 98 100 102 127 97 99 101 104\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:ttkl\r\na=ice-pwd:Cy0SXYVLYjb4mXiM8ZibGbLx\r\na=fingerprint:sha-256 71:4E:FF:1D:84:D2:CE:4D:28:8B:D1:AB:99:5D:23:2F:55:7F:06:CA:9
4:96:EA:80:33:8E:13:95:4B:55:CB:3E\r\na=setup:actpass\r\na=mid:video\r\na=extmap:2 urn:ietf:params:rtp-hdrext:toffset\r\na=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:4 urn:3gpp:video-orientation\r\na=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wi
de-cc-extensions-01\r\na=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96 VP8/90000\r\na=rtcp-fb:96 ccm fir\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:96 goog-remb\r\na=rtcp-fb:96 transport-cc\r\na=rtpmap:9
8 VP9/90000\r\na=rtcp-fb:98 ccm fir\r\na=rtcp-fb:98 nack\r\na=rtcp-fb:98 nack pli\r\na=rtcp-fb:98 goog-remb\r\na=rtcp-fb:98 transport-cc\r\na=rtpmap:100 red/90000\r\na=rtpmap:102 ulpfec/90000\r\na=rtpmap:127 H264/90000\r\na=rtcp-fb:127 ccm fir\r\na=rtcp-fb:127 nack\r\na=rtcp-fb:127 nack pli\r\na=rtc
p-fb:127 goog-remb\r\na=rtcp-fb:127 transport-cc\r\na=fmtp:127 packetization-mode=1\r\na=rtpmap:97 rtx/90000\r\na=fmtp:97 apt=96\r\na=rtpmap:99 rtx/90000\r\na=fmtp:99 apt=98\r\na=rtpmap:101 rtx/90000\r\na=fmtp:101 apt=100\r\na=rtpmap:104 rtx/90000\r\na=fmtp:104 apt=127\r\nm=application 9 DTLS/SCTP 5
000\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:ttkl\r\na=ice-pwd:Cy0SXYVLYjb4mXiM8ZibGbLx\r\na=fingerprint:sha-256 71:4E:FF:1D:84:D2:CE:4D:28:8B:D1:AB:99:5D:23:2F:55:7F:06:CA:94:96:EA:80:33:8E:13:95:4B:55:CB:3E\r\na=setup:actpass\r\na=mid:data\r\na=sctpmap:5000 webrtc-datachannel 1024\r\n"}
this is google_chrome i donwload from internet, it works well.
{"type":"offer","sdp":"v=0\r\no=- 8440884920188415701 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE audio video data\r\na=msid-semantic: WMS\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r
\na=ice-ufrag:g1I5\r\na=ice-pwd:5w41xsQDWh6aLz2ZNj+wjMwg\r\na=fingerprint:sha-256 57:A0:DA:A3:B6:C3:87:1C:D3:C8:79:3C:E6:74:7A:56:A8:F0:56:B2:B2:E2:12:EA:AE:B4:65:2A:76:39:90:3C\r\na=setup:actpass\r\na=mid:audio\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=recvonly\r\na=rtcp-mux\r
na=rtpmap:111 opus/48000/2\r\na=rtcp-fb:111 transport-cc\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=rtpmap:103 isac/16000\r\na=rtpmap:104 isac/32000\r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:106 cn/32000\r\na=rtpmap:105 cn/16000\r\na=rtpmap:13 cn/8000\r\n
a=rtpmap:110 telephone-event/48000\r\na=rtpmap:112 telephone-event/32000\r\na=rtpmap:113 telephone-event/16000\r\na=rtpmap:126 telephone-event/8000\r\nm=video 9 UDP/TLS/RTP/SAVPF 96 98 100 102 127 97 99 101 125\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:g1I5\r\na=ice-pwd:5w41xsQDW
h6aLz2ZNj+wjMwg\r\na=fingerprint:sha-256 57:A0:DA:A3:B6:C3:87:1C:D3:C8:79:3C:E6:74:7A:56:A8:F0:56:B2:B2:E2:12:EA:AE:B4:65:2A:76:39:90:3C\r\na=setup:actpass\r\na=mid:video\r\na=extmap:2 urn:ietf:params:rtp-hdrext:toffset\r\na=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=ex
tmap:4 urn:3gpp:video-orientation\r\na=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:96 VP8/90000\r\na=rtcp-fb:96 ccm fir\r\na=rtcp-fb
:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:96 goog-remb\r\na=rtcp-fb:96 transport-cc\r\na=rtpmap:98 VP9/90000\r\na=rtcp-fb:98 ccm fir\r\na=rtcp-fb:98 nack\r\na=rtcp-fb:98 nack pli\r\na=rtcp-fb:98 goog-remb\r\na=rtcp-fb:98 transport-cc\r\na=rtpmap:100 H264/90000\r\na=rtcp-fb:100 ccm fir\r\na=rtcp
-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=rtcp-fb:100 transport-cc\r\na=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f;x-google-start-bitrate=20000;x-google-max-bitrate=100000\r\na=rtpmap:102 red/90000\r\na=rtpmap:127 ulpfec/90000\r\na=rt
pmap:97 rtx/90000\r\na=fmtp:97 apt=96\r\na=rtpmap:99 rtx/90000\r\na=fmtp:99 apt=98\r\na=rtpmap:101 rtx/90000\r\na=fmtp:101 apt=100\r\na=rtpmap:125 rtx/90000\r\na=fmtp:125 apt=102\r\nm=application 9 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:g1I5\r\na=ice-pwd:5w41xsQDWh6aLz2ZNj+wjMwg\r\na=fing
erprint:sha-256 57:A0:DA:A3:B6:C3:87:1C:D3:C8:79:3C:E6:74:7A:56:A8:F0:56:B2:B2:E2:12:EA:AE:B4:65:2A:76:39:90:3C\r\na=setup:actpass\r\na=mid:data\r\na=sctpmap:5000 webrtc-datachannel 1024\r\n"}
hi Mr Ks32, can you tell me how i can solve this differences.
hi Mr ks32, when i run my app on android 10 system, i use XWalkActivity to open a url and i got erros like belows:
W/Chrome_FileUser: type=1400 audit(0.0:134762): avc: denied { open } for pid=23309 path="/dev/ashmem" dev="tmpfs" ino=16996 scontext=u:r:untrusted_app:s0:c71,c257,c512,c768 tcontext=u:object_r:ashmem_device:s0 tclass=chr_file permissive=0
W/chromium: [WARNING:child_thread_impl.cc(644)] Browser failed to allocate shared memory
when i run this app on android 9 , all is ok. can you help me solve it , thanks!
What can be done to make IndexedDB work properly? IndexedDB data is not saved ...
@ks32 can you please help?
Hi, Mr Ks32, i want to know is CrosswalkNative project Support webrtc.h264 Hardware coding? thanks!
Dear ks32,
We have upgraded a device to Android 10 and we have noticed that the application crashes when we focus over input-box, textarea, etc.
With other Android versions the application works perfectly.
The exception is:
02-24 11:47:32.109 12906 12906 E AndroidRuntime: java.lang.NullPointerException: Attempt to read from field 'android.view.WindowManager$LayoutParams android.view.ViewRootImpl.mWindowAttributes' on a null object reference
02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.view.inputmethod.InputMethodManager.startInputInner(InputMethodManager.java:1625)
02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.view.inputmethod.InputMethodManager.checkFocus(InputMethodManager.java:1864)
02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.view.inputmethod.InputMethodManager.isActive(InputMethodManager.java:1183)
02-24 11:47:32.109 12906 12906 E AndroidRuntime: at org.chromium.content.browser.input.InputMethodManagerWrapper.isActive(InputMethodManagerWrapper.java:65)
02-24 11:47:32.109 12906 12906 E AndroidRuntime: at org.chromium.content.browser.input.ThreadedInputConnectionFactory$1.run(ThreadedInputConnectionFactory.java:179)
02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:883)
02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:100)
02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
02-24 11:47:32.109 12906 12906 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7403)
02-24 11:47:32.109 12906 12906 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-24 11:47:32.109 12906 12906 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
02-24 11:47:32.109 12906 12906 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
It seems that the issue is related with the keyboard show process.
Do you have any idea about this issue?
Thanks in advanced.
Hello Sir,
I currently using the Crosswalk with the embedded mode in my App. And In Android 10, The Crosswalk webView will crash and give me these errors when the crosswalk webview load any url. For the version below Android 10, the webView works perfectly fine. Looks like these Android Q changes had a big impact on the Crosswalk Webview. Could you give me some advice to solve it?
@ks32 may I know your email address, I can provide some fund contribution for this fix
Thanks
[ERROR:compositor_impl_android.cc(585)] Failed to init OutputSurface for compositor.
[ERROR:compositor_impl_android.cc(585)] Failed to init OutputSurface for compositor.
[FATAL:compositor_impl_android.cc(586)] Too many context creation failures. Giving up...
------- beginning of crash
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 13597 (treader.r2.main), pid 13597 (treader.r2.main)
Has anyone integrated this with cordova? I tried to, but I get "mismatched CPU architecture" when building.
Hi Mr ks32 , i pull the old deep_tool and can buid successfully, another problem is that h264 seems to be Baseline, how i can choose Main and High profiles in H264. thank you very much!
It crashes on both my ARM and x86 tablets. ( both on Android 4.4, one has ARM RK3188 SOC, the other has Intel Atom Z3735 SOC. )
From Android Studio logcat :
12-02 03:29:17.091 16579-16594/ks32.crosswalk_native D/XWalkLib: XWalk core version matched
12-02 03:29:17.101 16579-16594/ks32.crosswalk_native D/dalvikvm: DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_ABIS
12-02 03:29:17.101 16579-16594/ks32.crosswalk_native W/dalvikvm: VFY: unable to resolve static field 585 (SUPPORTED_ABIS) in Landroid/os/Build;
12-02 03:29:17.101 16579-16594/ks32.crosswalk_native D/dalvikvm: VFY: replacing opcode 0x62 at 0x0004
12-02 03:29:17.111 16579-16594/ks32.crosswalk_native W/dalvikvm: Exception Ljava/lang/RuntimeException; thrown while initializing Lorg/xwalk/core/internal/XWalkViewDelegate;
12-02 03:29:17.111 16579-16594/ks32.crosswalk_native D/dalvikvm: Method.invoke() on bad class Lorg/xwalk/core/internal/XWalkViewDelegate; failed
12-02 03:29:17.111 16579-16594/ks32.crosswalk_native W/dalvikvm: threadid=12: thread exiting with uncaught exception (group=0x4184eba8)
> 12-02 03:29:17.121 16579-16594/ks32.crosswalk_native E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
Process: ks32.crosswalk_native, PID: 16579
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.ExceptionInInitializerError
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61)
at org.xwalk.core.XWalkCoreWrapper.checkCoreArchitecture(XWalkCoreWrapper.java:349)
at org.xwalk.core.XWalkCoreWrapper.findEmbeddedCore(XWalkCoreWrapper.java:248)
at org.xwalk.core.XWalkCoreWrapper.attachXWalkCore(XWalkCoreWrapper.java:162)
at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:335)
at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:317)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.RuntimeException: Invalid reflection
at org.xwalk.core.internal.XWalkViewDelegate.(XWalkViewDelegate.java:71)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61)
at org.xwalk.core.XWalkCoreWrapper.checkCoreArchitecture(XWalkCoreWrapper.java:349)
at org.xwalk.core.XWalkCoreWrapper.findEmbeddedCore(XWalkCoreWrapper.java:248)
at org.xwalk.core.XWalkCoreWrapper.attachXWalkCore(XWalkCoreWrapper.java:162)
at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:335)
at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:317)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.NoSuchMethodException: getAssignedPackageIdentifiers []
at java.lang.Class.getConstructorOrMethod(Class.java:472)
at java.lang.Class.getMethod(Class.java:857)
at org.xwalk.core.internal.XWalkViewDelegate.(XWalkViewDelegate.java:69)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61)
at org.xwalk.core.XWalkCoreWrapper.checkCoreArchitecture(XWalkCoreWrapper.java:349)
at org.xwalk.core.XWalkCoreWrapper.findEmbeddedCore(XWalkCoreWrapper.java:248)
at org.xwalk.core.XWalkCoreWrapper.attachXWalkCore(XWalkCoreWrapper.java:162)
at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:335)
at org.xwalk.core.XWalkLibraryLoader$ActivateTask.doInBackground(XWalkLibraryLoader.java:317)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
12-02 03:29:17.141 493-768/system_process W/ActivityManager: Force finishing activity ks32.crosswalk_native/.MainActivity
12-02 03:29:17.151 16579-16579/ks32.crosswalk_native D/OpenGLRenderer: Enabling debug mode 0
Please at least tell me if the error comes from my part or if it is a bug in Crosswalk.
I reinstalled Android Studio and Java, redownloaded your project, even reseted my tablet, but I still get this error.
Hey. Tested your creation. It works fine on emulators. On a real device, android 5.1 application crashes when using WebAssembly and other tasks. The two most common mistakes are:
W/art: Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[31,tid=27028,Native,Thread*=0x93dc1800,peer=0x12c06280,"Thread-6669"]
A/art: art/runtime/thread.cc:1067] Native thread exited without calling DetachCurrentThread: Thread[31,tid=27028,Native,Thread*=0x93dc1800,peer=0x12c06280,"Thread-6669"]
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 27028 (Thread-6669)
I/XWalkWebResponseInternal.waitUntilReady(): Called [6690][Thread-6690]
I/XWalkWebResponseInternal.waitUntilReady(): Called [6658][Chrome_IOThread]
Called [6658][Chrome_IOThread]
Called [6658][Chrome_IOThread]
Called [6658][Chrome_IOThread]
Called [6658][Chrome_IOThread]
Called [6658][Chrome_IOThread]
Called [6658][Chrome_IOThread]
D/AudioTrackShared: front(0x12800), mIsOut 1, avail 2048, mFrameCount 4096, filled 2048
V/AudioTrack: obtainBuffer(2048) returned 2048 = 2048 + 0 err 0
D/AudioTrackShared: front(0x12800), mIsOut 1, avail 0, mFrameCount 4096, filled 4096
front(0x12800), mIsOut 1, avail 0, mFrameCount 4096, filled 4096
front(0x12800), mIsOut 1, obtainBuffer() FUTEX_WAIT
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xe12fff3c in tid 27394 (Chrome_InProcRe)
D/AudioTrackShared: front(0x13000), mIsOut 1, avail 2048, mFrameCount 4096, filled 2048
V/AudioTrack: obtainBuffer(2048) returned 2048 = 2048 + 0 err 0
D/AudioTrackShared: front(0x13000), mIsOut 1, avail 0, mFrameCount 4096, filled 4096
front(0x13000), mIsOut 1, avail 0, mFrameCount 4096, filled 4096
front(0x13000), mIsOut 1, obtainBuffer() FUTEX_WAIT
I/Choreographer: Skipped 86 frames! The application may be doing too much work on its main thread.
Please do not give up work. I believe in you that you can revive this project =) Sorry for my bad English.
Hi,
For my project, I need to put XWalkView's BackgroundColor transparent. Because I need to put two android views:
When the webview background is configured to be transparent, y can add HTML overlays to any video.
An workaround for solve this, use the xWalk API to control whether the XWalkView's surface is placed on top of its window using the setZOrderOnTop() function added in this commit crosswalk-project/crosswalk@2c1d050
The setZOrderOnTop() actually is not implemented.
Can you upload the source project for xwalk_main_fat-77.3.aar generation or add setZOrderOnTop() function to the ks32.crosswalk_native package ?
T
I use cordova-plugin-crosswalk-webview-v3 and this project‘s aar to change webview, but when I use the JavaScript API 'indexDB' interface 'store. openCursor()', the interface always get null.
This is my JavaScript code:
var db;
var request = window.indexedDB.open('xxxx', 1);
request.onsuccess=function(e){
db=e.target.result;
var store=db.transaction(['config'],'readwrite').objectStore('config');
var obj={};
store.openCursor().onsuccess=function(e){
var cursor=e.target.result;
console.log(cursor); // always null
if(cursor){
obj[cursor.key]=cursor.value;
cursor.continue();
} else {
console.log(obj);
}
}
}
Variable 'obj' is always an empty object, but when I use the 'put' operation of 'indexDB', the returned field 'type' is always' success'.
This is my JavaScript code:
var put = db.transaction(['config'],'readwrite').objectStore('config').put(['xxx'], 'extensions');
put.onsuccess = function(e){
console.log(e.type); // 'success'
};
So, when I discovered this issue, I first used the "put" code to confirm that the returned field "type" was "success", and then used "store. openCursor". However, I still only got null
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.