English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 25 June 2014, 18:55   #921
bladecgn
Registered User
 
Join Date: Nov 2013
Location: Essen / Germany
Posts: 188
Quote:
Originally Posted by PeterK View Post
Update to icon.library 46.4.350:

The icon ghosting was never available on WB v44+ without a gfx-card driver and the cybergraphics.library loaded into memory when an AGA screenmode was selected.
Thank you very much Peter. Incredibly quick fix. That totally solved the problem (also on my genuine Amiga 1200).
bladecgn is offline  
Old 02 July 2014, 16:04   #922
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 841
I have always wondered how to test FixCGX ReadPixelArray patch ?
What is known not to work without it ?
Or does it effect some speed tests ?
Or is it pointless nowadays ?
Michael is offline  
Old 02 July 2014, 17:50   #923
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
The bug in the CGX ReadPixelArray() function is it not to preserve the contents of the data register D2.

The fix saves D2 on the stack, calls ReadPixelArray() and finally restores D2 from the stack. That's all.

But of course, you don't need this fix for the icon.library, because it's built-in.

I don't know if there is any other program, tool, lib or whatever which would require this fix. Not every program that is calling ReadPixelArray() will need the contents of D2 after the function call again. The fix is a bonus for CGX-users and not for IconLib-users.
PeterK is offline  
Old 03 July 2014, 00:17   #924
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
Update to icon.library 46.4.352:

It was really not my intention to come with some new bugfixes so soon after the Aminet release, but then I got a bug report from a user at A1k.org and I also found another bug myself. There was a problem in the zlib decoder with some very large icons. The second problem was the slow icon updating after using snapshot on WB 3.0/3.1, because all selected icons were drawn again and again for each of them. I've removed the WB notification to make this faster now. And the last bug was a crashing WB menu with the 68000 version on 256 color screenmodes (8 bitplanes). This was probably caused by zero page accesses, which I thought would be harmless, but Intuition didn't like them.
PeterK is offline  
Old 03 July 2014, 15:17   #925
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 841
Quote:
Originally Posted by PeterK View Post
The bug in the CGX ReadPixelArray() function is it not to preserve the contents of the data register D2.

The fix saves D2 on the stack, calls ReadPixelArray() and finally restores D2 from the stack. That's all.

But of course, you don't need this fix for the icon.library, because it's built-in.

I don't know if there is any other program, tool, lib or whatever which would require this fix. Not every program that is calling ReadPixelArray() will need the contents of D2 after the function call again. The fix is a bonus for CGX-users and not for IconLib-users.
Very detailed and interesting info. But I still can't sleep without knowing where to reproduce the bug, so that there is a need for it's permanent install. Or as I have understood correctly, it is part of the icon lib? So there is no need to install it independently?
Michael is offline  
Old 03 July 2014, 19:39   #926
Retrofan
Ruler of the Universe
 
Retrofan's Avatar
 
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,195
Peter have you got any idea about the graphic corruption of the icons on the MUI beta preferences? http://eab.abime.net/showpost.php?p=962421&postcount=10

Last edited by Retrofan; 03 July 2014 at 22:02.
Retrofan is offline  
Old 04 July 2014, 10:33   #927
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
Quote:
Originally Posted by Michael View Post
Or as I have understood correctly, it is part of the icon lib? So there is no need to install it independently?
No, the built-in CGX-fix just protects the internal direct drawing function from crashing with the icon.library.

As I said, this fix is for CGX users. They should only install it in case that there are any applications, tools or whatever crashing or freezing their system for unknown reason. Since no requester will pop up and say "This is the ReadPixelArray() bug !" the CGX users can only give my fix a try to see if it helps.

@Retrofan
Up to now, I didn't care about the new MUI beta version. Maybe, I will try it out if I have some time for experiments. No promise, no priority! Sorry. Update: my answer can be found in your MUI 3.9 thread.


Update to icon.library 46.4.353:

Removed the TagItem for the WB-Update notification completely from the PutIcon() function, which is used by WB 3.0/3.1 only. Found another bug which appeared when icons were dragged and copied into another drawer on WB 3.0/3.1: "Object of wrong type". Should be fixed now.

