-
Notifications
You must be signed in to change notification settings - Fork 133
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
.Create causes SIGABRT crash #27
Comments
Have you found a solution for this? I seem to be having a similar problem. |
I am not sure if this is related to Google Play Game Services? I don't see anything in the log snippet indicating it is related? Looks like to me that a class in snow_basic has an unimplemented virtual method or it the victim of a bad cast? |
@florin-chelaru : I hadn't gotten further trying to use this library after this error, adding the library to my project and calling create() caused this crash and at the time deadlines approached so I just implemented my own JNI stuff manually which worked fine. |
Good point. Thanks for the response. |
I'll see if I have the code around still, I tend to keep these kinda things for later debugging. Maybe I can reproduce it and see if there's more to go on. |
I've been trying out the SDK, but have ended up stuck with a hard to debug crash.
I would have filed this on the SDK repo but there isn't one, so this is the next best option since I'm using the code here as direct reference :)
The following line causes the crash, but only after it returns:
service = builder.Create(conf);
If I don't call create (but configure everything before it) it continues without issue.
Possibly relevant information:
compileSdkVersion 23
compile 'com.google.android.gms:play-services:8.4.0'
apply
lines related to the play servicesThe code below is a bit verbose because I have been trying to debug this a while.
I have explicitly added the getActivity function to check that it was sane.
The
selfActivity
instance is set inside ofonCreate
.And finally, here is the logcat output at the time of the crash.
In case it's not clear:
GPG
= the native code aboveapp
= C++ code of the app, from a touch event (happens no matter where I call from)APP
= java code of the appDebugging via Android studio with NDK debugging yields minimal help,
Because it's an abort, I can't get lldb or gdb (via android studio or otherwise) to break properly once it triggers. All other stepping through prior is fine until it does, but the code reaches the end of it's execution before crashing (note the code prints done from inside the app on return of the init call).
Due to the nature of the abort it also makes it difficult to search for help, and all the common thread related issues are (or should be) accounted for above.
I have noticed this verbose log in other peoples issues on this repo:
V/GamesNativeSDK(12369): Attached to JVM on thread 1927939016
but I never see this in my logcat, the only line from the sdk is the above one about the jar file.Any help is appreciated!
The text was updated successfully, but these errors were encountered: