Welcome, Guest. Please login or register.

Author Topic: NetSurf OS3.x Issues  (Read 41513 times)

Description:

0 Members and 3 Guests are viewing this topic.

Offline chris

Re: NetSurf OS3.x Issues
« Reply #59 from previous page: February 27, 2016, 01:37:08 PM »
OK, try the new build.

I'm interested in whether it is any faster, whether any slowdown occurs (and if so, how soon and how much), and whether it uses more memory.
"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: NetSurf OS3.x Issues
« Reply #60 on: February 27, 2016, 05:54:37 PM »
Quote from: jennadk;804762
Am I correct in assuming this version  requires a FPU?

Edit: I don't have one and simply get the error "8000000B" when trying to start it. (Amiga 1200 / ACA1231 / 3.1 ROMs / OS3.9BB4)


It *shouldn't*, certainly early versions were working without FPU but recent ones I can't run either (although I've not tried for a while).

It's built with soft float, but maybe not everywhere.
"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: NetSurf OS3.x Issues
« Reply #61 on: February 28, 2016, 11:34:51 AM »
Quote from: jennadk;804782
Fair, oddly if I launch from the CLI it hangs rather than crashes. Specifically it hangs here (at my 64 color AGA screen being detected):

global_history_init: Loaded global history
(193.284900) content/llcache.c:1355 llcache_process_metadata: Retriving metadata
(193.413112) content/fs_backing_store.c:889 get_store_entry: url:http://www.google.com/favicon.ico
(193.570131) content/fs_backing_store.c:897 get_store_entry: Failed to find ident 0x634ae90c in index
(193.727449) content/fs_backing_store.c:1923 fetch: entry not found
(193.839826) content/fetchers/curl.c:280 fetch_curl_setup: fetch 0x8e6d558, url 'http://www.google.com/favicon.ico'
(194.015665) amiga/font.c:54 ami_font_setdevicedpi: WARNING: Using diskfont.library for text. Forcing DPI to 72.
(194.182763) amiga/plotters.c:102 ami_init_layers: Screen depth = 6

I might have to add some extra debug in to track this down, but firstly are you using the version from my test link (ntlworld) or Aminet?  If the latter, please try the test version instead.

Secondly, try opening your Choices file (in Users/your-username) and adding:
friend_bitmap:1
Or change the value to 0 if it is already present.

edit is this the 8000000b error?

Quote
Also, for the installer script to run I have to rename the readme to get rid of the "_os3" line. Thank you so much for all your efforts!

Thanks, fixed.
« Last Edit: February 28, 2016, 11:48:15 AM by chris »
"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: NetSurf OS3.x Issues
« Reply #62 on: February 28, 2016, 11:24:15 PM »
Quote from: jennadk;804816
Edit Edit: Okay, I'm getting inconsistent and different freezes/crashes depending on how I launch this, so I'm going to probably try on a clean OS install next. Still get the original 8000000B error when trying the regular double-click launch instead of launching from the CLI, which makes no sense as I get different errors or a hang there.

I'm confident that there is some memory trashing happening in NetSurf, I just wish I knew how to figure out where.

There is a slightly different code path depending on whether it is started from WB or CLI which might account for the differences in how it crashes.  The trashing must happen before the branch which narrows it down a bit, but not much.

I can add some more logging which might help see which function is crashing, and running something like Enforcer might help (although I have no way of interpreting any output).
"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: NetSurf OS3.x Issues
« Reply #63 on: February 28, 2016, 11:38:59 PM »
Quote from: olsen;804804
I suspect that this may not make much of a difference. The memory pools, which is what the malloc()/alloca()/realloc()/free() functions in clib2 are built upon, were intended to avoid fragmenting main memory. This is accomplished by having all allocations smaller than the preset puddle size draw from a puddle that still has enough room left for it to fit. Fragmentation happens inside that puddle.

Hi Olaf, thanks for commenting.  I increased the puddle size to 16K from the default 4K and it seems to have helped in my limited testing (no feedback yet from anybody else).  I figure this reduces the number of puddles in the list which need to be searched through, as well as allowing larger allocations into the pool.

Quote
From the clib2 side I'm afraid that the library can only leverage what the operating system provides, and that is not well-suited for applications which have to juggle large number of allocated memory fragments.

Which is exactly what you get in a web browser, with lots of memory being allocated for one page, and then for the next, and some of the old memory being deallocated...

Quote
Question is what size of memory chunk is common for NetSurf, how many chunks are in play, how large they are. If you have not yet implemented it, you might want to add a memory allocation debugging layer and collect statistics for it over time.

I haven't.  I think there are cache statistics in the log which might offer some clues though.  Beyond the cache data everything else is structures which should all be very small.
"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: NetSurf OS3.x Issues
« Reply #64 on: February 29, 2016, 12:50:04 AM »
Leap day treat: I've managed to get NetSurf compiling with optimisations enabled!
It doesn't provide much noticeable speed-up (most of the heavy processing happens in the libraries which were already built with optimisations on) and Javascript still doesn't work (fatal error on launch).

Usual place, built with optimisations but without Javascript, for testing.
"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: NetSurf OS3.x Issues
« Reply #65 on: February 29, 2016, 11:28:13 PM »
Quote from: olsen;804900
It might help, but you will have to put up with the limitations of the list-based memory management system if you stick with the pools.


Yes... I don't really want to write my own memory management though!
"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: NetSurf OS3.x Issues
« Reply #66 on: February 29, 2016, 11:34:05 PM »
Quote from: utri007;804892
Install script doesn't work, it says it requires OS4 system.


Make sure you don't have a file called netsurf.readme in the install source (or netsurf.readme~, which may well confuse the pattern matching)

Quote from: utri007;804925
Made testing with WinUAE, results were quite impressive.

First, it starts but freeses if CPU is not set to 68040, no matter is FPU enabled or not.


Works on an '030 here.  The freeze is probably that damn memory corruption bug.

Quote
I got one error after I log on to this site and cliked quick reply button :

Assertion of condition

"perror == PARSEUTIL_OK"
failed in line "utils/utf8.c", line 135.


I've added some code to try to protect against that, however I saw a similar assert in some random code when I tried to launch NetSurf from the Shell.  It went away if I increased the stack first, so you might want to check the stack is high enough (the stack cookie might be getting optimised away; didn't check).  Try at least 100K.

Quote from: utri007;804980
user/choises file is not read anymore. So I can't enable friend_bitmap.


It definitely does read the file.  Note it's called "Choices" and there's an extra level under Users.
"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: NetSurf OS3.x Issues
« Reply #67 on: March 03, 2016, 12:02:18 AM »
Quote from: utri007;805185
Installer doesn't work


Installer reads a different version number to what I thought it did.. fixed.

Quote
Requires usergroup.library


Provided by the TCP/IP stack.  You can just nick the one from the AmiTCP archive though.
"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: NetSurf OS3.x Issues
« Reply #68 on: March 03, 2016, 12:03:08 AM »
Quote from: olsen;805190
Need a hand? :)


If you want to help, then yes please!
"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: NetSurf OS3.x Issues
« Reply #69 on: March 03, 2016, 09:20:10 AM »
Quote from: jennadk;805240
Does this still require OS3.5+ or would Cloanto's "3.X" plus a a TCP/IP stack like Roadshow be enough to launch? Still curious to figure out if I was having a software or hardware issue and debating between a clean install 3.X + Roadshow or OS3.9 + BB4 + Genesis.


3.5 or 3.9.  I don't know what 3.X contains but I suspect it doesn't have all the v44+ Reaction classes that NetSurf needs.
"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: NetSurf OS3.x Issues
« Reply #70 on: March 05, 2016, 12:08:24 AM »
Quote from: jennadk;805390
I tested this in Amiga Forever's 3.X release and, other than having to grab a copy of usergroup.library it seemed to run just great. Going to see about testing that on my 1200.


Good to 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: NetSurf OS3.x Issues
« Reply #71 on: March 06, 2016, 05:21:40 PM »
I've uploaded a new version with the buttons fixed.  I tried rebuilding gcc to default to no FPU.  I'm not convinced it worked, but NetSurf seems a lot more stable now on open/close.  Maybe the 8000000B error is fixed?
"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: NetSurf OS3.x Issues
« Reply #72 on: April 02, 2016, 12:11:58 AM »
Quote from: utri007;806662

Tabs do work but they have some layout problems?
.


Have you tried closing them?
"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: NetSurf OS3.x Issues
« Reply #73 on: April 03, 2016, 01:06:37 PM »
Quote from: utri007;806743
Closing tabs has random problems, sometimes it works, sometimes it gives Netsurf error, sometimes it just crash.

Do you have any use those error codes?


Not really, I know it's broken and can reproduce it easily enough.
"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: NetSurf OS3.x Issues
« Reply #74 on: April 16, 2016, 03:19:21 PM »
NetSurf 3.5 BETA for AmigaOS 3.5+ is now available here: http://aminet.net/package/comm/www/netsurf_os3

Don't ask me what's changed, I can't remember :)
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz