English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 21 September 2019, 11:34   #41
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,330
Crash solved!
Now I'll keep testing the strange Eject issue… (I still think it was a Windows issue, now I've removed some things…)
hexaae is offline  
Old 21 September 2019, 16:06   #42
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,330
Quote:
Originally Posted by Toni Wilen View Post
There is command "PREVENT/ALLOW MEDIUM REMOVAL" which is used by burning software to prevent accidental eject during burning. Perhaps it is still active for some reason.
It must be that.

I've been able to find a reproducible pattern:
  1. run MakeCD and burn something (I use driver CDR_SCSI3_ATAPI, TAO, 1° data track + 2° audio track MP3 converted on-the-fly, Close CD-R)
  2. after this if I don't use MakeCD's menu Eject option...
  3. ...it will stay in this limbo status where eject from Windows or using an eject tool from AmigaOS (e.g. WolnyCD EJECT DEVICE=uaescsi.device UNIT=0) will fail, even though all other functions (play CD track, explore CD) work fine
So it's probably a MakeCD bug… ?

EDIT: you know the weirdest thing? The pattern above won't reproduce the issue anymore after first time you use Eject from MakeCD (!). From that moment on all is working as expected and if you repeat the pattern above normal eject (from Windows, or AmigaOS with WolnyCD) will always work, so gets stuck only the very first time you boot in AmigaOS and use the pattern above without ejecting from within MakeCD after you burn your first CDRW!

Last edited by hexaae; 21 September 2019 at 16:35.
hexaae is offline  
Old 21 September 2019, 16:42   #43
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,112
I can add "emulation" of PREVENT/ALLOW MEDIUM REMOVAL by preventing it to ever reaching the drive. (With the danger of being able to eject it even when burning)
Toni Wilen is offline  
Old 21 September 2019, 17:05   #44
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,330
Maybe as an option in Miscellaneous could be useful (but risky) indeed.
hexaae is offline  
Old 21 September 2019, 17:25   #45
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,330
Toni there's something strange: I can't reproduce the issue with logging on
(winuae.exe -log -logflush -scsilog -scsiemulog)…
Does it make sense?

Here is the log (and I CAN'T reproduce it): https://gofile.io/?c=IsxSwP

EDIT: tested 3 times, 2 without log, 1 with logging enabled and I can confirm I can't reproduce it when log is on (!???)

Last edited by hexaae; 21 September 2019 at 17:39.
hexaae is offline  
Old 21 September 2019, 17:53   #46
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,112
Possibly it slows down commands or something. It logs a lots of data..

I guess what happens is that your automatic audio player detects new inserted CD (=just burned disk becomes ready) and it does something too soon, before burning program unlocks the drive or something like that.

Oddly enough burning program sends 1b.00.00.00.03.00 = START/STOP UNIT command with both START and EJECT bits set but tray is already closed so drive rejects it. I'd expected it to first eject it, then close it again.
Toni Wilen is offline  
Old 21 September 2019, 18:33   #47
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,330
So something could be done to slowdown some command sequences and avoid the problem...
hexaae is offline  
Old 21 September 2019, 19:02   #48
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,112
Just randomly slowing down something isn't very useful solution..

Could you attach log when you simply insert audio CD and let it play few for seconds? Do nothing else. I'd like to see if there is some "weird" SCSI commands being executed that could cause issues.
Toni Wilen is offline  
Old 21 September 2019, 19:56   #49
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,330
https://gofile.io/?c=nRQ0w7

Started with Genetic Species mixed mode CD. Run Tools/PlayCD and played 1st audio track for some seconds, then clicked on PlayCD's eject button (worked)
hexaae is offline  
Old 21 September 2019, 20:46   #50
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,330
Toni I'm not sure is a "commands too fast" issue: when I reproduce the non-responding eject cmd I can "unlock" it re-running MakeCD and selecting Tools/Eject/Target even some minutes later… It's like the drive command queue is waiting forever for MakeCD (ONLY ??) eject command to restore its normal behaviour… weird...
hexaae is offline  
Old 21 September 2019, 20:47   #51
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,112
Quote:
Originally Posted by hexaae View Post
Toni I'm not sure is a "commands too fast" issue: when I reproduce the non-responding eject cmd I can "unlock" it re-running MakeCD and selecting Tools/Eject/Target even some minutes later… It's like the command queue is waiting for MakeCD ONLY eject… weird...
Log only "eject" part. Perhaps it does more than just unlock it.
Toni Wilen is offline  
Old 21 September 2019, 21:21   #52
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,330
How can I start/stop the log whenever I want?
Here is last log to file and I was able to reproduce the issue in the last part: https://gofile.io/?c=IrM4ij

Last edited by hexaae; 21 September 2019 at 21:32.
hexaae is offline  
Old 22 September 2019, 09:08   #53
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,112
Quote:
Originally Posted by hexaae View Post
How can I start/stop the log whenever I want?
Here is last log to file and I was able to reproduce the issue in the last part: https://gofile.io/?c=IrM4ij
Keep log window open. Take note of last message (time stamp) before you select eject. It is important to know where the "eject sequence" starts.
Toni Wilen is offline  
Old 22 September 2019, 10:17   #54
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,330
Will try to add a note in the log window before MakeCD finalizes and closes CD-R (the GUI hides the Stop button, so probably sends some commands to lock the drive), and then will add a note before I try to eject with simple WolnyCD right after burning the CDRW...

I wonder if could be helpful to add some kind of "pause" before/after the PREVENT/ALLOW MEDIUM REMOVAL commands… something like:
pause 0.5
send prevent medium removal
pause 0.5
other commands in the queue...
….
pause 0.5
send allow medium removal
pause 0.5
other commands in the queue…

...or maybe before/after EVERY SCSI cmd...

Last edited by hexaae; 22 September 2019 at 11:26.
hexaae is offline  
Old 22 September 2019, 11:07   #55
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,330
Here we go: https://gofile.io/?c=ZBVk1s

This is the most accurate log (to file, using "winuae.exe -scsilog -scsiemulog") I could do: since I couldn't insert notes (and couldn't take note of time stamp because there was too much output) while logging I used the SIZE_MINIMIZED marker in the log to identify my actions, and added a note in the log itself after every SIZE_MINIMIZED...

Note: Play from PlayCD DID NOT WORK and music didn't start; Eject button WORKED

Last edited by hexaae; 22 September 2019 at 11:39.
hexaae is offline  
Old 22 September 2019, 12:02   #56
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,112
Don't keep the CD audio player running at the same time. I only want commands that disk close/eject does. Nothing else.
Toni Wilen is offline  
Old 22 September 2019, 12:04   #57
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,330
I never keep any audio player running, neither from Win nor AmigaOS… maybe it's a side-effect of CacheCDFS that automatically inspects the CD for audio tracks?

Last edited by hexaae; 22 September 2019 at 12:30.
hexaae is offline  
Old 22 September 2019, 12:09   #58
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,112
Quote:
Originally Posted by hexaae View Post
I never keep any audio player running, neither from Win or AmigaOS...
You have _something_ running in the background that accesses the drive (inside AmigaOS), there are lots of TEST UNIT READY (00), READ TOC (43) and READ SUB-CHANNEL (42) commands. I don't think CD burning program should do that, at least sub channel makes no sense.

TEST UNIT READY is normal for media inserted/not inserted polling. It is the CD filesystem that does this most likely. Possibly TOC read too but sub channel makes only sense for CD audio player (to report current play position)
Toni Wilen is offline  
Old 22 September 2019, 12:14   #59
hexaae
Registered User
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 43
Posts: 1,330
Definitely CacheCDFS from DEVS: DOSDriver/CD0 then:

Code:
/***************************************************************/
/*  CacheCDFS mountlist entry © 1993 Elaborate Bytes, O. Kastl */
/***************************************************************/
	FileSystem     = L:CacheCDFS /* The name of the game */
	Device         = "uaescsi.device" /* Name of exec device driver */
	Unit           = 0 /* exec device unit */
	Flags          = 0 /* OpenDevice flags */
	BlocksPerTrack = 1 /* Unused */
	BlockSize      = 2048 /* True, but unused */
	Mask           = 0xffffffff /* Memory mask for direct read */
    MaxTransfer    = 0xffffffff /* Maximum amount of bytes for direct read */
	Reserved       = 0 /* Unused */
	Interleave     = 0 /* Unused */
	LowCyl         = 0 /* Unused */
	HighCyl        = 0 /* Unused */
	Surfaces       = 1 /* Unused */
	Buffers        = 8 /* Number of cache lines */
	BufMemType     = 0 /* MEMF_PUBLIC|MEMF_24BITDMA */
	BootPri        = 2 /* Boot priority for MountCD */
	GlobVec        = -1 /* Do not change! */
	Mount          = 1 /* Mount it immediately */
	Priority       = 10 /* Priority of FileSystem task */
	DosType        = 0x43443031 /* Currently unused */
	StackSize      = 4096 /* Minimum stack required is 3000! */
	Control        = "MD=16 LC=1 DC=1 S L LV AL LFC=1 HR=.rsrc Q AUDIO=S:BatchFiles/StartCDAudioProgRX"
   /* The Control field is for special adjustments */
   /* L/S convert all file/volume names to lowercase */
   /* LV/S convert volume names to lowercase */
   /* AL/S Auto-Lower converts only non-Amiga CDs */
   /* LFC/N start converting at this character */
   /* LC/N/A number of blocks per cache line */
   /* DC/N/A number of cache lines for the data cache */
   /* MD/N/A number of blocks, when starting direct read, not using */
   /*        the cache. 0 will be a reasonable default (LC*DC+1) */
   /* S/S Do SCSI direct commands, no Trackdisk like commands! */
   /* NC/S Do NOT use TD_ADDCHANGEINT, poll for DiskChange! */
   /* M/S Issue a TD_MOTOR (OFF) command after read */


(ICD0: is from diskimage.device to load directly from WB .ISO, .bin, .cue images…)

Last edited by hexaae; 22 September 2019 at 12:20.
hexaae is offline  
Old 22 September 2019, 12:20   #60
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,112
Try removing AUDIO=blahblah part. (What does "Q" mean?)
Toni Wilen is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wb 3.1 LoadWB freeze Bamiga2002 support.Apps 0 10 January 2012 12:06
Paula freeze Cosmos Coders. General 2 15 July 2010 09:01
Winuae 1.5.2. freeze universale support.WinUAE 16 26 September 2008 16:34
A4000 freeze, what SCSI settings do you have in CSPPC for an ACARD 7720UW device? keropi support.Hardware 17 31 August 2006 14:36
access SCSI HD using ASPI ? guest support.WinUAE 5 21 December 2002 15:06

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 05:42.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.08909 seconds with 13 queries