Welcome, Guest. Please login or register.

Author Topic: duktape error NetSurf OS3  (Read 7494 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline chris

Re: duktape error NetSurf OS3
« on: March 08, 2016, 08:05:30 PM »
Quote from: EyMenZ;805583
Hello,  I trying to compile netsurf for OS3. But I have this problem hat I can not solve :angry:.
i test it on cygwin 32 under Windows and on ubuntu 15.10
could someone help me? thank you :)

Yes.  This is your problem:

Quote
Code: [Select]
make: nsgenbind: Command not found

You need to build and install nsgenbind (if you haven't already).

I find nsgenbind ends up in /opt/netsurf/bin where the makefile can't find it, so create a link in /usr/bin:
ln -s /opt/netsurf/bin/nsgenbind /usr/bin/nsgenbind
(think that's the right way round, always have to look it up!)

However I found here that NetSurf won't startup when Javascript is enabled, it just errors out, so you might find you need to disable it anyway (by adding a line to makefile.config, see makefile.defaults)
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #1 on: March 14, 2016, 03:12:28 PM »
Quote from: EyMenZ;805892
i have also errors on nsgenbind build


Try building it just with simply "make".  It needs to be built for the computer you are cross-compiling on, rather than the target (as it is only used for building NetSurf).
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #2 on: June 11, 2016, 09:55:26 PM »
You may also find after installing nsgenbind, that it isn't in the path. Creating a soft link from /usr/bin/nsgenbind to /opt/netsurf/bin/nsgenbind might help.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #3 on: June 13, 2016, 11:29:52 PM »
Quote from: DNADNL;809950

I think I already did this, and I have <> (I translate the sentence from french, so sorry for the mistakes)
I looked for the folder /usr/bin/nsgenbind but it doesn't exist. That the same thing for the other folder. I wonder if the link doesn't already exists...


I usually get that error because I can never remember what order the parameters are supposed to be in. :)

Anyway, it's easy to check if the link already exists:
Code: [Select]
chris@debian-vm:~/netsurf/netsurf$ ls -la /usr/bin/nsg*
lrwxrwxrwx 1 root root 26 Feb 29 00:16 /usr/bin/nsgenbind -> /opt/netsurf/bin/nsgenbind


If it shows up as a file (ie. no "->"), delete it and recreate the link.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #4 on: June 14, 2016, 06:30:58 PM »
Quote from: DNADNL;809973
However, the problem is when I try to launch NetSurf 3.5 on AmiKit V8 now. I obtain this :

Code: [Select]
FATAL 56: uncaught error
PANIC 56: uncaught error (calling abort)
Abnormal program termination
NetSurf : error code 20

I don't have this error with NetSurf 3.5 "dukTape disabled edition".

Yes, I have that problem too.  If you figure out the fix I'd appreciate a patch :)

Quote
The browser is well working in that case (it is only "not really" beautiful :) and the pictures and videos aren't displayed).

Hopefully that's not an issue with 3.6dev, the bitmap routines have been changed to use guigfx (as you know!)
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #5 on: June 14, 2016, 11:32:39 PM »
Quote from: DNADNL;809977
I can see a problem with the version date (6th April 1016). Maybe it comes from there ? A date issue as on every softwares synchronized with the Internet ?


That's a typo, it's just a text string, it's only used for display.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #6 on: June 15, 2016, 02:20:16 PM »
Quote from: utri007;809996
Java is nice, but I have high doubt that it would make Netsurf unuseable with real Amigas.

Java and Javascript are two different things.  Duktape implements Javascript.  It will only slow down NetSurf on pages which use Javascript, but I've not noticed any particular difference in speed with JS on/off under OS4.  There were a couple of issues that made Duktape really slow in certain circumstances, but they've been fixed.

Quote from: Tygre;809986
Thanks for the interesting discussions and all the effort! I wanted to mention that linking with fortify really helps catching memory problems, maybe that could be an option for the development version of netSurf?

Oooh, that looks interesting.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #7 on: June 15, 2016, 09:11:31 PM »
Quote from: DNADNL;810014
Oh, I don't think I'm good enough to do this ! :lol: I downloaded and looked the fortify files... and it doesn't seem to be reachable (with my level) to create the call to fortify (I could break everything ! :lol: )


Have a look at http://git.netsurf-browser.org/netsurf.git/log/?h=chris/fortify (or git checkout chris/fortify)
However... (a) that probably isn't adding fortify.h to all files (it assumes os3support.h and options.h are eventually included by everything, which probably isn't true)
and (b) it doesn't catch AllocVec/FreeVec and friends, which are mostly what I use in the frontend.

I'm getting some output, but it seems to be a load of bogus double free()s, which might be due to point (a) above, or because some of the allocations are made by linked libraries.

Try it and see if you can make any sense of the results.  I'll add some #defines for AllocVec when I get chance to catch those too.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #8 on: June 17, 2016, 03:35:25 PM »
Quote from: DNADNL;810066
I use gcc 5.3.0, that's what "gcc --version" says.


I didn't think that worked for 68k yet?
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #9 on: June 28, 2016, 07:48:20 PM »
Quote from: utri007;810418
Could you relase exe for those who doesn't code?


What would be the point?  If you don't code, you don't need this script.  Instead you need to download a pre-compiled version of NetSurf.

At some point the OS3 build will be added to Jenkins, at which time you'll get a new build every time something changes.  But we ought to fix the Duktape problem first.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #10 on: July 01, 2016, 10:16:30 AM »
Quote from: utri007;810477
OK respect for that. Thought you know devs usually release /publish binaries, so that "ordinary people" don't get comfused. ;)


You already have binaries.  Nothing has changed since my last release (or, at least, nothing relevant).
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #11 on: July 01, 2016, 10:18:29 AM »
Quote from: utri007;810477
OK respect for that. Thought you know devs usually release /publish binaries, so that "ordinary people" don't get comfused. ;)


You already have binaries.  Nothing has changed since my last release (or, at least, nothing relevant).

The aim here was to make it easier to build, and hence easier to contribute to.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #12 on: July 08, 2016, 08:02:52 PM »
I don't know where the other thread is and I don't have time to go looking for it right now, so...

@utri

Please try the latest test build and let me know if there is any improvement.
The amiga.org logo is still very red, but are any of the other images better?
Speed?

http://cy2.uk/netsurfos3
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #13 on: July 09, 2016, 12:04:48 AM »
Quote from: utri007;810805
As a side note : I have fblit configured in my 040 / AGA machine. It has huge impact to scrolling speed. Tested old and new versions same time, old version was running my 060 system wich doesn't have fblit installed.

"Cache native versions" will have a huge impact too.  That may or may not counteract any benefit from fblit.

Still puzzled as to why the amiga.org logo is weird colours.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline chris

Re: duktape error NetSurf OS3
« Reply #14 on: July 10, 2016, 01:15:16 AM »
Another new version.  Curious this time as to whether JPEG decoding speed is any different.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz