Opened 3 years ago

Last modified 3 years ago

#840 _started defect

arb cannot handle databases with spaces in path/name

Reported by: westram Owned by: westram
Priority: normal Milestone:
Component: global Version: arb-7.0
Keywords: Cc:

Description (last modified by westram)

arb has multiple problems with spaces in database names:

  • saving a database with that name from GUI works fine, as long as no compression is enabled.
    With compression enabled arb crashes with
    (V) fixed by [18821]
    xz: saved: No such file or directory
    xz: from: No such file or directory
    xz: GUI.arb~: No such file or directory
    [arb_launcher[0]: 'arb_ntree' has terminated with error 141]
    
    • All data is lost in that case~~
    • Tested with gzip + xz and DEBUG + RELEASE.
    • also occurs if directory saved to contains spaces

  • loading a compressed database named test compressed space.arb from GUI results in the following console output
    xz: compressed: No such file or directory
    xz: space.arb: No such file or directory
    
    and GUI pops up an error
    ARB ERROR: '/path/test compressed space.arb' is no valid arb database file
    
  • AUTO DETECTing format in importer reports
    Error reading format:
    While loading import filter 'unknown.ift': No such file or directory
    
    when a file with spaces in name is selected.
  • running
    arb 'test saved from GUI.arb'
    
    results in
    arb_ntree: Error: too many stray arguments given (max. 2 accepted)
    

related: #827, #665

Change History (6)

comment:1 Changed 3 years ago by westram

  • Owner changed from devel to westram
  • Status changed from new to _started

comment:2 Changed 3 years ago by westram

  • Description modified (diff)

comment:3 Changed 3 years ago by westram

  • Description modified (diff)
  • Priority changed from critical to normal

comment:4 Changed 3 years ago by westram

  • Description modified (diff)

comment:5 Changed 3 years ago by westram

with [18819]:

  • DEBUG and RELEASE builds terminate with
    [arb_launcher[0]: 'arb_ntree /home/ralf/data/test.arb' has terminated with error 141]
    
    I'm not sure where this comes from.
    In gdb a SIGPIPE is raised.
    error code 141 might come from compressor (e.g. xz).

with [18821]:

  • both version properly report error
    11:56.10  While writing '/home/user/data/test compressed space.arb~': Broken pipe
              (close reports: pipe writing to
               file='/home/user/data/test compressed space.arb~'
               using cmd='xz > /home/user/data/test compressed space.arb~'
               failed with exitcode=1 (broken pipe? corrupted archive?)
              )
    

comment:6 Changed 3 years ago by westram

  • Description modified (diff)
Note: See TracTickets for help on using tickets.