Reply To: iOS NeatSpeech destroy_engine Testflight reports

Home Forums OpenEars plugins iOS NeatSpeech destroy_engine Testflight reports Reply To: iOS NeatSpeech destroy_engine Testflight reports

#1027945
zammer
Participant

The information I have is:

Crashed: com.apple.main-thread
EXC_GUARD 0xf3cac8e123456789
raw
0
libsystem_kernel.dylib
__close_nocancel + 12
1
libsystem_c.dylib
fclose + 100
2
Zammr
destroy_engine + 2981149
3
Zammr
-[NeatSpeechVoice dealloc] + 3034697
4
libobjc.A.dylib
objc_object::sidetable_release(bool) + 150
5
Zammr
VoicePlayer.mm line 38
-[VoicePlayer dealloc]
6
libobjc.A.dylib
objc_object::sidetable_release(bool) + 150
7
Zammr
GameLoopViewController.m line 87
-[GameLoopViewController .cxx_destruct]
8 libobjc.A.dylib
object_cxxDestructFromClass(objc_object*, objc_class*) + 116
12 UIKit
-[UIViewController dealloc] + 1812
13
Zammr
TopicViewController.m line 1072
__50-[TopicViewController startSessionWithUser:topic:]_block_invoke
14
Zammr
AppDelegate.m line 1181
__73-[AppDelegate sendRequestWithMethod:endpoint:parameters:success:failure:]_block_invoke758
15
Zammr
AFHTTPRequestOperation.m line 285
__64-[AFHTTPRequestOperation setCompletionBlockWithSuccess:failure:]_block_invoke141
16 libdispatch.dylib
_dispatch_call_block_and_release + 10
24 UIKit
UIApplicationMain + 144
25
Zammr
main.m line 18
main
26
libdispatch.dylib
(Missing)

The wrapper is:

#import “VoicePlayer.h”

@implementation VoicePlayer

-(instancetype)init
{
self = [super init];

if ( self != nil ) {

self.fliteController = [[OEFliteController alloc] init];

self.elliot = [[Elliott alloc] initWithPitch: 0.0 speed: -0.2 transform: 0.9];
}

return self;
}

-(void)say:(NSString *)text
{
[self.fliteController sayWithNeatSpeech:text withVoice:self.elliot];
}

-(void)dealloc
{
self.elliot = nil;
self.fliteController = nil;
}

@end

With the two respective properties in the .h file.

It looks like its something to do with releasing the memory but I can’t see where it would go wrong.