WHDLoad MantisBT - WHDLoad
View Issue Details
0006830WHDLoad[All Projects] Generalpublic2026-01-07 14:062026-01-09 22:12
ReporterCCRider 
Assigned ToWepl 
PrioritynormalSeverityblockReproducibilityalways
StatusresolvedResolutionno change required 
PlatformOSOS Version
Product Version20.0beta 
Target VersionFixed in Version 
MachineA1200
CPU68060
CPUSpeed50
ChipSetAGA
GFXCardNone
ChipMem2 MB
FastMem128 MB
WorkbenchOS 3.2
KickROM47 - Kick 3.2
KickSoftNone
WHDLoad20.0beta
Summary0006830: v20 beta hangs on some installs
DescriptionSome installs, like Piracy Deluxe and JOTD's Dig Dug 2 hang on start, either with a plain black screen (Piracy Deluxe) or the start of the "ROM Check" (Dig Dug 2).

I can have audio return from "insert coin" on Dig Dug 2, but nothing else.

Quitkey works (returns gracefully to Workbench).

Both installs work normally under v19.
Steps To ReproduceJust run both installs with latest v20 beta.
Additional InformationAmiga 1200 with TF1260 accelerator.
TagsNo tags attached.
Attached Fileszip PiracyDeluxe.zip (5,173) 2026-01-07 16:40
https://whdload.de/mantis/file_download.php?file_id=1954&type=bug
? PiracyDeluxe.whdl_register (2,912) 2026-01-07 20:40
https://whdload.de/mantis/file_download.php?file_id=1955&type=bug
? Piracy_deluxe_whdl_trace (12,741) 2026-01-07 21:05
https://whdload.de/mantis/file_download.php?file_id=1956&type=bug
? WHDLoad-Startup (1,134) 2026-01-07 22:34
https://whdload.de/mantis/file_download.php?file_id=1957&type=bug
? SMB2-Shutdown (45) 2026-01-07 22:34
https://whdload.de/mantis/file_download.php?file_id=1958&type=bug

Notes
(0014779)
DJ Mike   
2026-01-07 14:55   
Could you please run with SNOOPOCS MMU COREDUMP options, quit at the black screen and attach the ".whdl*" files? Might need to be SNOOPAGA for Dig Dug 2.

Might reveal something in a custom register that isn't as it should be.
(0014780)
CCRider   
2026-01-07 16:40   
Here it goes for Piracy Deluxe...
(0014781)
CCRider   
2026-01-07 16:42   
For Dig Dug 2 AGA I upped to my drive, since it's bigger than 200 KB. The link: https://drive.google.com/file/d/1D-cBqC4jWZXCwAXnRiqHx21DQ4p3wU2_/view?usp=share_link
(0014783)
DJ Mike   
2026-01-07 17:15   
For Piracy Deluxe I can see it is inside WHDL LoadFileDecrunch when you exit. Could you try with PRELOAD as well please?

Also use SNOOPAGA throughout as that lists out all registers. :)

(0014784)
CCRider   
2026-01-07 17:22   
Can do it later with SNOOPAGA as well, but I'm pretty sure PRELOAD was already set on it.
(0014785)
Wepl   
2026-01-07 20:44   
(Last edited: 2026-01-07 20:47)
Please set option TRACE.
Run it one time with WHDLoad 19.2 and one time with the latest WHDLoad beta.
Then attach the created file .whdl_trace

(0014786)
CCRider   
2026-01-07 21:05   
Ok, focusing on Piracy Deluxe for now. PRELOAD was indeed already set.

Dunno if this is expected, but with TRACE enabled, the game doesn't start even with v19 (stays on a black screen, but quitkey works).

Trace file attached, as per requested.
(0014787)
Wepl   
2026-01-07 22:23   
Could you please attach your S:WHDLoad-Startup?
Is this v20 the first beta you tried, or did you also try previous v20 beta versions?
That Trace changes the behavior is unexpected and should not happen.
The last beta fixed the ExecuteStartup. Now it waits until finished.
(0014788)
CCRider   
2026-01-07 22:34   
Startup script attached (I indeed use it to stop my network connection), together with the other script referred on it.

I tried earlier v20 betas, and haven't seen issues until this latest one (but haven't necessarily tried the same slaves back then).
(0014789)
CCRider   
2026-01-07 22:34   
SMB2 shutdown script
(0014790)
Wepl   
2026-01-07 23:12   
Please try the attached WHDLoad. It does not contain the ExecuteStartup fix.
(0014791)
CCRider   
2026-01-08 00:29   
Worked, just like v19.
(0014792)
Wepl   
2026-01-08 09:07   
So there is a problem caused by your ExecuteStartup.
You may check latest v20 and option ExecuteStartup deactivated.
(0014793)
CCRider   
2026-01-08 11:17   
Unfortunately, that indeed was the case.

Disabling completely my network, as well as the startup and cleanup scripts, solved the issues.

But it's a shame that, somehow, it was enough for v19 but not for v20.

I guess network and WHDLoad will never be good pals, after all...
(0014794)
DJ Mike   
2026-01-08 11:21   
Do you have a wait in your script? Possibly some command it is executing is not quite finishing in time before WHDLoad starts?
(0014795)
CCRider   
2026-01-08 11:24   
I tried waiting 5 seconds, but it didn't help.

Will try longer values, just in case...
(0014796)
Wepl   
2026-01-08 15:52   
The fix made in last v20 beta is that in v18.9 I broke ExecuteStartup/Cleanup so that it didn't wait anymore to finish the script. Instead it was started async.
Now the old correct behavior is restored that it will wait until finished.
See 0006827

Please try to disable SMB2-Shutdown
(0014797)
CCRider   
2026-01-08 17:30   
Talking in private with DJ Mike, we found the culprit.

Even after issuing a "NetShutdown" command, my PCMCIA network card keeps sending level 2 interrupt signals for the Amiga.

I tried the "CardReset" command from Aminet (with the FORCE argument) after NetShutdown, and now everything works as it should, bar one small detail: as you can see on the CardReset readme, it issues a returncode 5 on this cases, and WHDLoad opens a nag requester about it, before launching the slave.
Is there a way to make WHDLoad ignore it? Sending to >NIL: isn't enough...
(0014798)
DJ Mike   
2026-01-08 17:32   
(Last edited: 2026-01-08 17:33)
Presumably WHDL reads the returncode issued by the last command.

It may be enough to run another command after it in the script simply so returncode 0 is set. You could probably even use "SETENV RC 0". I don't 100% remember what the correct approach is here. :)

If the non-zero returncode is causing the script to abort, then try starting your script with "FAILAT 10".

(0014799)
CCRider   
2026-01-08 17:33   
Nice ideas! Will try them later and then report.
(0014800)
DJ Mike   
2026-01-08 17:35   
(Last edited: 2026-01-08 17:36)
A WAIT may also be enough since it will presumably return 0.

Just bear in mind: if you've forcibly shut down your network adapter like that, whatever application was still using the device may not be happy after you exit WHDLoad.

(0014801)
CCRider   
2026-01-08 17:38   
My "WHDLoad-Cleanup" script restores the network and SMB2 share after exiting. Used to work pretty well! Let's see...
(0014802)
CCRider   
2026-01-08 21:41   
Using WAIT indeed solved the nag requester.

Thanks a lot for the help, guys, and sorry for opening a ticket that wasn't WHDLoad's fault, after all.
(0014803)
DJ Mike   
2026-01-09 09:18   
You're welcome - glad we could figure it out. :)

Issue History
2026-01-07 14:06CCRiderNew Issue
2026-01-07 14:55DJ MikeNote Added: 0014779
2026-01-07 16:40CCRiderFile Added: PiracyDeluxe.zip
2026-01-07 16:40CCRiderNote Added: 0014780
2026-01-07 16:42CCRiderNote Added: 0014781
2026-01-07 17:15DJ MikeNote Added: 0014783
2026-01-07 17:15DJ MikeNote Edited: 0014783bug_revision_view_page.php?bugnote_id=14783#r1770
2026-01-07 17:22CCRiderNote Added: 0014784
2026-01-07 20:38WeplAssigned To => Wepl
2026-01-07 20:38WeplStatusnew => assigned
2026-01-07 20:40WeplFile Added: PiracyDeluxe.whdl_register
2026-01-07 20:44WeplNote Added: 0014785
2026-01-07 20:47WeplNote Edited: 0014785bug_revision_view_page.php?bugnote_id=14785#r1772
2026-01-07 21:05CCRiderFile Added: Piracy_deluxe_whdl_trace
2026-01-07 21:05CCRiderNote Added: 0014786
2026-01-07 22:23WeplNote Added: 0014787
2026-01-07 22:34CCRiderFile Added: WHDLoad-Startup
2026-01-07 22:34CCRiderNote Added: 0014788
2026-01-07 22:34CCRiderFile Added: SMB2-Shutdown
2026-01-07 22:34CCRiderFile Added: SMB2-Shutdown-2
2026-01-07 22:34CCRiderNote Added: 0014789
2026-01-07 23:06WeplFile Added: WHDLoad.7015
2026-01-07 23:10WeplFile Deleted: SMB2-Shutdown-2
2026-01-07 23:12WeplNote Added: 0014790
2026-01-08 00:29CCRiderNote Added: 0014791
2026-01-08 09:07WeplNote Added: 0014792
2026-01-08 11:17CCRiderNote Added: 0014793
2026-01-08 11:21DJ MikeNote Added: 0014794
2026-01-08 11:24CCRiderNote Added: 0014795
2026-01-08 15:52WeplNote Added: 0014796
2026-01-08 15:54WeplFile Deleted: WHDLoad.7015
2026-01-08 17:30CCRiderNote Added: 0014797
2026-01-08 17:32DJ MikeNote Added: 0014798
2026-01-08 17:32DJ MikeNote Edited: 0014798bug_revision_view_page.php?bugnote_id=14798#r1774
2026-01-08 17:33DJ MikeNote Edited: 0014798bug_revision_view_page.php?bugnote_id=14798#r1775
2026-01-08 17:33CCRiderNote Added: 0014799
2026-01-08 17:35DJ MikeNote Added: 0014800
2026-01-08 17:36DJ MikeNote Edited: 0014800bug_revision_view_page.php?bugnote_id=14800#r1777
2026-01-08 17:38CCRiderNote Added: 0014801
2026-01-08 21:41CCRiderNote Added: 0014802
2026-01-09 09:18DJ MikeNote Added: 0014803
2026-01-09 22:12WeplStatusassigned => resolved
2026-01-09 22:12WeplResolutionopen => no change required