Welcome, Guest. Please login or register.

Author Topic: We need an iBrowse replacement for 68k!!!  (Read 75365 times)

Description:

0 Members and 2 Guests are viewing this topic.

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #494 from previous page: February 17, 2015, 10:46:36 PM »
Quote from: utri007;784675
What it would do after makedir iconcache? It seems that it does dir, wondering if crash because what happen after it?

Let's see...

Code: [Select]
ami_mime_init("PROGDIR:Resources/mimetypes");
 sprintf(temp, "%s/mimetypes.user", current_user_dir);
 ami_mime_init(temp);

It initialises the MIME types lookup, which is in this file.

ISTR a bug in ReadArgs which meant the line had to end with a LF, not sure if that's relevant here, I think the mimetypes file has one of those at the end.
"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: We need an iBrowse replacement for 68k!!!
« Reply #495 on: February 21, 2015, 02:00:35 PM »
I've uploaded a new one with the PROGDIR: problem fixed.
I've added a couple of lines of debug which might confirm whether utri's crash is in ami_mime_init or not.
"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: We need an iBrowse replacement for 68k!!!
« Reply #496 on: February 21, 2015, 02:13:44 PM »
I do some testing when I get time. I'm spending a "social weekend", so no Amigas today, maybe tomorrow.
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 wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #497 on: February 21, 2015, 03:48:03 PM »
confirm progdir issue gone, browser works without further modifications, aome wrong colors (endian issue) setting 16bit pc mode on my voodoo3, but i think these are minor things to take care later. attach screenshot of aorg, alas i cannot effectively post here from my amiga since netsurf is too slow.
http://www.amiga.org/gallery/images/5312/1_ns1.jpg

i will play with it a bit, but could you fix the preferences dialog window to be able to use it, probably it needs some minimal sizes or working resize gadget.
btw, command find text causes priviledge violation and consequently crashes the system.

i just wondr if we could use some other, less heavy site to communicate, so that i can post logs and screenshots directly from my amiga. maybe aw.net. also download link to the test archive in an initial post instead trying to memorize to search it somewhere on the 21 page of a long thread.
« Last Edit: February 21, 2015, 03:59:34 PM by wawrzon »
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #498 on: February 21, 2015, 10:47:15 PM »
Quote from: wawrzon;785044
confirm progdir issue gone, browser works without further modifications, aome wrong colors (endian issue) setting 16bit pc mode on my voodoo3, but i think these are minor things to take care later. attach screenshot of aorg, alas i cannot effectively post here from my amiga since netsurf is too slow.
http://www.amiga.org/gallery/images/5312/1_ns1.jpg

I think the bitmap tiling might be the cause of the previous page showing through. I did enable that for OS3 using some old code but I might have done something wrong.

Quote
i will play with it a bit, but could you fix the preferences dialog window to be able to use it, probably it needs some minimal sizes or working resize gadget.

More likely one of the objects isn't being created and is causing the window not to work at all.  It uses pretty much every type of gadget so it'll take a while to figure out what's not working, especially as I can't get that far here.  If I had to guess the most likely cause is page.gadget, which ties in with tabs in the browser not working either.

Quote
btw, command find text causes priviledge violation and consequently crashes the system.

Matthey?

Quote
i just wondr if we could use some other, less heavy site to communicate, so that i can post logs and screenshots directly from my amiga. maybe aw.net. also download link to the test archive in an initial post instead trying to memorize to search it somewhere on the 21 page of a long thread.

amigans.net is preferred by me, don't know whether it is any less heavy though.

The download link will be moving eventually, I've asked Vince to enable to auto-builder but it hasn't been done yet.

I can't make any significant changes right now as 3.3 is being released next week, and I don't want to inadvertently break something for OS4.
"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: We need an iBrowse replacement for 68k!!!
« Reply #499 on: February 21, 2015, 11:02:54 PM »
Quote
Matthey?
ill try to reproduce it here with some log but matt isa more skilled with it for sure.

Quote
amigans.net is preferred by me, don't know whether it is any less heavy though.

probably only a bit if anything. however even if i still have an account there my posts would be deleted even before i would mention 68k, so no chance. sad is, almost any site seems to be too heavy for netsurf on amiga in its current state. i think we must stick to uae.
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #500 on: February 22, 2015, 04:08:06 AM »
Quote from: chris;785031
I've uploaded a new one with the PROGDIR: problem fixed.
I've added a couple of lines of debug which might confirm whether utri's crash is in ami_mime_init or not.


New version is working ok here.

Quote from: wawrzon;785044
confirm progdir issue gone, browser works without further modifications, aome wrong colors (endian issue) setting 16bit pc mode on my voodoo3, but i think these are minor things to take care later. attach screenshot of aorg, alas i cannot effectively post here from my amiga since netsurf is too slow.


I'm not so sure of an endian problem. I'm using 16 bit "pc" here also.

Quote from: wawrzon;785044

btw, command find text causes priviledge violation and consequently crashes the system.


Same here. It's in intuition.library. I'll look into it.

There are several places (menu items or gadgets) that cause hits or crashes which I have not debugged. I don't know which areas Chris has worked on and are ready to debug.
 

Offline kolla

Re: We need an iBrowse replacement for 68k!!!
« Reply #501 on: February 22, 2015, 06:08:48 AM »
So, does it run on AROS/68k on Vampire600 with Phoenix core? That would be neat to see.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #502 on: February 22, 2015, 10:54:11 AM »
Quote from: matthey;785125
There are several places (menu items or gadgets) that cause hits or crashes which I have not debugged. I don't know which areas Chris has worked on and are ready to debug.

