Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad point excess error when press home button in iOS6 device (0.2Version SDK) #24

Closed
DeqingQu opened this issue Nov 16, 2012 · 3 comments

Comments

@DeqingQu
Copy link

When press Home button to make the app in background mode, a bad point excess error happened.

The app stopped in function "- (void)saveActivityUsingTime:(NSString*) pageName". It seems that a bad point excess error happened when "NSData *pageStartDate = [[NSUserDefaults standardUserDefaults] objectForKey: pageName];"

The detail of the error:
call 0x1e96a00 symbol stub for: getpid

PS:
When I add "[UMAgent startTracPage:@"XXX"];", this error dose not appear any more.
Dose the tracPage have to be set?

@jameszaghini
Copy link

I am having the same issue.

It looks like endTracPage gets called even if you never start/end tracking a page. I initially thought that this was not supposed to happen, but when I added code to return in endtracpage - no stats were submitted to the server at all.

So, for version 0.2 - you will have to use startTracPage/endTracPage. I don't know if this is supposed to be required.

I updated the UMSAgent project to set page_name to an empty string instead of nil, and don't seem to be having any problems. Maybe someone at cobub can comment as to whether this fix is a good idea?

See here for changes:
https://github.com/jameszaghini/razor/commit/916cd9d9eaefe56578e21df3ff165bac2178b250

@guowseu
Copy link
Contributor

guowseu commented Nov 27, 2012

After I go through the code , I found the bug is as flow: If you don't call startTracePage, then the local variable "pageName" will be nil. Then endTracePage will use nil pageName to record activity using log. So, temporary solution is to add startTracePage in the viewWillAppear method. And We will fix this bug ASAP.

@guowseu
Copy link
Contributor

guowseu commented Nov 28, 2012

This bug is fixed and committed to the repository. Please update your working copy to solve this problem.

@cobub cobub closed this as completed Dec 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants