WHDLoad MantisBT - WHDLoad
View Issue Details
0006827WHDLoad[All Projects] Generalpublic2025-12-20 16:152026-01-02 13:04
Reportermy_pc_is_amiga 
Assigned ToWepl 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version20.0beta 
Target Version20.0Fixed in Version20.0beta 
MachineA4000
CPU68040
CPUSpeed25
ChipSetAGA
GFXCardZZ9000
ChipMem2 MB
FastMem272 MB
WorkbenchOS 3.2
KickROM47 - Kick 3.2
KickSoftNone
WHDLoad20.0beta
Summary0006827: WHDLoad-Startup is executed while slave is loading preventing some things to not complete on time
DescriptionI’ve been hitting this issue for some time and don’t think it is related to the 20.0 beta but this is currently the version i’m using.

It seems like I cannot get the USB stack and network to stop in time with the startup script. WHDLoad loads slave but then I get various errors. If I stopped them manually, I’m not seeing the issue.
Steps To ReproduceTo highlight the issue, if you put
SET ECHO ON
C:WAIT 20

at the top of the WHDLoad-Startup, you can see that the script will wait 20 seconds while the WHDLOAD is loading the slave and even go into the game before the script is actually complete. This causes various issues since USB is not stopped or network is not stopped in time
Additional InformationI would like to put a C:WAIT 20 at the bottom of the WHDLOAD-startup script to give more time for things to stop but this doesn’t seem to matter as WHDLOAD still loads slave before script is done.
TagsNo tags attached.
Attached Files? .whdl_trace_Workench (64,793) 2025-12-31 23:57
https://whdload.de/mantis/file_download.php?file_id=1951&type=bug
? .whdl_trace_shell (64,773) 2025-12-31 23:57
https://whdload.de/mantis/file_download.php?file_id=1952&type=bug
? WHDLoad (159,428) 2026-01-01 21:49
https://whdload.de/mantis/file_download.php?file_id=1953&type=bug

Notes
(0014761)
Wepl   
2025-12-21 20:41   
I don't really understand the problem.
The Startup script is run synchronized by whdload. Which means whdload does wait for the script to finish and them continues.

Do you use RUN command somewhere?
(0014762)
my_pc_is_amiga   
2025-12-21 21:09   
I'm not using run. I see the following:

While splash window is up preload happens and at same time startup is run. Even with preload is disabled and script is not done game can launch. I'm away from my 4000t but can try a bit more on a1200 in a few days to see if I can send photo of the setup
(0014763)
Wepl   
2025-12-21 22:04   
The startup script is run before preload starts.
You can use TRACE option and check .whdl_trace file to see what happens.
(0014770)
my_pc_is_amiga   
2025-12-31 23:57   
I got to try this on an A1200. I was able to run WHDLOAD 2 different ways:

1) From workbench by double clicking icon and using startfrom=Workbench in Icon Information Window
2) From shell and typing whdload with slave name.

From workbench execution, I see the issue but with shell I do not. With shell, it waits till startup script is done before continuing to load. In workbench this is not happening. I'm attaching trace files.

In this test I commented everything in the startup and cleanup scripts and only had the following lines in the startup. For testing purposes, I manually disabled all the network things, etc. before I executed whdload.

set echo on
C:Wait 30
Echo "Done"
(0014771)
my_pc_is_amiga   
2025-12-31 23:57   
Adding trace dump when executed from shell.
(0014772)
Wepl   
2026-01-01 18:15   
Thanks, I see. I'm going to investigate.
(0014773)
Wepl   
2026-01-01 19:29   
Which OS release do you use?
(0014774)
my_pc_is_amiga   
2026-01-01 21:49   
This is with OS3.2.3
(0014775)
Wepl   
2026-01-01 21:49   
Can you please check if attached WHDLoad fixes the problem.
(0014776)
my_pc_is_amiga   
2026-01-01 22:17   
Yes, this is working nicely! In workbench, the splash screen for the slave now comes up after the startup script is completed. Thanks a lot.
(0014777)
Wepl   
2026-01-02 13:04   
latest beta is also updated now

Issue History
2025-12-20 16:15my_pc_is_amigaNew Issue
2025-12-21 15:28WeplAssigned To => Wepl
2025-12-21 15:28WeplStatusnew => assigned
2025-12-21 20:41WeplNote Added: 0014761
2025-12-21 21:09my_pc_is_amigaNote Added: 0014762
2025-12-21 22:04WeplNote Added: 0014763
2025-12-31 23:57my_pc_is_amigaFile Added: .whdl_trace_Workench
2025-12-31 23:57my_pc_is_amigaNote Added: 0014770
2025-12-31 23:57my_pc_is_amigaFile Added: .whdl_trace_shell
2025-12-31 23:57my_pc_is_amigaNote Added: 0014771
2026-01-01 18:15WeplNote Added: 0014772
2026-01-01 19:29WeplNote Added: 0014773
2026-01-01 20:07WeplTarget Version => 20.0
2026-01-01 20:07WeplSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1768#r1768
2026-01-01 21:49WeplFile Added: WHDLoad
2026-01-01 21:49my_pc_is_amigaNote Added: 0014774
2026-01-01 21:49WeplNote Added: 0014775
2026-01-01 22:17my_pc_is_amigaNote Added: 0014776
2026-01-02 13:04WeplNote Added: 0014777
2026-01-02 13:04WeplStatusassigned => resolved
2026-01-02 13:04WeplResolutionopen => fixed
2026-01-02 13:04WeplFixed in Version => 20.0beta