Project

General

Profile

Actions

Bug #163

open

AOZ application locks up on second Swap.

Added by Brian Flanagan almost 5 years ago. Updated about 4 years ago.

Status:
Feedback
Priority:
High
Target version:
Start date:
02/08/2020
Due date:
% Done:

0%

Estimated time:
2:00 h
Affected version:

Description

Example The following code locks up on the Load of Faces_B.abk.
The same code works just fine in AMOS Professional.

The code below is based on Help_78 from AMOSPro_Examples:

#manifest: "amiga"

Load "AMOSPro_examples:Objects/Faces_A.abk"
Print "Bank A loaded."
List Bank

Print "Now swapping 1 & 2"
Bank Swap 1,2
List Bank

Load "AMOSPro_examples:Objects/Faces_B.abk"
Print "Bank B loaded."
List Bank

Print "Now swapping 1 & 3"
Bank Swap 1,3
List Bank

Load "AMOSPro_examples:Objects/Faces_C.abk"
Print "All banks loaded."
List Bank
Actions #1

Updated by Brian Flanagan almost 5 years ago

  • Subject changed from AOZ application locks up on second Load (bank). to AOZ application locks up on second Swap.
  • Affected version changed from 0.9.4 to 0.9.5

If I change the above example to where each bank is loaded into a particular bank, it works:

#manifest: "amiga"

Load "AMOSPro_examples:Objects/Faces_A.abk",2
Print "Bank A loaded into bank 2."
List Bank

Load "AMOSPro_examples:Objects/Faces_B.abk",3
Print "Bank B loaded into bank 3."
List Bank

Load "AMOSPro_examples:Objects/Faces_C.abk",1
Print "All banks loaded."
List Bank

After more careful testing, I determined that it wasn't the second Load causing the problem, but rather the second Swap. (I changed the bug title accordingly.)

Load "AMOSPro_examples:Objects/Faces_A.abk" : Rem Success
Bank Swap 1,2 : Rem Success
Load "AMOSPro_examples:Objects/Faces_B.abk" : Rem Success
Bank Swap 1,3 : Rem FAIL!
Actions #2

Updated by Francois Lionet almost 5 years ago

  • Status changed from New to Resolved
  • Assignee set to Francois Lionet
  • Target version set to 0.9.5

The bank swap problem is corrected.
Yet, this example does not display the sprites properly: for the moment, rainbows are done by remapping colors based on their RGB values. The rainbow is set on color 0, which is black. As the bobs are ALSO black, they are part of the rainbow, and cannot be seen. This will be corrected when I have time to work on the renderers.

Actions #3

Updated by Brian Flanagan over 4 years ago

  • Status changed from Resolved to Feedback
  • Affected version changed from 0.9.5 to 0.9.6

This is still broken in 0.9.6. The exact same example provided above still fails on the 2nd swap.

It causes a Magician Meditation error at the 2nd swap. ( Internal error at 16:1 )

Here's the problem code again:

#manifest: "amiga"

Load "AMOSPro_examples:Objects/Faces_A.abk"
Print "Bank A loaded."
List Bank

Print "Now swapping 1 & 2"
Bank Swap 1,2
List Bank

Load "AMOSPro_examples:Objects/Faces_B.abk"
Print "Bank B loaded."
List Bank

Print "Now swapping 1 & 3"
Bank Swap 1,3 ' <-- Fails here
List Bank

Load "AMOSPro_examples:Objects/Faces_C.abk"
Print "All banks loaded."
List Bank
Actions #4

Updated by Brian Flanagan over 4 years ago

  • Affected version changed from 0.9.6 to 0.9.8.1

Re-tested in 0.9.8.1. Still failx.
Gets a Magician Meditation error: Internal Error at 137:47

Help_78 from AMOSPro_Examples still fails on second Bank Swap

Actions #5

Updated by Brian Flanagan over 4 years ago

Yes, the example in the extracted code is working, however Help_78 is still failing.

Gets a Magician Meditation error: Internal Error at 137:47

Help_78 from AMOSPro_Examples still fails on second Bank Swap

Actions #6

Updated by Brian Flanagan about 4 years ago

  • Priority changed from Normal to High
  • Estimated time set to 2:00 h
  • Affected version changed from 0.9.8.1 to Beta RC3

Retested. Although my small example works now, Help_78 is still failing on the second swap.

Actions

Also available in: Atom PDF