"Unhandled Exception: System.OverflowException" dumping Xbox disc #285

Closed
opened 2026-01-29 15:15:04 +00:00 by claunia · 3 comments
Owner

Originally created by @TheRogueArchivist on GitHub (Nov 18, 2019).

Prerequisites

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

Check and fill as appropriate:

  • I was running DiscImageChef under Windows 7...
  • ...in 32-bit

Description

DIC crashes when dumping an Xbox disc. xbox.log

Exact command line used:

DiscImageChef dump-media F: xbox.iso -d -v

If command was expected to work with a device fill this out:

  • Manufacturer: Samsung
  • Model: TS-H352C
  • Bus:
    • Parallel ATA
    • Serial ATA
    • SCSI (any)
    • ATAPI (mark above if parallel or serial)
    • USB
    • FireWire
    • PCMCIA
    • SecureDigital
    • MultiMediaCard

Output of command execution with debug output enabled

DiscImageChef 4.5.99.1693-586536fd built by DESKTOP-8B4K7NM in Debug, modified
Copyright c 2011-2019 Natalia Portillo

DEBUG (Dump-Media command): --cicm-xml=
DEBUG (Dump-Media command): --debug=True
DEBUG (Dump-Media command): --device=F:
DEBUG (Dump-Media command): --encoding=
DEBUG (Dump-Media command): --first-pregap=False
DEBUG (Dump-Media command): --force=False
DEBUG (Dump-Media command): --force=False
DEBUG (Dump-Media command): --format=
DEBUG (Dump-Media command): --no-metadata=False
DEBUG (Dump-Media command): --options=Mono.Options.OptionSet
DEBUG (Dump-Media command): --output=xbox.iso
DEBUG (Dump-Media command): --persistent=False
DEBUG (Dump-Media command): --resume=True
DEBUG (Dump-Media command): --retry-passes=5
DEBUG (Dump-Media command): --skip=512
DEBUG (Dump-Media command): --stop-on-error=False
DEBUG (Dump-Media command): --verbose=True
DEBUG (Dump-Media command): Parsed options:
DEBUG (SCSI Device): INQUIRY took 33.2032 ms.
DEBUG (ATA Device): IDENTIFY PACKET DEVICE took 15.625 ms.
DEBUG (SCSI Device): GET CONFIGURATION took 33.2031 ms.
Output image format: Raw Disk Image (12345678-aaaa-bbbb-cccc-123456789000).
DEBUG (SCSI Device): TEST UNIT READY took 33.2031 ms.

DEBUG (SCSI Device): GET CONFIGURATION took 5.8594 ms.
DEBUG (SCSI Device): READ CAPACITY took 1914.0625 ms.
DEBUG (SCSI Device): READ DISC STRUCTURE took 1.9532 ms.
PFI:
Disc is a 120mm DVD-ROM version 1
Disc claims conformation to ECMA-267
Disc maximum transfer rate is 10,08 Mbit/sec.
Disc has 2 layers
Layers are in opposite track path
Pitch size is 0,147 µm/bit
Track size is 0,74 µm
Data area starts at PSN 30000h
Data area ends at PSN FCE5EFh
Layer 0 ends at PSN 31AAFh

DEBUG (SCSI Device): READ DISC STRUCTURE took 1.9531 ms.
DEBUG (SCSI Device): INQUIRY took 0.9765 ms.
DEBUG (SCSI Device): READ CAPACITY took 32.2266 ms.
DEBUG (SCSI Device): READ DISC STRUCTURE took 0 ms.
Reading Xbox Security Sector.
DEBUG (SCSI Device): KREON EXTRACT SS took 20.5078 ms.
Decoding Xbox Security Sector.
DEBUG (Dump-media command): Getting video partition size
Locking drive.
DEBUG (SCSI Device): KREON SET LOCK STATE took 0.9766 ms.
Getting video partition size.
DEBUG (SCSI Device): READ CAPACITY took 2.9297 ms.
Reading Physical Format Information.
DEBUG (SCSI Device): READ DISC STRUCTURE took 0 ms.

