LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-27-2006, 02:47 PM   #1
Interdictor
Member
 
Registered: Jul 2006
Location: Runcorn, England
Distribution: Ubuntu 6.06 & 6.1, Mandriva 2007, Knoppix
Posts: 72

Rep: Reputation: 15
Ubuntu Edgy/Firefox 2/Javascript - Firefox closes accessing websites with Javascript


Is anybody having problems accessing websites that have javascript included in them?

I'm running a fresh install of Ubuntu 6.1 with the automatic updates downloaded and firefox's javascript plugin downloaded and installed.

When I access a website that's got javascript in it, firefox closes without giving me chance to look at the website. It closes all open tabs.

It happens on various webpages, the first one I noticed it on was this one, Linuxquestions.org, I've also noticed it on hotmail.

Anybody got any suggestions?

I'm going to try reinstalling the javascript plug in to see if that fixes it.

Thanks

Edit:

Javascript reinstalled, but its made no difference, it still crashes on javascript enabled websites.

Last edited by Interdictor; 10-27-2006 at 04:35 PM.
 
Old 10-27-2006, 06:42 PM   #2
ithawtewrong
Member
 
Registered: Jul 2004
Location: Mile High
Posts: 161

Rep: Reputation: 30
I had a problem on Dapper and I didn't upgrade. I did a couple of things to narrow down my problem. I copied the .mozilla folder on my home dir to another location then renamed the .mozilla directory and launched Firefox again. I thought mine was with javascript too, but it turned out the be the Silver Skin theme. I added in each theme and extension one by one and browsed for a little bit before I narrowed it down. You may want to try that to figure out what's causing it. I'm sure there are a couple of things that could cause it. If the problem persist you may even check /var/log/messages to see if any indication of the problem is listed. The problem I had listed no errors though.
 
Old 10-28-2006, 03:29 PM   #3
Interdictor
Member
 
Registered: Jul 2006
Location: Runcorn, England
Distribution: Ubuntu 6.06 & 6.1, Mandriva 2007, Knoppix
Posts: 72

Original Poster
Rep: Reputation: 15
I've tracked the problem down a bit further.

Its when I install the plugin for Macromedia Flash Player from the Linuxquestions.org home page and from other websites.

I've deleted the libflashplayer.so file and it seems to work ok, I just don't get flash enable websites working properly.
 
Old 10-28-2006, 06:31 PM   #4
chronosoft
Member
 
Registered: Feb 2005
Distribution: Ubuntu 6.10
Posts: 30

Rep: Reputation: 15
Hmm... i've had a similar problem, but it was not just sites with javascript, i've also found sites crash with firefox that have complex CSS scripts. After googling around a bit i found that it (in my case) there was a bug in the default nvidia driver that was responsible for the crashes, the solution was to download the newest nvidia drivers (you get can them from apt-get... just make sure you add the right sources) and enable them (nvidia-glx-config enable in the terminal once you have the latest nvidia drivers installed)

Hope that helps
 
Old 10-28-2006, 11:10 PM   #5
coldhandshake
LQ Newbie
 
Registered: Oct 2006
Location: Upstate NY
Distribution: Xubuntu 6.10 with Gnome
Posts: 6

Rep: Reputation: 0
Yeah, I get the same thing, after I installed Firefox 2 and installed Flash Player using the Firefox plugin installer, and now when I go YouTube Firefox just dissapears. If anyone can fix this please respond, I would like to use Firefox 2, for I am going to try a previous version of Firefox (1.5).
 
Old 10-29-2006, 01:10 AM   #6
coldhandshake
LQ Newbie
 
Registered: Oct 2006
Location: Upstate NY
Distribution: Xubuntu 6.10 with Gnome
Posts: 6

Rep: Reputation: 0
I fixed the probably (atleast for me). What I did was edit the etc/X11/xorg.conf file:
Where is says DefaultDepth 24 - I changed that from 16, and the problem as appeared to be solved.

Section "Screen"
Identifier "Default Screen"
Device "S3 Inc. 86C270-294 Savage/IX-MV"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768"
EndSubSection

Note: My system is:
IBM Thinkpad T22
512Mb RAM
Kubuntu 6.10 (Edgy)
KDE version 3.5.5
Firefox 2.0 (installed using Adept Manager Manage Packages)
Shockwave Flash 7.0 r68 (Installed using Firefox plugin installer - clicked install missing plugins)
 
Old 10-29-2006, 04:15 PM   #7
Interdictor
Member
 
Registered: Jul 2006
Location: Runcorn, England
Distribution: Ubuntu 6.06 & 6.1, Mandriva 2007, Knoppix
Posts: 72

Original Poster
Rep: Reputation: 15
I've not tried this yet, but maybe this is the answer to Firefox crashing after Flashplayer is installed.



http://ubuntuguide.org/wiki/Ubuntu_E...ozilla_Firefox
 
Old 11-02-2006, 10:48 AM   #8
assettt
LQ Newbie
 
Registered: Sep 2006
Location: london
Distribution: kubuntu 6.10
Posts: 11

Rep: Reputation: 0
I too seems to be suffering the same fate upon upgrading firefox via apt-get. The problem started after installing the macromedia flash player and since then I've tried all suggestions from forums and go ogle. I tried to edit the /usr/bin/firefox as suggested in Ubuntu edgy wiki but i received an error that i do not understand. However i did also get a administrator login prompt and after inserting my password it opened firefox with the kubuntu page on. Anyway the error when typing kdesu /usr/bin/firefox:
X Error: BadDevice, invalid or uninitialized input device 168
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 168
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 168
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 168
Major opcode: 145
Minor opcode: 3
Resource id: 0x0
Failed to open device
/bin/sh:
/usr/bin/esd: not found

The program 'Gecko' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 118 error_code 8 request_code 144 minor_code 3)
(Note to programmers: normall
y, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your
debugger if you break on the gdk_x_error() function.)
If anyone can make sense of this then post a reply.
 
Old 11-02-2006, 11:58 AM   #9
assettt
LQ Newbie
 
Registered: Sep 2006
Location: london
Distribution: kubuntu 6.10
Posts: 11

Rep: Reputation: 0
Thumbs up

Firefox problem solved (hopefully). Despite the error message i was receiving i did edit file /usr/bin/firefox and added the comment:export XLIB_SKIP_ARGB_VISUALS=1 . No more firefox crashes so far. Thanks to all who contributed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: JavaScript meets XML in Firefox on Ubuntu Linux LXer Syndicated Linux News 0 08-07-2006 11:54 AM
Firefox Javascript Error socceroos Programming 1 03-15-2006 12:04 AM
javascript in firefox jackdoll Fedora 1 11-19-2005 02:18 AM
Firefox browser closes on some websites Kristijan Linux - Software 3 07-15-2004 01:08 PM
javascript for firefox? mohapi Fedora 4 06-20-2004 03:22 PM


All times are GMT -5. The time now is 09:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration