"Exception: Attempted to divide by zero." when opening CUE/TRK image #388

Closed
opened 2026-01-29 15:17:47 +00:00 by claunia · 0 comments
Owner

Originally created by @TheRogueArchivist on GitHub (Mar 19, 2020).

Prerequisites

  • Are you running the latest version?
  • Can you reproduce the problem in the debug version?

Description

"Exception: Attempted to divide by zero." when opening a CUE/TRK image. The cue itself was hardcoded to a specific path that I changed to a relative one. ImgBurn and IsoBuster can read the files fine. The exact files I used are in https://drive.google.com/drive/folders/1tlixznMyuQiL_D57OLIDIPeX7a99yHqx?usp=sharing.

Exact command line used:

Aaru.dll i info TEST.cue

Output of command execution with debug output enabled

aaru 5.1.99.2880-5ffceeb6 built by DESKTOP-TUVQ3CV in Debug, modified
Copyright c 2011-2020 Natalia Portillo

DEBUG (Analyze command): --debug=True
DEBUG (Analyze command): --input=TEST.cue
DEBUG (Analyze command): --verbose=False
DEBUG (Format detection): Trying plugin Aaru Format
DEBUG (Format detection): Trying plugin ACT Apricot Disk Image
DEBUG (Format detection): Trying plugin Alcohol 120% Media Descriptor Structure
DEBUG (Format detection): Trying plugin Anex86 Disk Image
DEBUG (Anex86 plugin): fdihdr.unknown = 1162627398
DEBUG (Anex86 plugin): fdihdr.hddtype = 1163141664
DEBUG (Anex86 plugin): fdihdr.hdrSize = 1949193299
DEBUG (Anex86 plugin): fdihdr.dskSize = 573664114
DEBUG (Anex86 plugin): fdihdr.bps = 1313423904
DEBUG (Anex86 plugin): fdihdr.spt = 223957569
DEBUG (Anex86 plugin): fdihdr.heads = 1411391498
DEBUG (Anex86 plugin): fdihdr.cylinders = 1262698834
DEBUG (Format detection): Trying plugin Apple ][ Interleaved Disk Image
DEBUG (Format detection): Trying plugin Apple 2IMG
DEBUG (Format detection): Trying plugin Apple Disk Archival/Retrieval Tool
DEBUG (Format detection): Trying plugin Apple DiskCopy 4.2
DEBUG (Format detection): Trying plugin Apple New Disk Image Format
DEBUG (Format detection): Trying plugin Apple NIB
DEBUG (Format detection): Trying plugin Apple Universal Disk Image Format
DEBUG (Format detection): Trying plugin Basic Lisa Utility
DEBUG (Format detection): Trying plugin BlindWrite 4
DEBUG (Format detection): Trying plugin BlindWrite 5
DEBUG (Format detection): Trying plugin CDRDAO tocfile
DEBUG (Format detection): Trying plugin CDRWin cuesheet
Image format identified by CDRWin cuesheet (664568b2-15d4-4e64-8a7a-20bda8b8386f).

DEBUG (CDRWin plugin): Found FILE at line 1
DEBUG (CDRWin plugin): File "TEST.trk1" found
DEBUG (CDRWin plugin): Found TRACK at line 2
DEBUG (CDRWin plugin): Setting currentTrack.sequence to 1
DEBUG (CDRWin plugin): Found INDEX at line 3
DEBUG (CDRWin plugin): Sets currentFile.offset to 0
DEBUG (CDRWin plugin): Found POSTGAP at line 4
DEBUG (CDRWin plugin): Found FILE at line 5
Exception trying to identify image file TEST.cue
Exception: Attempted to divide by zero.
Stack trace:    at Aaru.DiscImages.CdrWin.Open(IFilter imageFilter) in F:\Aaru1\Aaru\Aaru.Images\CDRWin\Read.cs:line 466
Unable to open image format
No error given
Originally created by @TheRogueArchivist on GitHub (Mar 19, 2020). ### Prerequisites * [X] Are you running the latest version? * [X] Can you reproduce the problem in the debug version? ### Description "Exception: Attempted to divide by zero." when opening a CUE/TRK image. The cue itself was hardcoded to a specific path that I changed to a relative one. ImgBurn and IsoBuster can read the files fine. The exact files I used are in https://drive.google.com/drive/folders/1tlixznMyuQiL_D57OLIDIPeX7a99yHqx?usp=sharing. ### Exact command line used: `Aaru.dll i info TEST.cue` ### Output of command execution with debug output enabled ``` aaru 5.1.99.2880-5ffceeb6 built by DESKTOP-TUVQ3CV in Debug, modified Copyright c 2011-2020 Natalia Portillo DEBUG (Analyze command): --debug=True DEBUG (Analyze command): --input=TEST.cue DEBUG (Analyze command): --verbose=False DEBUG (Format detection): Trying plugin Aaru Format DEBUG (Format detection): Trying plugin ACT Apricot Disk Image DEBUG (Format detection): Trying plugin Alcohol 120% Media Descriptor Structure DEBUG (Format detection): Trying plugin Anex86 Disk Image DEBUG (Anex86 plugin): fdihdr.unknown = 1162627398 DEBUG (Anex86 plugin): fdihdr.hddtype = 1163141664 DEBUG (Anex86 plugin): fdihdr.hdrSize = 1949193299 DEBUG (Anex86 plugin): fdihdr.dskSize = 573664114 DEBUG (Anex86 plugin): fdihdr.bps = 1313423904 DEBUG (Anex86 plugin): fdihdr.spt = 223957569 DEBUG (Anex86 plugin): fdihdr.heads = 1411391498 DEBUG (Anex86 plugin): fdihdr.cylinders = 1262698834 DEBUG (Format detection): Trying plugin Apple ][ Interleaved Disk Image DEBUG (Format detection): Trying plugin Apple 2IMG DEBUG (Format detection): Trying plugin Apple Disk Archival/Retrieval Tool DEBUG (Format detection): Trying plugin Apple DiskCopy 4.2 DEBUG (Format detection): Trying plugin Apple New Disk Image Format DEBUG (Format detection): Trying plugin Apple NIB DEBUG (Format detection): Trying plugin Apple Universal Disk Image Format DEBUG (Format detection): Trying plugin Basic Lisa Utility DEBUG (Format detection): Trying plugin BlindWrite 4 DEBUG (Format detection): Trying plugin BlindWrite 5 DEBUG (Format detection): Trying plugin CDRDAO tocfile DEBUG (Format detection): Trying plugin CDRWin cuesheet Image format identified by CDRWin cuesheet (664568b2-15d4-4e64-8a7a-20bda8b8386f). DEBUG (CDRWin plugin): Found FILE at line 1 DEBUG (CDRWin plugin): File "TEST.trk1" found DEBUG (CDRWin plugin): Found TRACK at line 2 DEBUG (CDRWin plugin): Setting currentTrack.sequence to 1 DEBUG (CDRWin plugin): Found INDEX at line 3 DEBUG (CDRWin plugin): Sets currentFile.offset to 0 DEBUG (CDRWin plugin): Found POSTGAP at line 4 DEBUG (CDRWin plugin): Found FILE at line 5 Exception trying to identify image file TEST.cue Exception: Attempted to divide by zero. Stack trace: at Aaru.DiscImages.CdrWin.Open(IFilter imageFilter) in F:\Aaru1\Aaru\Aaru.Images\CDRWin\Read.cs:line 466 Unable to open image format No error given ```
claunia added the bugdump image formatbeginner labels 2026-01-29 15:17:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aaru-dps/Aaru-aaru-dps#388