LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 08-03-2012, 04:53 PM   #1
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 90
Anybody besides me having problems with elinks and javascript?


I'm having problems with javascript and elinks. With ecmascript enabled in the options I get slowdowns, stalls and sometimes crashes. I submitted a bug report and presumably this was fixed with my cooperation with an updated version of elinks. One thing that puzzles me is if I try to compile elinks from source it fails with an error related to javascript although configure finds spidermonkey. So that's a clue of sorts. Also, using rpmbuild --rebuild of the Fedora source RPM of elinks succeeds to compile. But when I start elinks with javascript enabled it crashes immediately. I think it's a problem with javascript header files but I'm not a programmer. I have js-devel installed. I'm running Fedora 16 64 bit. Thanks in advance.
 
Old 08-04-2012, 08:17 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,457
Blog Entries: 54

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
Quote:
Originally Posted by SharpyWarpy View Post
With ecmascript enabled in the options I get slowdowns, stalls and sometimes crashes. (..) when I start elinks with javascript enabled it crashes immediately.
Does Elinks support logging to file or at least debug mode to get it to show more nfo?
Could stracing it show more?


Quote:
Originally Posted by SharpyWarpy View Post
I submitted a bug report and presumably this was fixed with my cooperation with an updated version of elinks.
Point us to the ticket wrt developer comments and such?


Quote:
Originally Posted by SharpyWarpy View Post
if I try to compile elinks from source it fails with an error related to javascript although configure finds spidermonkey.
Shouldn't you post source package URI, dependencies and actual ./configure command line and 'make 2>&1 | tee make.log' contents?


Quote:
Originally Posted by SharpyWarpy View Post
using rpmbuild --rebuild of the Fedora source RPM of elinks succeeds to compile.
What's the .src.rpm version?
 
Old 08-04-2012, 01:44 PM   #3
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 90
Quote:
Originally Posted by unSpawn View Post
Does Elinks support logging to file or at least debug mode to get it to show more nfo?
Could stracing it show more?
It does allow running in verbose mode with three levels. I don't know what "stracing" is.


Quote:
Originally Posted by unSpawn View Post
Point us to the ticket wrt developer comments and such?
https://bugzilla.redhat.com/show_bug.cgi?id=798103


Quote:
Originally Posted by unSpawn View Post
Shouldn't you post source package URI, dependencies and actual ./configure command line and 'make 2>&1 | tee make.log' contents?
Source packages are two, one from the Fedora 16 source repository, that's elinks-0.12-0.26.pre5.fc16.src.rpm and the other is a tarball from the developers of elinks, not from fedora developers, elinks-current-0.13.tar.gz. The elinks-current-0.13.tar.gz package errors with JSScript. Configure options are only --prefix=/usr. As for doing "make 2>&1 | tee make.log" with which source would you prefer I perform this action? Remember the source tarball errors out with JSScript error and compiling from Fedora source results in a binary that crashes on startup with javascript enabled.


Quote:
Originally Posted by unSpawn View Post
What's the .src.rpm version?
elinks-0.12-0.26.pre5.fc16.src.rpm

I should mention here the developer assigned to the aforementioned bug report applied a patch which included what I would call a function called "Do_Not_Crash". I don't know because I haven't seen the patch. However I suspect this is causing elinks to stall. The version of elinks I'm using now is elinks-0.12-0.27.pre5.fc16.x86_64 from the "Fedora-updates" repo.

