LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Problem with firefox (https://www.linuxquestions.org/questions/slackware-14/problem-with-firefox-4175423164/)

jhdalben 08-21-2012 12:07 AM

Problem with firefox
 
Hello, I`m kinda new to Slackware, and I`m having trouble when opening firefox. When I run it from the "run" window it opens and then crashes after 10 seconds, this is probably the firefox I got with slackpg. However, when I run it from the terminal, it works perfectly, and this leads me to believe that I have two versions of firefox installed, but I can`t figure out anything beyond that. I`m a real newbie that read all the documentation I could, but still can`t figure out what`s going wrong.



Any tips?

botzko 08-21-2012 12:24 AM

You can check are there 2 versions of FF by running this command (as root):
Code:

ls /var/log/packages/ | grep -i firefox
If there are 2 rows (packages) then you have 2 versions of FF. Use 'removepkg' to remove the broken one.
If there is only one package then you can run
Code:

whereis firefox
and then execute the FF with the full path in "run" windows to check will it crash or not.

P.S. You can try to disable all the extensions installed on FF.

jhdalben 08-21-2012 12:59 AM

It seems that I have only one version from slackpkg. However, the problem persists: if I run it through the terminal, it works perfectly, but if I run it from the "run command" window, it crashes after 10 seconds approximately. In addition, when I re-open them, each one tries to restore a different session (group of tabs), that`s why I thought it wasn`t the same instalation. Funny...

Any ideas?

zhtengw 08-21-2012 02:02 AM

Quote:

Originally Posted by jhdalben (Post 4759800)
It seems that I have only one version from slackpkg. However, the problem persists: if I run it through the terminal, it works perfectly, but if I run it from the "run command" window, it crashes after 10 seconds approximately. In addition, when I re-open them, each one tries to restore a different session (group of tabs), that`s why I thought it wasn`t the same instalation. Funny...

Any ideas?

hm,do you have another firefox.desktop file in ~/.local/share/applications/ ?
Maybe you can check out the contain.

botzko 08-21-2012 02:08 AM

Or you just run it as different users or use different profiles?
Run FF
Code:

firefox -safe-mode
and disable all the add-ons. Then try to run it from the 'run command'.

P.S. What is you desktop environment?

kikinovak 08-21-2012 02:16 AM

YMMV, but I found FF 14.0.1 to be terribly buggy. I've been using Seamonkey for a while, and managed yesterday to build Firefox 10.0.6 ESR (Enterprise version, sort of) from source. Runs nice.

cynwulf 08-21-2012 04:34 AM

Is Firefox up to date?

Code:

# slackpkg info mozilla-firefox

zithro 08-21-2012 08:41 AM

For the whereis firefox command, you can get several locations. You'll have to check if all are pointing to the same binary.
Code:

bash-4.1$ whereis firefox
firefox: /usr/bin/firefox /usr/X11R6/bin/firefox /usr/bin/X11/firefox /usr/X11/bin/firefox
bash-4.1$ ls -l /usr/bin/firefox /usr/X11R6/bin/firefox /usr/bin/X11/firefox /usr/X11/bin/firefox
lrwxrwxrwx /usr/X11/bin/firefox -> /usr/lib/firefox-14.0.1/firefox
lrwxrwxrwx /usr/X11R6/bin/firefox -> /usr/lib/firefox-14.0.1/firefox
lrwxrwxrwx /usr/bin/X11/firefox -> /usr/lib/firefox-14.0.1/firefox
lrwxrwxrwx /usr/bin/firefox -> /usr/lib/firefox-14.0.1/firefox

Of course, for the ls -l command, you'll have to replace the directories by the ones provided by your whereis output (I removed some parts of the output of the ls).

Then you can also try
Code:

bash-4.1$ which firefox
/usr/bin/firefox
bash-4.1$ ls -l /usr/bin/firefox
lrwxrwxrwx /usr/bin/firefox -> /usr/lib/firefox-14.0.1/firefox

You can also check if there are two different profiles created in your home directory:
Code:

ls -l ~/.mozilla/firefox/
If not, you can also try to:
Code:

find ~ -name *.default
this will check in your home dir if there are two default profiles (maybe stored at different locations).

To check in your whole drive if there are two default profiles, run
Code:

find / -name *.default

jhdalben 08-21-2012 05:03 PM

@botzko

I tried your command but it still crashes after I run it from the Run Command window.
Btw, I'm using fluxbox.

@caravel

Apparently yes, but your command accuses I have two slackpkg's of firefox: 14.0.1 and 4.0. What do yout think?

Code:

bash-4.1# slackpkg info mozilla-firefox

PACKAGE NAME:  mozilla-firefox-14.0.1-x86_64-1_slack13.37.txz
PACKAGE LOCATION:  ./patches/packages
PACKAGE SIZE (compressed):  16236 K
PACKAGE SIZE (uncompressed):  43980 K
PACKAGE DESCRIPTION:
mozilla-firefox: mozilla-firefox (Mozilla Firefox Web browser)
mozilla-firefox:
mozilla-firefox: This project is a redesign of the Mozilla browser component written
mozilla-firefox: using the XUL user interface language.  Firefox empowers you to
mozilla-firefox: browse faster, more safely and more efficiently than with any other
mozilla-firefox: browser.
mozilla-firefox:
mozilla-firefox: Visit the Mozilla Firefox project online:
mozilla-firefox:  http://www.mozilla.org/projects/firefox/
mozilla-firefox:

PACKAGE NAME:  mozilla-firefox-4.0-x86_64-2.txz
PACKAGE LOCATION:  ./slackware64/xap
PACKAGE SIZE (compressed):  12700 K
PACKAGE SIZE (uncompressed):  43180 K
PACKAGE DESCRIPTION:
mozilla-firefox: mozilla-firefox (Mozilla Firefox Web browser)
mozilla-firefox:
mozilla-firefox: This project is a redesign of the Mozilla browser component written
mozilla-firefox: using the XUL user interface language.  Firefox empowers you to
mozilla-firefox: browse faster, more safely and more efficiently than with any other
mozilla-firefox: browser.
mozilla-firefox:
mozilla-firefox: Visit the Mozilla Firefox project online:
mozilla-firefox:  http://www.mozilla.org/projects/firefox/
mozilla-firefox:

@zithro

here are my outputs:
Code:

bash-4.1$ whereis firefox
firefox: /usr/bin/firefox /usr/X11R6/bin/firefox /usr/bin/X11/firefox /usr/X11/bin/firefox

bash-4.1$ ls -l /usr/bin/firefox /usr/X11R6/bin/firefox /usr/bin/X11/firefox /usr/X11/bin/firefox
lrwxrwxrwx 1 root root 33 Aug 21 01:25 /usr/X11/bin/firefox -> /usr/lib64/firefox-14.0.1/firefox
lrwxrwxrwx 1 root root 33 Aug 21 01:25 /usr/X11R6/bin/firefox -> /usr/lib64/firefox-14.0.1/firefox
lrwxrwxrwx 1 root root 33 Aug 21 01:25 /usr/bin/X11/firefox -> /usr/lib64/firefox-14.0.1/firefox
lrwxrwxrwx 1 root root 33 Aug 21 01:25 /usr/bin/firefox -> /usr/lib64/firefox-14.0.1/firefox

It looks like yours, and are pointing to the same binary so I think that's not the issue.

Now, the theory about two different profiles created:

Code:

bash-4.1$ ls -l ~/.mozilla/firefox
total 12
drwx------ 31 jh users 4096 Aug 21 18:32 6bkgx13v.default
drwx------  4 jh users 4096 Aug 20 23:47 Crash Reports
-rw-r--r--  1 jh users  94 Aug 20 14:27 profiles.ini

Looks like there is only one profile, am I correct?

Now:

Only 1 profile for firefox on my home directory, I believe.
Code:

bash-4.1$ find ~ -name *.default
/home/jh/.mozilla/seamonkey/lqek7twc.default
/home/jh/.mozilla/firefox/6bkgx13v.default

When I tried to search on my whole drive, it returned a long output. I installed Slackware two days ago and created one user called "john", but I did something with the X files (after I ran init 0 command or something like that), and had to create another user called "jh", which I'm using at the moment. I ran the userdel john command to see if the problem was solved, but it didn't work...


Anyway guys, any suggestions?
Thank you for your support up until the moment, I really appreciate it.

zhtengw 08-21-2012 09:43 PM

Quote:

Originally Posted by jhdalben (Post 4760480)

@caravel

Apparently yes, but your command accuses I have two slackpkg's of firefox: 14.0.1 and 4.0. What do yout think?

Code:

bash-4.1# slackpkg info mozilla-firefox

PACKAGE NAME:  mozilla-firefox-14.0.1-x86_64-1_slack13.37.txz
PACKAGE LOCATION:  ./patches/packages
PACKAGE SIZE (compressed):  16236 K
PACKAGE SIZE (uncompressed):  43980 K
PACKAGE DESCRIPTION:
mozilla-firefox: mozilla-firefox (Mozilla Firefox Web browser)
mozilla-firefox:
mozilla-firefox: This project is a redesign of the Mozilla browser component written
mozilla-firefox: using the XUL user interface language.  Firefox empowers you to
mozilla-firefox: browse faster, more safely and more efficiently than with any other
mozilla-firefox: browser.
mozilla-firefox:
mozilla-firefox: Visit the Mozilla Firefox project online:
mozilla-firefox:  http://www.mozilla.org/projects/firefox/
mozilla-firefox:

PACKAGE NAME:  mozilla-firefox-4.0-x86_64-2.txz
PACKAGE LOCATION:  ./slackware64/xap
PACKAGE SIZE (compressed):  12700 K
PACKAGE SIZE (uncompressed):  43180 K
PACKAGE DESCRIPTION:
mozilla-firefox: mozilla-firefox (Mozilla Firefox Web browser)
mozilla-firefox:
mozilla-firefox: This project is a redesign of the Mozilla browser component written
mozilla-firefox: using the XUL user interface language.  Firefox empowers you to
mozilla-firefox: browse faster, more safely and more efficiently than with any other
mozilla-firefox: browser.
mozilla-firefox:
mozilla-firefox: Visit the Mozilla Firefox project online:
mozilla-firefox:  http://www.mozilla.org/projects/firefox/
mozilla-firefox:

...


Anyway guys, any suggestions?
Thank you for your support up until the moment, I really appreciate it.

You can try this command to confirm if you really install two versions of firefox.
Code:

ls -l /var/log/packages/mozilla-firefox*
Then try removepkg [packages] command to remove the version 4.0.

zithro 08-22-2012 04:06 AM

When you say terminal, you mean an xterm (a terminal running on X) right, not a tty terminal ?

Have you tried running the various which/whereis commands from a terminal AND from the run command ?
By the way, from the run command, you may need to append some kind of output redirection as the command may not write anything anywhere (except from the tty where X has been started):
Code:

COMMAND >~/foo-logfilename 2>&1
or simply, for one-time-running commands (like whereis or which but NOT for firefox)
COMMAND >~/foo-logfilename

Code:

whereis firefox >~/whereis-log 2>&1
or simply
whereis firefox >~/whereis-log
and
ls -l /usr/bin/firefox /usr/X11R6/bin/firefox /usr/bin/X11/firefox /usr/X11/bin/firefox >~/ls-log 2>&1
or simply
ls -l /usr/bin/firefox /usr/X11R6/bin/firefox /usr/bin/X11/firefox /usr/X11/bin/firefox >~/ls-log

You can also try to redirect output of the crashy FF command like that:
Code:

firefox >~/fflogfile 2>&1

cynwulf 08-22-2012 05:18 AM

In your thread at linuxforums.org you mentioned that you'd downloaded firefox from mozilla?

http://www.linuxforums.org/forum/sla...tml#post901704

I would suggest that you remove both firefox versions with slackpkg, then hunt down and remove the firefox you downloaded from mozilla. Remove all traces of it, then reinstall firefox 14 with slackpkg. I'm not sure how you got 2 versions installed with slackpkg, most likely because you just installed 14 instead of running an upgrade which would have removed 4 and installed 14...?

Removing the one you installed from mozilla should be simple simple enough, i.e. I'd assume you installed it to somewhere like /usr/local or /opt ?

ottavio 08-23-2012 02:04 PM

Having two binaries of Firefox is unlikely to cause the crash. Most likely you are using the same profile for two very different binaries. It's quite possible that your profile is corrupted. Make sure you delete your local profile before reinstalling Firefox. By the way I use the Mozilla provided binary and it works like a charm.

zithro 08-24-2012 04:28 AM

Quote:

Originally Posted by ottavio (Post 4762399)
Having two binaries of Firefox is unlikely to cause the crash. Most likely you are using the same profile for two very different binaries.

Contradicting sentence ^^ unlikely-->likely ? :)
But I think you're right, that's why I proposed running the whereis from the terminal (what he did) AND the run command. Maybe both are not using the same environments.

Lenard Spencer 08-29-2012 07:07 PM

FWIW, Firefox 15.0 just came out yesterday. I have already built and installed it on my 64-13.37 and 64-current partitions. I even went ahead and tried to see if it would even build on 64-13.1. Answer: YES! BUT, there is a catch. Since the latest versions of FF need Yasm to build, I built and installed the latest Yasm out of the -current source tree, and FF built just fine. I'm using it right now as I sit here typing this.

Of course, YMMV.

UPDATE: Just found yasm-1.2.0 in slackware64-13.1/patches/packages folder, so I didn't really need to build it from -current after all.


All times are GMT -5. The time now is 09:29 AM.