简体   繁体   English

在输入文本上键入时,带有XWalkView的Android App崩溃

[英]Android App with XWalkView crash when typing on input text

I'm getting stuck at this bug with xwalkview. 我被xwalkview卡住了。 Please help me to point out the problem. 请帮助我指出问题所在。 Thank you. 谢谢。 I'm using xwalkview to implementing a webview. 我正在使用xwalkview来实现Webview。 But when I type on an input text view(in the webview), my app crash. 但是,当我在输入文本视图(在Web视图中)上键入内容时,我的应用程序崩溃了。 Here is my log 这是我的日志

E/chromium: [ERROR:xwalk_platform_notification_service.cc(143)] Not implemented reached in virtual bool xwalk::XWalkPlatformNotificationService::GetDisplayedPersistentNotifications(content::BrowserContext*, std::__1::set, std::__1::allocator > >*) E/chromium: [ERROR:xwalk_browser_context.cc(88)] Failed to read preference, error num: 0 I/art: Rejecting re-init on previously-failed class java.lang.Class I/art: Rejecting re-init on previously-failed class java.lang.Class I/art: Background sticky concurrent mark sweep GC freed 22791(1660KB) AllocSpace objects, 17(267KB) LOS objects, 4% free, 41MB/43MB, paused 7.697ms total 51.375ms W/art: Attempt to remove local handle scope entry from IRT, ignoring W/ContextImpl: Failed to ensure directory: /storage/sdcard1/Android/data/fm.app.shipper.android.debug/cache I/View: ssignParent(ViewParent parent) parent is: android.view.ViewRootImpl@795fcab I/Choreographer: Skipped 58 frames! E /铬:[ERROR:xwalk_platform_notification_service.cc(143)]在虚拟bool中未实现xwalk :: XWalkPlatformNotificationService :: GetDisplayedPersistentNotifications(content :: BrowserContext *,std :: __ 1 :: set,std :: __ 1 :: allocator> > *)E /铬:[ERROR:xwalk_browser_context.cc(88)]无法读取首选项,错误编号:0 I / art:拒绝对先前失败的类java.lang.Class I / art进行重新初始化-先前失败的类java.lang.Class I / art上的-init:释放了背景粘性并发标记清除GC 22791(1660KB)AllocSpace对象,17(267KB)LOS对象,4%空闲,41MB / 43MB,暂停7.697ms,总计51.375 ms W / art:尝试从IRT删除本地句柄作用域条目,而忽略W / ContextImpl:无法确保目录:/storage/sdcard1/Android/data/fm.app.shipper.android.debug/cache I / View:ssignParent (ViewParent父级)父级是:android.view.ViewRootImpl@795fcab I /编排:跳过了58帧! The application may be doing too much work on its main thread. 该应用程序可能在其主线程上做太多工作。 W/art: Attempt to remove local handle scope entry from IRT, ignoring E/WifiManager: WifiServiceMessenger == null E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY) I/View: ssignParent(ViewParent parent) parent is: android.view.ViewRootImpl@1b0c497c I/View: ssignParent(ViewParent parent) parent is: null I/View: ssignParent(ViewParent parent) parent is: null I/cr_Ime: ImeThread is not enabled. W / art:尝试从IRT删除本地句柄作用域条目,而忽略E / WifiManager:WifiServiceMessenger == null E / libEGL:validate_display:255错误3008(EGL_BAD_DISPLAY)I / View:ssignParent(ViewParent父对象)父级是:android.view .ViewRootImpl @ 1b0c497c I / View:ssignParent(ViewParent父级)父级是:null I / View:ssignParent(ViewParent父级)父级是:null I / cr_Ime:未启用ImeThread。 I/chromium: [INFO:xwalk_extension_renderer_controller.cc(43)] EXTENSION PROCESS DISABLED. I /铬:[INFO:xwalk_extension_renderer_controller.cc(43)]扩展过程已禁用。 W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app/fm.app.shipper.android.debug-1/lib/arm/libxwalkcore.so': couldn't get XW_Initialize function. W /铬:[警告:xwalk_external_extension.cc(58)]加载扩展名'/data/app/fm.app.shipper.android.debug-1/lib/arm/libxwalkcore.so'时出错:无法获取XW_Initialize函数。 W/chromium: [WARNING:xwalk_extension_server.cc(406)] Failed to initialize extension: /data/app/fm.app.shipper.android.debug-1/lib/arm/libxwalkcore.so W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app/fm.app.shipper.android.debug-1/lib/arm/libxwalkdummy.so': couldn't get XW_Initialize function. W / chromium:[警告:xwalk_extension_server.cc(406)]无法初始化扩展名:/data/app/fm.app.shipper.android.debug-1/lib/arm/libxwalkcore.so W / chromium:[警告: xwalk_external_extension.cc(58)]加载扩展'/data/app/fm.app.shipper.android.debug-1/lib/arm/libxwalkdummy.so'时出错:无法获得XW_Initialize函数。 W/chromium: [WARNING:xwalk_extension_server.cc(406)] Failed to initialize extension: /data/app/fm.app.shipper.android.debug-1/lib/arm/libxwalkdummy.so W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 23374 W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ### W/google-breakpad: Chrome build fingerprint: W/google-breakpad: 1.0.4 W/google-breakpad: 5 W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ### A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 24051 (Chrome_InProcRe) Application terminated. W /铬:[警告:xwalk_extension_server.cc(406)]无法初始化扩展名:/data/app/fm.app.shipper.android.debug-1/lib/arm/libxwalkdummy.so W / cr_BindingManager:无法调用确定的可见性()-从未见过pid的连接:23374 W / google-breakpad:### ### ### ### ### ### ### ### ### ### ## #### ### W / google-breakpad:Chrome构建指纹:W / google-breakpad:1.0.4 W / google-breakpad:5 W / google-breakpad:### ### ### ## #### ### ### ### ### ### ### ### ### A / libc:致命信号11(SIGSEGV),代码1,tid 24051中的故障地址0x0(Chrome_InProcRe )应用程序终止。

I did find a workaround with this temporary fix: 我确实找到了此临时修复的解决方法:

If you have admob code in your project, please remove it completely, then the keyboard will not crash 如果您的项目中包含admob代码,请完全将其删除,这样键盘就不会崩溃

Note: this is temporary fix. 注意:这是临时修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM