Exception when cancelling hashing after dump. #569

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

Originally created by @claunia on GitHub (Dec 19, 2020).

Prerequisites

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

Check and fill as appropriate:

  • I was running Aaru under Linux [version here]...
  • ...in 64-bit
  • ...using an Intel / AMD processor
  • Device manufacturer: SyQuest
  • Model: SyJet
  • Bus:
    • SCSI (any)
  • I was dumping media (disk, tape, etc)...

Description

Null reference exception after cancelling metadata sidecar creation in dumping, during hashing.

Exact command line used:

Aaru m dump /dev/sdc syjet.aif

Expected behavior:

Hashing stops, sidecar is not created.

Actual behavior:

Null reference exception.

Output of command execution with debug output enabled

aaru 5.2.99.3331+391a6d7b built by khepri in Debug, modified
Copyright © 2011-2020 Natalia Portillo

Output image format: Aaru Format.
Device not in database, please create a device report and attach it to a Github issue.                                                                                                                                                                                       

Requesting MODE SENSE (10).                                                                                                                                                                                                                                                  
Requesting MODE SENSE (6).                                                                                                                                                                                                                                                   
Using SCSI READ (10) command.
Media has 2929800 blocks of 512 bytes/each. (for a total of 1.397 GiB)                                                                                                                                                                                                       
Device reports 2929800 blocks (1500057600 bytes).                                                                                                                                                                                                                            
Device can read 64 blocks at a time.                                                                                                                                                                                                                                         
Device reports 512 bytes per logical block.                                                                                                                                                                                                                                  
Device reports 512 bytes per physical block.                                                                                                                                                                                                                                 
SCSI device type: DirectAccess.                                                                                                                                                                                                                                              
SCSI medium type: 0.                                                                                                                                                                                                                                                         
SCSI density type: 0.                                                                                                                                                                                                                                                        
SCSI floppy mode page present: False.                                                                                                                                                                                                                                        
Media identified as SyJet                                                                                                                                                                                                                                                    
Reading 64 sectors at a time.                                                                                                                                                                                                                                                
Setting geometry to 5258 cylinders, 4 heads, 139 sectors per track                                                                                                                                                                                                           
Resuming from block 2929800.                                                                                                                                                                                                                                                 

Dump finished in 0.1378146 seconds.                                                                                                                                                                                                                                          
Average dump speed Infinity KiB/sec.                                                                                                                                                                                                                                         
Average write speed Infinity KiB/sec.                                                                                                                                                                                                                                        
Retrying sector 2246888, pass 5, forward                                                                                                                                                                                                                                     
Closing output file.                                                                                                                                                                                                                                                         
Closed in 237.0760225 seconds.                                                                                                                                                                                                                                               
Creating sidecar.                                                                                                                                                                                                                                                            
Hashing image file...                                                                                                                                                                                                                                                        
Aborting...                                                                                                                                                                                                                                                                  
Sidecar created in 489.1563152 seconds.                                                                                                                                                                                                                                      
Average checksum speed 2994.749 KiB/sec.                                                                                                                                                                                                                                     
Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Aaru.Core.Devices.Dumping.Dump.Sbc(Dictionary`2 mediaTags, MediaType dskType, Boolean opticalDisc) in /home/claunia/Development/Aaru/Aaru/Aaru.Core/Devices/Dumping/Sbc/Dump.cs:line 1114
   at Aaru.Core.Devices.Dumping.Dump.Scsi() in /home/claunia/Development/Aaru/Aaru/Aaru.Core/Devices/Dumping/SCSI.cs:line 251
   at Aaru.Core.Devices.Dumping.Dump.Start() in /home/claunia/Development/Aaru/Aaru/Aaru.Core/Devices/Dumping/Dump.cs:line 231
   at Aaru.Commands.Media.DumpMediaCommand.Invoke(Boolean debug, Boolean verbose, String cicmXml, String devicePath, Boolean resume, String encoding, Boolean firstPregap, Boolean fixOffset, Boolean force, Boolean metadata, Boolean trim, String outputPath, String options, Boolean persistent, UInt16 retryPasses, UInt32 skip, Byte speed, Boolean stopOnError, String format, String subchannel, Boolean private, Boolean fixSubchannelPosition, Boolean retrySubchannel, Boolean fixSubchannel, Boolean fixSubchannelCrc, Boolean generateSubchannels, Boolean skipCdiReadyHole, Boolean eject, UInt32 maxBlocks, Boolean useBufferedReads) in /home/claunia/Development/Aaru/Aaru/Aaru/Commands/Media/Dump.cs:line 656
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseErrorReporting>b__19_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass14_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass21_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__20_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseDebugDirective>b__10_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__9_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseExceptionHandler>b__0>d.MoveNext()
Uploading statistics

Media details

SyJet

Originally created by @claunia on GitHub (Dec 19, 2020). ### 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 Aaru under Linux [version here]... * [ ] ...in 64-bit * [ ] ...using an Intel / AMD processor * **Device manufacturer**: SyQuest * **Model**: SyJet * **Bus**: * [X] SCSI (any) * [x] I was dumping media (disk, tape, etc)... ### Description Null reference exception after cancelling metadata sidecar creation in dumping, during hashing. ### Exact command line used: `Aaru m dump /dev/sdc syjet.aif` ### Expected behavior: Hashing stops, sidecar is not created. ### Actual behavior: Null reference exception. ### Output of command execution with debug output enabled ``` aaru 5.2.99.3331+391a6d7b built by khepri in Debug, modified Copyright © 2011-2020 Natalia Portillo Output image format: Aaru Format. Device not in database, please create a device report and attach it to a Github issue. Requesting MODE SENSE (10). Requesting MODE SENSE (6). Using SCSI READ (10) command. Media has 2929800 blocks of 512 bytes/each. (for a total of 1.397 GiB) Device reports 2929800 blocks (1500057600 bytes). Device can read 64 blocks at a time. Device reports 512 bytes per logical block. Device reports 512 bytes per physical block. SCSI device type: DirectAccess. SCSI medium type: 0. SCSI density type: 0. SCSI floppy mode page present: False. Media identified as SyJet Reading 64 sectors at a time. Setting geometry to 5258 cylinders, 4 heads, 139 sectors per track Resuming from block 2929800. Dump finished in 0.1378146 seconds. Average dump speed Infinity KiB/sec. Average write speed Infinity KiB/sec. Retrying sector 2246888, pass 5, forward Closing output file. Closed in 237.0760225 seconds. Creating sidecar. Hashing image file... Aborting... Sidecar created in 489.1563152 seconds. Average checksum speed 2994.749 KiB/sec. Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Aaru.Core.Devices.Dumping.Dump.Sbc(Dictionary`2 mediaTags, MediaType dskType, Boolean opticalDisc) in /home/claunia/Development/Aaru/Aaru/Aaru.Core/Devices/Dumping/Sbc/Dump.cs:line 1114 at Aaru.Core.Devices.Dumping.Dump.Scsi() in /home/claunia/Development/Aaru/Aaru/Aaru.Core/Devices/Dumping/SCSI.cs:line 251 at Aaru.Core.Devices.Dumping.Dump.Start() in /home/claunia/Development/Aaru/Aaru/Aaru.Core/Devices/Dumping/Dump.cs:line 231 at Aaru.Commands.Media.DumpMediaCommand.Invoke(Boolean debug, Boolean verbose, String cicmXml, String devicePath, Boolean resume, String encoding, Boolean firstPregap, Boolean fixOffset, Boolean force, Boolean metadata, Boolean trim, String outputPath, String options, Boolean persistent, UInt16 retryPasses, UInt32 skip, Byte speed, Boolean stopOnError, String format, String subchannel, Boolean private, Boolean fixSubchannelPosition, Boolean retrySubchannel, Boolean fixSubchannel, Boolean fixSubchannelCrc, Boolean generateSubchannels, Boolean skipCdiReadyHole, Boolean eject, UInt32 maxBlocks, Boolean useBufferedReads) in /home/claunia/Development/Aaru/Aaru/Aaru/Commands/Media/Dump.cs:line 656 --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context) at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseErrorReporting>b__19_0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass14_0.<<UseHelp>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass21_0.<<UseTypoCorrections>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__20_0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseDirective>b__18_0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseDebugDirective>b__10_0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__9_0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseExceptionHandler>b__0>d.MoveNext() Uploading statistics ``` ### Media details SyJet
claunia added the bug label 2026-01-29 15:22:41 +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#569