Click Here
home features news forums classifieds faqs links search
5619 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
Home
Features
News
Forums
Classifieds
Links
Downloads
Extras
OS4 Zone
IRC Network
AmigaWorld Radio
Newsfeed
Top Members
Amiga Dealers
Information
About Us
FAQs
Advertise
Polls
Terms of Service
Search

IRC Channel
Server: irc.amigaworld.net
Channel: #Amigaworld
Channel Policy and Guidelines

(Uses JAVA Applet and Port 1024)
Visit the Chatroom Website

Who's Online
 70 guest(s) on-line.
 2 member(s) on-line.


 -Sam-,  Srtest

You are an anonymous user.
Register Now!
 Srtest:  19 secs ago
 -Sam-:  4 mins ago
 g01df1sh:  5 mins ago
 Kronos:  9 mins ago
 Futaura:  13 mins ago
 Beans:  14 mins ago
 tonyw:  19 mins ago
 Amiga4000:  22 mins ago
 kyle:  24 mins ago
 Amiboy:  24 mins ago

/  Forum Index
   /  Developer Projects Forum
      /  Hexaco (colour code tool)
Register To Post

Goto page ( 1 | 2 | 3 Next Page )
PosterThread
r-tea 
Hexaco (colour code tool)
Posted on 5-Apr-2017 9:33:18
#1 ]
Regular Member
Joined: 21-Nov-2004
Posts: 284
From: Zdzieszowice, Poland

Hi All.
Need some minor tests before reuploading it to Aminet.
Hexaco
How it works on OS3.x, OS4, MOS, WinUAE?
Does the program's icon shows up on non-newicon systems?
Grabs of window are appreciated.

Last edited by r-tea on 10-Apr-2017 at 07:29 AM.

_________________
I miss draggable screens in MorphOS... and do you? I know I'm in a minority unfortunately.

 Status: Offline
Profile     Report this post  
klapdeur 
Re: Hexaco
Posted on 5-Apr-2017 10:08:37
#2 ]
Regular Member
Joined: 11-Oct-2011
Posts: 115
From: Unknown

@r-tea

Will try it on os3 os4 and mos. Later on.

 Status: Offline
Profile     Report this post  
Lazi 
Re: Hexaco
Posted on 5-Apr-2017 10:29:10
#3 ]
Cult Member
Joined: 5-Apr-2005
Posts: 603
From: Pomaz, Hungary

Hello r-tea!

Nice tool.
Here it drops a DSI on the first click at one of the color sliders.
Crashlog is here:
kezdobetu.hu/temp/Crashlog_Hexaco_2017-04-05_11-25-09.txt

OS4.1 U6
MUI4.0-2016R2

 Status: Offline
Profile     Report this post  
broadblues 
Re: Hexaco
Posted on 5-Apr-2017 12:29:24
#4 ]
Elite Member
Joined: 20-Jul-2004
Posts: 4121
From: Portsmouth England

@r-tea

Gave it a quick test on OS4 beta.

You seem to have the prgram directory icon set to "Show Icons" which means the icons show twice, one as the actial icon and second as a 'file' with a def_icon icon. (which is just aolain white rectangle here)

