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

EntryPointNotFoundException with Unity 2017.1.1f1 (64bit), .NET 4.6 on Windows #28

Closed
Bunkerbewohner opened this issue Oct 10, 2017 · 7 comments

Comments

@Bunkerbewohner
Copy link

Bunkerbewohner commented Oct 10, 2017

Hi! I was excited to discover that Mixpanel offers a Unity plugin so I quickly integrated it by downloading the .unitypackage from github (v1.1.0) and I really like the API! However, when I start the game in the editor I get the following error at the beginning:

EntryPointNotFoundException: CSharp_mixpanelfdetail_new_Mixpanel__SWIG_2___
mixpanel.detail.Mixpanel..ctor (System.String token, System.String distinct_id, System.String storage_directory, System.Boolean enable_log_queue) (at Assets/Mixpanel/detail/Mixpanel.cs:53)
mixpanel.Mixpanel.Awake () (at Assets/Mixpanel/Mixpanel.cs:575)

Every call to Mixpanel.Track etc. causes a similar error and naturally no events are sent.

Unity Version: 2017.1.1f1 (64bit)
Scripting Backend: Mono
Scripting Runtime: .NET 4.6
Platform: Windows 10 Pro, Version 1703

@patedit
Copy link
Contributor

patedit commented Oct 10, 2017

Hi @Bunkerbewohner - could you try the previous release and see if it works for you?

@Bunkerbewohner
Copy link
Author

Bunkerbewohner commented Oct 11, 2017

Hi!

This somewhat works. I'm still testing, but I can already say for sure that some tracking calls work, such as:

Mixpanel.Track("EventName");
Mixpanel.Track("EventName", new Value() { ["value"] = 1234 });

However, calls like this crash the runtime:

Mixpanel.Track("EventName", 1234);
Mixpanel.Track("EventName", new Value(1234));
Mixpanel.Track("EventName", "Example");
Mixpanel.Track("EventName", new Value("Example"));

runtime-error

But I can make do with the verbose syntax. I will continue testing and see if the other stuff like timed tracking work. Thanks!

@patedit
Copy link
Contributor

patedit commented Oct 11, 2017

Thanks for the update @Bunkerbewohner ! Notice that you need to pass a JSON object to the properties (see https://github.com/mixpanel/mixpanel-unity/blob/master/deployments/UnityMixpanel/Assets/Mixpanel/Mixpanel.cs#L219)
It was not clear to me if you are now using the previous version or you are on the latest :) Want to make sure that 1.1.0 works fine!

@Bunkerbewohner
Copy link
Author

Thanks for the tip about the JSON object! Maybe an error message instead crashing the application would have been clearer. ;-)

As for the version I am actually on the previous version 1.0.1 now! The latest version 1.1.0 still has the EntryPointNotFoundException problem for me.

@harshgupt
Copy link

Hello! I am getting the same EntryPointNotFoundException issue for the older version 1.0.1 as well.

unnamed

I am using Unity 2017.3.1 and I have tried it on both, a Mac and Windows 10 system. Mixpanel v1.1.1 throws this error only on my Windows device, but v1.0.1 shows the same error for both Mac and Windows.

Could anyone tell me how to fix this problem?

@pytel87
Copy link

pytel87 commented Apr 1, 2018

Hi, I am getting the EntryPointNotFoundException on Windows with v1.1.1 version. Downgrade fixed it for Win, but break it for Mac. Any solution that works on both platforms with same version of Mixpanel?

@zihejia
Copy link
Contributor

zihejia commented May 24, 2018

Sorry guys, we have released a new version v1.2.0 with a fix to this problem, please try again and feel free to reopen it if the same problem still exists.

@zihejia zihejia closed this as completed May 24, 2018
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

5 participants