Add RejectoDemo.framework to OpenEarsSampleApp Xcode project then crash happens

Home Forums OpenEars plugins Add RejectoDemo.framework to OpenEarsSampleApp Xcode project then crash happens

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)

  • Author
    Posts
  • #1025774
    wuwen128
    Participant

    Xcode6.3, crash happens no matter which simulator or device.

    2015-05-18 15:01:34.173 OpenEarsSampleApp[10209:874247] -[OELanguageModelGenerator generateRejectingLanguageModelFromArray:withFilesNamed:withOptionalExclusions:usingVowelsOnly:withWeight:forAcousticModelAtPath:]: unrecognized selector sent to instance 0x7fc503f22040
    2015-05-18 15:01:34.175 OpenEarsSampleApp[10209:874247] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[OELanguageModelGenerator generateRejectingLanguageModelFromArray:withFilesNamed:withOptionalExclusions:usingVowelsOnly:withWeight:forAcousticModelAtPath:]: unrecognized selector sent to instance 0x7fc503f22040’
    *** First throw call stack:
    (
    0 CoreFoundation 0x000000010e505c65 __exceptionPreprocess + 165
    1 libobjc.A.dylib 0x000000010df36bb7 objc_exception_throw + 45
    2 CoreFoundation 0x000000010e50d0ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3 CoreFoundation 0x000000010e46313c ___forwarding___ + 988
    4 CoreFoundation 0x000000010e462cd8 _CF_forwarding_prep_0 + 120
    5 OpenEarsSampleApp 0x000000010b761f79 OpenEarsSampleApp + 8057

    #1025776
    wuwen128
    Participant

    NSArray *firstLanguageArray = @[@”BACKWARD”,
    @”CHANGE”,
    @”FORWARD”,
    @”GO”,
    @”LEFT”,
    @”MODEL”,
    @”RIGHT”,
    @”TURN”];

    OELanguageModelGenerator *languageModelGenerator = [[OELanguageModelGenerator alloc] init];

    NSError *error = [languageModelGenerator generateRejectingLanguageModelFromArray:firstLanguageArray withFilesNamed:@”FirstOpenEarsDynamicLanguageModel” withOptionalExclusions:nil usingVowelsOnly:FALSE withWeight:nil forAcousticModelAtPath:[OEAcousticModel pathToModel:@”AcousticModelEnglish”]];

    #1025778
    Halle Winkler
    Politepix

    Welcome,

    It sounds like you probably don’t have “-ObjC” added to the Other Linker Flags setting in your Xcode Build Settings.

    #1025780
    wuwen128
    Participant

    Thanks, Halle, but crash sill happens, in different method:

    OpenEarsSampleApp[15135:1457561] -[OELanguageModelGenerator compactWhitespaceAndFixCharactersOfArrayEntries:]: unrecognized selector sent to instance 0x7fc4ead80580
    OpenEarsSampleApp[15135:1457561] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[OELanguageModelGenerator compactWhitespaceAndFixCharactersOfArrayEntries:]: unrecognized selector sent to instance 0x7fc4ead80580’
    *** First throw call stack:
    (
    0 CoreFoundation 0x000000010751ec65 __exceptionPreprocess + 165
    1 libobjc.A.dylib 0x00000001071b5bb7 objc_exception_throw + 45
    2 CoreFoundation 0x00000001075260ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3 CoreFoundation 0x000000010747c13c ___forwarding___ + 988
    4 CoreFoundation 0x000000010747bcd8 _CF_forwarding_prep_0 + 120
    5 OpenEarsSampleApp 0x0000000104a6f014 OpenEarsSampleApp + 667668

    #1025782
    wuwen128
    Participant

    Crash happens in OpenEars.framework 2.03 + Rejecto.framework 2.04

    BTW: Is Rejecto supporting JSGF?

    #1025784
    Halle Winkler
    Politepix

    That is happening because you have to upgrade to the current OpenEars 2.04 version. Rejecto doesn’t support JSGF.

    #1025785
    wuwen128
    Participant

    Thanks very much, Halle.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.