LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Ubuntu Edgy/Firefox 2/Javascript - Firefox closes accessing websites with Javascript (https://www.linuxquestions.org/questions/ubuntu-63/ubuntu-edgy-firefox-2-javascript-firefox-closes-accessing-websites-with-javascript-496154/)

Interdictor 10-27-2006 02:47 PM

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.

ithawtewrong 10-27-2006 06:42 PM

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.

Interdictor 10-28-2006 03:29 PM

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.

chronosoft 10-28-2006 06:31 PM

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 ;)

coldhandshake 10-28-2006 11:10 PM

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).

coldhandshake 10-29-2006 01:10 AM

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)

Interdictor 10-29-2006 04:15 PM

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

assettt 11-02-2006 10:48 AM

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.

assettt 11-02-2006 11:58 AM

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.


All times are GMT -5. The time now is 11:20 AM.