Unhandled Exception: System.OverflowException: Arithmetic operation resulted in
an overflow.
   at DiscImageChef.Core.Devices.Dumping.Dump.Xgd(Dictionary`2 mediaTags, MediaT
ype& dskType) in C:\Users\silas\Desktop\GIT\DICF2\DiscImageChef\DiscImageChef.Co
re\Devices\Dumping\XGD.cs:line 191
   at DiscImageChef.Core.Devices.Dumping.Dump.Mmc(MediaType& dskType) in C:\User
s\silas\Desktop\GIT\DICF2\DiscImageChef\DiscImageChef.Core\Devices\Dumping\MMC.c
s:line 619
   at DiscImageChef.Core.Devices.Dumping.Dump.Scsi() in C:\Users\silas\Desktop\G
IT\DICF2\DiscImageChef\DiscImageChef.Core\Devices\Dumping\SCSI.cs:line 208
   at DiscImageChef.Core.Devices.Dumping.Dump.Start() in C:\Users\silas\Desktop\
GIT\DICF2\DiscImageChef\DiscImageChef.Core\Devices\Dumping\Dump.cs:line 118
   at DiscImageChef.Commands.DumpMediaCommand.Invoke(IEnumerable`1 arguments) in
 C:\Users\silas\Desktop\GIT\DICF2\DiscImageChef\DiscImageChef\Commands\DumpMedia