Here's some additional info. When I start elinks with this html as homepage:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head>
<div id="dh">DuckDuckGo</div></a><form name="x" method="POST" action="https://duckduckgo.com/lite/html" id="hfh" onSubmit="return nbr()"><div id="hfxh"><input id="hfbh" tabindex="2" type="submit" value=""/><a id="hfdh" class="btn" href="javascript:;" onMouseover="if (!ip) this.timer=setTimeout(nbc,200)" onMouseout="clearTimeout(this.timer);" onClick="nbc(1);"></a></div><input type="text" autocomplete="off" name="q" autofocus tabindex="1" onclick="if (this.value=='put search terms here') {this.value='';this.style.color='#000000';}" id="hfih" onFocus="if ('rc' in window) {nua('nro',rc)};fq=1;" onBlur="fq=0" value=""><script src="/d570.js" type="text/javascript"></script><script type="text/javascript">fq=1;ric=0;var karr = new Array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','1','2','3','4','5','6','7','8','9','aa','ab','ac','ad','ae','af','ag','ah','ai','aj','ak','al','am','an','ao','ap','aq','ar','as','at','au','av','aw','ax','ay','az');for (var i=0;i<karr.length;i++) {var kre=new RegExp('[\?\&]k'+karr[i]+'=([^\&]+)');var ktmp='';if (kre.test(window.location.href)) {ktmp=RegExp.$1;if (ktmp.length<6) document.write('<input type="hidden" name="k'+karr[i]+'" value="'+ktmp+'">');eval('k'+karr[i]+'=ktmp');}if (karr[i]=='i'&&((ktmp&&ktmp==-1)||YAHOO.util.Cookie.get("i")=='-1')) {document.write('<input type="hidden" name="v" value="n">');}else if(karr[i]=='g'){if((ktmp&&ktmp=='p')||YAHOO.util.Cookie.get("g")=='p'){d.x.method='POST';}else{d.x.method='GET';}}else if(karr[i]=='h'){if(((ktmp&&ktmp=='1')||YAHOO.util.Cookie.get("h")=='1')&&document.location.protocol!='https:'){d.x.action='https://duckduckgo.com/'}else {d.x.action='/';}};}</script></form><script type="text/javascript">document.x.q.focus();if (kurl) d.getElementById("dhl").href+=kurl;</script><br><br>
<br><br></body></html>
I get this error pop-up:
A script embedded in the current document raised the following exception:
ReferenceError: kurl is not defined
ReferenceError: Yahoo is not defined

Also, here is my ~/.elinks/elinks.conf file:

Code:
setconfig.saving_style_w=1
setdocument.browse.forms.confirm_submit=0
setdocument.browse.images.display_style=1
setecmascript.enable=0
setui.clock.enable=1
setui.tabs.show_bar=1
setui.language="English"
setui.date_format="%b%e%H:%M"
setui.success_msgbox=0
setui.sessions.homepage="/rbandmb/.elinks/DuckDuckGo.html"
setui.show_menu_bar_always=0
bind"main""w"="toggle-wrap-text"
bind"main""W"="none"
setdocument.browse.scrolling.horizontal_step=30
setdocument.browse.margin_width=6
setdocument.browse.scrolling.horizontal_extended=0
setdocument.browse.scrolling.margin=20
setdocument.html.underline_links=1
setterminal.linux.charset="utf-8"
setdocument.browse.forms.editor="/usr/bin/joe"
setdocument.colors.use_document_colors=1
setterminal.linux.underline=0
setterminal.linux.m11_hack=0
setdocument.codepage.force_assumed=1
setui.tabs.top=1
setui.dialogs.shadows=1
setui.dialogs.underline_hotkeys=1
setdocument.cache.ignore_cache_control=1
setterminal.xterm-color.transparency=0
setdocument.browse.images.show_as_links=1
setdocument.html.wrap_nbsp=0
setdocument.browse.links.numbering=0
setdocument.uri_passing.clip="wget-c-b%c"
bind"main""Alt-o"="link-external-command"
setmime.mailcap.path=""
setui.clock.format="[%H:%M:%S]"
setdocument.html.display_frames=1
setterminal.linux.type=2
setdocument.html.display_tables=1
setdocument.browse.images.image_link_tagging=2
setdocument.cache.format.size=10
setdocument.cache.memory.size=5M
setdocument.browse.forms.show_formhist=1
bind"main""Ctrl-T"="open-link-in-new-tab"
bind"main""Q"="quit"
bind"main""q"="really-quit"
setui.startup_goto_dialog=0
setdocument.browse.scrolling.vertical_step=1
bind"main""."="none"
bind"main""b"="toggle-numbered-links"
bind"main"","="open-os-shell"
setprotocol.http.user_agent="Mozilla/5.0(X11;U;Linuxi686;en-US;rv:1.9.0.4) Gecko/2008111217 Fedora/3.0.4-1.fc10 Firefox/3.0.4"
setprotocol.http.referer.policy=0
setmime.extension.jpg="image/jpg"
setmime.extension.jpeg="image/jpeg"
setmime.mailcap.enable=1
setmime.mimetypes.enable=1
setmime.default_type="application/octet-stream"
setbookmarks.folder_state=0
setecmascript.enable=1
setecmascript.error_reporting=1
setecmascript.ignore_noscript=1
setecmascript.max_exec_time=10
setecmascript.block_window_opening=0
setdocument.download.directory="~/"
setbookmarks.file_format=0
setdocument.uri_passing.bittorrent="screen /usr/bin/bittorrent-curses --save_in /mnt/sdc1_server %c"
setdocument.plain.compress_empty_lines=1
setcookies.accept_policy=2