IIRC everything is enabled now on that build (except tabbed browsing), so all the menu items should work.
"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: We need an iBrowse replacement for 68k!!!
« Reply #503 on: February 22, 2015, 12:07:19 PM »
Quote from: matthey;785125

I'm not so sure of an endian problem. I'm using 16 bit "pc" here also.


strangely it didnt reproduce second time.
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #504 on: February 22, 2015, 05:03:29 PM »
OK, I've put an experimental bitmap fonts supported version up.  It's pretty horrid but is definitely faster even on OS4 when using outline fonts through it. :)  It doesn't make any attempt to display anything in the correct character set, you'll just get raw UTF-8 stuck on the screen.

To enable, set the following in Choices:
use_diskfont:1
font_sans:helvetica
font_serif:times
font_mono:topaz
font_cursive:garnet
font_fantasy:emerald

Feel free to use different fonts!
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #505 on: February 22, 2015, 06:32:23 PM »
Quote from: chris;785170
OK, I've put an experimental bitmap fonts supported version up.  It's pretty horrid but is definitely faster even on OS4 when using outline fonts through it. :)  It doesn't make any attempt to display anything in the correct character set, you'll just get raw UTF-8 stuck on the screen.

To enable, set the following in Choices:
use_diskfont:1
font_sans:helvetica
font_serif:times
font_mono:topaz
font_cursive:garnet
font_fantasy:emerald

Feel free to use different fonts!

It's working and there is spacing in the text now which looks better but ami_font_bm_open() must be called several thousand times, often many times for the same font and size in a row. This makes it slow with netsurf -v to display all the output but maybe it will be alright without -v.

I've been trying to track down the menu "Browser->Find text" bug which is caused by a NULL pointer which is then put on the stack and used by an RTS deep inside intuition.library. What ever happened to simple hits in the executable? I guess this is what happens when back porting to an OS which is missing the new APIs and support.

Edit: I have one lead pointing to the "Browser->Find text" bug being in amiga/menu.c ami_menu_item_browser_find(), It would be the GetAttr() call that has the hit and then guru in intuition.library. The NULL pointer may be at an offset of 8 from a structure (maybe a private struct). I would have to catch before the GetAttr() call if you need more info on arguments passed.

Scrolling the display window with the keyboard works but not the proportional gadgets which give NetSurf debugging messages like:

Code: [Select]
amiga/gui.c ami_scroller_hook 5168: IDCMP hook unhandled event: 0

This might be good to fix. The NetSurf program size keeps dropping as you add new features which is good. You may eventually have enough memory on your AmigaOS 3 system to run it yourself if you keep it up ;).
« Last Edit: February 22, 2015, 08:10:24 PM by matthey »
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #506 on: February 23, 2015, 05:21:48 PM »
yea it works and may have gained some speedup.
for comparison some older netsurf sdl version opens amiga.org within 13.5s, it might be a fixed size font version and the resolution is a bit lower, so it isnbt a completely fair comparison, but it gives an idea. the reaction version needs close to a minute for the same.
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #507 on: February 23, 2015, 08:36:14 PM »
Quote from: matthey;785175
It's working and there is spacing in the text now which looks better but ami_font_bm_open() must be called several thousand times, often many times for the same font and size in a row. This makes it slow with netsurf -v to display all the output but maybe it will be alright without -v.

It's always going to be slower with -v anyway.

OpenDiskFont caches the fonts, my usual code does caching itself but here it's more complicated (due to having to open the right combination of font, size and flags) and I figured it was unnecessary.

Quote
I've been trying to track down the menu "Browser->Find text" bug which is caused by a NULL pointer which is then put on the stack and used by an RTS deep inside intuition.library. What ever happened to simple hits in the executable? I guess this is what happens when back porting to an OS which is missing the new APIs and support.

Edit: I have one lead pointing to the "Browser->Find text" bug being in amiga/menu.c ami_menu_item_browser_find(), It would be the GetAttr() call that has the hit and then guru in intuition.library. The NULL pointer may be at an offset of 8 from a structure (maybe a private struct). I would have to catch before the GetAttr() call if you need more info on arguments passed.

That GetAttr is used in a lot of the menu options - eg. Show Local History does it too.  I can't believe there's anything wrong with that, it's only getting the WINDOW_UserData value.

Edit: actually this is probably a 68k registers thing too, it'll take me a while to get through these.

Quote
Scrolling the display window with the keyboard works but not the proportional gadgets which give NetSurf debugging messages like:

Code: [Select]
amiga/gui.c ami_scroller_hook 5168: IDCMP hook unhandled event: 0

OK, I think that's a 68k registers thing.  I've probably fixed it.  I'll hold off uploading new builds for the minute until I merge the bitmap fonts stuff across.
« Last Edit: February 23, 2015, 09:19:13 PM 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 utri007

Re: We need an iBrowse replacement for 68k!!!
« Reply #508 on: February 23, 2015, 09:16:34 PM »
Is download link same than in page 20?
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 wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #509 on: February 23, 2015, 09:23:53 PM »
Quote from: chris;785246
It's always going to be slower with -v anyway.
measured without on my part.

Quote
I'll hold off uploading new builds for the minute until I merge the bitmap fonts stuff across.
give a hint as soon as its ready, i might stay in the studio tonight.

@utri007
Quote
Is download link same than in page 20?
21