Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline wawrzon

Re: NetSurf OS3.x Issues
« Reply #314 from previous page: April 28, 2016, 02:15:01 AM »
i need to redirect the outputu to serial to catch the log orderly.
so far after a lot of ami_font_bm_open calls, which seem to process all fine there is browser_window_update_favicon in desktop/browser.c 1182
and then amiga/schedule.c 247amiga_scheduler_run callback with at the first sight possibly valid arguments. callback like that look like being executed alright previously

and thats it.
 

Offline utri007

Re: NetSurf OS3.x Issues
« Reply #315 on: April 28, 2016, 09:14:24 AM »
Would it be possible add friend_bitmap to settings GUI? or is it there already?

Amigaworld.net logo has also red color. I think that everything is OK otherwise, dithering colors are acceptable.
ACube Sam 440ep Flex 800mhz, 1gb ram and 240gb hd and OS4.1FE
A1200 Micronic tower, OS3.9, Apollo 060 66mhz, xPert Merlin, Delfina Lite and Micronic Scandy, 500Gb hd, 66mb ram, DVD-burner and WLAN.
A1200 desktop, OS3.9, Blizzard 060 66mhz, 66mb ram, Ide Fix Express with 160Gb HD and WLAN
A500 OS2.1, GVP+HD8 with 4mb ram, 1mb chip ram and 4gb HD
Commodore CDTV KS3.1, 1mb chip, 4mb fast ram and IDE HD
 

Offline chris

Re: NetSurf OS3.x Issues
« Reply #316 on: April 28, 2016, 09:59:28 AM »
Quote from: wawrzon;807654
i need to redirect the outputu to serial to catch the log orderly.
so far after a lot of ami_font_bm_open calls, which seem to process all fine there is browser_window_update_favicon in desktop/browser.c 1182
and then amiga/schedule.c 247amiga_scheduler_run callback with at the first sight possibly valid arguments. callback like that look like being executed alright previously

and thats it.


That sounds like something I spent quite a while looking into previously, and decided it was only crashing there because something previously had overwritten memory.  I was still none the wiser as to what.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline wawrzon

Re: NetSurf OS3.x Issues
« Reply #317 on: April 28, 2016, 12:36:09 PM »
maybe running enforcer wouldnt be that bad idea after all, with the -v option we could roughly see where the write hits are coming from. then we could inspect suspicious segment of code closer, even if with deadwoods method inserting debug statements by hand. or maybe someone familiar with uae debugger could help single step it. it woul probably be the content of one function, wouldnt it?
 

Offline chris

Re: NetSurf OS3.x Issues
« Reply #318 on: April 28, 2016, 07:55:57 PM »
Quote from: utri007;807660
Would it be possible add friend_bitmap to settings GUI? or is it there already?

No, I'd rather get rid of it completely.

Quote
Amigaworld.net logo has also red color. I think that everything is OK otherwise, dithering colors are acceptable.

It's looks like red and white are getting swapped... weird.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline utri007

Re: NetSurf OS3.x Issues
« Reply #319 on: April 28, 2016, 11:09:08 PM »
I made some testing.

I created empty html document, nothing on it, just

Named it to test.html

It loads 0,5 seconds.

Loading amiga.org and after that test.html, swapping between amiga.org/test.html, I could keep amiga.org loading times less than 36 seconds. I also tested to load amiga.org -> forums -> test.html even after that amiga.org loaded less than 36 seconds. Tested with netsurf local home page, it also works.

Noticed that largest free block is still getting smaller every time, and memory is slowly eaten.  Loading those pages about a dozen times reserves about 7mb ram. Does it free memory at all??? Amiga.org loaded I have 35mb free ram, test.html loaded I have 35mb free ram. Going amiga.org again eats memory less than 1mb. First time loaded amiga.org uses about 5-7mb ram.

So what it keeps on ram?
ACube Sam 440ep Flex 800mhz, 1gb ram and 240gb hd and OS4.1FE
A1200 Micronic tower, OS3.9, Apollo 060 66mhz, xPert Merlin, Delfina Lite and Micronic Scandy, 500Gb hd, 66mb ram, DVD-burner and WLAN.
A1200 desktop, OS3.9, Blizzard 060 66mhz, 66mb ram, Ide Fix Express with 160Gb HD and WLAN
A500 OS2.1, GVP+HD8 with 4mb ram, 1mb chip ram and 4gb HD
Commodore CDTV KS3.1, 1mb chip, 4mb fast ram and IDE HD
 

Offline NovaCoder

Re: NetSurf OS3.x Issues
« Reply #320 on: April 29, 2016, 01:46:57 AM »
Quote from: utri007;807689
I made some testing.

Noticed that largest free block is still getting smaller every time, and memory is slowly eaten.  Loading those pages about a dozen times reserves about 7mb ram. Does it free memory at all??? Amiga.org loaded I have 35mb free ram, test.html loaded I have 35mb free ram. Going amiga.org again eats memory less than 1mb. First time loaded amiga.org uses about 5-7mb ram.

So what it keeps on ram?


Are you using gcc to build this beastie Chris?

When I was porting Quake 2 to AGA I discovered that the standard memory allocation functions 'malloc/free' are buggy and would not always release allocated memory (I was compiling with -noixemul BTW).

The solution (which came to me after sacrificing many virgins), was to wrap my memory allocation functions and redirect to the Amiga OS standard AllocVec/FreeVec functions.

If that doesn't work you'll need to write your own hunk allocation memory manager.