Last edited by unSpawn; 08-05-2012 at 05:23 AM. Reason: SharpyWarpy: additional info; unSpawn: cleanup config, BBcode tags, merge posts, fix quoting
 
Old 08-05-2012, 05:56 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,457
Blog Entries: 54

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
Quote:
Originally Posted by SharpyWarpy View Post
It does allow running in verbose mode with three levels.
Yeah and "-verbose 2" doesn't show anything interesting... I haven't run it as 'strace -v /usr/bin/elinks -verbose 2 http://so.me/path;' though.


Quote:
Originally Posted by SharpyWarpy View Post
Remember the source tarball errors out with JSScript error and compiling from Fedora source results in a binary that crashes on startup with javascript enabled.
I'm running elinks-0.12-0.27.pre5.fc16 which depends only on bzip2-libs, expat, glibc, gpm-libs, js, keyutils-libs, krb5-libs, libcom_err, libgcc, libidn, libselinux, libstdc++, nspr, nss, nss_compat_ossl, nss-util, zlib with config `grep -v ^.*# ~/.elinks/elinks.conf | grep .;`:
Code:
  set config.saving_style_w = 1
  set ecmascript.enable = 1
  set ecmascript.error_reporting = 1
  set ecmascript.ignore_noscript = 0
  set ecmascript.max_exec_time = 5
  set ecmascript.block_window_opening = 1
  set ui.language = "System"
and as you see I have Javascript enabled on startup. It doesn't crash. I can load your DuckDuckGo.html w/o problems. Sure it pop-ups about "kurl" and "YAHOO" but these aren't defined in the HTML source or force-loaded from external sources so that's not really an error IMHO. Visiting web sites works OK-ish: I've visited Google, DuckDuckGo and NBC News and apart from lag on initial render and the occasional pop-up about undefined references it works and I haven't had it crash.

I wonder if some of your current problems may be due to mixing sources (as the ticket suggests)?.. Maybe remove the developer elinks version and Spider Monkey libraries and try again?
 
Old 08-05-2012, 07:09 AM   #5
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 90
Quote:
I wonder if some of your current problems may be due to mixing sources (as the ticket suggests)?.. Maybe remove the developer elinks version and Spider Monkey libraries and try again?
Yes, I'll try that although I think I did that adready some time ago. Another point, I edited the config file to output ecmascript errors and it was spitten' 'em out like crazy.
 
Old 08-19-2012, 09:29 PM   #6
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 90
Quote:
Originally Posted by SharpyWarpy View Post
Yes, I'll try that although I think I did that adready some time ago. Another point, I edited the config file to output ecmascript errors and it was spitten' 'em out like crazy.
Okay I finally got around to trying that, making sure I had the Fedora distribution packages only, uninstalling anything spidermonkey or js that I had compiled. And I tried the updated version of elinks from the fedora update repo and no joy.
But I did get these problems with javascript fixed by removing elinks, compiling and installing the latest source of elinks, ELinks 0.13.GIT, from the elinks site. It compiled without problems.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] elinks crashes with javascript enabled SharpyWarpy Linux - General 17 08-19-2012 09:32 PM
can i enable javascript in elinks? daweefolk Linux - Software 1 03-09-2011 05:30 PM
Using JavaScript in Elinks corbis_demon Linux - Software 0 03-21-2006 07:48 AM
Elinks: javascript problem ashesh Linux - General 1 07-21-2003 02:06 AM
Javascript problems on Apache vvandam Linux - Newbie 4 07-17-2003 06:50 AM


All times are GMT -5. The time now is 10:19 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