Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #329 from previous page: January 31, 2015, 11:45:33 AM »
Quote from: matthey;782676
Processing the exec list header as a node is basically what I was trying to say and it's a common problem with exec lists. Do the list nodes have many data (non-link) pointers? If so, would it be easy to define data (like padding) and clear the memory below the List or MinList header structures? Then if the list header was used like a node for a pointer, it would usually generate a MuForce/Enforcer hit to address 0 which we should be able to catch.

OK, well I'm pretty sure Buzz's code is OK as it's in use elsewhere, but I've added some padding to the list structure in the function which usually allocates the memory for my lists, so if it is still reading the list header anywhere we'll see it.

Quote
The RA_HandleInput problem is tough because there is a lot of abstraction in this area. This is where it would be nice to have line debug and know the source lines. I can normally pretty well compare the C source to assembler but not here.

I added some more debugging to try and track this down, and it seems to be consistently crashing after RA_HandleInput now, so I'm thinking I've fixed this.  You'll see how the function is called on the debug now, which might help.

Could you have a look at the new build and see what you get?  Thanks for your help!

edit: fixed build as an earlier fix got reverted accidentally
« Last Edit: January 31, 2015, 12:07:57 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 wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #330 on: January 31, 2015, 04:32:10 PM »
somehow my last post got lost for being too long so i repost my current log truncated at the beginning once again. running in winuae you can see all the details in winuae debugger, but i dont know how to post them here.

Code: [Select]

.....
  Global     Fail..
 238   [5] netsurf        GetVar     Datatypes/WarpPNG.prefs
  Global*    Fail..
 239   [5] netsurf        GetVar     classes/datatypes/picture/DitherHiColour
  Any        Fail..
 240   [5] netsurf        GetVar     Datatypes/WarpPNG.prefs
  Global*    Fail..
 241   [5] netsurf        GetVar     classes/datatypes/picture/DitherHiColour
  Any        Fail..
 242   [5] netsurf        GetVar     Datatypes/WarpPNG.prefs
  Global*    Fail..
 243   [5] netsurf        GetVar     classes/datatypes/picture/DitherHiColour
  Any        Fail..
 244   [5] netsurf        GetVar     Datatypes/WarpPNG.prefs
  Global*    Fail..
window already open (146x172 1024x768)
Device name: 'Intel(R) HD Graphics 4000' a0012000a0da8.9
D3D9Ex: 00000056 ALPHA DYNAMIC SCANLINE
D3D9Ex: PS=3.0 VS=3.0 1024*768*0p VS=0 B=1I 32-bit 0
D3D9Ex: pixelshader filter 'C:\Users\Public\Documents\Amiga Files\WinUAE\_winuae
.fx':-1 enabled
D3D9Ex: 1024*768 main texture, depth 32
Buffer size (1024*768) RTG
RTGFREQ: 262*59.2804 = 15531.4666 / 59.3 = 262
SetSwitch() - Picasso96 1024x768x32 (1024x768x32)
POS (0 0 1024 768) - (0 0 1024 768)[1024,768] (0 0)
window already open (146x172 1024x768)
Device name: 'Intel(R) HD Graphics 4000' a0012000a0da8.9
D3D9Ex: 00000056 ALPHA DYNAMIC SCANLINE
D3D9Ex: PS=3.0 VS=3.0 1024*768*0p VS=0 B=1I 32-bit 0
D3D9Ex: pixelshader filter 'C:\Users\Public\Documents\Amiga Files\WinUAE\_winuae
.fx':-1 enabled
D3D9Ex: 1024*768 main texture, depth 32
Buffer size (1024*768) RTG
RTGFREQ: 262*59.2804 = 15531.4666 / 59.3 = 262
SetSwitch() - Picasso96 800x600x32 (1024x768x32)
POS (0 0 1024 768) - (0 0 800 600)[800,600] (0 0)
 245   [5] netsurf        GetVar     classes/datatypes/picture/DitherHiColour
  Any        Fail..
 246   [5] netsurf        GetVar     Datatypes/WarpPNG.prefs
  Global*    Fail..
 247   [5] netsurf        GetVar     classes/datatypes/picture/DitherHiColour
  Any        Fail..
 248   [5] netsurf        GetVar     Datatypes/WarpPNG.prefs
  Global*    Fail..
 249   [5] netsurf        GetVar     classes/datatypes/picture/DitherHiColour
  Any        Fail..
 250   [5] netsurf        GetVar     Datatypes/WarpPNG.prefs
  Global*    Fail..
 251   [5] netsurf        GetVar     classes/datatypes/picture/DitherHiColour
  Any        Fail..
 252   [5] netsurf        GetVar     Datatypes/WarpPNG.prefs
  Global*    Fail..
 253   [5] netsurf        GetVar     classes/datatypes/picture/DitherHiColour
  Any        Fail..
 254   [5] netsurf        GetVar     Datatypes/WarpPNG.prefs
  Global*    Fail..
 255   [5] netsurf        GetVar     classes/datatypes/picture/DitherHiColour
  Any        Fail..
 256   [5] netsurf        GetVar     Datatypes/WarpPNG.prefs
  Global*    Fail..