Last edited by PeterK; 06 July 2014 at 03:54.
PeterK is offline  
Old 09 July 2014, 06:50   #928
Bamiga2002
BlizzardPPC'less
 
Bamiga2002's Avatar
 
Join Date: May 2004
Location: Finland
Age: 46
Posts: 3,210
Send a message via MSN to Bamiga2002
Thnx for continuous updates. 'Tis installed and testing as I use my miggy (which has been a smaller priority atm...)
Bamiga2002 is offline  
Old 09 July 2014, 08:27   #929
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
Thanks Bamiga2002

Update to icon.library 46.4.355:

Since Aminet jams and is blocking new updates atm, I've added a complete release to the attachment here this time.

Code:
 Latest changes for this final version rc2:b
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Optimized the memory allocation and release using freelists.

A bugfix in the zlib decoder avoids crashes with large icons.

The PutIcon() function for WB 3.0/3.1 won't add the TagItem
NotifyWorkbench anymore for a faster WB-update with snapshot.

A fix for the 68000 version solves crashes of the WB-menu or
intuition occurring with 256 color screenmodes = 8 bitplanes.

Another fix to prevent "object of wrong type" with icon copy.
PeterK is offline  
Old 09 July 2014, 09:18   #930
ancalimon
Supernormal
 
ancalimon's Avatar
 
Join Date: Jul 2007
Location: Istanbul / Turkey
Age: 43
Posts: 1,416
Quote:
Originally Posted by PeterK View Post
Some additional information concering the icon.library:

How to use LoadResident with icon.library and workbench.library and save 200 kB FastMem ?

There is a problem with SetPatch which does not realize that LoadResident has already loaded these libraries into memory, although the same procedure seems to work perfectly with LoadModule. But it does not !

SetPatch needs the option DISABLEROMMODULES ""
For example: SetPatch QUIET SKIPROMMODULES scsi.device DISABLEROMMODULES ""
Add the following lines or something similar to your startup-sequence:

Code:
 
C:Version >NIL: exec.library 45
If WARN
   C:LoadResident >NIL: LIBS:icon.library
   C:LoadResident >NIL: LIBS:workbench.library
EndIf

C:SetPatch QUIET DISABLEROMMODULES "" ; plus other options like SKIPROMMODULES ....
How to use LoadModule with icon.library and workbench.library ?

Although it seems to work for LoadModule without this trick, I've checked it out and ...
surprise, surprise, you can save about 180 kByte FastMem even with LoadModule, but LoadResident is even better in saving FastMem, it needs nearly no extra FastMem at all. Add something like this to your startup-sequence:

C:LoadModule >NIL: LIBS:icon.library LIBS:workbench.library NOREBOOT
C:SetPatch QUIET DISABLEROMMODULES ""
; plus other options like SKIPROMMODULES ....


Something else: Important for users of DOpus Magellan II:

Make sure that the newicon.library V44 is installed in your LIBS: drawer.
And activate "Smart Icon Copying" under the DOpus "Icon Settings".
Would
Setpatch SKIPROMUPDATES QUIET
also work without problems?

I'm using everything with Blizkick with a huge extresbuf instead of loadmodule.
ancalimon is offline  
Old 09 July 2014, 09:55   #931
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
So, you are loading the icon.library and the workbench.library already resident with Blizkick, right ?

I don't know how SetPatch v44 reacts when it finds these libs resident in memory loaded by Blizkick, because I have only WinUAE for tests.

The SetPatch options SKIPROMUPDATES or SKIPROMMODULES have no effect concerning the icon.library or the workbench.library, since these two libs don't belong to the contents of the "Devs:AmigaOS ROM Update". You can only SKIP MODULES which are located inside of this file. But the icon.library and the workbench.library are loaded from Libs: by SetPatch v44 if they exist there. And that can only be avoided by removing or renaming them or by using SetPatch DISABLEROMMODULES "" . The empty string is an important argument. Of course, you can also add other options, for example:
Quote:
SetPatch DISABLEROMMODULES "" SKIPROMMODULES ram-handler,shell,console.device,scsi.device QUIET
If you want to know whether SetPatch has loaded these libs a second time then type "Avail" into a shell directly after booting up to WB has finished, once with the option DISABLEROMMODULES "" and then without it in your startup-sequence.
PeterK is offline  
Old 09 July 2014, 10:05   #932
mfilos
Paranoid Amigoid
 