.cs:line 319
   at Mono.Options.CommandSet.Run(IEnumerable`1 arguments)
   at DiscImageChef.MainClass.Main(String[] args) in C:\Users\silas\Desktop\GIT\
DICF2\DiscImageChef\DiscImageChef\Main.cs:line 157

xbox.log

Originally created by @TheRogueArchivist on GitHub (Nov 18, 2019). ### Prerequisites * [X] Are you running the latest version? * [X] Can you reproduce the problem in the debug version? ### Check and fill as appropriate: * [X] I was running DiscImageChef under Windows 7... * [X] ...in 32-bit ### Description DIC crashes when dumping an Xbox disc. [xbox.log](https://github.com/discimagechef/DiscImageChef/files/3861226/xbox.log) ### Exact command line used: `DiscImageChef dump-media F: xbox.iso -d -v` ### If command was expected to work with a device fill this out: * **Manufacturer**: Samsung * **Model**: TS-H352C * **Bus**: * [ ] Parallel ATA * [ ] Serial ATA * [ ] SCSI (any) * [ ] ATAPI (mark above if parallel or serial) * [ ] USB * [ ] FireWire * [ ] PCMCIA * [ ] SecureDigital * [ ] MultiMediaCard ### Output of command execution with debug output enabled ``` DiscImageChef 4.5.99.1693-586536fd built by DESKTOP-8B4K7NM in Debug, modified Copyright c 2011-2019 Natalia Portillo DEBUG (Dump-Media command): --cicm-xml= DEBUG (Dump-Media command): --debug=True DEBUG (Dump-Media command): --device=F: DEBUG (Dump-Media command): --encoding= DEBUG (Dump-Media command): --first-pregap=False DEBUG (Dump-Media command): --force=False DEBUG (Dump-Media command): --force=False DEBUG (Dump-Media command): --format= DEBUG (Dump-Media command): --no-metadata=False DEBUG (Dump-Media command): --options=Mono.Options.OptionSet DEBUG (Dump-Media command): --output=xbox.iso DEBUG (Dump-Media command): --persistent=False DEBUG (Dump-Media command): --resume=True DEBUG (Dump-Media command): --retry-passes=5 DEBUG (Dump-Media command): --skip=512 DEBUG (Dump-Media command): --stop-on-error=False DEBUG (Dump-Media command): --verbose=True DEBUG (Dump-Media command): Parsed options: DEBUG (SCSI Device): INQUIRY took 33.2032 ms. DEBUG (ATA Device): IDENTIFY PACKET DEVICE took 15.625 ms. DEBUG (SCSI Device): GET CONFIGURATION took 33.2031 ms. Output image format: Raw Disk Image (12345678-aaaa-bbbb-cccc-123456789000). DEBUG (SCSI Device): TEST UNIT READY took 33.2031 ms. DEBUG (SCSI Device): GET CONFIGURATION took 5.8594 ms. DEBUG (SCSI Device): READ CAPACITY took 1914.0625 ms. DEBUG (SCSI Device): READ DISC STRUCTURE took 1.9532 ms. PFI: Disc is a 120mm DVD-ROM version 1 Disc claims conformation to ECMA-267 Disc maximum transfer rate is 10,08 Mbit/sec. Disc has 2 layers Layers are in opposite track path Pitch size is 0,147 µm/bit Track size is 0,74 µm Data area starts at PSN 30000h Data area ends at PSN FCE5EFh Layer 0 ends at PSN 31AAFh DEBUG (SCSI Device): READ DISC STRUCTURE took 1.9531 ms. DEBUG (SCSI Device): INQUIRY took 0.9765 ms. DEBUG (SCSI Device): READ CAPACITY took 32.2266 ms. DEBUG (SCSI Device): READ DISC STRUCTURE took 0 ms. Reading Xbox Security Sector. DEBUG (SCSI Device): KREON EXTRACT SS took 20.5078 ms. Decoding Xbox Security Sector. DEBUG (Dump-media command): Getting video partition size Locking drive. DEBUG (SCSI Device): KREON SET LOCK STATE took 0.9766 ms. Getting video partition size. DEBUG (SCSI Device): READ CAPACITY took 2.9297 ms. Reading Physical Format Information. DEBUG (SCSI Device): READ DISC STRUCTURE took 0 ms. Unhandled Exception: System.OverflowException: Arithmetic operation resulted in an overflow. at DiscImageChef.Core.Devices.Dumping.Dump.Xgd(Dictionary`2 mediaTags, MediaT ype& dskType) in C:\Users\silas\Desktop\GIT\DICF2\DiscImageChef\DiscImageChef.Co re\Devices\Dumping\XGD.cs:line 191 at DiscImageChef.Core.Devices.Dumping.Dump.Mmc(MediaType& dskType) in C:\User s\silas\Desktop\GIT\DICF2\DiscImageChef\DiscImageChef.Core\Devices\Dumping\MMC.c s:line 619 at DiscImageChef.Core.Devices.Dumping.Dump.Scsi() in C:\Users\silas\Desktop\G IT\DICF2\DiscImageChef\DiscImageChef.Core\Devices\Dumping\SCSI.cs:line 208 at DiscImageChef.Core.Devices.Dumping.Dump.Start() in C:\Users\silas\Desktop\ GIT\DICF2\DiscImageChef\DiscImageChef.Core\Devices\Dumping\Dump.cs:line 118 at DiscImageChef.Commands.DumpMediaCommand.Invoke(IEnumerable`1 arguments) in C:\Users\silas\Desktop\GIT\DICF2\DiscImageChef\DiscImageChef\Commands\DumpMedia .cs:line 319 at Mono.Options.CommandSet.Run(IEnumerable`1 arguments) at DiscImageChef.MainClass.Main(String[] args) in C:\Users\silas\Desktop\GIT\ DICF2\DiscImageChef\DiscImageChef\Main.cs:line 157 ``` [xbox.log](https://github.com/discimagechef/DiscImageChef/files/3861228/xbox.log)
Author
Owner
@claunia commented on GitHub (Dec 7, 2019): ![](https://github.trello.services/images/mini-trello-icon.png) [Overflow when dumping XGD in TS-H352 Kreon under Windows](https://trello.com/c/9UAHpJ8I/8-overflow-when-dumping-xgd-in-ts-h352-kreon-under-windows)
Author
Owner

@claunia commented on GitHub (Dec 7, 2019):

Add sector decoder.

@claunia commented on GitHub (Dec 7, 2019): ![](https://github.trello.services/images/mini-trello-icon.png) [Add sector decoder.](https://trello.com/c/ssINmJOi/13-add-sector-decoder)
Author
Owner

@TheRogueArchivist commented on GitHub (Jan 2, 2020):

Fixed at some point during the CD dump rewrite, tested using the same disc as before.

@TheRogueArchivist commented on GitHub (Jan 2, 2020): Fixed at some point during the CD dump rewrite, tested using the same disc as before.
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#285