http://gameprogrammingpatterns.com/object-pool.html
« Last Edit: April 29, 2016, 02:30:34 AM by NovaCoder »
Life begins at 100 MIPS!


Nice Ports on AmiNet!
 

Offline UberFreak

  • Full Member
  • ***
  • Join Date: Nov 2012
  • Posts: 148
    • Show only replies by UberFreak
Re: NetSurf OS3.x Issues
« Reply #321 on: April 29, 2016, 06:56:17 AM »
What you see is quite normal.
The C standard library contains its own memory allocation manager.
It allocates big chunks from the OS and manages them internally, which is why you dont see OS memory releases as often as you might expect.
 

Offline wawrzon

Re: NetSurf OS3.x Issues
« Reply #322 on: April 30, 2016, 11:40:00 AM »
now with winuaeenforcer i cannot trace the issue, it actually opened the wikipedia page. however i must correct myself. the images are not rendered correctly.
« Last Edit: April 30, 2016, 11:44:20 AM by wawrzon »
 

Offline utri007

Re: NetSurf OS3.x Issues
« Reply #323 on: April 30, 2016, 02:45:43 PM »
Tested with WinUAE (Amiga Forever 2013)

It doesn't start, it kills UAE. Also previous install was tested with it without problems.
ACube Sam 440ep Flex 800mhz, 1gb ram and 240gb hd and OS4.1FE
A1200 Micronic tower, OS3.9, Apollo 060 66mhz, xPert Merlin, Delfina Lite and Micronic Scandy, 500Gb hd, 66mb ram, DVD-burner and WLAN.
A1200 desktop, OS3.9, Blizzard 060 66mhz, 66mb ram, Ide Fix Express with 160Gb HD and WLAN
A500 OS2.1, GVP+HD8 with 4mb ram, 1mb chip ram and 4gb HD
Commodore CDTV KS3.1, 1mb chip, 4mb fast ram and IDE HD
 

Offline chris

Re: NetSurf OS3.x Issues
« Reply #324 on: April 30, 2016, 08:20:15 PM »
Quote from: utri007;807744
Tested with WinUAE (Amiga Forever 2013)

It doesn't start, it kills UAE. Also previous install was tested with it without problems.


By "previous one" I assume you are comparing the previous guigfx version with the new guigfx version?

There's very little change between them but I could have screwed something up.
"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 #325 on: April 30, 2016, 08:20:45 PM »
Quote from: wawrzon;807740
now with winuaeenforcer i cannot trace the issue, it actually opened the wikipedia page. however i must correct myself. the images are not rendered correctly.


Not rendered correctly how?
"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 #326 on: April 30, 2016, 08:22:27 PM »
Quote from: UberFreak;807699
What you see is quite normal.
The C standard library contains its own memory allocation manager.
It allocates big chunks from the OS and manages them internally, which is why you dont see OS memory releases as often as you might expect.


Also switching between a blank page and amiga.org isn't going to free up much memory, because most of amiga.org will remain in the memory cache.

Reduce the size of the memory cache to free memory up more frequently (won't stop it fragmenting though)
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline utri007

Re: NetSurf OS3.x Issues
« Reply #327 on: April 30, 2016, 08:50:20 PM »
Quote from: chris;807749
By "previous one" I assume you are comparing the previous guigfx version with the new guigfx version?



I mean version wich used datatypes.

Quote
Also switching between a blank page and amiga.org isn't going to free up much memory, because most of amiga.org will remain in the memory cache.


It keeps Netsurf speed acceptable level. It is easy to reproduce By someone else, but it would require real hardware.

Reloading amiga.org front page makes slow down. Two times it is about same time, third is 60-80 seconds, fourth is something like 120 seconds and fith is over three minits.

So loading amiga.org front page / forums about a twelve times less than 36 seconds, is something.

If pages are keeped in memory, fragmention happen because??? What is does when it loads page from memory???

Did you notice Novacoder's reply?

Quote

When I was porting Quake 2 to AGA I discovered that the standard memory allocation functions 'malloc/free' are buggy and would not always release allocated memory (I was compiling with -noixemul BTW).

The solution (which came to me after sacrificing many virgins), was to wrap my memory allocation functions and redirect to the Amiga OS standard AllocVec/FreeVec functions.
« Last Edit: May 03, 2016, 10:21:23 PM by utri007 »
ACube Sam 440ep Flex 800mhz, 1gb ram and 240gb hd and OS4.1FE
A1200 Micronic tower, OS3.9, Apollo 060 66mhz, xPert Merlin, Delfina Lite and Micronic Scandy, 500Gb hd, 66mb ram, DVD-burner and WLAN.
A1200 desktop, OS3.9, Blizzard 060 66mhz, 66mb ram, Ide Fix Express with 160Gb HD and WLAN
A500 OS2.1, GVP+HD8 with 4mb ram, 1mb chip ram and 4gb HD
Commodore CDTV KS3.1, 1mb chip, 4mb fast ram and IDE HD
 

Offline chris

Re: NetSurf OS3.x Issues
« Reply #328 on: November 19, 2016, 12:00:47 AM »
OK, new version: 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 Primax

  • Newbie
  • *
  • Join Date: Feb 2016
  • Posts: 30
    • Show only replies by Primax
Re: NetSurf OS3.x Issues
« Reply #329 on: November 19, 2016, 08:48:00 AM »
Thank you.
But: Please tell us, which kind of lha-compression or version do you use?
I cannot decompress the archive under OS3.9. It says a newer lha version is required.
I have installed version 2.15 from January 2011.