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

EXC_BAD_ACCESS in GAIHandler.m #4

Open
patipol opened this issue Sep 10, 2014 · 6 comments
Open

EXC_BAD_ACCESS in GAIHandler.m #4

patipol opened this issue Sep 10, 2014 · 6 comments

Comments

@patipol
Copy link

patipol commented Sep 10, 2014

I'm trying to install and setup the plugin for running on an iOS device on my existing project. Following the guideline, I have created a GameObject and and added the script with a public GoogleAnalyticsV3 using GAv3.prefab. Android Tracking Code, IOSTracking Code, Product Name, Bundle Identifier, Bundle Version have already set with
Dispatch Period: 5
Sample Frequency: 100
Debug Mode: VERBOSE
Anonymize IP: false
Dry Run: false
Session Timeout: 1800

Then when running on iOS device, I got an EXC_BAD_ACCESS in
File: GAIHandler.m
Method: void send(const char* parameters)
Line: 244
Statement: NSString *attris = [NSString stringWithUTF8String:parameters];

Not calling any function even DispatchHits() or StartSession() gave me the same result. I have also tried to log the tracker and got (null).
What I have missed? Please suggest me to figure out this issue. Thank you.

@patipol
Copy link
Author

patipol commented Sep 10, 2014

I have just found that this exception will be thrown when I called the method

UploadValues(String, String, NameValueCollection) of System.Net.WebClient

So I use UnityEngine.WWW instead without exception.
Anyway this case still does not make sense to me. It will be great if you could explain to me. Thank you.

@emmanuellemm
Copy link
Contributor

Hi patipol

I want to make sure I understand what you're saying. Are you trying to use 'UploadValues(...)' when calling one of the tracking methods (if so, could you include a snippet of what the call looks like)? Or are you using UploadValues(...) somewhere else in your code and the plugin is conflicting with it? That will help me narrow down the problem.

Thanks!

@patipol
Copy link
Author

patipol commented Sep 10, 2014

I am using UploadValues(...) somewhere else in my code and the plugin is conflicting with it. This occurs after imported googleanalyticsv3.unitypackage to the project.

@Witit
Copy link

Witit commented Sep 15, 2014

I have got same error while I try to use System.Net call.

EXC_BAD_ACCESS to line 243 file GAIHandler.h
NSString *attris = [NSString stringWithUTF8String:parameters];

@Witit
Copy link

Witit commented Sep 15, 2014

What is this send(const *char parameters) method used for?

I see no use of it in GoogleAnalyticiOSV3. But somehow it is called by System.Net

@emmanuellemm
Copy link
Contributor

Currently it is not being used. I have removed it until I determine a solution for the conflict, so I will leave this issue open. Thanks to you both for your help and feedback!

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

3 participants