Running the program it starts but then DSI's on clicking the sliders. Ignoring the DSI allows it to work but it's incredibly slow (that maybe because it's ignoreing further DSIs)



Crash log for task "Hexaco"
Generated by GrimReaper 53.19
Crash occured in module at address 0x6F79B120
Type of crash: DSI (Data Storage Interrupt) exception
Alert number: 0x80000003

Register dump:
GPR (General Purpose Registers):
0: 20000006 46852950 4BF9BEC0 0000FFFF 00000001 00000031 00000032 00000030
8: 00000031 00006252 0000FFFF 00000000 4E800020 6F79B0B0 6F79B0B0 000131EC
16: 587D6000 4BFA4D90 4C7BFA78 6F79B1EC 00000000 4C7BE060 00000030 FFFFFFFF
24: FFFFFFFF FFD50001 FFD60001 4C7BE004 468529CC 48DA0000 468529FC 5FF724D0


FPR (Floating Point Registers, NaN = Not a Number):
0: nan 0 0 0
4: 0 0 0 0
8: 0 1.67772e+07 1e+61 1e-59
12: -1.22886e+308 362 0 0
16: 0 0 0 0
20: 0 0 0 0
24: 1e+61 1e-59 0.5 4.5036e+15
28: nan 65536 1.67772e+07 0

FPSCR (Floating Point Status and Control Register): 0x82004000


SPRs (Special Purpose Registers):
Machine State (msr) : 0x0002F030
Condition (cr) : 0x4799CA14
Instruction Pointer (ip) : 0x6F79B120
Xtended Exception (xer) : 0x4D85A028
Count (ctr) : 0x5FF724D0
Link (lr) : 0x6FAE5698
DSI Status (dsisr) : 0x4D859DE0
Data Address (dar) : 0x01AA2488



680x0 emulated registers:
DATA: 00000000 0000001D 0000001D 468529CC FFFFFFFF FFD50001 FFD60001 4C7BE004
ADDR: 4BD34520 4C7BE038 468529CC 48DA0000 4BF9BEC0 468529FC 5FF724D0 46852954
FPU0: 0 0 0 0
FPU4: 0 0 0 0



Symbol info:
Instruction pointer 0x6F79B120 belongs to module "" (HUNK/Kickstart)

Stack trace:
0x6F79B120 symbol not available
0x6F79B0B0 symbol not available

68k Stack trace:
4c7be05e (68k IP) - "Hexaco" Hunk 0000 Offset 00000056 (SegList: 131ef801)
6f57d698 - "LIBS:muimaster.library" Hunk 0000 Offset 0002b698 (SegList: 15e95e65)
4c7c00d8 - "Hexaco" Hunk 0000 Offset 000020d0 (SegList: 131ef801)
4c7c038e - "Hexaco" Hunk 0000 Offset 00002386 (SegList: 131ef801)
00000001 - "SYS:System/GrimReaper" Hunk 0000 Offset 00000000 (SegList: 12ed6d55)
00000001 - "SYS:System/GrimReaper" Hunk 0000 Offset 00000000 (SegList: 12ed6d55)
4c7be148 - "Hexaco" Hunk 0000 Offset 00000140 (SegList: 131ef801)
6f57d698 - "LIBS:muimaster.library" Hunk 0000 Offset 0002b698 (SegList: 15e95e65)
01834685 - "Kickstart/kernel" Hunk 0000 Offset 00034685
00000001 - "SYS:System/GrimReaper" Hunk 0000 Offset 00000000 (SegList: 12ed6d55)

68k disassembly:
4c7be056: 0300 btst d1,d0
4c7be058: 4eaefd78 jsr -0x288(a6)
4c7be05c: 4e5d unlk a5
*4c7be05e: 4e75 rts
4c7be060: 4e550000 link.w a5,#0


Further testing:

Editing the values in the HEX DECIMAL and HTML name gadgets does not chnage the colour, if those are supposed to be readonly, then make the gadgets readonly, other wier you may have bug there....

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
r-tea 
Re: Hexaco
Posted on 5-Apr-2017 17:56:23
#5 ]
Regular Member
Joined: 21-Nov-2004
Posts: 284
From: Zdzieszowice, Poland

@broadblues & Lazi

Thank you for crashlogs. Anyway it overcomes my skills and knowledge.
Must to ask experienced developers for their help here.

I only came on an idea to compile it with some optimizations for m68k.
The executable is a bit smaller.
Please, replace it and try.
Hexaco
Btw. anyone have tested it on AmigaOS3.x and/or WinUAE?

@broadblues
As for the icon issue, can you provide a screenshot?

Last edited by r-tea on 05-Apr-2017 at 06:03 PM.

_________________
I miss draggable screens in MorphOS... and do you? I know I'm in a minority unfortunately.

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: Hexaco
Posted on 5-Apr-2017 18:04:03
#6 ]
Elite Member
Joined: 9-Jun-2004
Posts: 10684
From: Norway

@r-tea

It should never crash on RTS (ReTurn from Sub routine), if does, I guess the stack is corrupted, so it can't return to JSR (Jump to Sub Routine) or BSR (Branch to Sub Routine). or the stack pointer is pointing to the wrong location. Another option is that too little stack was allocated, simply increasing the stack might stop it from crashing.

The 68k program run as JIT'ed code, it is also possible that that program counter is not precise. It good idea to insert a lot vprintf into code, to see where it stops, it might not be at all, at the RTS.

Last edited by NutsAboutAmiga on 05-Apr-2017 at 06:17 PM.
Last edited by NutsAboutAmiga on 05-Apr-2017 at 06:15 PM.
Last edited by NutsAboutAmiga on 05-Apr-2017 at 06:11 PM.
Last edited by NutsAboutAmiga on 05-Apr-2017 at 06:08 PM.
Last edited by NutsAboutAmiga on 05-Apr-2017 at 06:07 PM.
Last edited by NutsAboutAmiga on 05-Apr-2017 at 06:05 PM.
Last edited by NutsAboutAmiga on 05-Apr-2017 at 06:04 PM.

_________________
Please check out my software:
Excalibur, Basilisk 2, AmigaInputAnywhere.
LiveForIt-Music
http://lifeofliveforit.blogspot.no/

 Status: Offline
Profile     Report this post  
r-tea 
Re: Hexaco
Posted on 5-Apr-2017 18:32:34
#7 ]
Regular Member
Joined: 21-Nov-2004
Posts: 284
From: Zdzieszowice, Poland

@broadblues

Quote:
Editing the values in the HEX DECIMAL and HTML name gadgets does not chnage the colour, if those are supposed to be readonly, then make the gadgets readonly, other wier you may have bug there....


I have to state it in readme file. It was premeditated. "CtC" button copies String contents to Clipboard - it's the easy way. But I assume there are some traditionalists who want to copy it in traditional way. That's why i made the fields editable. I forgot to describe it in the readme file.

@ NutsAboutAmiga
Did you run the alternative binary?

_________________
I miss draggable screens in MorphOS... and do you? I know I'm in a minority unfortunately.

 Status: Offline
Profile     Report this post  
broadblues 
Re: Hexaco
Posted on 5-Apr-2017 19:05:33
#8 ]
Elite Member
Joined: 20-Jul-2004
Posts: 4121
From: Portsmouth England

@r-tea

Quote:

Thank you for crashlogs. Anyway it overcomes my skills and knowledge.
Must to ask experienced developers for their help here.

I only came on an idea to compile it with some optimizations for m68k.
The executable is a bit smaller.
Please, replace it and try.



Better not to optimise and build with the -g option (assuming you are using gcc) then use gccfindhit to get the line at where the crash occured, if it's not obvious at that point why it crashed, you could add some debug to aide in testing.

Also try using MemGuard etc on 68k (iassume you developing on 68k as you executable is) thatcan help find this sort of crash.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
Develin 
Re: Hexaco
Posted on 5-Apr-2017 19:05:42
#9 ]
Regular Member
Joined: 16-Mar-2006
Posts: 416
From: Karlstad, Sweden

@r-tea

Works fine under MorphOS here...
No hits in when running LogTool

Tried it on both OS4.1 FE and 3.9 under FS-UAE.
On 4.1 I get the same error as the others.

On 3.9 running latest FrankenMUI 5 it works but it complains about the stacksize when running it from the icon. So I increased it to 33k as the requester adviced and it works like a charm

Last edited by Develin on 05-Apr-2017 at 07:19 PM.
Last edited by Develin on 05-Apr-2017 at 07:06 PM.

 Status: Offline
Profile     Report this post  
broadblues 
Re: Hexaco
Posted on 5-Apr-2017 19:09:39
#10 ]
Elite Member
Joined: 20-Jul-2004
Posts: 4121
From: Portsmouth England

@r-tea
Quote:

Quote:

Quote:
Editing the values in the HEX DECIMAL and HTML name gadgets does not chnage the colour, if those are supposed to be readonly, then make the gadgets readonly, other wier you may have bug there....

I have to state it in readme file. It was premeditated. "CtC" button copies String contents to Clipboard - it's the easy way. But I assume there are some traditionalists who want to copy it in traditional way. That's why i made the fields editable. I forgot to describe it in the readme file.


It would be a nice feature extension to allow the strings gadgets to set the colours too. One use would be to pick up a HTML hex colour definition and see what colour it represented.

Last edited by broadblues on 05-Apr-2017 at 07:19 PM.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
broadblues 
Re: Hexaco
Posted on 5-Apr-2017 19:13:46
#11 ]
Elite Member
Joined: 20-Jul-2004
Posts: 4121
From: Portsmouth England

@broadblues

BTW the new b uild crashes too.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
broadblues 
Re: Hexaco
Posted on 5-Apr-2017 19:18:45
#12 ]
Elite Member
Joined: 20-Jul-2004
Posts: 4121
From: Portsmouth England

@NutsAboutAmiga

Quote:

Another option is that too little stack was allocated, simply increasing the stack might stop it from crashing.


I have above average stack, and this isn't exactly a beast of a program


Quote:

The 68k program run as JIT'ed code, it is also possible that that program counter is not precise. It good idea to insert a lot vprintf into code, to see where it stops, it might not be at all, at the RTS.


yes, slightly more likely, if it was really crashing on a RTS it would not survive ignoring the DSI as the program would jump inot "nowhere" and the other OSes would likely also crash.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
NutsAboutAmiga 
Re: Hexaco
Posted on 5-Apr-2017 20:23:59
#13 ]
Elite Member
Joined: 9-Jun-2004
Posts: 10684
From: Norway

@broadblues

68K program have typical an extremely low stack, OS4 system libs normally use a bit more than OS3.

_________________
Please check out my software:
Excalibur, Basilisk 2, AmigaInputAnywhere.
LiveForIt-Music
http://lifeofliveforit.blogspot.no/

 Status: Offline
Profile     Report this post  
r-tea 
Re: Hexaco
Posted on 6-Apr-2017 12:07:03
#14 ]
Regular Member
Joined: 21-Nov-2004
Posts: 284
From: Zdzieszowice, Poland

@broadblues

Quote:
Better not to optimise and build with the -g option (assuming you are using gcc)


It's written in AmigaE and compiled with ECX.

Quote:
Also try using MemGuard etc on 68k (iassume you developing on 68k as you executable is)


No, I use MacMini with MorphOS. I decided to compile for AmigaOS 68k to make it available for all. Don't want to make all kind of separate executables. Hexaco isn't a raytracer or a wordprocessor and 68k code is way enough IMO.

Quote:
It would be a nice feature extension to allow the strings gadgets to set the colours too. One use would be to pick up a HTML hex colour definition and see what colour it represented.


Must say it convince me. But first I have to get manage with the OS4 issue.

@Lazi

Quote:
Here it drops a DSI on the first click at one of the color sliders.


Please run Hexaco and do not touch sliders.
Try if the same happen after clicking "CtC".

Last edited by r-tea on 06-Apr-2017 at 04:46 PM.

_________________
I miss draggable screens in MorphOS... and do you? I know I'm in a minority unfortunately.

 Status: Offline
Profile     Report this post  
iggy 
Re: Hexaco
Posted on 7-Apr-2017 13:36:32
#15 ]
Super Member
Joined: 20-Oct-2010
Posts: 1175
From: Bear, Delaware USA

@Develin

Quote:
...FrankenMUI 5...



Hey, at least it exists.

 Status: Offline
Profile     Report this post  
Hypex 
Re: Hexaco
Posted on 7-Apr-2017 17:37:24
#16 ]
Elite Member
Joined: 6-May-2007
Posts: 8632
From: Greensborough, Australia

@NutsAboutAmiga

Quote:
It should never crash on RTS (ReTurn from Sub routine), if does, I guess the stack is corrupted, so it can't return to JSR (Jump to Sub Routine) or BSR (Branch to Sub Routine). or the stack pointer is pointing to the wrong location


Almos told me years ago that the RTS is where the JIT code would stop or something like that, so no good for finding what crashed. He said you have to disable JIT and then you can get the actual instruction where it crashed.

 Status: Offline
Profile     Report this post  
Zylesea 
Re: Hexaco
Posted on 7-Apr-2017 21:29:24
#17 ]
Elite Member
Joined: 16-Mar-2004
Posts: 2023
From: Ostwestfalen, FRG

@r-tea

Nice useful tool and works nicely on MorphOS, but could you guys please not just drop an url w/o descriptrion what it actually is to the forums? I mean one telling sentence about the content would be pretty welcome.

_________________
My programs: www.via-altera.de
MorphOS user since V0.4 (2001)

 Status: Offline
Profile     Report this post  
r-tea 
Re: Hexaco
Posted on 8-Apr-2017 9:05:26
#18 ]
Regular Member
Joined: 21-Nov-2004
Posts: 284
From: Zdzieszowice, Poland

@Zylesea

Do you mean the subject of this thread?

_________________
I miss draggable screens in MorphOS... and do you? I know I'm in a minority unfortunately.

 Status: Offline
Profile     Report this post  
Hypex 
Re: Hexaco
Posted on 8-Apr-2017 13:21:20
#19 ]
Elite Member
Joined: 6-May-2007
Posts: 8632
From: Greensborough, Australia

@Zylesea

Good point. I missed that. And usually I'd be one of the first to complain about descriptions or lack of.

 Status: Offline
Profile     Report this post  
r-tea 
Re: Hexaco
Posted on 8-Apr-2017 16:31:55
#20 ]
Regular Member
Joined: 21-Nov-2004
Posts: 284
From: Zdzieszowice, Poland

I got help from some AmigaE experienced guys, and I prepared two quick builds to test on AmigaOS4.
First is version compiled with special NILCHECK option:
Hexaco with NILCHECK
Second is version with a workaround in code and compiled as usual:
Hexaco April 08
Thanks in advance

_________________
I miss draggable screens in MorphOS... and do you? I know I'm in a minority unfortunately.

 Status: Offline
Profile     Report this post  

[ home ][ about us ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright 2000 - 2017 Amigaworld.net.

Amigaworld.net was originally founded by David Doyle