ElDorado
Aspiring developer
Profile
Posts: 41
Reg: Mar 25, 2013
Dallas
410
06/02/13 09:45 PM (12 years ago)

Scringo causing app to freeze

Guys, I have successfully integrated Scringo and its working. But, I am having some problems with the app freezing. I am not using the carousel plugin. My home page is a button menu. Here are the steps to reproduce. - The app loads for the first time and displays the button menu home page - I open Scringo by swiping or I have tried the NavBar button as well. I don't do anything after Scringo opens just to make sure its not some other interaction. - Now I go back to the button menu (my home page). - I hit the 'refresh' button the top left. - The app refreshes comes back to the main screen and its frozen. Any ideas??
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/03/13 01:59 AM (12 years ago)
Did it work before you integrated Scringo? Do you have any logs? Check out Chris' neat tutorial on using the debugger; that would give you (and us) a bit more info to go on... https://www.buzztouch.com/files/howtos/exception%20debugging%20how-to.pdf and Mark (GoNorthWest) also wrote a good tutorial on general debugging in most situations https://www.buzztouch.com/files/howtos/Problem_Reporting_and_Basic_Debug_v1.0.pdf Hope this helps, and let us know how it turns out! Cheers! -- Smug
 
aasatt
Aspiring developer
Profile
Posts: 34
Reg: Apr 29, 2012
Huntington Beac...
2,140
like
06/04/13 10:23 PM (12 years ago)
Same thing is happening with my app. It works fine on initial launch but freezes after you change views or head back to the home view. There is no error in the console and no abnormal logs. Everything seems fine but the app is just unresponsive. I'll play around with it for the next few hours and see if I can figure out whats wrong. PS: I'm not using buzztouch for this app either so its not a problem with buzztouch
 
Ofer
Android Fan
Profile
Posts: 54
Reg: Apr 06, 2013
Tel Aviv
540
like
06/05/13 04:09 AM (12 years ago)
Hi guys, never saw this, I'd be happy to get logs... Send them to [email protected] and we'll have a look. Thanks
 
ElDorado
Aspiring developer
Profile
Posts: 41
Reg: Mar 25, 2013
Dallas
410
like
06/05/13 09:48 AM (12 years ago)
Hi Ofer I have sent the logs to your email. Once I remove Scringo (comment it out in the code), the refresh and rest of buzztouch works. So, I think the its the Scringo interaction
 
ElDorado
Aspiring developer
Profile
Posts: 41
Reg: Mar 25, 2013
Dallas
410
like
06/15/13 09:57 AM (12 years ago)
Just to close this thread out. Scringo guys helped me out. I was placing the Scringo launch line in the wrong place. Just follow the instructions properly from their website and it should be good.
 
aasatt
Aspiring developer
Profile
Posts: 34
Reg: Apr 29, 2012
Huntington Beac...
2,140
like
06/15/13 10:07 AM (12 years ago)
The problem for me was I was using a modal segue instead of push. Once I changed everything to push its worked fine.
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
07/04/13 08:35 AM (12 years ago)
I'm experiencing a simliar problem; on my home page, I'm using the carousel plug-in. Everything freezes up now, unless I refresh the screen 3-4 times. Ofer, mind if I shoot you a log to check it out?
 
Ofer
Android Fan
Profile
Posts: 54
Reg: Apr 06, 2013
Tel Aviv
540
like
07/04/13 10:40 AM (12 years ago)
No, shoot away (next time, you can simply shoot without asking ;-) ) Ofer
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
07/04/13 10:58 AM (12 years ago)
Terrific!
 
ElDorado
Aspiring developer
Profile
Posts: 41
Reg: Mar 25, 2013
Dallas
410
like
07/04/13 03:05 PM (12 years ago)
Aquila The MacImage gallery or carousel swipe conflicts with the scringo swipe. To avoid this, replace the swipe gesture in scringo, just for the swipe gesture related plugins, with the button. Here are the steps to do this: Open the macimagegallery.m file or the carousel main file.Place the following code in there to disable swiping of scringo #import <Scringo/ScringoAgent.h> add this line in the viewwillappear method self.navigationItem.rightBarButtonItem = [ScringoAgent scringoActivationBarItem]; add these lines outside of any other curly braces, this stops the swipe -(void)viewDidAppear:(BOOL)animated{ [ScringoAgent pauseSwipe]; } then add this outside any other curly braces, This makes sure the swipe will re-enable the swipe when past the carousel menu -(void)viewWillDisappear:(BOOL)animated{ [ScringoAgent resumeSwipe]; }
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
07/04/13 04:11 PM (12 years ago)
Thanks El-D! here's my first semantic issue: >>USE OF Undeclared Identifier 'viewDidAppear' I put this at the top: #import <Scringo/ScringoAgent.h> & then added the following: >>>>>>>>> //viewWillAppear... -(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; [BT_debugger showIt:self theMessage:@"viewWillAppear"]; //adding NEW SCRINGO TWEAK self.navigationItem.rightBarButtonItem = [ScringoAgent scringoActivationBarItem]; //flag this as the current screen competition_appDelegate *appDelegate = (competition_appDelegate *)[[UIApplication sharedApplication] delegate]; appDelegate.rootApp.currentScreenData = self.screenData; //setup navigation bar and background [BT_viewUtilities configureBackgroundAndNavBar:self theScreenData:[self screenData]]; //if we have not yet inited data.. if(self.didInit == 0){ [self performSelector:(@selector(loadData)) withObject:nil afterDelay:0.1]; [self setDidInit:1]; } //NEW SCRINGO TWEAK 2 -(void)viewDidAppear:(BOOL)animated{ [ScringoAgent pauseSwipe]; } -(void)viewWillDisappear:(BOOL)animated{ [ScringoAgent resumeSwipe]; } >>>>>> anything you can see that I did incorrectly?
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
07/04/13 04:41 PM (12 years ago)
these changes were in Buzz_carousel.m file, what I believe to be the main file
 
ElDorado
Aspiring developer
Profile
Posts: 41
Reg: Mar 25, 2013
Dallas
410
like
07/05/13 06:55 AM (12 years ago)
It looks like ViewDidAppear is not defined in the .h file for the Buzz Carousel plugin. You can try two things: 1- remove or uncomment out the ViewDidAppear. Build and try to see if it works in the simulator. May be just you've added should be enough 2- If it doesn't work, there should be a corresponding method in the macimage gallery plugin that makes the view or the screen appear. Look for that and add the [ScringoAgent pauseSwipe]; line without the function.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.