window already open (146x172 1024x768)
Device name: 'Intel(R) HD Graphics 4000' a0012000a0da8.9
D3D9Ex: 00000056 ALPHA DYNAMIC SCANLINE
D3D9Ex: PS=3.0 VS=3.0 1024*768*0p VS=0 B=1I 32-bit 0
D3D9Ex: pixelshader filter 'C:\Users\Public\Documents\Amiga Files\WinUAE\_winuae
.fx':-1 enabled
D3D9Ex: 1024*768 main texture, depth 32
Buffer size (1024*768) RTG
RTGFREQ: 262*59.2804 = 15531.4666 / 59.3 = 262
POS (0 0 1024 768) - (0 0 1024 768)[1024,768] (0 0)
SetSwitch() - Picasso96 1024x768x32 (1024x768x32)
window already open (146x172 1024x768)
Device name: 'Intel(R) HD Graphics 4000' a0012000a0da8.9
D3D9Ex: 00000056 ALPHA DYNAMIC SCANLINE
D3D9Ex: PS=3.0 VS=3.0 1024*768*0p VS=0 B=1I 32-bit 0
D3D9Ex: pixelshader filter 'C:\Users\Public\Documents\Amiga Files\WinUAE\_winuae
.fx':-1 enabled
D3D9Ex: 1024*768 main texture, depth 32
Buffer size (1024*768) RTG
RTGFREQ: 262*59.2804 = 15531.4666 / 59.3 = 262
SetSwitch() - Picasso96 800x600x32 (1024x768x32)
POS (0 0 1024 768) - (0 0 800 600)[800,600] (0 0)
 257   [5] netsurf        GetVar     classes/datatypes/picture/DitherHiColour
  Any        Fail..
 258   [5] netsurf        GetVar     no_proxy
  Any        Fail..
window already open (146x172 1024x768)
Device name: 'Intel(R) HD Graphics 4000' a0012000a0da8.9
D3D9Ex: 00000056 ALPHA DYNAMIC SCANLINE
D3D9Ex: PS=3.0 VS=3.0 1024*768*0p VS=0 B=1I 32-bit 0
D3D9Ex: pixelshader filter 'C:\Users\Public\Documents\Amiga Files\WinUAE\_winuae
.fx':-1 enabled
D3D9Ex: 1024*768 main texture, depth 32
Buffer size (1024*768) RTG
RTGFREQ: 262*59.2804 = 15531.4666 / 59.3 = 262
POS (0 0 1024 768) - (0 0 1024 768)[1024,768] (0 0)
SetSwitch() - Picasso96 1024x768x32 (1024x768x32)
 259   [5] netsurf        GetVar     NO_PROXY
  Any        Fail..
 260   [5] netsurf        GetVar     http_proxy
  Any        Fail..
 261   [5] netsurf        GetVar     all_proxy
  Any        Fail..
 262   [5] netsurf        GetVar     ALL_PROXY
  Any        Fail..
 263   [5] netsurf        Open       work:wawa/NetSurf/Resources/Icons/search.pn
