Forum Replies Created
-
AuthorPosts
-
June 5, 2014 at 3:46 pm in reply to: multiple OpenEars delegates are getting mixed up with ARC on #1021543gsborisParticipant
Hi Halle,
Unfortunately, the same problem persists on the device too. I checked it on iPad2 iOS7.1.1 app crashes if it tries to RE-USE the voice on the 1st VC that has been used on 2nd VC. Nil-ing voice obj, when leaving to 2nd VC, seems to solve this issue, cause it forces it to reinit the voice, when you return to work on the 1st VC.
BorisJune 4, 2014 at 10:13 pm in reply to: multiple OpenEars delegates are getting mixed up with ARC on #1021526gsborisParticipantTY for guiding me through this. Will check this same issue on real device, will see if it is the same and let you know. Best regards.
June 4, 2014 at 10:07 pm in reply to: multiple OpenEars delegates are getting mixed up with ARC on #1021524gsborisParticipantOK, I nil-ed voices before leaving the view and it cured it. does not crash anymore.
And, yes it is called with self.slt as you have in tutorial.
June 4, 2014 at 10:01 pm in reply to: multiple OpenEars delegates are getting mixed up with ARC on #1021522gsborisParticipanti turned off observer – same issue.
i played with different voices: if I use slt on VC1 and rms on VC2 – it does not crash, i can go back and forth and it is fine!
Using same voice on both causes that. As soon as I use the same voice on VC2 and go back to VC1 it crashes while trying to say.June 4, 2014 at 9:19 pm in reply to: multiple OpenEars delegates are getting mixed up with ARC on #1021520gsborisParticipantwell, my app is heavily relied on the observer though. It is TTS with word/sentence/paragraph highlights, I really need that observer to discern when and what to highlight. I will try something, perhaps w/o highlights for now. will get back to you. Thank you very much for your patience and expertise.
June 4, 2014 at 9:09 pm in reply to: multiple OpenEars delegates are getting mixed up with ARC on #1021518gsborisParticipantCould it be simulator issues? I am going to test it on real device first.
June 4, 2014 at 8:42 pm in reply to: multiple OpenEars delegates are getting mixed up with ARC on #1021516gsborisParticipantwell, i implemented all methods as you have them in tutorial.
Since nil-ing delegate I does not mix controllers anymore, but it still crashes when I go back to VC1 after i used TTS on VC2 and try to make it say:
[self.fliteController say:[txtArr objectAtIndex:hlIndx] withVoice:self.slt];However it does not crash if I make it say on VC1, go to VC2 and return to VC1 and make it say.
It seems to crash if I make it say on VC2 and return to VC1 and try make it say again.here is my methods:
-(void)viewWillAppear:(BOOL)animated{
[self.openEarsEventsObserver setDelegate:self];
}
-(void)viewWillDisappear:(BOOL)animated{
self.openEarsEventsObserver.delegate=nil;
}
– (OpenEarsEventsObserver *)openEarsEventsObserver {
if (openEarsEventsObserver == nil) {
openEarsEventsObserver = [[OpenEarsEventsObserver alloc] init];
}
return openEarsEventsObserver;
}
– (FliteController *)fliteController {
if (fliteController == nil) {fliteController = [[FliteController alloc] init];}
return fliteController;
}
– (Slt *)slt {
if (slt == nil) {slt = [[Slt alloc] init];}
return slt;
}here is bt:
* thread #1: tid = 0x93e1b, 0x0321a3f4 libsystem_c.dylib`strcmp + 84, queue = ‘com.apple.main-thread’, stop reason = EXC_BAD_ACCESS (code=2, address=0x8)
frame #0: 0x0321a3f4 libsystem_c.dylib`strcmp + 84
frame #1: 0x0003d504 AIMExplorer`feat_find_featpair + 84
frame #2: 0x0003d9d4 AIMExplorer`feat_set + 52
frame #3: 0x0003dadd AIMExplorer`feat_set_float + 77
frame #4: 0x0003c759 AIMExplorer`flite_feat_set_float + 57
frame #5: 0x000e897a AIMExplorer`-[FliteController say:withVoice:] + 746
* frame #6: 0x0000dd1f AIMExplorer`-[HighlightAndReadAloudViewController say_hlTxt](self=0x0a3338a0, _cmd=0x00131583) + 223 at HighlightAndReadAloudViewController.m:183
frame #7: 0x0000cc3a AIMExplorer`-[HighlightAndReadAloudViewController buttonHandler:](self=0x0a3338a0, _cmd=0x00130579, sender=0x0a334eb0) + 4186 at HighlightAndReadAloudViewController.m:100
frame #8: 0x02245880 libobjc.A.dylib`-[NSObject performSelector:withObject:withObject:] + 77
frame #9: 0x00ef53b9 UIKit`-[UIApplication sendAction:to:from:forEvent:] + 108
frame #10: 0x00ef5345 UIKit`-[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
frame #11: 0x00ff6bd1 UIKit`-[UIControl sendAction:to:forEvent:] + 66
frame #12: 0x00ff6fc6 UIKit`-[UIControl _sendActionsForEvents:withEvent:] + 577
frame #13: 0x00ff6243 UIKit`-[UIControl touchesEnded:withEvent:] + 641
frame #14: 0x00f34ddd UIKit`-[UIWindow _sendTouchesForEvent:] + 852
frame #15: 0x00f359d1 UIKit`-[UIWindow sendEvent:] + 1117
frame #16: 0x00f075f2 UIKit`-[UIApplication sendEvent:] + 242
frame #17: 0x00ef1353 UIKit`_UIApplicationHandleEventQueue + 11455
frame #18: 0x0243d77f CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
frame #19: 0x0243d10b CoreFoundation`__CFRunLoopDoSources0 + 235
frame #20: 0x0245a1ae CoreFoundation`__CFRunLoopRun + 910
frame #21: 0x024599d3 CoreFoundation`CFRunLoopRunSpecific + 467
frame #22: 0x024597eb CoreFoundation`CFRunLoopRunInMode + 123
frame #23: 0x04b075ee GraphicsServices`GSEventRunModal + 192
frame #24: 0x04b0742b GraphicsServices`GSEventRun + 104
frame #25: 0x00ef3f9b UIKit`UIApplicationMain + 1225
frame #26: 0x0000bbad AIMExplorer`main(argc=1, argv=0xbfffed74) + 141 at main.m:16June 4, 2014 at 7:09 pm in reply to: multiple OpenEars delegates are getting mixed up with ARC on #1021511gsborisParticipantOK, thanks, will do that
June 4, 2014 at 7:06 pm in reply to: multiple OpenEars delegates are getting mixed up with ARC on #1021509gsborisParticipantso now when I go back to VC1 it is crashing, that is
June 4, 2014 at 7:02 pm in reply to: multiple OpenEars delegates are getting mixed up with ARC on #1021507gsborisParticipantIT IS WORKING NOW, sort of, but crashing
it does not call VC1 now from VC2 when I just .delegate=nil on view disappearit is crashing while trying:
[fliteController say:[txtArr objectAtIndex:hlIndx] withVoice:self.slt];here is bt:
* thread #1: tid = 0x63a5f, 0x0003d506 AIMExplorer`feat_find_featpair + 70, queue = ‘com.apple.main-thread’, stop reason = EXC_BAD_ACCESS (code=1, address=0xe8240489)
frame #0: 0x0003d506 AIMExplorer`feat_find_featpair + 70
frame #1: 0x0003d9e4 AIMExplorer`feat_set + 52
frame #2: 0x0003daed AIMExplorer`feat_set_float + 77
frame #3: 0x0003c769 AIMExplorer`flite_feat_set_float + 57
frame #4: 0x000e898a AIMExplorer`-[FliteController say:withVoice:] + 746
* frame #5: 0x0000df9b AIMExplorer`-[HighlightAndReadAloudViewController say_hlTxt](self=0x0a653b50, _cmd=0x00131581) + 203 at HighlightAndReadAloudViewController.m:180
frame #6: 0x0000ceca AIMExplorer`-[HighlightAndReadAloudViewController buttonHandler:](self=0x0a653b50, _cmd=0x00130577, sender=0x0a6dba60) + 4186 at HighlightAndReadAloudViewController.m:100
frame #7: 0x02245880 libobjc.A.dylib`-[NSObject performSelector:withObject:withObject:] + 77
frame #8: 0x00ef53b9 UIKit`-[UIApplication sendAction:to:from:forEvent:] + 108
frame #9: 0x00ef5345 UIKit`-[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
frame #10: 0x00ff6bd1 UIKit`-[UIControl sendAction:to:forEvent:] + 66
frame #11: 0x00ff6fc6 UIKit`-[UIControl _sendActionsForEvents:withEvent:] + 577
frame #12: 0x00ff6243 UIKit`-[UIControl touchesEnded:withEvent:] + 641
frame #13: 0x00f34ddd UIKit`-[UIWindow _sendTouchesForEvent:] + 852
frame #14: 0x00f359d1 UIKit`-[UIWindow sendEvent:] + 1117
frame #15: 0x00f075f2 UIKit`-[UIApplication sendEvent:] + 242
frame #16: 0x00ef1353 UIKit`_UIApplicationHandleEventQueue + 11455
frame #17: 0x0243d77f CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
frame #18: 0x0243d10b CoreFoundation`__CFRunLoopDoSources0 + 235
frame #19: 0x0245a1ae CoreFoundation`__CFRunLoopRun + 910
frame #20: 0x024599d3 CoreFoundation`CFRunLoopRunSpecific + 467
frame #21: 0x024597eb CoreFoundation`CFRunLoopRunInMode + 123
frame #22: 0x04b075ee GraphicsServices`GSEventRunModal + 192
frame #23: 0x04b0742b GraphicsServices`GSEventRun + 104
frame #24: 0x00ef3f9b UIKit`UIApplicationMain + 1225
frame #25: 0x0000be3d AIMExplorer`main(argc=1, argv=0xbfffed74) + 141 at main.m:16June 4, 2014 at 6:45 pm in reply to: multiple OpenEars delegates are getting mixed up with ARC on #1021505gsborisParticipantkk, will try and get back to u asap
June 4, 2014 at 6:37 pm in reply to: multiple OpenEars delegates are getting mixed up with ARC on #1021502gsborisParticipantyou are right, they both are called back, 1st on VC2 then on VC1.
1st I tried nil-ing everything i.e. fliteController,slt,openEarsEventsObserver.delegate,openEarsEventsObserver then just openEarsEventsObserver.delegate in both cases app crashes. -
AuthorPosts