WebKitGTK webkit_web_view 中的 Ext JS
Posted
技术标签:
【中文标题】WebKitGTK webkit_web_view 中的 Ext JS【英文标题】:Ext JS in a WebKitGTK webkit_web_view 【发布时间】:2011-08-28 14:29:23 【问题描述】:我正在尝试将 Web 浏览器嵌入到 gtk 项目中。我正在尝试使用 WebKitGTK(但我不致力于它),每次我尝试使用它来解析 Ext JS 页面时,它都会使整个应用程序崩溃。这是输出,以及我如何包含 .js 文件...
** (ttocui_gtk:16360): DEBUG: NP_Initialize
** (ttocui_gtk:16360): DEBUG: NP_Initialize succeeded
** (ttocui_gtk:16360): DEBUG: NP_Initialize
** (ttocui_gtk:16360): DEBUG: NP_Initialize succeeded
** (ttocui_gtk:16360): DEBUG: NP_Initialize
** (ttocui_gtk:16360): DEBUG: NP_Initialize succeeded
** (ttocui_gtk:16360): DEBUG: NP_Initialize
** (ttocui_gtk:16360): DEBUG: NP_Initialize succeeded
** (ttocui_gtk:16360): DEBUG: NP_Initialize
** (ttocui_gtk:16360): DEBUG: NP_Initialize succeeded
** (ttocui_gtk:16360): DEBUG: NP_Initialize
** (ttocui_gtk:16360): DEBUG: NP_Initialize succeeded
** (ttocui_gtk:16360): DEBUG: NP_Initialize
** (ttocui_gtk:16360): DEBUG: NP_Initialize succeeded
** (ttocui_gtk:16360): DEBUG: NP_Initialize
** (ttocui_gtk:16360): DEBUG: NP_Initialize succeeded
(ttocui_gtk:16360): GLib-CRITICAL **: g_hash_table_foreach: assertion `hash_table != NULL' failed
(ttocui_gtk:16360): GLib-CRITICAL **: g_hash_table_insert_internal: assertion `hash_table != NULL' failed
(ttocui_gtk:16360): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed
*** NSPlugin Wrapper *** ERROR: no valid NPP -> PluginInstance mapping found
(ttocui_gtk:16360): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed
*** NSPlugin Wrapper *** ERROR: no valid NPP -> PluginInstance mapping found
(ttocui_gtk:16360): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed
(ttocui_gtk:16360): GLib-CRITICAL **: g_hash_table_insert_internal: assertion `hash_table != NULL' failed
(ttocui_gtk:16360): GLib-CRITICAL **: g_hash_table_insert_internal: assertion `hash_table != NULL' failed
(ttocui_gtk:16360): GLib-CRITICAL **: g_hash_table_find: assertion `hash_table != NULL' failed
(ttocui_gtk:16360): GLib-CRITICAL **: g_hash_table_insert_internal: assertion `hash_table != NULL' failed
(ttocui_gtk:16360): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed
*** NSPlugin Wrapper *** ERROR: no valid NPP -> PluginInstance mapping found
(ttocui_gtk:16360): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed
ttocui_gtk: /build/buildd/nspluginwrapper-1.2.2/src/npw-rpc.c:1225: do_recv_NPObject: Assertion `npobj != ((void *)0)' failed.
*** NSPlugin Viewer *** ERROR: NPN_GetProperty() wait for reply: Connection reset by peer
*** NSPlugin Viewer *** WARNING:(/build/buildd/nspluginwrapper-1.2.2/src/npw-viewer.c:898):invoke_NPN_GetValue: assertion failed: (rpc_method_invoke_possible(g_rpc_connection))
Aborted
*** NSPlugin Viewer *** WARNING: unhandled variable 18 (<unknown variable>) in NPN_GetValue()
*** NSPlugin Viewer *** WARNING:(/build/buildd/nspluginwrapper-1.2.2/src/npw-viewer.c:898):invoke_NPN_GetValue: assertion failed:(rpc_method_invoke_possible(g_rpc_connection))
.js 文件...
<link rel="stylesheet" type="text/css" href="/ext3.2.1/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="/ext3.2.1/resources/css/xtheme-access.css"/>
<script type="text/javascript" src="/ext3.2.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="/ext3.2.1/ext-all-debug.js"></script>
任何建议都会很棒,这真的是我剩下的唯一障碍。谢谢!
【问题讨论】:
(我在你的另一个线程上发布了这个,为了完整起见,我会重复一遍),对不起,我在美国东海岸,目前没有电。我的上网时间有限。从我看到的你的错误来看,它们来自 nspluginwrapper,你是嵌入 flash 还是什么? 还有一件事,“崩溃”是什么意思?你能得到一个堆栈跟踪吗? 感谢您的回复。原来这是一个Ubuntu问题。我在他们的错误跟踪网站上发布了带有堆栈跟踪的错误报告。所以是的,我有一个带有堆栈跟踪的核心转储。我仍然无法查看几个 Ext JS 页面,但我认为这只是一个 webkit 问题。再次感谢您的支持,祝您好运。 【参考方案1】:这是我使用的 flash 插件的 Ubuntu 问题。这是堆栈跟踪。
Program received signal SIGABRT, Aborted.
0x00007ffff159cd05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) where
#0 0x00007ffff159cd05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff15a0ab6 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff15957c5 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007fffe03974d9 in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#4 0x00007fffe039bfef in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#5 0x00007fffe039ca1d in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#6 0x00007fffe039cf1b in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#7 0x00007fffe039154b in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#8 0x00007fffe039ac75 in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#9 0x00007fffe039ae67 in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#10 0x00007fffe039c5f1 in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#11 0x00007fffe039cfcf in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#12 0x00007fffe0395d61 in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#13 0x00007ffff57e1cc9 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#14 0x00007ffff57e23eb in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#15 0x00007ffff57be586 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#16 0x00007ffff58cc667 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#17 0x00007ffff58ccd07 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#18 0x00007ffff5894ee7 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#19 0x00007ffff56ec2fd in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#20 0x00007ffff56ec7ac in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#21 0x00007ffff55c705b in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#22 0x00007ffff57397bf in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#23 0x00007ffff573b756 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#24 0x00007ffff573b8b9 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#25 0x00007ffff573c3a8 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#26 0x00007ffff544fc38 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#27 0x00007ffff55c57ed in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#28 0x00007ffff55cbbf1 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#29 0x00007ffff5357fa6 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#30 0x00007ffff5358193 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#31 0x00007ffff53584c4 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#32 0x00007ffff5c0e559 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#33 0x00007ffff5f03766 in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#34 0x00007ffff5f01bcf in ?? () from /usr/lib/libwebkitgtk-3.0.so.0
#35 0x00007fffe5526d10 in ?? ()
#36 0x0000000000000000 in ?? ()
【讨论】:
你在哪里找到那个堆栈跟踪...你是怎么解决这个问题的? 对不起,如果还不算太晚,这是一个 gdb 跟踪。我相信我刚刚卸载了 flash 插件。以上是关于WebKitGTK webkit_web_view 中的 Ext JS的主要内容,如果未能解决你的问题,请参考以下文章
全志 Tina Linux 图形系统 框架介绍 最全介绍 MiniGUIQT5EFLGTK+(WebkitGtkMidori)DirectFBWayland
全志 Tina Linux 图形系统 框架介绍 最全介绍 MiniGUIQT5EFLGTK+(WebkitGtkMidori)DirectFBWayland
全志 Tina Linux 图形系统 框架介绍 最全介绍 MiniGUIQT5EFLGTK+(WebkitGtkMidori)DirectFBWayland