g Read       Fail..
 264   [5] netsurf        FindPort   PowerIconsPort
             Fail..
 265   [5] netsurf        ToolType   MIMETYPE
             Fail..
 266   [5] netsurf        Open       work:wawa/NetSurf/Resources/Icons/arrow-l.p
n Read       Fail..
 267   [5] netsurf        ToolType   MIMETYPE
             Fail..
 268   [5] netsurf        Open       work:wawa/NetSurf/Resources/Icons/content.p
n Read       Fail..
 269   [5] netsurf        ToolType   MIMETYPE
             Fail..
 270   [5] netsurf        Open       work:wawa/NetSurf/Resources/Icons/directory
. Read       Fail..
 271   [5] netsurf        ToolType   MIMETYPE
             Fail..
 272   [5] netsurf        GetVar     classes/datatypes/picture/DitherHiColour
  Any        Fail..
 273   [5] netsurf        Open       work:wawa/NetSurf/Resources/Icons/directory
2 Read       Fail..
 274   [5] netsurf        ToolType   MIMETYPE
             Fail..
 275   [5] netsurf        Open       work:wawa/NetSurf/Resources/Icons/search.pn
g Read       Fail..
 276   [5] netsurf        ToolType   MIMETYPE
             Fail..
 277   [5] netsurf        Open       work:wawa/NetSurf/Resources/en/welcome.html
, Read       Fail..
 278   [5] netsurf        ToolType   MIMETYPE
             Fail..
 279   [5] netsurf        Open       work:wawa/NetSurf/Resources/netsurf.png.inf
o Read       Fail..
 280   [5] netsurf        ToolType   MIMETYPE
             Fail..
 281   [5] netsurf        Open       work:wawa/NetSurf/Resources/nsdefault.css.i
n Read       Fail..
 282   [5] netsurf        ToolType   MIMETYPE
             Fail..
 283   [5] netsurf        Open       work:wawa/NetSurf/Resources/netsurf.png.inf
o Read       Fail..
 284   [5] netsurf        ToolType   MIMETYPE
             Fail..
Illegal instruction: 3b3e at 000000C6 -> 07FFBFCE
 285   [5] netsurf        GetVar     classes/datatypes/picture/DitherHiColour
  Any        Fail..
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #331 on: January 31, 2015, 05:08:54 PM »
Quote from: chris;782684
I added some more debugging to try and track this down, and it seems to be consistently crashing after RA_HandleInput now, so I'm thinking I've fixed this.  You'll see how the function is called on the debug now, which might help.

Could you have a look at the new build and see what you get?  Thanks for your help!

edit: fixed build as an earlier fix got reverted accidentally

I'm working with the NetSurf executable which is now 5920060 bytes. A "Scanning fonts..." requestor now opens and it gets almost 60% of the way through the top guage and barely started on the bottom guage as it scans my large collection of fonts before I get an address error exception from the bullet.library. The return value on the stack from an RTS (Return from Subroutine) is 0xffffffff (-1 signed) and the PC must maintain even alignement thus the address error. The last debug output is:

Code: [Select]
amiga/font_scan.c ami_font_scan_fonts 293: Found 0 new glyphs (total = 474)
amiga/font_scan.c ami_font_scan_fonts 290: Scanning NewBrunswick_BoldItalic
amiga/os3support.c OpenOutlineFont 105: Using font engine bullet
amiga/font_scan.c ami_font_scan_fonts 293: Found 0 new glyphs (total = 474)
amiga/font_scan.c ami_font_scan_fonts 290: Scanning NewBrunswick_Italic
amiga/os3support.c OpenOutlineFont 105: Using font engine bullet

It's strange that bullet.library didn't crash with the NewBrunswick_BoldItalic font before this. Maybe this font is from Wordworth?

