Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247040 - net-libs/xulrunner-1.9.0.4-r1 causes runtime error using epiphany (2.24.1-r10)
Summary: net-libs/xulrunner-1.9.0.4-r1 causes runtime error using epiphany (2.24.1-r10)
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 247676 248133 249978 259185 (view as bug list)
Depends on:
Blocks: 234646
  Show dependency tree
 
Reported: 2008-11-16 12:04 UTC by Albert W. Hopkins
Modified: 2009-06-28 16:41 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info.log,3.89 KB, text/plain)
2008-11-16 17:57 UTC, Milos Popovic
Details
emerge --info (emerge-info.txt,3.74 KB, text/plain)
2008-11-16 18:59 UTC, Albert W. Hopkins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albert W. Hopkins 2008-11-16 12:04:11 UTC
I cannot use epiphany after upgrading to xulrunner-1.9.0.4-r1.  When epiphany is launched a dialog box comes up saying it cannot initialize Mozilla.  Nothing is sent to stderr.  Downgrading to xulrunner-1.9.0.4 fixes the problem.

# emerge -vp xulrunner

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] net-libs/xulrunner-1.9.0.4-r1 [1.9.0.4] USE="dbus gnome startup-notification -custom-optimization -ipv6 -java" 0 kB
Comment 1 Albert W. Hopkins 2008-11-16 12:05:03 UTC
Forgot to mention: re-emergeing epiphany and epiphany-extensions does not fix the problem.
Comment 2 Jory A. Pratt gentoo-dev 2008-11-16 14:50:32 UTC
(In reply to comment #1)
> Forgot to mention: re-emergeing epiphany and epiphany-extensions does not fix
> the problem.
> 

post your emerge info if you want help.
Comment 3 Milos Popovic 2008-11-16 17:57:53 UTC
Created attachment 172010 [details]
emerge --info

Same thing here:
Comment 4 Albert W. Hopkins 2008-11-16 18:59:06 UTC
Created attachment 172015 [details]
emerge --info
Comment 5 Albert W. Hopkins 2008-11-16 21:36:38 UTC
I'm now able to run epiphany.  I took a look at this bug
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/30791

... which mentions compreg.dat.  I took a look in /usr/lib/xulrunner-1.9 but there was no compreg.dat file there.  Then I discovered it existed in both /usr/lib/xulrunner and /usr/lib/mozilla.  But both these directories don't seem to belong to a particular package so I removed them.  This still didn't fix epiphany, but I then discovered a compreg.dat in /usr/share/epiphany. But the file wasn't owned by the epiphany package.  So what I did then was unmerge epiphany, then "rm -rf /usr/share/epiphany" and then emerge epiphany again.  Now epiphany runs.

The launchpad bug seems to indicate that compreg.dat is created when a xulrunner app is run as root and this somehow mucks up things (I didn't understand the details).  Why this affects xulrunner-1.9.0.4-r1 and not xulrunner-1.9.0.4 is beyond me.  Then again maybe that wasn't the problem but the steps I performed somehow "fixed" it...
Comment 6 Christian Kotz 2008-11-17 17:34:02 UTC
same problem here
Comment 7 Christian Kotz 2008-11-17 17:48:16 UTC
can confirm that deleting /usr/share/epiphnay and reemerging epiphany fixes the problem.
Comment 8 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-11-17 18:26:19 UTC
(works fine for me, but I don't have a /usr/share/epiphany/compreg.dat)
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-11-17 19:23:08 UTC
could you run qfile /usr/share/epiphany/compreg.dat (from portage-utils) or equery belongs /usr/share/epiphany/compreg.dat (from gentoolkit) ?

I don't have this file on any of my machines.
Comment 10 Norman Jonas 2008-11-17 19:27:30 UTC
(In reply to comment #9)
> could you run qfile /usr/share/epiphany/compreg.dat (from portage-utils) or
> equery belongs /usr/share/epiphany/compreg.dat (from gentoolkit) ?
> 
> I don't have this file on any of my machines.
> 

It doesnt belong to any package. ( equery b /usr/share/epiphany/compreg.dat )
Comment 11 Maciej Piechotka 2008-11-20 12:23:11 UTC
*** Bug 247676 has been marked as a duplicate of this bug. ***
Comment 12 Mart Raudsepp gentoo-dev 2008-11-24 12:55:04 UTC
On a system of mine that experienced the problem I had a /usr/share/epiphany/components/compreg.dat - moving that away (to be able to debug things with the copy later) fixed it. It is apparently created by running epiphany as root, so you experience the problem only if you have launched epiphany as root ever before upgrading to xulrunner-1.9.0.4-r1 (and epiphany was using xulrunner-1.9 before with the -r1x revisions). So running epiphany as root prior to upgrade is the necessary thing for reproducing the bug for testing.
Comment 13 Walter Meinl 2008-11-25 07:11:14 UTC
(In reply to comment #12)
> On a system of mine that experienced the problem I had a
> /usr/share/epiphany/components/compreg.dat - moving that away (to be able to
> debug things with the copy later) fixed it. It is apparently created by running
> epiphany as root
In addition, I found also xpti.dat in my /usr/share/epiphany/components/ directory. 
ls /usr/share/epiphany/components/ -l
insgesamt 252
-rw-r--r-- 1 root root 142551 25. Jun 08:05 compreg.dat
-rw-r--r-- 1 root root 100271 27. Okt 01:26 xpti.dat
The timestamps are interesting, too, as I upgraded epiphany often from the gnome git overlay and now from the tree.
But removing the *.dat files helped here, too
Comment 14 Mark 2008-11-25 16:44:37 UTC
I too have this problem.  I eliminated all instances of compreg.dat in Epiphany and xulrunner (I have two versions via slot).  I then rm -f epiphany, rebuilt epiphany and it still won't work.  Ultimately I had to mask firefox and xulrunner and regress to 3.0-r1 and 1.9-r3 in order to have a firefox and mozilla that function on my box.  I do not see any other .dat files in epiphany or xulrunner.
Comment 15 Mark 2008-11-25 19:56:09 UTC
I too have this problem.  I eliminated all instances of compreg.dat in Epiphany and xulrunner (I have two versions via slot).  I then rm -f epiphany, rebuilt epiphany and it still won't work.  Ultimately I had to mask firefox and xulrunner and regress to 3.0-r1 and 1.9-r3 in order to have a firefox and mozilla that function on my box.  I do not see any other .dat files in epiphany or xulrunner.
Comment 16 Milos Popovic 2008-11-30 21:23:14 UTC
I looked in ChangeLog for xulrunner ebuild. Difference between 1.9.0.4 and 1.9.0.4-r1 was in disableing libxul... So just adding:

mozconfig_annotate '' --disable-libxul

to ehe xulrunner ebuild fixed the problem. What‘s libxul by the way?
Comment 17 Mart Raudsepp gentoo-dev 2008-12-06 05:54:03 UTC
(In reply to comment #16)
> I looked in ChangeLog for xulrunner ebuild. Difference between 1.9.0.4 and
> 1.9.0.4-r1 was in disableing libxul... So just adding:
> 
> mozconfig_annotate '' --disable-libxul
> 
> to ehe xulrunner ebuild fixed the problem. What‘s libxul by the way?

Something important, fixing some crash cases. --disable-libxul stops build/installation a dozen more libraries that could be needed, as far as I understood. Details of what they are would be nice though for embedded usage purposes

Comment 18 Mart Raudsepp gentoo-dev 2008-12-06 05:56:08 UTC
*** Bug 249978 has been marked as a duplicate of this bug. ***
Comment 19 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-12-29 15:31:20 UTC
so how are things going with xulrunner 1.9.0.5 ?
Comment 20 Maciej Piechotka 2008-12-29 17:04:34 UTC
No problem.
Comment 21 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-02-15 23:33:16 UTC
ok, closing then.
Comment 22 Chris Larson 2009-02-16 16:40:24 UTC
Just a comment for those running into this bug.

Removing the compreg.dat file worked for me _without_ reemerging epiphany. 

Should you be reading this, and lamenting the thought of another wait while epiphany re-emerges, first try launching epiphany after deleting the compreg.dat mentioned above.

Cheers,

Chris
Comment 23 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-09 21:35:40 UTC
*** Bug 248133 has been marked as a duplicate of this bug. ***
Comment 24 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-21 22:39:24 UTC
*** Bug 259185 has been marked as a duplicate of this bug. ***
Comment 25 Rafał Mużyło 2009-04-26 19:56:23 UTC
Due to comment 23, I'm reopening this bug.
I've got a problem with yelp (2.24.0-r10 and 2.26.0) refusing to run
with "Could not initialize gecko!" message.

This problem is fixed by simply 'touch .autoreg' in
/usr/lib/xulrunner-1.9.
This file does exist in /usr/lib/mozilla-firefox already.

Comment 26 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-26 20:05:32 UTC
xulrunner modifications are not our business.
Comment 27 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-06-28 13:00:07 UTC
Is this still a problem even after removing compreg.dat and xpti.dat ?
Comment 28 Rafał Mużyło 2009-06-28 15:42:11 UTC
And what about my problem ?
Should I reopen bug comment 23 ?
While it won't be a problem for long, as gnome is
moving to webkit, that shouldn't stop fixing this bug.
Comment 29 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-06-28 15:50:12 UTC
(In reply to comment #28)
> And what about my problem ?
> Should I reopen bug comment 23 ?

Yelp 2.26.0 should work with xulrunner 1.9.1 (it does for me). If it doesn't for you, please reopen that bug.
Comment 30 Rafał Mużyło 2009-06-28 16:22:37 UTC
Don't you mean 1.9.0.11 ?
And it seems to work now, hard to tell
exactly why, quite a bit has changed in the meanwhile.
Comment 31 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-06-28 16:41:56 UTC
(In reply to comment #30)
> Don't you mean 1.9.0.11 ?

*cough*, right, looking at too many similar bug reports is confusing.

> And it seems to work now, hard to tell
> exactly why, quite a bit has changed in the meanwhile.
> 


If it does crop up again, reopen. Thanks.