You are not logged in.

#1 2005-01-11 04:11:37

celeron2002
Member
From: Santiago, Chile.
Registered: 2004-02-18
Posts: 150

firefox+gtk2.6= memory leak

i have just upgraded gtk 2.6, and when firefox cannot connect to some site,all my RAM  and all my swap are full and i must kill X   :evil:  :evil:  :evil:


irc.bsd.cl #linux
irc.freenode.org #archlinux-es

Offline

#2 2005-01-12 00:07:47

qwerty
Member
Registered: 2004-12-17
Posts: 183

Re: firefox+gtk2.6= memory leak

mmmh.. i don't know if it's related either to gtk2.6 or kernel 2.6.10, anyway now firefox crash every time try to watch a lot of website that i usually watched before giving me:

/opt/mozilla-firefox/lib/firefox-1.0/run-mozilla.sh: line 159:  3742 Segmentation fault      "$prog" ${1+"$@"}

[/code]

Offline

#3 2005-01-12 00:11:40

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: firefox+gtk2.6= memory leak

qwerty wrote:

mmmh.. i don't know if it's related either to gtk2.6 or kernel 2.6.10, anyway now firefox crash every time try to watch a lot of website that i usually watched before giving me:

/opt/mozilla-firefox/lib/firefox-1.0/run-mozilla.sh: line 159:  3742 Segmentation fault      "$prog" ${1+"$@"}

This issue is caused by upgrading your freetype2 library. I had the same problem and building the old freetype2 from abs and installing it fixed the issue.

As for the memory leaks, it's now well known around this forum that people are having problems with gtk 2.6 and similar situations to what you describe. I'm not sure if it's an Arch issue or just a gtk issue.

Offline

#4 2005-01-12 21:32:22

celeron2002
Member
From: Santiago, Chile.
Registered: 2004-02-18
Posts: 150

Re: firefox+gtk2.6= memory leak

i recompiled firefox with abs's pkgbuilds, and the memory leak dissapeared   lol  lol


irc.bsd.cl #linux
irc.freenode.org #archlinux-es

Offline

#5 2005-01-13 00:47:46

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: firefox+gtk2.6= memory leak

plz bug report this

Offline

#6 2005-01-13 07:05:40

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: firefox+gtk2.6= memory leak

celeron2002 wrote:

i recompiled firefox with abs's pkgbuilds, and the memory leak dissapeared   lol  lol

There might be an unspotted dependency, or.. something firefox uses (not as a dependency) which makes your system unstable while others' don't. Maybe you could check pacman.log to see what you upgraded/installed just before firefox started eating up memory...

... or.. it could just be GTK leaking...

Offline

#7 2005-01-13 12:44:03

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: firefox+gtk2.6= memory leak

i'm running jgc' firefox and latest gtk and don't have any problems,


arch + gentoo + initng + python = enlisy

Offline

#8 2005-01-13 15:04:25

Insight_45
Member
Registered: 2004-12-13
Posts: 40

Re: firefox+gtk2.6= memory leak

celeron2002 wrote:

i recompiled firefox with abs's pkgbuilds, and the memory leak dissapeared   lol  lol

Could I ask what are the steps for the recompilation .

ADDITION: Sorry, I just found out about the sticky into the Making Packages forum.
I recompiled and still get the "run-mozilla.sh: line 159:  3742 Segmentation fault      "$prog" ${1+"$@"}" problem

Offline

#9 2005-01-13 16:44:08

qwerty
Member
Registered: 2004-12-17
Posts: 183

Re: firefox+gtk2.6= memory leak

MMH, i've had the same problem, i've read somewhere that's because of missingf line in /etc/ld.so.conf , something like /opt/mozilla-firefox/lib , but i haven't tried it because i'm actually using opera that's smaller and faster... you can try either to add that line and run ldconfig or install opera.

Bye

Offline

#10 2005-01-13 17:14:16

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: firefox+gtk2.6= memory leak

qwerty wrote:

MMH, i've had the same problem, i've read somewhere that's because of missingf line in /etc/ld.so.conf , something like /opt/mozilla-firefox/lib , but i haven't tried it because i'm actually using opera that's smaller and faster... you can try either to add that line and run ldconfig or install opera.

Bye

that was me....
http://bbs.archlinux.org/viewtopic.php?t=9177

that's an issue... but not entirely it on my machine....

can I asked for cases when you get the termination... if at all possible, is anyone willing tor ecompile firefox with debug enabled...?

Offline

#11 2005-01-13 17:42:33

Insight_45
Member
Registered: 2004-12-13
Posts: 40

Re: firefox+gtk2.6= memory leak

I just learned that you can run firefox with the -g option.

It turned out that gdb says:
...
(no debugging symbols found)
....
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218730304 (LWP 26088)]
0xb5e6c2b6 in nsHTMLReflowState::UseComputedHeight () from /opt/mozilla-firefox/lib/firefox-1.0/components/libgklayout.so

So is it GTK th problem, from libgklayout.so ?

Offline