Edit: I tried the NewBrunswick_Italic font in WordWorth to make sure it wasn't corrupt and it worked fine. I then retried NetSurf and didn't have any problems in the font scanning this time.

I am past the screen and window open and I believe farther than ever. The PC seems to have gotten lost and points to 0xc0. The last debug output is:

Code: [Select]
(274.300005) image/png.c info_callback 182: size 17 * 17, rowbytes 68
(274.333339) content/content.c content_convert 281: content file:///Big/NetSurf/Resources/Icons/search.png (0x96fe2e0)
(274.383341) image/image_cache.c image_cache_add 480: centry 0x96fe738, content 0x96fe2e0, bitmap 0x96d9cf4
(274.516676) content/content.c content__init 80: url file:///Big/NetSurf/Resources/en/welcome.html,faf -> 0x96feb48
(274.599994) render/html_css.c html_css_new_stylesheets 548: 2 fetches active
(274.633327) render/html_css.c html_css_new_stylesheets 575: 3 fetches active
(274.666659) content/content.c content_add_user 599: content file:///Big/NetSurf/Resources/en/welcome.html,faf (0x96feb48), user 0x8eedece 0x9731c78
(275.116690) content/content.c content_convert 281: content file:///Big/NetSurf/Resources/en/welcome.html,faf (0x96feb48)
(275.183337) render/html.c html_convert 1026: quirks set to 0
(275.200004) render/html.c html_convert 1030: 2 fetches active
(275.233343) render/html_css.c html_stylesheet_from_domnode 199: 3 fetches active
(275.266673) render/html_css.c html_css_process_modified_style 276: Updating sheet 0x000000 with 0x99a2020
(275.350010) content/content.c content__init 80: url x-ns-css:0 -> 0x99a4238
(275.433342) content/content.c content_add_user 599: content x-ns-css:0 (0x99a4238), user 0x8eedece 0x99a2020
(275.583324) content/content.c content_convert 281: content x-ns-css:0 (0x99a4238)
(275.616661) render/html_css.c html_convert_css_callback 105: done stylesheet slot 4 'x-ns-css:0'
(275.666659) render/html_css.c html_convert_css_callback 107: 2 fetches active
(275.766667) content/content.c content__init 80: url file:///Big/NetSurf/Resources/default.css -> 0x99caf30
(275.816664) content/content.c content_add_user 599: content file:///Big/NetSurf/Resources/default.css (0x99caf30), user 0x8eedece 0x9720600
(275.899998) content/content.c content_convert 281: content file:///Big/NetSurf/Resources/default.css (0x99caf30)
(275.966665) render/html_css.c html_convert_css_callback 113: stylesheet resource:user.css failed: UnacceptableType
(276.016666) render/html_css.c html_convert_css_callback 117: 1 fetches active
(276.133335) content/content.c content__init 80: url file:///Big/NetSurf/Resources/nsdefault.css -> 0x99c7ec8
(276.183337) content/content.c content_add_user 599: content file:///Big/NetSurf/Resources/nsdefault.css (0x99c7ec8), user 0x8eedece 0x99db9e8
(276.483342) content/content.c content_convert 281: content file:///Big/NetSurf/Resources/nsdefault.css (0x99c7ec8)
(276.533347) render/html_css.c html_convert_css_callback 105: done stylesheet slot 0 'file:///Big/NetSurf/Resources/default.css'
(276.583325) render/html_css.c html_convert_css_callback 107: 0 fetches active
(276.616659) render/html.c html_begin_conversion 1083: Completing parse
(276.649993) render/html.c html_finish_conversion 574: DOM to box (0x96feb48)
(276.783331) render/html_object.c html_fetch_object 713: 1 fetches active
(276.833332) content/content.c content__init 80: url file:///Big/NetSurf/Resources/netsurf.png -> 0xa3a6050
(276.883331) content/content.c content_add_user 599: content file:///Big/NetSurf/Resources/netsurf.png (0xa3a6050), user 0x8eedece 0x97232b0
(277.000003) content/content.c content_convert 281: content file:///Big/NetSurf/Resources/netsurf.png (0xa3a6050)
(277.050000) image/image_cache.c image_cache_add 480: centry 0xa3a64a8, content 0xa3a6050, bitmap 0x000000
(277.266673) content/content.c content__init 80: url file:///Big/NetSurf/Resources/netsurf.png -> 0xa3c8b20
(277.316673) content/content.c content_add_user 599: content file:///Big/NetSurf/Resources/netsurf.png (0xa3c8b20), user 0x8eedece 0x9aefe10
(277.416676) content/content.c content_convert 281: content file:///Big/NetSurf/Resources/netsurf.png (0xa3c8b20)
(277.466675) image/image_cache.c image_cache_add 480: centry 0xa3c9070, content 0xa3c8b20, bitmap 0x000000
(277.516677) render/html_object.c html_object_callback 161: 0 fetches active
(277.583324) render/html.c html_box_convert_done 86: Done XML to box (0x96feb48)
(277.616658) content/content.c content__reformat 360: 0x96feb48 file:///Big/NetSurf/Resources/en/welcome.html,faf
(277.983335) content/content.c content_open 742: content 0x96feb48 file:///Big/NetSurf/Resources/en/welcome.html,faf
(278.033334) content/content.c content_open 742: content 0xa3c8b20 file:///Big/NetSurf/Resources/netsurf.png
(278.100003) desktop/browser_history.c browser_window_history_add 513: Creating thumbnail for file:///Big/NetSurf/Resources/en/welcome.html,faf