mfilos's Avatar
 
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
Thx a lot Peter for your continuous efforts into making this a rock stable library!
I can't express enough my appreciation.

\o/
mfilos is offline  
Old 09 July 2014, 10:25   #933
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
Quote:
Originally Posted by mfilos View Post
...this a rock stable library!
I really wish it were rock stable and bug free, but it's not.

The last days, I found so many small bugs that it's a shame to be the author of this piece of crap

Ok, I've fixed these bugs, but then I've new ideas to improve the library and you can be sure, writing new code like last night will introduce new bugs again (that's the way of life for a drunken coder like me)

However, thanks for your motivation, mfilos
PeterK is offline  
Old 09 July 2014, 11:53   #934
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,574
Quote:
Originally Posted by PeterK View Post
I don't know how SetPatch v44 reacts when it finds these libs resident in memory loaded by Blizkick, because I have only WinUAE for tests.
Blizkick works with WinUAE if "MapROM emulation" checkbox in ROM panel is ticked.
Toni Wilen is offline  
Old 09 July 2014, 12:28   #935
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
Oh NOOO, I can't believe it...
What a bullsh.t, because that means I have to care about yet another possible configuration when testing my lib instead of having an excuse. And I already feel so tired doing all these boring tests over and over again

Nevertheless, thanks a lot for making all these options available, Toni
It's absolute fantastic what huge number of features WinUAE is capable to offer meanwhile !
PeterK is offline  
Old 09 July 2014, 23:31   #936
ascp
Pastafarian
 
Join Date: Sep 2010
Location: Uppsala/Sweden
Posts: 290
Fantastic work PeterK.
Are you thinking about doing any other libraries too, after this one?
ascp is offline  
Old 11 July 2014, 10:32   #937
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
Thanks jonathan, but I've no plans for any new projects yet.


Update to icon.library 46.4.356 and 46.4.357:

Reworked the PutIcon() function for WB 3.0/3.1 icon snapshot again. Now, it should avoid all unnecessary icon redrawing caused by the "WorkbenchNotification" tag whenever possible. Window=>Snaphot=>All will be done faster, too.

Last edited by PeterK; 11 July 2014 at 14:26.
PeterK is offline  
Old 11 July 2014, 23:49   #938
Lonewolf10
AMOS Extensions Developer
 
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
Quote:
Originally Posted by jonathan View Post
Fantastic work PeterK.
Are you thinking about doing any other libraries too, after this one?
Perhaps he should go on holiday first?

There's nothing I hate more than to finish a long coding project (6+ months) and then dive straight into another big project. I usually have atleast a 1 month break before starting something new
Lonewolf10 is offline  
Old 11 July 2014, 23:59   #939
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,385
No, I can't go on holiday anymore, since my health condition is very poor for many years already. I stopped working end of 1998 and the last five years I did not even leave the house where live. The end of the project will be the final. Nothing comes next...
PeterK is offline  
Old 12 July 2014, 00:16   #940
Retrofan
Ruler of the Universe
 
Retrofan's Avatar
 
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,195
Sorry to hear that mate. Thanks a lot for your hard work is the least I can say. AmiKit Real woudn't had started without this marvellous library. Anyhow leave any update if you feel you are wasting your valuable time, but keep on as long as you can.

Last edited by Retrofan; 12 July 2014 at 02:10.
Retrofan is offline  
 


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
ClassicWB Full and icon.library 46.4 Retroplay project.ClassicWB 8 05 August 2018 13:57
WB library conflict/versions Amiga1992 support.Apps 3 22 July 2010 18:47
PNG Icon to Color Icon Converter? Leandro Jardim request.Apps 1 24 May 2010 04:39
What's the latest version of icon.library for OS3.9? NovaCoder support.Apps 3 30 June 2009 15:43
Requesting icon.library v44+... nikvest request.Other 2 16 September 2007 01:58

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:20.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.20947 seconds with 14 queries