Welcome, Guest. Please login or register.

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

Description:

0 Members and 2 Guests are viewing this topic.

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #449 from previous page: February 11, 2015, 07:13:07 PM »
Quote from: chris;783652
OK, that should be fixed in the new build I've just put up.

Same result here also, It still has the hit in AddTail() from RectFill() and then NetSurf is unresponsive.
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #450 on: February 11, 2015, 07:19:58 PM »
strangely under uae muforce doesnt detect any hits (mmu on, jit disabled). probably proves again that testing on real hw is more reliable. must check with my a4k again.
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #451 on: February 11, 2015, 07:31:57 PM »
Quote from: wawrzon;783663
strangely under uae muforce doesnt detect any hits (mmu on, jit disabled). probably proves again that testing on real hw is more reliable. must check with my a4k again.


MuGuardianAngel is munging memory and setting up memory allocation detection walls here resulting in ABADF00D. I may even have increased the defaults.

Here is the script I have been using:

Code: [Select]

Run >NIL: <NIL: C/MuForce AREGCHECK DREGCHECK STACKCHECK STACKLINES=3 DISPC DISRANGE=64 FILE=VMEM:MuHits.txt BUFFERSIZE=100000
Wait 3
Run >NIL: <NIL: C/MuGuardianAngel TOMUFORCE SHOWHUNK NAMETAG DISPC DISRANGE=128 STACKCHECK SHOWSTACK STACKLINES=3 AREGCHECK DREGCHECK PRESIZE=64 POSTSIZE=64 DUMPWALL CONSISTENCY
endcli >NIL:
« Last Edit: February 11, 2015, 07:34:10 PM by matthey »
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #452 on: February 11, 2015, 07:46:03 PM »
ah, you have guardian angel turned on as well, just checked that i have muforce turned on as default also on my a4k.

edit: mm. still not catching anything..
« Last Edit: February 11, 2015, 07:51:34 PM by wawrzon »
 

Offline itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show only replies by itix
Re: We need an iBrowse replacement for 68k!!!
« Reply #453 on: February 11, 2015, 08:00:50 PM »
Quote from: wawrzon;783671
ah, you have guardian angel turned on as well, just checked that i have muforce turned on as default also on my a4k.

edit: mm. still not catching anything..

Detecting hits with Enforcer, MuForce, GuardianAngel and any similar tool is matter of good luck. MuForce only detects illegal memory accesses to unused address space. GuardianAngel detects illegal memory accesses to unused memory but if your memory is heavily used by other applications it detects nothing.
My Amigas: A500, Mac Mini and PowerBook
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #454 on: February 11, 2015, 08:44:24 PM »
Quote from: itix;783675
Detecting hits with Enforcer, MuForce, GuardianAngel and any similar tool is matter of good luck. MuForce only detects illegal memory accesses to unused address space. GuardianAngel detects illegal memory accesses to unused memory but if your memory is heavily used by other applications it detects nothing.


So less is more, more or less? The most common hits are to the zero page which are not luck. A hit from using munged memory is also not luck if the munging number is chosen carefully like 0xABADF00D (the most significant bit is 1). This address is >2GB (or negative if using a two's complement signed number) which is highly unusual to be in use as regular memory on an Amiga anyway. Sure, there is some luck to picking up a random hit due to lack of memory protection but I believe this is a small minority of hits. The ABADF00D hit in NetSurf was detected 4 out of 4 times I tried to catch it by the way.
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #455 on: February 12, 2015, 11:23:21 PM »
Quote from: matthey;783660
Same result here also, It still has the hit in AddTail() from RectFill() and then NetSurf is unresponsive.


Hmm, try now.
"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 #456 on: February 13, 2015, 01:20:12 AM »
Quote from: chris;783790
Hmm, try now.

It still has the hit in the same location and then becomes unresponsive.
« Last Edit: February 13, 2015, 02:10:01 AM by matthey »
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #457 on: February 13, 2015, 01:51:27 AM »
sry, im off limits for now, perhaps tomorrow, or the next week.
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #458 on: February 13, 2015, 10:49:18 AM »
Quote from: matthey;783796
It still has the hit in the same location and then becomes unresponsive.

I can't see what else could possibly be wrong, unless RectFill needs an AreaInfo buffer (I didn't think it did, but maybe that's changed between OS3 and 4).  Can you see what parameters are being used?

edit: actually I can prove whether it needs AreaInfo - can you try starting it up with direct_render:1 and see if it still crashes?
« Last Edit: February 13, 2015, 11:37:41 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 matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #459 on: February 13, 2015, 03:34:18 PM »
Quote from: chris;783815

edit: actually I can prove whether it needs AreaInfo - can you try starting it up with direct_render:1 and see if it still crashes?


It works with direct_render:1 in Choices!
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #460 on: February 13, 2015, 06:43:45 PM »
Quote from: matthey;783836
It works with direct_render:1 in Choices!

A-ha!  Right, remove that and try the new version.
"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 #461 on: February 13, 2015, 07:35:24 PM »
Quote from: chris;783857
A-ha!  Right, remove that and try the new version.

It's still not working without direct_render:1 in Choices.

Edit: I just verified that the new version has a hit in the same place.
« Last Edit: February 13, 2015, 07:41:59 PM by matthey »
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #462 on: February 13, 2015, 07:52:40 PM »
confirming working of the previous version with the above option on real hardware. cant edit the preferences though, the preferences window appears minimized and cannot be resized to access its gui.
 

Offline Heiroglyph

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 1100
    • Show only replies by Heiroglyph
Re: We need an iBrowse replacement for 68k!!!
« Reply #463 on: February 13, 2015, 07:57:18 PM »
I've been following along daily but had no time to actually look at it myself.

This can't seriously be how you intend to debug the whole application. It's just not viable.

This needs to be built with source level debugging one way or another.

Never in my professional life have I had these kinds of problems finding and fixing a bug with such obvious, repeatable symptoms. Those are the types of bugs I like to see assigned because they are so easily fixed. I faceplam at my carelessness, fix it, then move on.

My suggestion is still to get it building with VBCC so that you can use a source level debugger such as the one in SAS/C.

It couldn't take longer than debugging like this and the final result will be more reliable.
 

Offline wawrzon

Re: We need an iBrowse replacement for 68k!!!
« Reply #464 on: February 13, 2015, 08:14:00 PM »
ive got a feeling too, there must be some simple method to find and fix those problems rather than going round in circles.