The last value which looked like a return value that I could find on the stack would return to ami_bitmap() in /amiga/plotters.c. The return would have been from graphics.library BltMaskBitMapRastPort() near the bottom and may indicate a problem with this function call but is not reliable. I would have to catch the process before this to be more certain but it's a possible lead.
« Last Edit: January 31, 2015, 06:13:21 PM by matthey »
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #332 on: January 31, 2015, 06:13:09 PM »
here it opens window as well, i give it plenty of stack to be sure, but is there a way to redirect the netsurf debug to serial?
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #333 on: January 31, 2015, 08:20:48 PM »
Quote from: matthey;782693
The last value which looked like a return value that I could find on the stack would return to ami_bitmap() in /amiga/plotters.c. The return would have been from graphics.library BltMaskBitMapRastPort() near the bottom and may indicate a problem with this function call but is not reliable. I would have to catch the process before this to be more certain but it's a possible lead.


Blimey you're good!

I'd managed to transpose the last two arguments of BltMaskBitMapRastPort (only the OS3 build uses it otherwise I'd have noticed sooner).  I've fixed it now and put a new build up.
"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 #334 on: January 31, 2015, 09:25:34 PM »
Quote from: wawrzon;782696
here it opens window as well, i give it plenty of stack to be sure, but is there a way to redirect the netsurf debug to serial?

I expect the error output from NetSurf -v is going to stderr instead of stdout as I tried to redirect it and it didn't work. If stdout was used it would be possible to use:

Code: [Select]
>NetSurf -v >SER:

I don't know any way to redirect stderr with AmigaDOS though.

Quote from: chris;782705
Blimey you're good!

I'd managed to transpose the last two arguments of BltMaskBitMapRastPort (only the OS3 build uses it otherwise I'd have noticed sooner).  I've fixed it now and put a new build up.

Good. My Amiga was in a stable condition up to this problem. NetSurf seems to use a lot of chipmem though (1-1.5MB on my P96 RTG Amiga). I hope it doesn't need any more big chunks or there could be failures due to low mem conditions and fragmentation. I'll take a look at the new executable. At some point we should break through the startup and have a running NetSurf.

Edit: I get further now but to another freeze:

Code: [Select]
amiga/font.c ami_font_open 381: Font cache miss: CSCourierOblique
amiga/os3support.c OpenOutlineFont 105 Using font engind bullet
amiga/font.c ami_font_open 396: Bold font defined for CSCourierOblique is CSCourierBoldOblique
amiga/font.c ami_font_open 404: Warning: No designed italic font defined for CSCourierOblique
amiga/font.c ami_font_open 410: Warning: No designed bold-italic font defined for CSCourierOblique
desktop/browser.c browser_window_update_favicon 1141fetching general favicon from 'resource:favicon.ico'
./content/fs_backing_store.c set_store_entry 719: url:http://www.google.com/favicon.ico
./content/fs_backing_store.c store_open 828: opening PROGDIR:Users/userCache/d/M/I/2/MI2VURB
./content/fs_backing_store.c store 1304: Writing 5430 bytes from 0x9787998
./content/fs_backing_store.c set_store_entry 719: url:http://www.google.com/favicon.ico
./content/fs_backing_store.c store_open 828: opening PROGDIR:Users/userCache/m/M/I/2/MI2VURB
./content/fs_backing_store.c store 1304: Writing 433 bytes from 0xa5150b8
./content/fs_backing_store.c get_store_entry 660: url:http://www,google.com/favicon.ico
./content//fs_backing_store.c entry_release_alloc 1324: freeing 0xa5150b8
content/llcache.c llcache_persist 2494: Overran timestlot
content/content.c content__init 80: url file:///Big/NetSurf/Resources/favicon.png (0xa4ecab0), user 0x8fb927a 0xa4fc720
image/png.c info_callback 182: size 17* 17, rowbytes 68
content/content.c content_convert 281: content file:///Big/NetSurf/Resources/favicon.png (0xa4ecab0)
image/image_cache.c image_cache_add 480: centry 0xa4ec5f0, content 0xa4ecab0, bitmap 0x97c9bec

And follows is the NULL pointer hit in P96 Voodoo.card which maybe is bitmap and/or gfx related?

Code: [Select]
LONG READ from 00000000                        PC: 08851D8C
USP : 097269C8 SR: 8004  (U0)(-)(-)  TCB: 0952E6C8
Data: 03000000 FFFFFFFE 00100000 0000000F 00000000 00000010 000000E0 00000009
Addr: 00000000 60100000 09726A84 09726AAC 0884BE74 09726A94 08851C18 08280BD8
Stck: 00000010 00000010 000000FF 08013BB4 0883672A 00000010 00000010 68168410
Stck: 0000009E 00000014 00000010 00000010 000000E0 000002FF 00000000 09A27608
Stck: 0A3E6A30 0A3E6648 08013BB4 08851C18 00000011 00000000 FFFFFFFF 3FFF097A
----> 08851D8C - "LIBS:picasso96/Voodoo.card"  Hunk 0000 Offset 00002ABC
----> 0883672A - "LIBS:picasso96/rtg.library"  Hunk 0004 Offset 0000A0BA
----> 08851C18 - "LIBS:picasso96/Voodoo.card"  Hunk 0000 Offset 00002948
08851d4c :  e548                       lsl.w #$2,d0
08851d4e :  322a 0004                  move.w $4(a2),d1
08851d52 :  9240                       sub.w d0,d1
08851d54 :  5342                       subq.w #$1,d2
08851d56 :  2052                       movea.l (a2),a0
08851d58 :  203c 0300 00cc             move.l #$30000cc,d0
08851d5e :  082a 0001 0007             btst #$1,$7(a2)
08851d64 :  6704                       beq.s $8851d6a
08851d66 :  103c 0055                  move.b #$55,d0
08851d6a :  082a 0000 0007             btst #$0,$7(a2)
08851d70 :  6604                       bne.s $8851d76
08851d72 :  0040 0100                  ori.w #$100,d0
08851d76 :  2340 0070                  move.l d0,$70(a1)
08851d7a :  082a 0002 0007             btst #$2,$7(a2)
08851d80 :  663e                       bne.s $8851dc0
08851d82 :  7800                       moveq.l #$0,d4
08851d84 :  182a 0006                  move.b $6(a2),d4
08851d88 :  6616                       bne.s $8851da0
08851d8a :  3002                       move.w d2,d0
08851d8c : *2358 0080                  move.l (a0)+,$80(a1)
08851d90 :  51c8 fffa                  dbra d0,$8851d8c
08851d94 :  d0c1                       adda.w d1,a0
08851d96 :  51cb fff2                  dbra d3,$8851d8a
08851d9a :  4cdf 041c                  movem.l (a7)+,d2-d4/a2
08851d9e :  4e75                       rts
08851da0 :  2f05                       move.l d5,-(a7)
08851da2 :  3002                       move.w d2,d0
08851da4 :  e9d0 5900                  bfextu (a0){d4:$0},d5 ;extended opcode
08851da8 :  2345 0080                  move.l d5,$80(a1)
08851dac :  5888                       addq.l #$4,a0
08851dae :  51c8 fff4                  dbra d0,$8851da4
08851db2 :  d0c1                       adda.w d1,a0
08851db4 :  51cb ffec                  dbra d3,$8851da2
08851db8 :  2a1f                       move.l (a7)+,d5
08851dba :  4cdf 041c                  movem.l (a7)+,d2-d4/a2
08851dbe :  4e75                       rts
08851dc0 :  2f05                       move.l d5,-(a7)
08851dc2 :  7800                       moveq.l #$0,d4
08851dc4 :  182a 0006                  move.b $6(a2),d4
08851dc8 :  661c                       bne.s $8851de6
08851dca :  3002                       move.w d2,d0
Name: "netsurf"  CLI: "netsurf"

