Welcome, Guest. Please login or register.

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

Description:

0 Members and 2 Guests are viewing this topic.

Offline NovaCoder

Re: We need an iBrowse replacement for 68k!!!
« Reply #269 on: January 26, 2015, 03:21:33 AM »
Quote from: chris;782346
Yes, no change.  Snoopy isn't even showing that the file is being attempted to be opened - it's like the tag values are completely wrong or something.


Try changing it to match the ClassAct code (same tags).
Life begins at 100 MIPS!


Nice Ports on AmiNet!
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #270 on: January 26, 2015, 04:22:14 AM »
Quote from: chris;782346
Yes, no change.  Snoopy isn't even showing that the file is being attempted to be opened - it's like the tag values are completely wrong or something.


Yea, bitmap.image should be able to use anything you have a datatype for but I thought your png datatype might be failing or corrupting the image.

I wouldn't think the following would be a problem since the code works for OS4 but sometimes it's good to cover the basics.

Code: [Select]

BitMapObject,


This should really be:

Code: [Select]

myImage = BitMapObject,


reaction_macros.h defines:

Code: [Select]

#define BitMapObject        NewObject( BITMAP_GetClass(), NULL


This would expand to:

Code: [Select]

myImage = NewObject( BITMAP_GetClass(), NULL,


Next, your:

Code: [Select]

BitMapEnd,


should probably be:

Code: [Select]

BitMapEnd;


I spotted a potential problem in the reaction_macros.h include file.

Code: [Select]

#ifndef End
#define End                 TAG_END)
#endif


This is after the first use of "End". I moved this before the first use of "End" as well as converting some tabs to spaces where it would help consistency and readability. Let me know if this modified reaction_macros.h causes any problems:

http://www.heywheel.com/matthey/Amiga/reaction_macros.h

It's a longshot that this would be the problem but reaction_macros.h should be better this way if I didn't mess something up ;).
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #271 on: January 26, 2015, 03:24:17 PM »
Quote from: matthey;782352
Code: [Select]

BitMapObject,


This should really be:

Code: [Select]

myImage = BitMapObject,



It is already.  I chopped the interesting (broken) bit out of my window creation macro.

Quote

reaction_macros.h defines:

Code: [Select]

#define BitMapObject        NewObject( BITMAP_GetClass(), NULL


This would expand to:

Code: [Select]

myImage = NewObject( BITMAP_GetClass(), NULL,



I've since modified (replaced) these macros to use a class pointer which is fetched once, as this is better from the OS4 side of things.  It hasn't made any difference, so I don't think that's the problem.

Quote

Next, your:

Code: [Select]

BitMapEnd,


should probably be:

Code: [Select]

BitMapEnd;



This is purely because I cut that code out of a longer window definition.

Quote

I spotted a potential problem in the reaction_macros.h include file.

Code: [Select]

#ifndef End
#define End                 TAG_END)
#endif


This is after the first use of "End". I moved this before the first use of "End" as well as converting some tabs to spaces where it would help consistency and readability. Let me know if this modified reaction_macros.h causes any problems:

http://www.heywheel.com/matthey/Amiga/reaction_macros.h

It's a longshot that this would be the problem but reaction_macros.h should be better this way if I didn't mess something up ;).


I'll try with that later (and with exactly the same tags as the example, as per Nova's suggestion above).  I'll also dump the tag values as that's my current suspicion, although I don't see how they can be messed up unless they are being treated as char or something.
"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 #272 on: January 26, 2015, 06:52:22 PM »
Quote from: chris;782371
I'll try with that later (and with exactly the same tags as the example, as per Nova's suggestion above).  I'll also dump the tag values as that's my current suspicion, although I don't see how they can be messed up unless they are being treated as char or something.


None of that worked, I'm still getting a NULL pointer returned from NewObject.
I checked the tag value for BITMAP_SourceFile and it is correct (85019001).

I'm out of ideas.
"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 #273 on: January 26, 2015, 07:16:21 PM »
This might be stupid suggestion, but maybe there is something wrong in your Reaction installation? Other words, them problem is not in code? Has you tried Aweb or some other proggies wich uses Reaction?
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 matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #274 on: January 26, 2015, 08:48:40 PM »
Quote from: utri007;782386
This might be stupid suggestion, but maybe there is something wrong in your Reaction installation? Other words, them problem is not in code? Has you tried Aweb or some other proggies wich uses Reaction?


Not a bad idea at all. The simplest test would be to download this:

http://aminet.net/dev/gui/ClassAct2Demo.lha

and execute ClassAct/Examples/BitMap/BitMapExample in the archive. For me with AmigaOS 3.9, this opens a window titled "Bitmap Example" containing 2 images of buttons with text below them saying "Buttons by Supernov". The code generated in this example could be compared to that in NetSurf as well as testing the Reaction installation.
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #275 on: January 26, 2015, 09:48:50 PM »
Quote from: utri007;782386
This might be stupid suggestion, but maybe there is something wrong in your Reaction installation? Other words, them problem is not in code? Has you tried Aweb or some other proggies wich uses Reaction?


