Re: [webkit-dev] WebKitGtk app memory leaks , please help

2010-11-04 Thread Antonio Gomes
As far as I know you can not listen for DOM event using QWebElement.

On Wed, Nov 3, 2010 at 4:44 PM, Xan Lopez x...@gnome.org wrote:
 On Wed, Nov 3, 2010 at 1:20 PM, Fedor Kryukov y...@mail.ru wrote:

 Thanks,

 As I understand this is a WebkitGtk bug only?
 So I can temporarily switch to QT WebKit to avoid leaks?


 Possibly, but I don't know, you should ask them.

 Also, both bindings are not equally feature-complete (I believe in
 general the GTK+ ones have more features), so you'll have to be
 careful with that too.

 Xan


 Xan Lopez-3 wrote:

 On Wed, Nov 3, 2010 at 7:52 AM, Fedor Kryukov y...@mail.ru wrote:

 After calling webkit_web_view_get_dom_document() and similar functions (
 webkit_dom... * ) memory is not freed, what am I doing wrong?

 I wrote simple application which handle events (
 load-started/load-finished/etc ) and make some changes in loaded page DOM
 content, so after loading several pages I have a lot of lost memory, no
 idea
 how to release it.

 I tried to use g_object_unref, but it destroys something..
 --
 View this message in context:
 http://old.nabble.com/WebKitGtk-app-memory-leaks-%2C-please-help-tp30121202p30121202.html
 Sent from the Webkit mailing list archive at Nabble.com.

 The memory management of the GObject DOM bindings is still a work in
 progress (unfortunately!). We are trying to figure the best to
 automatically collect them, but for now you are correct in saying that
 they are essentially leaked until the process is over.

 See https://bugs.webkit.org/show_bug.cgi?id=40302 for some discussion
 on the topic. Our plan is to have this issue resolved before the next
 stable release in April.

 Xan


 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

 ___
 webkit-dev mailing list
 webkit-dev@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-tp30121202p30126515.html
 Sent from the Webkit mailing list archive at Nabble.com.

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev




-- 
--Antonio Gomes
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] WebKitGtk app memory leaks , please help

2010-11-03 Thread Fedor Kryukov

After calling webkit_web_view_get_dom_document() and similar functions (
webkit_dom... * ) memory is not freed, what am I doing wrong?

I wrote simple application which handle events (
load-started/load-finished/etc ) and make some changes in loaded page DOM
content, so after loading several pages I have a lot of lost memory, no idea
how to release it.

I tried to use g_object_unref, but it destroys something..
-- 
View this message in context: 
http://old.nabble.com/WebKitGtk-app-memory-leaks-%2C-please-help-tp30121202p30121202.html
Sent from the Webkit mailing list archive at Nabble.com.

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] WebKitGtk app memory leaks , please help

2010-11-03 Thread Holger Freyther
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@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] WebKitGtk app memory leaks , please help

2010-11-03 Thread Fedor Kryukov

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::VectorWebCore::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::PassRefPtrWebCore::Event) ()
   from /usr/lib/libwebkitgtk-1.0.so.0
#8  0x00840913 in
WebCore::Node::dispatchEvent(WTF::PassRefPtrWebCore::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::PassRefPtrWebCore::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@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.

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] WebKitGtk app memory leaks , please help

2010-11-03 Thread Xan Lopez
On Wed, Nov 3, 2010 at 7:52 AM, Fedor Kryukov y...@mail.ru wrote:

 After calling webkit_web_view_get_dom_document() and similar functions (
 webkit_dom... * ) memory is not freed, what am I doing wrong?

 I wrote simple application which handle events (
 load-started/load-finished/etc ) and make some changes in loaded page DOM
 content, so after loading several pages I have a lot of lost memory, no idea
 how to release it.

 I tried to use g_object_unref, but it destroys something..
 --
 View this message in context: 
 http://old.nabble.com/WebKitGtk-app-memory-leaks-%2C-please-help-tp30121202p30121202.html
 Sent from the Webkit mailing list archive at Nabble.com.

The memory management of the GObject DOM bindings is still a work in
progress (unfortunately!). We are trying to figure the best to
automatically collect them, but for now you are correct in saying that
they are essentially leaked until the process is over.

See https://bugs.webkit.org/show_bug.cgi?id=40302 for some discussion
on the topic. Our plan is to have this issue resolved before the next
stable release in April.

Xan


 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] WebKitGtk app memory leaks , please help

2010-11-03 Thread Fedor Kryukov

Thanks,

As I understand this is a WebkitGtk bug only? 
So I can temporarily switch to QT WebKit to avoid leaks?


Xan Lopez-3 wrote:
 
 On Wed, Nov 3, 2010 at 7:52 AM, Fedor Kryukov y...@mail.ru wrote:

 After calling webkit_web_view_get_dom_document() and similar functions (
 webkit_dom... * ) memory is not freed, what am I doing wrong?

 I wrote simple application which handle events (
 load-started/load-finished/etc ) and make some changes in loaded page DOM
 content, so after loading several pages I have a lot of lost memory, no
 idea
 how to release it.

 I tried to use g_object_unref, but it destroys something..
 --
 View this message in context:
 http://old.nabble.com/WebKitGtk-app-memory-leaks-%2C-please-help-tp30121202p30121202.html
 Sent from the Webkit mailing list archive at Nabble.com.
 
 The memory management of the GObject DOM bindings is still a work in
 progress (unfortunately!). We are trying to figure the best to
 automatically collect them, but for now you are correct in saying that
 they are essentially leaked until the process is over.
 
 See https://bugs.webkit.org/show_bug.cgi?id=40302 for some discussion
 on the topic. Our plan is to have this issue resolved before the next
 stable release in April.
 
 Xan
 

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

 ___
 webkit-dev mailing list
 webkit-dev@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-tp30121202p30126515.html
Sent from the Webkit mailing list archive at Nabble.com.

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] WebKitGtk app memory leaks , please help

2010-11-03 Thread Xan Lopez
On Wed, Nov 3, 2010 at 1:20 PM, Fedor Kryukov y...@mail.ru wrote:

 Thanks,

 As I understand this is a WebkitGtk bug only?
 So I can temporarily switch to QT WebKit to avoid leaks?


Possibly, but I don't know, you should ask them.

Also, both bindings are not equally feature-complete (I believe in
general the GTK+ ones have more features), so you'll have to be
careful with that too.

Xan


 Xan Lopez-3 wrote:

 On Wed, Nov 3, 2010 at 7:52 AM, Fedor Kryukov y...@mail.ru wrote:

 After calling webkit_web_view_get_dom_document() and similar functions (
 webkit_dom... * ) memory is not freed, what am I doing wrong?

 I wrote simple application which handle events (
 load-started/load-finished/etc ) and make some changes in loaded page DOM
 content, so after loading several pages I have a lot of lost memory, no
 idea
 how to release it.

 I tried to use g_object_unref, but it destroys something..
 --
 View this message in context:
 http://old.nabble.com/WebKitGtk-app-memory-leaks-%2C-please-help-tp30121202p30121202.html
 Sent from the Webkit mailing list archive at Nabble.com.

 The memory management of the GObject DOM bindings is still a work in
 progress (unfortunately!). We are trying to figure the best to
 automatically collect them, but for now you are correct in saying that
 they are essentially leaked until the process is over.

 See https://bugs.webkit.org/show_bug.cgi?id=40302 for some discussion
 on the topic. Our plan is to have this issue resolved before the next
 stable release in April.

 Xan


 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

 ___
 webkit-dev mailing list
 webkit-dev@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-tp30121202p30126515.html
 Sent from the Webkit mailing list archive at Nabble.com.

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev