neumannjmt / openmeta

Automatically exported from code.google.com/p/openmeta
0 stars 0 forks source link

Crash on untagged files #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Run the openmeta CLI executable on an untagged file

What is the expected output? What do you see instead?

Expected output: an empty string (I presume?)
Instead:

$ openmeta -t -p SML000465.pdf 
2012-11-13 11:42:16.250 openmeta[22559:707] *** Terminating app due to uncaught 
exception 'NSInvalidArgumentException', reason: '*** -[NSFileManager 
fileSystemRepresentationWithPath:]: nil or empty path argument'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x99ec712b __raiseError + 219
    1   libobjc.A.dylib                     0x97cec52e objc_exception_throw + 230
    2   CoreFoundation                      0x99e26bbb +[NSException raise:format:] + 139
    3   Foundation                          0x92fc6599 -[NSFileManager fileSystemRepresentationWithPath:] + 122
    4   Foundation                          0x92fc6510 -[NSString(NSPathUtilities) fileSystemRepresentation] + 62
    5   openmeta                            0x0000af71 +[OpenMetaBackup hashString:] + 29
    6   openmeta                            0x000075b7 +[OpenMetaBackup calculateBackupFileName:] + 127
    7   openmeta                            0x0000970e +[OpenMetaBackup restoreMetadataSearchForFile:withDelay:] + 52
    8   openmeta                            0x00007944 +[OpenMetaBackup restoreMetadata:] + 49
    9   openmeta                            0x00004250 +[OpenMeta getUserTags:error:] + 59
    10  openmeta                            0x00002e02 TagsAsString + 62
    11  openmeta                            0x00003700 main + 1903
    12  openmeta                            0x000029f2 start + 54
)
Trace/BPT trap: 5

What version of the product are you using? On what operating system?

$ openmeta
openmeta version 0.1 by Tom Andersen code.google.com/p/openmeta/

Prebuilt executable downloaded on Nov 13, 2012.

Please provide any additional information below.

OSX 10.8.2. As soon as I add tags to the file, the crash goes away.

Original issue reported on code.google.com by dominiqu...@gmail.com on 13 Nov 2012 at 4:51

GoogleCodeExporter commented 9 years ago
I think this is related to issue 14 
(http://code.google.com/p/openmeta/issues/detail?id=14). I see the same 
behavior, but using a full pathname like
$ openmeta -t -p ~/Documents/SML000465.pdf
produces no error.

Original comment by fru...@gmail.com on 15 Apr 2013 at 4:46