burstmaj / openmeta

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

openmeta CLI errors using relative paths #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. cd desktop
2. touch a.txt
3. /path/to/openmeta -s test -p a.txt

What is the expected output? What do you see instead?
Expected:
test a.txt

Actual:
test a.txt
2009-07-10 13:56:46.770 openmeta[8856:1403] *** Terminating app due to uncaught 
exception 'NSInvalidArgumentException', reason: '*** -[NSFileManager 
fileSystemRepresentationWithPath:]: nil or empty path argument'
2009-07-10 13:56:46.771 openmeta[8856:1403] Stack: (
    2427633835,
    2526977595,
    2427633291,
    2427633354,
    2446635124,
    2446634750,
    31666,
    24063,
    23361,
    30194,
    21374,
    2446858398,
    2427136709,
    2427137144,
    2446857189,
    21949,
    2446642701,
    2446641588,
    2513965397,
    2513965074
)
Trace/BPT trap

What version of the product are you using? On what operating system?
openmeta cli tool, version 1.2.0

Please provide any additional information below.
So, the operation succeeds, but clearly something is unhappy. If the full path 
is provided, there is 
no error.

/path/to/openmeta -s test -p a.txt 2>/dev/null produces:
test a.txt
Trace/BPT trap

Original issue reported on code.google.com by jonstov...@gmail.com on 10 Jul 2009 at 6:05

GoogleCodeExporter commented 8 years ago
$ openmeta -p paris.png
paris.png
2010-07-19 11:23:21.024 openmeta[12541:903] *** Terminating app due to uncaught 
exception 'NSInvalidArgumentException', reason: '*** -[NSFileManager 
fileSystemRepresentationWithPath:]: nil or empty path argument'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x97437bba __raiseError + 410
    1   libobjc.A.dylib                     0x93dd1509 objc_exception_throw + 56
    2   CoreFoundation                      0x974378e8 +[NSException raise:format:arguments:] + 136
    3   CoreFoundation                      0x9743785a +[NSException raise:format:] + 58
    4   Foundation                          0x92b1f963 -[NSFileManager fileSystemRepresentationWithPath:] + 134
    5   Foundation                          0x92b1f8d7 -[NSString(NSPathUtilities) fileSystemRepresentation] + 62
    6   openmeta                            0x0000af71 +[OpenMetaBackup hashString:] + 29
    7   openmeta                            0x000075b7 +[OpenMetaBackup calculateBackupFileName:] + 127
    8   openmeta                            0x0000970e +[OpenMetaBackup restoreMetadataSearchForFile:withDelay:] + 52
    9   openmeta                            0x00007944 +[OpenMetaBackup restoreMetadata:] + 49
    10  openmeta                            0x00004250 +[OpenMeta getUserTags:error:] + 59
    11  openmeta                            0x00002e02 TagsAsString + 62
    12  openmeta                            0x000037ba main + 2089
    13  openmeta                            0x000029f2 start + 54
)
Trace/BPT trap

--------------------------------------------

If you provide the PATH for a local directory ./ the error goes away: 

$ openmeta -p ./paris.png
./paris.png
tags: 
rating: none found

Original comment by mhe...@gmail.com on 19 Jul 2010 at 9:26

GoogleCodeExporter commented 8 years ago
This is frankly a really glaring problem. Is anyone working on a fix?

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

GoogleCodeExporter commented 8 years ago
Note that no tags are set when this error occurs.

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