|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Memory usage: 4MB per page?Hi all,
I am trying to embed mozila inside a C application, and in general I have succeeded to a large degree. 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. Here is the log the debug build of xul runner (compiled from sources) writes on the terminal: http://www.ellogon.org/~petasis/sync3/mozilla-debug-log.txt What puzzles me, are the following issues: 1) I have no history navigation. I can reload the current page, but I cannot go back/forward. In the log I see warnings like the following: WARNING: NS_ENSURE_TRUE(compMgr) failed: file nsComponentManagerUtils.cpp, line 90 WARNING: NS_ENSURE_TRUE(compMgr) failed: file nsComponentManagerUtils.cpp, line 90 WARNING: NS_ENSURE_TRUE(compMgr) failed: file nsComponentManagerUtils.cpp, line 90 pldhash: for the table at address 0xb657c520, the given entrySize of 48 probably favors chaining over double hashing. pldhash: for the table at address 0xb64966e8, the given entrySize of 48 probably favors chaining over double hashing. 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? 2) When the application exits, there is a long list of leaked urls. How can I free them, so as not to get leaked? Is there a way to reset everything after I load a single url? To release the history and cache, and throw everything away? 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] I think that I have forgot something (what?) that relates to navigation/cache, and the application keeps everything in memory. Is this possible? I would appreciate any help, as I am trying to debug this memory issue for two weeks now, with little success. The code can be found here: http://tkgecko.svn.sourceforge.net/viewvc/tkgecko/tkgecko/src/ Regards, George _______________________________________________ dev-embedding mailing list dev-embedding@... https://lists.mozilla.org/listinfo/dev-embedding |
| Free embeddable forum powered by Nabble | Forum Help |