HydrogenAudio

CD-R and Audio Hardware => CUETools => Topic started by: michael_funk on 2024-04-10 14:21:24

Title: CUERipper terminates after inserting CD
Post by: michael_funk on 2024-04-10 14:21:24
Hi!

CUERipper is open and I insert a certain CD. CUERipper terminates without error message.

CD is inserted without CUERipper started. Then I start CUERipper - CUERipper terminates without error message.

The CD is John Patitucci / John Patitucci 1988 / Labelcode GRD-9560, GRP Records, Inc. Made in Switzerland

Entries in the Windows Event Log:
[Name]  Application Error
- EventID 1000
- EventData
   CUERipper.exe
   2.2.4.0
   6483f620
   KERNELBASE.dll
   10.0.19041.4291
   a956ff71
   e0434352
   000000000002ab89
   396c
   01da8b46cf87010c
   F:\Musik\CUE_Tools\CUERipper.exe
   C:\Windows\System32\KERNELBASE.dll
   30a8ec9a-afde-4fde-a1ef-cf4d56afce85

and Event ID 1026, .NET Runtime:
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name=".NET Runtime" />
  <EventID Qualifiers="0">1026</EventID>
  <Version>0</Version>
  <Level>2</Level>
  <Task>0</Task>
  <Opcode>0</Opcode>
  <Keywords>0x80000000000000</Keywords>
  <TimeCreated SystemTime="2024-04-10T12:58:43.1509825Z" />
  <EventRecordID>222944</EventRecordID>
  <Correlation />
  <Execution ProcessID="0" ThreadID="0" />
  <Channel>Application</Channel>
  <Computer>pc-mfx01.geli.local</Computer>
  <Security />
  </System>
- <EventData>
  <Data>Anwendung: CUERipper.exe Frameworkversion: v4.0.30319 Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet. Ausnahmeinformationen: System.ArgumentException bei CUETools.Codecs.Crc32.Combine(UInt32, UInt32, Int64) bei CUETools.AccurateRip.AccurateRipVerify.Init(CUETools.CDImage.CDImageLayout) bei CUETools.Processor.CUESheet.OpenCD(CUETools.Ripper.ICDRipper) bei CUERipper.frmCUERipper.Lookup(System.Object) bei System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) bei System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) bei System.Threading.ThreadHelper.ThreadStart(System.Object)</Data>
  </EventData></Event>

Does anyone have thoughts on this? Ideas?

Regards,
Michael
Title: Re: CUERipper terminates after inserting CD
Post by: korth on 2024-04-10 16:07:11
(may not be related)
There's a strange TOC on MusicBrainz for this title
https://musicbrainz.org/cdtoc/VQvpdKGP5j7PHk_tNAP4M_CYRSg-
with a lead-in of only 108 sectors.
Title: Re: CUERipper terminates after inserting CD
Post by: michael_funk on 2024-04-15 12:07:21
Thanks korth,

seems to be the problem.

CUERipper behaves the same regardless if Preserve HTOA is on or off.

Ripping with EAC is possible though.
Title: Re: CUERipper terminates after inserting CD
Post by: korth on 2024-04-15 12:17:58
would you post the EAC log for reference
Title: Re: CUERipper terminates after inserting CD
Post by: michael_funk on 2024-04-22 14:08:26
would you post the EAC log for reference

Yes, sure! :-)
Title: Re: CUERipper terminates after inserting CD
Post by: michael_funk on 2024-04-22 14:19:52
I just had the same beaviour on Leonard Bernstein conducts West Side Story, but only on disc 1 of 2.

https://musicbrainz.org/release/9b5eabf5-4b82-380d-806e-034810816165 (https://musicbrainz.org/release/9b5eabf5-4b82-380d-806e-034810816165)

Sorry I couldn't find the Disc ID of Disc 1.

The EAC Log is appended as well.
Title: Re: CUERipper terminates after inserting CD
Post by: korth on 2024-04-22 14:51:42
The MusicBrainz Disc ID for the West Side Story log is
https://musicbrainz.org/cdtoc/UYkVGuvwMC.XkM.avZwZp08.XgQ-
which has a lead-in of only 45 sectors but all other track start positions are correct
or https://musicbrainz.org/cdtoc/xFTMOnQBul3gUpbeXhESPk.ESAY-
The CTDB has the MusicBrainz Disc ID as xFTMOnQBul3gUpbeXhESPk.ESAY- for your EAC rip.
http://db.cuetools.net/cd/389847

For the John Patitucci log
The CTDB has the MusicBrainz Disc ID as MmAymsCSMz5gUm1I8J3QeSL.iug- (https://musicbrainz.org/cdtoc/MmAymsCSMz5gUm1I8J3QeSL.iug-) for your EAC rip.
http://db.cuetools.net/cd/682168
All track start positions except the first track match the following MusicBrainz Disc ID
https://musicbrainz.org/cdtoc/VQvpdKGP5j7PHk_tNAP4M_CYRSg-
Title: Re: CUERipper terminates after inserting CD
Post by: c72578 on 2024-04-28 17:12:09
@michael_funk Thanks for your report.
Debugging shows that a Start, Length detection problem occurs in CUERipper with this CD.
See attached: John_Patitucci_CUERipper_Track_01_Start_Length_detection_problem.PNG

Therefore the following exception occurs and CUERipper terminates:
System.ArgumentException
  HResult=0x80070057
  Message=crc.Combine length cannot be negative
Parameter name: len2
  Source=CUETools.Codecs
  StackTrace:
   at CUETools.Codecs.Crc32.Combine(UInt32 crc1, UInt32 crc2, Int64 len2) in cuetools.net\CUETools.Codecs\CRC\CRC32.cs:line 210


A screenshot of the Tracks from EAC, which shows Start, Length and Gaps is attached too:
John_Patitucci_EAC_Tracks_Start_Length_Gaps.PNG

Title: Re: CUERipper terminates after inserting CD
Post by: Toad King on 2024-05-13 06:11:25
I have a disc that produces the same kind of crash and reported it before: https://github.com/gchudov/cuetools.net/issues/236

It seems to be not just disc-specific but drive-specific as well; some drives will "fix" the TOC by setting the first track offset to 150 if it happens to be a value lower than that.