Yes, loads. I'm running the 68k code I'm compiling under OS4, and if I try on an OS3.5 install (which runs AWeb fine) I'm getting exactly the same thing. It's related to the build environment, not the execution environment.
"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 #276 on: January 26, 2015, 10:47:02 PM »
Quote from: chris;782391
Yes, loads. I'm running the 68k code I'm compiling under OS4, and if I try on an OS3.5 install (which runs AWeb fine) I'm getting exactly the same thing. It's related to the build environment, not the execution environment.


@Chris
Is it possible to archive your AmigaOS 3 build with needed relative directory structure so I could make a single NetSurf assign and try it? The archive would probably be rather large so a link might be best but I could PM you my e-mail address for an attachment too. The zone on http://eab.abime.net/ is a possibility but I don't know if you have an account on EAB (English Amiga Board).
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #277 on: January 26, 2015, 11:44:47 PM »
Typically I've just built that ClassAct bitmap example myself and the sodding thing works.  Now to figure out what's different between that and the other example code I added a bitmap object to previously.

Quote from: matthey;782393
@Chris
Is it possible to archive your AmigaOS 3 build with needed relative directory structure so I could make a single NetSurf assign and try it?


Just the NetSurf archive?  Sure, easily done.
http://homepage.ntlworld.com/cdyoung/tmp/netsurf_os3.lha

There's no icon unless you install it, but you can run it from the command line.
If you use "netsurf -v" it will chuck out some debug.
"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 #278 on: January 27, 2015, 01:09:36 AM »
this archive must be somehow os4 specific.. i couldnt decompress it properly neither under win or amiga..
 

Offline Heiroglyph

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 1100
    • Show only replies by Heiroglyph
Re: We need an iBrowse replacement for 68k!!!
« Reply #279 on: January 27, 2015, 01:30:19 AM »
Quote from: wawrzon;782400
this archive must be somehow os4 specific.. i couldnt decompress it properly neither under win or amiga..


It opened for me on Windows, but I used 7zip.

It is Lzh compressed.
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #280 on: January 27, 2015, 02:05:05 AM »
Quote from: wawrzon;782400
this archive must be somehow os4 specific.. i couldnt decompress it properly neither under win or amiga..


Lha didn't work for me either but it decompressed with xadUnFile on the Amiga.

@Chris
I get the same result as you. BitMapObject = 0x000000 and the splash window is a narrow strip at the top of the Workbench screen. I'll check it out with the debugger and see what I can see ;).
 

Offline NovaCoder

Re: We need an iBrowse replacement for 68k!!!
« Reply #281 on: January 27, 2015, 02:15:40 AM »
Quote from: matthey;782403
Lha didn't work for me either but it decompressed with xadUnFile on the Amiga.

@Chris
I get the same result as you. BitMapObject = 0x000000 and the splash window is a narrow strip at the top of the Workbench screen. I'll check it out with the debugger and see what I can see ;).


To ask a stupid question, are we sure the image is actually in that folder?

Can we try and open it first and check that we get a valid file pointer?
Life begins at 100 MIPS!


Nice Ports on AmiNet!
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: We need an iBrowse replacement for 68k!!!
« Reply #282 on: January 27, 2015, 02:31:54 AM »
Quote from: NovaCoder;782404
To ask a stupid question, are we sure the image is actually in that folder?

Can we try and open it first and check that we get a valid file pointer?

splash.png displays fine with my datatypes using Multiview. I don't see anything wrong with the path. Chris has it nice and simply set up so everything is PROGDIR: relative.

Edit: There are no MuForce/MuGuardianAngel problems with the splash screen but there are some after which should be fixed. NetSurf runs and exits without crashing when I am using MuForce. The links below are the complete MuForce/MuGuardianAngel output and the Netsuf debug output.

http://www.heywheel.com/matthey/Amiga/NetSurf_MuHits.txt
http://www.heywheel.com/matthey/Amiga/NetSurf_debug.txt

It looks like GCCFindHit should locate most of the problems in the source :).
« Last Edit: January 27, 2015, 04:03:45 AM by matthey »
 

Offline chris

Re: We need an iBrowse replacement for 68k!!!
« Reply #283 on: January 27, 2015, 08:30:23 AM »
Quote from: wawrzon;782400
this archive must be somehow os4 specific.. i couldnt decompress it properly neither under win or amiga..


It was compressed with Linux LhA. You can extract using xadmaster's LhA client, unfortunately the LhA command line tool doesn't support the compression mode used.
"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 #284 from previous page: January 27, 2015, 03:08:22 PM »
Quote

(32.699992) amiga/gui.c ami_gui_splash_open 5192: BitMapObject = 0x000000


if im not mistaken, according to the debug log only this one (splash image?) looks like problem? everything else seems to be going right so far?