#12 2005-01-13 18:28:13

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: firefox+gtk2.6= memory leak

Insight_45 wrote:

I just learned that you can run firefox with the -g option.

It turned out that gdb says:
...
(no debugging symbols found)
....
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218730304 (LWP 26088)]
0xb5e6c2b6 in nsHTMLReflowState::UseComputedHeight () from /opt/mozilla-firefox/lib/firefox-1.0/components/libgklayout.so

So is it GTK th problem, from libgklayout.so ?

hmmm mine is a different error... mine dies with SIG33...

Offline

#13 2005-01-13 18:36:03

Insight_45
Member
Registered: 2004-12-13
Posts: 40

Re: firefox+gtk2.6= memory leak

I just did a package recompilation. I can try with the debug option but could someone point to me where / what I should change for it to be a debud version

Offline

#14 2005-01-13 19:00:40

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: firefox+gtk2.6= memory leak

in abs, go to the mozilla-firefox directory, and edit the "mozconfig" file.... switch "--disable-debug" to say "--enable-debug"

Offline

#15 2005-01-13 21:04:09

Insight_45
Member
Registered: 2004-12-13
Posts: 40

Re: firefox+gtk2.6= memory leak

Thanks very much.

Here is the result, I started then tried to go to www.radioshack.ca/, clicked on a language and crash:

*** Registering nsBrowserCompsModule components (all right -- a generic module!)
nsNativeComponentLoader: autoregistering succeeded
[New Thread -1259160656 (LWP 28639)]
nNCL: registering deferred (0)
nNCL: registering deferred (0)
nNCL: registering deferred (0)
GFX: dpi=92 t2p=0,0625 p2t=16 depth=24
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
++WEBSHELL == 1
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsPermissionManager.cpp, line 623
[New Thread -1268126800 (LWP 28640)]
[New Thread -1276523600 (LWP 28641)]
++DOMWINDOW == 1
++WEBSHELL == 2
++DOMWINDOW == 2
/opt/mozilla-firefox/lib/firefox-1.0/chrome/en-US.jar mtime changed, invalidating FastLoad file
Note: styleverifytree is disabled
Note: frameverifytree is disabled
WARNING: the property eo already exists
, file nsPersistentProperties.cpp, line 282
Note: verifyreflow is disabled
[New Thread -1285370960 (LWP 28642)]
WARNING: GetDefaultCharsetForLocale: need to add multi locale support, file nsUNIXCharset.cpp, line 189
WARNING: GetDefaultCharsetForLocale: need to add multi locale support, file nsUNIXCharset.cpp, line 189
++WEBSHELL == 3
++DOMWINDOW == 3
(no debugging symbols found)
[New Thread -1293984848 (LWP 28643)]
[New Thread -1302377552 (LWP 28644)]
(no debugging symbols found)
++WEBSHELL == 4
++DOMWINDOW == 4
frame: DocElementBox(dialog)(-1) (0x8726858) style: 0x87267d8 {}
Has parent context:  style: 0x8726578 :-moz-canvas {}
Should be null

