On 11/2/09 7:40 PM, Georgios Petasis wrote:
But I have a large problem: memory usage is increased by each page I load.
I have used valgrind to debug the memory usage, but nothing that
originates from code seems to be leaked. All leaked objects seem to have
been created inside mozilla libraries.

Have you considered creating a refcount log and seeing where the missing refcounts might be?

1) I have no history navigation. I can reload the current page, but I
cannot go back/forward.

Did you enable session history on your nsIWebBrowser?

WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file
/home/backup_disk/petasis/TkGecko/mozilla-central/toolkit/components/places/src/nsNavHistory.cpp,
line 600
WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: file
/home/backup_disk/petasis/TkGecko/mozilla-central/toolkit/components/places/src/nsNavHistory.cpp,
line 472
WARNING: EnableGlobalHistory() failed: 'NS_SUCCEEDED(rv)', file
/home/backup_disk/petasis/TkGecko/mozilla-central/embedding/browser/webBrowser/nsWebBrowser.cpp,
line 1213

How can I fix this?

Actually have a profile.  Those are failures to get the profile directory.

2) When the application exits, there is a long list of leaked urls. How
can I free them, so as not to get leaked?

That's the same as the very first issue you mentioned. The answer depends on why they're being leaked.
3) During exit, I get an abort:

ABORT: imgCacheEntry release isn't thread-safe!:
'_mOwningThread.GetThread() == PR_GetCurrentThread()', file
/home/backup_disk/petasis/TkGecko/mozilla-central/modules/libpr0n/src/imgLoader.h,
line 81
UNKNOWN
[/home/backup_disk/petasis/TkGecko/mozilla-central/obj-xulrunner-d/dist/bin/libxul.so
+0x004C314D]

That indicates that you're shutting down the image cache from a non-main thread. Don't do that.

I think that I have forgot something (what?) that relates to
navigation/cache, and the application keeps everything in memory. Is
this possible?

Unlikely; there are limits on how much is kept in memory...

http://tkgecko.svn.sourceforge.net/viewvc/tkgecko/tkgecko/src/

Which thread do the GetProxyFor* functions in http://tkgecko.svn.sourceforge.net/viewvc/tkgecko/tkgecko/src/TkGecko_Browser.cpp?revision=19&view=markup run on?

-Boris

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to