image_cache_add() OK
content_set_ready() OK
content_set_done() Freeze!!!

Edit Final:

It looks like the freeze is from BltMaskBitMapRastPort() of gui_window_set_icon() from gui.c.

A0 = scrbm = 0x973a574
D0 = srcx = 0
D1 = srcy = 0
A1 = destrp = 0xa43b388
D2 = destX = 0x9e
D3 = destY = 0x14
D4 = sizeX = 0x10
D5 = sizeY = 0x10
D6 = minterm = 0xe0
A2 = bltmask = 0

It looks to me like the minterm and bltmask arguments are switched for BltMaskBitMapRastPort(). Is that what was fixed for the other BltMaskBitMapRastPort() in /amiga/plotters.c?
« Last Edit: February 01, 2015, 02:08:03 AM by matthey »
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #335 on: January 31, 2015, 09:45:01 PM »
Quote
NetSurf -v >SER:
would be my expectation as well.

i have an impression too, that chipmem is being eaten, need to verify though. perhaps the memory need s to be explicitly defined in the source.
« Last Edit: January 31, 2015, 09:52:34 PM by wawrzon »
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #336 on: January 31, 2015, 09:50:48 PM »
Quote from: matthey;782706
I don't know any way to redirect stderr with AmigaDOS though.

On OS4 it's *>SER:
I think that's new though.

Quote
Good. My Amiga was in a stable condition up to this problem. NetSurf seems to use a lot of chipmem though (1-1.5MB on my P96 RTG Amiga). I hope it doesn't need any more big chunks or there could be failures due to low mem conditions and fragmentation.

It uses an offscreen buffer for rendering, which defaults to the same size as the screen.
edit: it's flagged as BMF_DISPLAYABLE so will be using chip mem, however it doesn't get displayed itself, only blitted to a displayed bitmap, so I might be able to remove this flag? (edit2: I've removed it and it seems happy on the OS4 build)

You can reduce it with the following options in Choices:
redraw_tile_size_x:nnn
redraw_tile_size_y:nnn
(replacing nnn with your chosen size)

It might also be a good idea to use Simple Refresh windows, with:
window_simple_refresh:1

Quote
I'll take a look at the new executable. At some point we should break through the startup and have a running NetSurf.

Hopefully!  I actually got it running a minute ago long enough to get into the menu and call up the hotlist.  I'm still not getting any rendered output on screen which is a bit concerning.
« Last Edit: January 31, 2015, 10:20:25 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 NovaCoder

Re: We need an iBrowse replacement for 68k!!!
« Reply #337 on: February 01, 2015, 01:45:32 AM »
How does NetSurf render?

Does it only use Reaction for the gadgets outside the main window and just treat everything inside the main display area as a large bitmap?
Life begins at 100 MIPS!


Nice Ports on AmiNet!
 

Offline QuikSanz

Re: We need an iBrowse replacement for 68k!!!
« Reply #338 on: February 01, 2015, 02:06:12 AM »
@chris, matthey & wawrzon and anyone else involved,

You guys rock. Taking on a huge task and it's shaping up. Kudos's!

Chris
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #339 on: February 01, 2015, 02:37:40 AM »
Quote from: chris;782708
It uses an offscreen buffer for rendering, which defaults to the same size as the screen.
edit: it's flagged as BMF_DISPLAYABLE so will be using chip mem, however it doesn't get displayed itself, only blitted to a displayed bitmap, so I might be able to remove this flag? (edit2: I've removed it and it seems happy on the OS4 build)

I don't think it is necessary to specify BMF_DISPLAYABLE for a bitmap that is never displayed on screen (a double buffering buffer would need it though). I believe you should use the displayed Window->RPort->Bitmap or Screen-RastPort->BitMap as the friend_bitmap for best performance (and no chip mem used with RTG) when allocating with AllocBitMap().

Quote from: chris;782708
You can reduce it with the following options in Choices:
redraw_tile_size_x:nnn
redraw_tile_size_y:nnn
(replacing nnn with your chosen size)

It might also be a good idea to use Simple Refresh windows, with:
window_simple_refresh:1

Nice to know, I could have always lowered the resolution but I only selected 800x600x32 and some browsers today may have issues at 640x480. The simple_refresh option may end up being faster on a gfx board. I'd rather not go crazy with options until we get the basic NetSurf working.

Be sure to see my Final Edit from my last post to hopefully fix the last freeze.

There is a requestor which pops up asking for PROGDIR right around the time the screen opens. It doesn't seem to stop NetSurf or affect anything whether I choose a gadget or ignore it. Do you get the requestor? Any idea what is causing it?
« Last Edit: February 01, 2015, 02:39:42 AM by matthey »
 

guest11527

  • Guest
Re: We need an iBrowse replacement for 68k!!!
« Reply #340 on: February 01, 2015, 07:00:30 AM »
Quote from: matthey;782706
II don't know any way to redirect stderr with AmigaDOS though.
With Os 3.9 and the shell from Os 3.9, it is "*>". Thus, "program *>foo" redirects the standard error to a file (or a device). Actually, it's in the manual. I wonder why so many people don't find the time to browse it for such questions.  To remember this, think of "*" as the console, thus "*>" (no space) redirects the console. Additional "reidrection" instructions are "*>>" append to stderr, and "*" "redirect stderr to stdout".
 

guest11527

  • Guest
Re: We need an iBrowse replacement for 68k!!!
« Reply #341 on: February 01, 2015, 07:03:27 AM »
Unlike what you see in the post, redirect stderr to stdout is "star less than greater than", except that this ^$*@!! HTML editor "eats" my post.
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #342 on: February 01, 2015, 10:07:28 AM »
Quote from: NovaCoder;782717
How does NetSurf render?

Does it only use Reaction for the gadgets outside the main window and just treat everything inside the main display area as a large bitmap?


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

Offline NovaCoder

Re: We need an iBrowse replacement for 68k!!!
« Reply #343 on: February 01, 2015, 10:32:27 AM »
Quote from: chris;782725
Yes.



Cool, we should be able to do a C2P straight to the main bitmap then for extra speed :)
Life begins at 100 MIPS!


Nice Ports on AmiNet!
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #344 on: February 01, 2015, 10:51:28 AM »
Quote from: NovaCoder;782726
Cool, we should be able to do a C2P straight to the main bitmap then for extra speed :)


If you mean rendering direct to the window, I've tried that and it gives all sorts of problems.  There's an option to enable it (I think.. or maybe I removed it again), but it's only there to aid debugging.
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar picture is Tabitha by Eric W Schwartz