[Thread -1293984848 (LWP 28643) exited]
WARNING: nsTimeoutImpl::Release() proceeding without context., file nsGlobalWindow.cpp, line 5518
--WEBSHELL == 3
CSS Error (http://www.google.ca/firefox?client=firefox-a&rls=org.mozilla:en-US:official :3.315): Selector expected.  Ruleset ignored due to bad selector.
CSS Error (http://www.google.ca/firefox?client=firefox-a&rls=org.mozilla:en-US:official :4.0): Unexpected end of file while searching for closing } of invalid rule set.
###!!! ASSERTION: View is hidden but widget is visible!: '!visible', file nsViewManager.cpp, line 1685
Break: at file nsViewManager.cpp, line 1685
--DOMWINDOW == 3
###!!! ASSERTION: font metrics should not be null - bug 136248: 'NS_SUCCEEDED(rv)', file nsDeviceContext.cpp, line 668
Break: at file nsDeviceContext.cpp, line 668
###!!! ASSERTION: no font metrics: 'nsnull != aFontMetrics', file nsHTMLReflowState.cpp, line 2100
Break: at file nsHTMLReflowState.cpp, line 2100

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1219352896 (LWP 28636)]
0xb64330f0 in nsHTMLReflowState::UseComputedHeight () from /opt/mozilla-firefox/lib/firefox-1.0/components/libgklayout.so

Hope it helps

Offline

#16 2005-01-13 21:19:54

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: firefox+gtk2.6= memory leak

hmmm well, what I get from that is that firefox can't figure out how to draw the font you are using... it gripes about font metrics... says it's null, then fails computing the height...

are you using xft of freetype2 from firefox? (check the mozconfig from what you just built)

did you switch the default fonts? if so to what?

Offline

#17 2005-01-13 21:37:13

Insight_45
Member
Registered: 2004-12-13
Posts: 40

Re: firefox+gtk2.6= memory leak

From the file, it is xft
ac_add_options --enable-xft
ac_add_options --disable-freetype2

I do not remember changing anything. The font & Color dialog says:
Fonts for Western
Proportional: Serif            Size 16
Serif: serif
Sans-serif: sans-serif
Monospace: monospace  Size 12
Display resolution: System setting

I did add French/Canada to the Languages list, which is top
And Character encoding is Western (ISO 8859-1)

Is it hard to make a project to run this into a visual debugger like kdevelop maybe? I have some experience in Visual Studio, sorry about that.

Offline

#18 2005-01-13 22:05:26

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: firefox+gtk2.6= memory leak

Insight_45 wrote:

Is it hard to make a project to run this into a visual debugger like kdevelop maybe? I have some experience in Visual Studio, sorry about that.

run "pacman -S ddd"
and then "mozilla-firefox --debug" - it automatically detects ddd and uses it... though it's kinda odd to use....

Offline

#19 2005-01-14 00:49:37

Insight_45
Member
Registered: 2004-12-13
Posts: 40

Re: firefox+gtk2.6= memory leak

Sadly, ddd does not start, I get
ddd: error while loading shared libraries: libXaw.so.8: cannot open shared object file: No such file or directory

I use Xorg 6.7.0 for the ATI driver so I suppose I do not have the file for that reason.
I have made a symbolic link from libXaw.so.7 to libXaw.so.8 in /usr/X11R6/lib but that gives the same error message

I have not found how to set a library path for it to find the library. the commands set and env does not show a variable like LIBPATH or something similar.

Offline

#20 2005-01-14 02:08:00

celeron2002
Member
From: Santiago, Chile.
Registered: 2004-02-18
Posts: 150

Re: firefox+gtk2.6= memory leak

root@Celerondomain nrg2iso-0.4 # pacman -Qo /usr/X11R6/lib/libXaw.so.8
/usr/X11R6/lib/libXaw.so.8 is owned by xorg 11R6.8.1-1

but with the simbolic link, it should work.

Did you execute ldconfig after make the symbolic link?

ldconfig -p | grep libXaw.so, which is the ouput?


irc.bsd.cl #linux
irc.freenode.org #archlinux-es

Offline

#21 2005-01-14 02:49:47

Insight_45
Member
Registered: 2004-12-13
Posts: 40

Re: firefox+gtk2.6= memory leak

Since I created the symlink, I get:
pacman -Qo /usr/X11R6/lib/libXaw.so.8
        /usr/X11R6/lib/libXaw.so.8 is owned by xorg 11R6.7.0-1

but the ldconfig is not showingthe lib:
ldconfig -p | grep libXaw.so
        libXaw.so.7 (libc6) => /usr/X11R6/lib/libXaw.so.7
        libXaw.so.6 (libc6) => /usr/X11R6/lib/libXaw.so.6
        libXaw.so (libc6) => /usr/X11R6/lib/libXaw.so

How can I add a library to the system. I feel like I am a pain in the a.. while I thought I could help.

Offline

#22 2005-01-14 03:18:22

qwerty
Member
Registered: 2004-12-17
Posts: 183

Re: firefox+gtk2.6= memory leak

Hey, you are having the same troubles that made me switch to opera and you also have my same pc configuration... i'm also using Xorg 6.7.0 with ATI drivers and now that i'm thinking about it firefox has begun to crash after i have:
- upgraded to kernel 2.6.10
- patched ATI drivers to make them work with such kernel version
- built gtk2 2.6.x package in my own because of a missing library dependencies using the one in arch current....

So i'm starting to think that the problem is related to ati drivers + kernel 2.6.10 and/or gtk2 2.6.x...

Have you gone on rage3d board to check if someone has had the same problem??? ( http://www.rage3d.org/board/forumdisplay.php?f=61 )

Offline

#23 2005-01-14 13:03:40

Insight_45
Member
Registered: 2004-12-13
Posts: 40

Re: firefox+gtk2.6= memory leak

I did not have a problem with the 2.6.10-ARCH kernel and Firefox. It worked well. But it just might be the ati-driver or more probably the custom? build of gtk2 2.6.1-2

It could be an other side effect besides the xine going black for me. Note that I use kaffeine instead.

I will try to find a previous version of ddd that could work with libXaw.so.7 instaed of .8


ADDITION:
=======
From http://public.planetmirror.com/pub/archlinux/extra/ I have downloaded/installed version 3.3.9-1 of ddd. It runs with the available libXaw.so.x

I'll check what I can come up withe ddd and firefox

Offline

#24 2005-01-20 00:11:18

Insight_45
Member
Registered: 2004-12-13
Posts: 40

Re: firefox+gtk2.6= memory leak

After the upgrade to the newest kernel, ati driver, xorg there is no more problem with Firefox.

Here is my config:
kernel26 2.6.10-3
xorg 11R6.8.1-1
mozilla-firefox 1.0-2
ati-drivers 8.8.25-1
ati-drivers-module-kernel26 8.8.25-1

and ddd also works
ddd 3.3.10-1

Offline

Board footer

Powered by FluxBB