[webkit-dev] WebKitGtk app memory leaks , please help
Fedor Kryukov
ynxx at mail.ru
Wed Nov 3 08:38:34 PDT 2010
I'm not sure is this a bug or my fail )
So this is diff to GtkLauncher ( webkitgtk 1.3.5 )
http://old.nabble.com/file/p30123917/main.diff main.diff
its very simple. So when I use it with page which reloads fast I can see
that it start to eat memory until swap is finished and app fails.
I tried to add g_object_unref( document ); and it helps, but after some
mouse movements over page app crashed and GDB shows this
Program terminated with signal 11, Segmentation fault.
#0 0x00457bb8 in g_type_interfaces () from /usr/lib/libgobject-2.0.so.0
(gdb) bt
#0 0x00457bb8 in g_type_interfaces () from /usr/lib/libgobject-2.0.so.0
#1 0x0044ca07 in ?? () from /usr/lib/libgobject-2.0.so.0
#2 0x004531e8 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#3 0x006c55e1 in
WebCore::GObjectEventListener::handleEvent(WebCore::ScriptExecutionContext*,
WebCore::Event*)
() from /usr/lib/libwebkitgtk-1.0.so.0
#4 0x0082ff35 in WebCore::EventTarget::fireEventListeners(WebCore::Event*,
WebCore::EventTargetData*, WTF::Vector<WebCore::RegisteredEventListener,
1u>&) () from /usr/lib/libwebkitgtk-1.0.so.0
#5 0x008305c7 in WebCore::EventTarget::fireEventListeners(WebCore::Event*)
()
from /usr/lib/libwebkitgtk-1.0.so.0
#6 0x0083e652 in WebCore::Node::handleLocalEvents(WebCore::Event*) () from
/usr/lib/libwebkitgtk-1.0.so.0
#7 0x00840762 in
WebCore::Node::dispatchGenericEvent(WTF::PassRefPtr<WebCore::Event>) ()
from /usr/lib/libwebkitgtk-1.0.so.0
#8 0x00840913 in
WebCore::Node::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) ()
from /usr/lib/libwebkitgtk-1.0.so.0
#9 0x008428c7 in WebCore::Node::dispatchMouseEvent(WTF::AtomicString
const&, int, int, int, int, int, int, bool, bool, bool, bool, bool,
WebCore::Node*, WTF::PassRefPtr<WebCore::Event>) ()
from /usr/lib/libwebkitgtk-1.0.so.0
#10 0x00842de0 in
WebCore::Node::dispatchMouseEvent(WebCore::PlatformMouseEvent const&,
WTF::AtomicString const&, int, WebCore::Node*) () from
/usr/lib/libwebkitgtk-1.0.so.0
#11 0x00abdc4b in
WebCore::EventHandler::updateMouseEventTargetNode(WebCore::Node*,
WebCore::PlatformMouseEvent const&, bool) () from
/usr/lib/libwebkitgtk-1.0.so.0
#12 0x00abe123 in
WebCore::EventHandler::dispatchMouseEvent(WTF::AtomicString const&,
WebCore::Node*, bool, int, WebCore::PlatformMouseEvent const&, bool) () from
/usr/lib/libwebkitgtk-1.0.so.0
#13 0x00abf8ab in
WebCore::EventHandler::handleMouseMoveEvent(WebCore::PlatformMouseEvent
const&, WebCore::HitTestResult*) () from /usr/lib/libwebkitgtk-1.0.so.0
#14 0x00abfc73 in
WebCore::EventHandler::mouseMoved(WebCore::PlatformMouseEvent const&) ()
from /usr/lib/libwebkitgtk-1.0.so.0
#15 0x00e1e6d9 in webkit_web_view_motion_event(_GtkWidget*,
_GdkEventMotion*) ()
from /usr/lib/libwebkitgtk-1.0.so.0
#16 0x084d9424 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#17 0x0043b8b9 in ?? () from /usr/lib/libgobject-2.0.so.0
#18 0x0043d252 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#19 0x004515e6 in ?? () from /usr/lib/libgobject-2.0.so.0
#20 0x00452c33 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#21 0x00453256 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#22 0x08606636 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#23 0x084d1a5d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#24 0x084d2e07 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x0016639a in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#26 0x03e945e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#27 0x03e982d8 in ?? () from /lib/libglib-2.0.so.0
#28 0x03e98817 in g_main_loop_run () from /lib/libglib-2.0.so.0
#29 0x084d33c9 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#30 0x080493aa in main ()
Holger Freyther-6 wrote:
>
> On 11/03/2010 03:52 PM, Fedor Kryukov wrote:
>>
>> After calling webkit_web_view_get_dom_document() and similar functions (
>> webkit_dom... * ) memory is not freed, what am I doing wrong?
>>
>
> Can you provide us with a simple test application, open a bug, attach the
> test
> case to that?
>
> thanks
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
--
View this message in context: http://old.nabble.com/WebKitGtk-app-memory-leaks-%2C-please-help-tp30121202p30123917.html
Sent from the Webkit mailing list archive at Nabble.com.
More information about the webkit-dev
mailing list