WHDLoad MantisBT - BrianTheLion
View Issue Details
0005776BrianTheLion[All Projects] Generalpublic2022-08-24 19:422024-11-24 12:40
Reporterztronzo 
Assigned ToJOTD 
PrioritynormalSeveritycrashReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
MachineA1200
CPU68EC020
CPUSpeed50
ChipSetAGA
GFXCardNone
ChipMem2 MB
FastMem0 MB
WorkbenchOS 3.0
KickROM40 - Kick 3.1
KickSoftNone
WHDLoad18.5
imported
Summary0005776: Brian the Lion (AGA) crash
DescriptionStart Brian the Lion - AGA version
Completing the level "Spooky Ruins" with remaining time (Bonus Stage) will result in a crash:
Exception "Line 1111 Emulator" ($2C) at $C41A6 occured.


This problem does not happen with the OCS version.
Steps To ReproduceStart Brian the Lion - AGA version
enter code: 93/a/MZXY3
go to far right "Spooky Ruins" (last blue point on the right)

Speed run the level to complete with remaining time and reach "Bonus Stage"
You can also use infinite energy trainer to do this.

This possibly happens in other locations too..
Additional Information
Tested both WHDload slave 1.4 and 2.0
Tested A4000 68040 and A1200 68020
Tested with Fastmem Zorro2 and Zorro3 4MB and 8MB
Tested A1200 kickstarts, 3.9 and 40068 and kick39106

Setting a breakpoint in WinUAE debugger on $C41A6 will show the illegal instruction.
-1 009FF2B2 1331 3000 MOVE.B (A1, D3.W*1, $00) == $000c3f2b [00],-(A1) [00]
-1 009FF2B6 51ca fffa DBF .W D2,#$fffa == $009ff2b2 (F)
-1 009FF2B2 1331 3000 MOVE.B (A1, D3.W*1, $00) == $000c3f2a [cf],-(A1) [cf]
-1 009FF2B6 51ca fffa DBF .W D2,#$fffa == $009ff2b2 (F)
-1 009FF2BA b5c9 CMPA.L A1,A2
-1 009FF2BC 6500 ff14 BCS.W #$ff14 == $009ff1d2 (F)
-1 009FF2C0 201f MOVE.L (A7)+ [000d00e2],D0
-1 009FF2C2 5680 ADD.L #$03,D0
-1 009FF2C4 0280 ffff fffc AND.L #$fffffffc,D0
-1 009FF2CA 4e75 RTS
-1 001546B8 49f9 0018 a8d2 LEA.L $0018a8d2,A4
-1 001546BE 4eb9 000c 41a4 JSR $000c41a4
-1 000C41A4 3c0e MOVE.W A6,D6
-1 000C41A6 fb01 ILLEGAL

TagsNo tags attached.
Attached Files? .whdl_register (2,617) 2024-09-22 14:53
http://whdload.de/mantis/file_download.php?file_id=1822&type=bug

Notes
(0011725)
ztronzo   
2022-08-24 20:31   
When I added 4 MB of Chip RAM (instead of 2MB and no FAST RAM) it worked fine
(0011726)
ztronzo   
2022-08-24 20:41   
to elaborate, although the readme requirements say
2.0 MB ChipMem and 3.5 MB OtherMem for AGA version.

Works with: 4MB Chip RAM and 0 MB Fast RAM
Crashes with: 2MB Chip RAM and 4MB Fast RAM
(0011727)
ztronzo   
2022-08-24 20:48   
And magically there is no illegal instruction after at the same location

001546B8 49f9 0018 a8d2 LEA.L $0018a8d2,A4
001546BE 4eb9 000c 41a4 JSR $000c41a4
000C41A4 4df9 00df f000 LEA.L $00dff000,A6
000C41AA 41fa 096e LEA.L (PC,$096e) == $000c4b1a,A0
000C41AE 43fa 0cf4 LEA.L (PC,$0cf4) == $000c4ea4,A1
000C41B2 2009 MOVE.L A1,D0
000C41B4 7e04 MOVE.L #$04,D7
(0011728)
ztronzo   
2022-08-24 21:31   
Conclusion: I believe the game cannot afford losing any of the 2MB Chip RAM.
Having multiple Floppy Drives or Hard Drives can cause this problem as they use up a few kb of Chip RAM during mount.
(0013972)
Velociraptor5   
2024-09-22 14:53   
Recently, I just for fun tested this issue and have to confirm it. The game really crashes with "Exception "Line 1111 Emulator" ($2C) at $C41A6 occured."
Tested in WinUAE 68020/2MB chip/128MB fast, twice (Full Cycle Exact and also in JIT), and the issue is independent of WinUAE compatibility settings.
This game is just unplayable, this slave is wrong and should be repaired.
Whdl_register is attached.

P.S. ztronzo's level code "93/a/MZXY3" somehow doesn't work at me, I had to use code from Hall of Light "sXr7vgqaGP".
(0014223)
ztronzo   
2024-11-24 12:40   
BTW, I wouldn't say the slave is wrong, as this happens with the original game too when you do an HDD install using the developer's method. But I do wish for a fix.
The game demands the maximum Chip memory which is 2MB on any real Amiga, and that's why clicking the workbench icon also triggers a reboot to launch the game.
Having anything that reduces the chip memory (such as additional drives or so) will cause the same effect.

Issue History
2022-08-24 19:42ztronzoNew Issue
2022-08-24 20:31ztronzoNote Added: 0011725
2022-08-24 20:41ztronzoNote Added: 0011726
2022-08-24 20:48ztronzoNote Added: 0011727
2022-08-24 21:31ztronzoNote Added: 0011728
2022-11-22 23:25WeplProjectWHDLoad => BrianTheLion
2022-11-22 23:36WeplAssigned To => JOTD
2022-11-22 23:36WeplStatusnew => assigned
2024-09-22 14:53Velociraptor5File Added: .whdl_register
2024-09-22 14:53Velociraptor5Note Added: 0013972
2024-11-24 12:40ztronzoNote Added: 0014223