Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Prime31 Android Plugins Officially Live!

Discussion in 'Android' started by prime31, Jun 6, 2011.

  1. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @emmall, did you event look at the documentation (http://prime31.com/docs)? Judging from your comment I am guessing that you have not. I would suggest that you read and understand it fully before attempting to use the plugin.
     
  2. emmall

    emmall

    Joined:
    Dec 23, 2012
    Posts:
    4
    @prime31 of course I've read the whole documentation and all the pages of this forum related to social networking.
     
  3. danilomiranda

    danilomiranda

    Joined:
    Jun 4, 2012
    Posts:
    12
    parameters.Add("query", "SELECT uid, name FROM user where uid IN (SELECT uid2 FROM friend WHERE uid1 = 100000061556936) AND is_app_user=1 order by first_name");

    When I call the function FacebookAndroid.graphRequest("fql.query", "POST", parameters) it returns the following error: (#240) Requires a valid user to be specified (either via the session or via the API parameter for specifying the user).
     
  4. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @danil, using FQL requires very careful escape sequences. Visit Facebook's documentation to learn the requirements.
     
  5. jreitman

    jreitman

    Joined:
    Jul 24, 2012
    Posts:
    10
    I have been trying to get ChartBoostAndroid working all day to no avail. The ad appears, but it will not close using the X and it keeps printing the following error in adb

    SendMessage: object ChartBoostAndroidManager not found!

    We aren't referring to this object at all so it must be something internal.
     
  6. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @jreitman, the log is entirely normal if you are not listing to any events. It is not an error of any kind. You need to contact Chartboost for support with their actual SDK. We have nothing to do with it.
     
  7. Tenuki

    Tenuki

    Joined:
    Feb 19, 2013
    Posts:
    1
    Hello Prime31,

    I've purchased your plugin to simplify Google In-App Purchases. Everything works with "android.test.purchased" product or if I use "GoogleIAB.setAutoVerifySignatures(false);" with final product IDs. Yet for security reasons, I do want to verify signatures.

    Errors I'm getting:
    (on attempt to purchase)
    E/Prime31-SEC( 2688): Signature verification failed.
    E/Prime31-IABH( 2688): In-app billing error: Purchase signature verification FAILED for sku com.<company>.<productid>
    W/Unity ( 2688): onPurchaseFailedEvent: Signature verification failed for sku com.<company>.<productid> (response: -1003:purchase signature verification failed)
    (afterwards on any attempt to query inventory)
    E/Prime31-SEC( 2688): Signature verification failed.
    E/Unity ( 2688): onQueryInventoryFailedEvent: Error refreshing inventory (querying owned items). (response: -1003:purchase signature verification failed)

    Everything works properly IF setAutoVerifySignatures is set to false:
    * I can query items.
    * I can purchase.
    * Credit card is charged properly.
    * I get confirmation email from Google regarding my purchase.
    Etc.
    Which allows me to assume that I do have properly signed game, using proper Google Public Key, properly configured Manifest file and correct initialization order.

    Could you please suggest where I could look for the problem?
     
  8. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @tenuki, the error is pretty clear from the logs: "Signature verification failed". Your public key is not matching the data Google Play has.
     
  9. DARK_ETERNAL

    DARK_ETERNAL

    Joined:
    May 9, 2012
    Posts:
    41
    Greetings, prime31.

    I'm using the Etcetera plugin, and invoking a web view. The thing is, I'm passing a Youtube video URL, and it calls pretty good. But video won't display any picture. It'll play sound, though. Using a browser or the YouTube application will show it, but not the web view. Anything missing with the device, or it's got something to do with the plugin? (don't now, maybe misusage, bug...?)

    Another thing is that when I hit the back button, it won't actually close the web view, but hide it, therefore, even when I got back to my game, the currently playing video will remain playing sound. I know you have a function to close the view, but as I'm waiting for user input, how would I call it?

    Thanks in advance.
     
  10. Basurman

    Basurman

    Joined:
    Sep 1, 2010
    Posts:
    10
    Hi prime31.

    We received the crash report from one of the users of our app, below is a stack trace from Google Play Developer Console:

    Code (csharp):
    1. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bentoboxinteractive.mamamae/com.prime31.GoogleIABProxyActivity}: java.lang.NullPointerException
    2. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
    3. at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2122)
    4. at android.app.ActivityThread.access$600(ActivityThread.java:140)
    5. at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1228)
    6. at android.os.Handler.dispatchMessage(Handler.java:99)
    7. at android.os.Looper.loop(Looper.java:137)
    8. at android.app.ActivityThread.main(ActivityThread.java:4895)
    9. at java.lang.reflect.Method.invokeNative(Native Method)
    10. at java.lang.reflect.Method.invoke(Method.java:511)
    11. at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)
    12. at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
    13. at dalvik.system.NativeStart.main(Native Method)
    14. Caused by: java.lang.NullPointerException
    15. at com.prime31.GoogleIABProxyActivity.onCreate(GoogleIABProxyActivity.java:40)
    16. at android.app.Activity.performCreate(Activity.java:5163)
    17. at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
    18. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2061)
    19. ... 11 more
    It's all the information we have about the crash and the only thing that is evident is that it was caused by the prime31 Android IAB plugin.

    Can you please help to determine the reason of the issue? Do you have any ideas why it occurs?

    Thanks.
     
  11. DARK_ETERNAL

    DARK_ETERNAL

    Joined:
    May 9, 2012
    Posts:
    41
    Thanks for the reply, Prime31.

    Actually, I'm using Android Etcetera, thus I'm posting here.
    I've followed the thread and read some previous entries pointing about writing an HTML wrapper, so I've tried to do so. Yet still, that won't work to me. Still getting a black screen, but video playing.

    Any pointers?.

    Thanks in advance.
     
  12. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @dark, same thing on the Android side. We did not make the video player. It is a standard Android WebView. Open a support request with Google.
     
  13. iRetrograde

    iRetrograde

    Joined:
    Oct 13, 2011
    Posts:
    93
    Hey Prime,

    How's it going?

    Does the Twitter API (postUpdate and postUpdateWithImage) not provide similar dialog windows to the Facebook API when you call showPostMessageDialog?

    I have various user events that I'm posting to Twitter but these should all have posts/messages that users can edit. Are these dialogs simply non-existent in the Twitter api and do we have to build them ourselves?

    Cheers.
     
  14. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @iretro, the is no such thing as a dialog for posting via Twitter.
     
  15. iRetrograde

    iRetrograde

    Joined:
    Oct 13, 2011
    Posts:
    93
    Cheers, thanks!
     
  16. JoshOClock

    JoshOClock

    Joined:
    Dec 8, 2010
    Posts:
    107
    I've been using Prime31's plug-ins for over a year or so now and I think I've run into most of the crash logs I've seen on here.

    Usually they seem to crop up when I'm upgrading to a new version. For the most part, initial install is plug-and-play but upgrading can be a little bit of a hassle. Mainly because the package you're importing doesn't know anything about previous versions so all the old files stay around.

    My recommendations:
    - Delete any old .jar files that match the name in the /Plugins/Android folder and the script directory in /Plugins/ relating to the plug-in and reimport it.
    - Save your Unity project and close Unity.
    - Delete the Temp folders that Unity creates when building your Android apk in your project folder. (If it's still there)
    - Reopen your project.
    - Rebuild the manifest with the menu item supplied.
    - Double check the UIManager file that Prime31 supplies to make sure the API hasn't changed. Sometimes an extra init routine is added.
    - Rebuild your game.
    Those steps usually work for me. I've found that nuking all the directories for the plug-in and the .jar files seems a bit scary but isn't very traumatic especially now that you don't have to attach the supplied manager script to any GameObjects.

    If that doesn't work try this:
    - Create an empty project for the plug-in and test it there.

    If an empty project doesn't work... well then you're in trouble. Time to update your Android SDK, if that doesn't work I guess you have to contact Google. But I've never had to get to that point personally, and I've run into some nasty looking crashes.

    Hope this helps someone.
     
  17. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @josh, solid advice. To add to this the release notes (http://prime31.com/releaseNotes) will always have a note when deleting the old files is necessary for proper functioning.
     
  18. adada

    adada

    Joined:
    Feb 5, 2013
    Posts:
    3
    Hi Prime and Basurman,

    Any update for this ? I got similar crash report for Android IAB plugin, but it only happened in particular device, like Sony Xperia.

    Thanks in advance.
     
  19. adada

    adada

    Joined:
    Feb 5, 2013
    Posts:
    3
    Sorry, forgot to quote Basurman's post.

     
  20. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @adada, Please visit our website and fill out a proper bug report using our contact from. We require all relevant logs and steps that we can follow to reproduce the issue in order to be able to look into it.
     
  21. F84Matt

    F84Matt

    Joined:
    Feb 28, 2013
    Posts:
    5
    Hey Prime,

    We just updated our app to included the latest version of the In-App Billing plugin. The plugin works great on most devices but our users are receiving crashes on certain devices, most commonly Samsung Galaxy S3s and Samsung Galaxy Notes. The crash logs all point to the new IAB plugin and unfortunately we've been unable to replicate the issue on any of our test devices. Without being able to view the java files, it's hard to determine what the source of the problem is. Below are the logs we've received.


    Code (csharp):
    1. java.lang.IllegalStateException: Can't start async operation (refresh inventory) because another async operation(refresh inventory) is in progress.
    2. at com.prime31.util.IabHelper.flagStartAsync(IabHelper.java:856)
    3. at com.prime31.util.IabHelper.queryInventoryAsync(IabHelper.java:606)
    4. at com.prime31.GoogleIABPlugin$2.run(GoogleIABPlugin.java:113)
    5. at android.os.Handler.handleCallback(Handler.java:587)
    6. at android.os.Handler.dispatchMessage(Handler.java:92)
    7. at android.os.Looper.loop(Looper.java:130)
    8. at android.app.ActivityThread.main(ActivityThread.java:3768)
    9. at java.lang.reflect.Method.invokeNative(Native Method)
    10. at java.lang.reflect.Method.invoke(Method.java:507)
    11. at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
    12. at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
    13. at dalvik.system.NativeStart.main(Native Method)
    Code (csharp):
    1.  
    2. java.lang.NullPointerException
    3. at com.prime31.util.IabHelper.queryPurchases(IabHelper.java:883)
    4. at com.prime31.util.IabHelper.queryInventory(IabHelper.java:545)
    5. at com.prime31.util.IabHelper$2.run(IabHelper.java:616)
    6. at java.lang.Thread.run(Thread.java:856)
    7.  
    Our query for purchases isn't being run until we've received the billingSupportedEvent, our stripping level is set to Strip Assemblies, our Api Compatibility Level is at .NET 2.0 Subset, and we're publishing out of Unity 3.5.7f6. Any insight would be helpful, thanks.
     
  22. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @f84, the error indicates you are starting an operation while one is already in progress. Only one operation can occur at a time.
     
  23. F84Matt

    F84Matt

    Joined:
    Feb 28, 2013
    Posts:
    5
    Thanks for the response Prime. Our code currently uses a bool that makes sure query purchases cannot be called if a query is already in progress. Does GoogleIAB.init() automatically call the operation for 'refresh inventory'? That's the only place I could see us running into an overlap.
     
  24. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @f84, the init method only sends out a request to see if billing is supported
     
  25. damelin2

    damelin2

    Joined:
    Jan 8, 2013
    Posts:
    19
    Hi Prime,

    I've just finished implementing Google In-App v3 and in most cases it works just perfectly, except for one case.

    All our in-app are consumable. So we need to do consume() after each purchase (I'm also looking for consume() before a purchase and when queryInventorySucceededEvent fires, if there's any GooglePurchase present.)

    The plugin tell us, user owns the 'itemX' (with queryInventorySucceededEvent), but if we try to consume it, it fails (not owned), if we try to purchase it, it fails too (already purchased.) I was wondering what could we do on game side to prevent/bypass this state where the user won't be able to purchase this consumable again.

    Thanks!

    Our log shows:

    : queryInventorySucceededEvent
    : <GooglePurchase> packageName: ca.roofdog.roadtrip2, orderId: xx, productId: ca.roofdog.roadtrip2.x, developerPayload: , purchaseToken: xx, purchaseState: Purchased, signature: xx

    : Consuming sku: ca.roofdog.roadtrip2.x
    : consumePurchaseFailedEvent: ca.roofdog.roadtrip2.x: Error consuming sku ca.roofdog.roadtrip2.x (response: 8:Item not owned)

    : try to purchase: ca.roofdog.roadtrip2.x
    : Attempting to purchase an item that has already been purchased. Aborting to avoid exception. sku: ca.roofdog.roadtrip2.x
    : purchaseFailedEvent: ca.roofdog.roadtrip2.x: you have attempted to purchase an item that has already been purchased.
     
  26. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @damelin, per Google's docs any items that is consumed can then be repurchased. If you are seeing different behavior you need to open a bug report with Google.
     
  27. Errorsatz

    Errorsatz

    Joined:
    Aug 8, 2012
    Posts:
    555
    Any idea what's going on with crashing in promptForPictureFromAlbum? We're getting the same bug as they are: promptForPictureFromAlbum sometimes (not always) shows the gallery a second time after selecting a picture and then the app restarts. So far, we can't discern what's causing this to happen some times and not others, and the DDMS output isn't showing anything obvious.

    Also, when the gallery is shown the second time, there are less pictures available in it.
    The device we've been testing on is a Galaxy Note 1.
     
    Last edited: Mar 2, 2013
  28. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @error, you really didnt providing any information at all that we can work with. Please provide steps to reproduce using the demo scene and proper logs of all actions.
     
  29. soulburner

    soulburner

    Joined:
    Mar 25, 2012
    Posts:
    167
    Hi there!

    We're receiving some crash reports that seem to be caused by your plugin:

    Code (csharp):
    1. java.lang.NullPointerException
    2. in com.prime31.util.IabHelper.queryPurchases
    3.  
    4. java.lang.NullPointerException
    5. at com.prime31.util.IabHelper.queryPurchases(IabHelper.java:883)
    6. at com.prime31.util.IabHelper.queryInventory(IabHelper.java:545)
    7. at com.prime31.util.IabHelper$2.run(IabHelper.java:616)
    8. at java.lang.Thread.run(Thread.java:856)
     
    Last edited: Mar 2, 2013
  30. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @soul, Please visit our website and fill out a proper bug report using our contact from. We require all relevant logs and steps that we can follow to reproduce the issue in order to be able to look into it.
     
  31. soulburner

    soulburner

    Joined:
    Mar 25, 2012
    Posts:
    167
    You know, I can't say you what steps are needed to reproduce this bug because these crash logs come from Google Play from customers' devices. And it seems that everything we have - is such a log.

    Maybe you should just add some null verification there?
     
  32. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @soul, its not quite so simple. That NRE is the main Activity which shouldn't happen hence the need for steps to reproduce. Crash reports from Play are often quite useless as they don't mention the OS specifics or device model. It is quite possible that it is from an IAP hack or a hacked ROM.
     
  33. IanFGOL

    IanFGOL

    Joined:
    Feb 11, 2013
    Posts:
    3
    Hi Prime,

    We're seeing the same exceptions thrown as @adada and @soulburner. Not on all devices, just some. Sony Ericsson Arc S (LT18i) and Nexus 7 (grouper) appear to be most affected. Our app has been live for 1 week and has just over 100,000 downloads.

    73 reports so far of this:
    Code (csharp):
    1.  
    2. java.lang.IllegalStateException: IAB helper is not set up. Can't perform operation: queryInventory
    3. at com.prime31.util.IabHelper.checkSetupDone(IabHelper.java:802)
    4. at com.prime31.util.IabHelper.queryInventoryAsync(IabHelper.java:605)
    5. at com.prime31.GoogleIABPlugin$2.run(GoogleIABPlugin.java:113)
    6. at android.os.Handler.handleCallback(Handler.java:605)
    7. at android.os.Handler.dispatchMessage(Handler.java:92)
    8. at android.os.Looper.loop(Looper.java:137)
    9. at android.app.ActivityThread.main(ActivityThread.java:4464)
    10. at java.lang.reflect.Method.invokeNative(Native Method)
    11. at java.lang.reflect.Method.invoke(Method.java:511)
    12. at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:822)
    13. at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:589)
    14. at dalvik.system.NativeStart.main(Native Method)
    15.  
    9 reports so far of this:
    Code (csharp):
    1.  
    2. java.lang.NullPointerException
    3. at com.prime31.util.IabHelper.queryPurchases(IabHelper.java:883)
    4. at com.prime31.util.IabHelper.queryInventory(IabHelper.java:545)
    5. at com.prime31.util.IabHelper$2.run(IabHelper.java:616)
    6. at java.lang.Thread.run(Thread.java:856)
    7.  
    Note that we only call queryInventory() from billingSupportedEvent. I found a thread which states this is a bug in IabHelper due to:
    IABHELPER_REMOTE_EXCEPTION, "RemoteException while setting up in-app billing.", where the IabHelper incorrectly returns billing is supported when this exception occurs, when in fact it should return false.
    See this thread: http://stackoverflow.com/questions/...ling-v3-cant-perform-operation-queryinventory
    Prime31 plugin may have the same bug in the IabHelper class?

    79 reports so far of this:
    Code (csharp):
    1.  
    2. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fgol.HungrySharkEvolution/com.prime31.GoogleIABProxyActivity}: java.lang.NullPointerException
    3. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1696)
    4. at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1716)
    5. at android.app.ActivityThread.access$1500(ActivityThread.java:124)
    6. at android.app.ActivityThread$H.handleMessage(ActivityThread.java:968)
    7. at android.os.Handler.dispatchMessage(Handler.java:99)
    8. at android.os.Looper.loop(Looper.java:130)
    9. at android.app.ActivityThread.main(ActivityThread.java:3806)
    10. at java.lang.reflect.Method.invokeNative(Native Method)
    11. at java.lang.reflect.Method.invoke(Method.java:507)
    12. at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    13. at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    14. at dalvik.system.NativeStart.main(Native Method)
    15. Caused by: java.lang.NullPointerException
    16. at com.prime31.GoogleIABProxyActivity.onCreate(GoogleIABProxyActivity.java:40)
    17. at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    18. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1660)
    19. ... 11 more
    20.  
    We do not see these errors testing locally, we have received these from Google Play Developer Console so have no logcat output. Most purchases seem to be working without problems, these errors are affecting a small number of users only. Would be good to eliminate the exceptions killing our app tho, is generating a few 1* reviews from confused users.

    Thanks,

    Ian
     
  34. soulburner

    soulburner

    Joined:
    Mar 25, 2012
    Posts:
    167
    Ah, ok, I see... Then I will not worry about that hackers anymore... Thanks for the reply.
     
  35. 3dever

    3dever

    Joined:
    Mar 2, 2009
    Posts:
    71
    Just purchased Android Billing plugin.
    Inited ok, inventory query ok too. But when try to purchase something - application crahed.
    Please help :(

     
    Last edited: Mar 3, 2013
  36. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @3dever, you failed to generate the AndroidManifest.xml file using the menu item. The error is pretty clearly stated right in the log: "Unable to fi
    nd explicit activity class {com.Magisterion.DiamondIdol/com.prime31.GoogleIABPro
    xyActivity}; have you declared this activity in your AndroidManifest.xml?"
     
  37. 3dever

    3dever

    Joined:
    Mar 2, 2009
    Posts:
    71
    Thanks. I try it before, but now write it at full and separated variations. And all works now :)
     
  38. Holymars

    Holymars

    Joined:
    Mar 4, 2013
    Posts:
    4
    Hi prime,

    We've encounter a problem of In app billing V3 plugin.

    According to Google's document, IAB v3 will cache users' purchased item for lookup. Hence getPurchases() always return immediately. If somebody purchase an item then disconnect from network, the application should know his purchase state through getPurchases() function.

    The problem is, your API combines getPurchases() together with getSkuDetails(), which is an ASYNC operation and even worse, it may FAIL WITHOUT NETWORK.

    If I call GoogleIAB.queryInventory() without network, the IAB v3 API returns correct result, but fires queryInventoryFailedEvent because getSkuDetails() fails.

    I think the only solution is separately providing these two functions in GoogleIAB class.

    Here's the log.

     
  39. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @holymers, the plugin doesn't combine anything. There is a single operation that returns both the inventory and sku details. If you want to avoid issues dont call it if there is no network connection.
     
  40. Holymars

    Holymars

    Joined:
    Mar 4, 2013
    Posts:
    4
    http://developer.android.com/google/play/billing/billing_reference.html
    Google API provides getPurchases() for querying purchased items, and getSkuDetails() for querying sku details. What I need is to call getPurchases() ONLY for checking purchased history.

    When I call GoogleIAB.queryInventory(), the first invoked getPurchases() success and returns what I want.
    But I can't get this result inside Unity, because the succeeding call getSkuDetails() fails.
    Could you please provide a wrapper function that invokes getPurchases() only?
     
  41. TeMaH

    TeMaH

    Joined:
    Dec 21, 2012
    Posts:
    1
    Hello!
    I have Mobclix plugin.
    How i can move the banner on current position?
     
  42. IanFGOL

    IanFGOL

    Joined:
    Feb 11, 2013
    Posts:
    3
    Hi Prime,

    Further confirmation of crash in "com.prime31.GoogleIABProxyActivity.onCreate", confirmed in IABTestScene and only on some devices, see here: http://code.google.com/p/marketbilling/issues/detail?id=107

    Detail here:

    Reported by a...@happylatte.com, Mar 1 (4 days ago)
    STEPS TO REPRODUCE:
    1. Run my app(IABTestScene) and click "Initialize IAB"
    2. click "Test Purchase with Test Product", jump to test product page in google play
    3. purchase the test product id "android.test.purchased" in google play

    EXPECTED OUTPUT:
    back to my app after purchasing.

    ACTUAL OUTPUT:
    my app crash

    AFFECTED ORDER IDS (IF RELEVANT):

    OS VERSION:
    4.0.4

    MARKET/MYAPPS VERSION:
    Play Store 3.10.14

    DEVICE:
    Sony Xperia LT26W

    OUTPUT FROM ADB BUGREPORT ATTACHED:
    (Note: The output from "adb bugreport" is required for all bug reports.)
    03-01 15:55:01.589 I/Prime31-Proxy( 7924): proxy received action. sku: android.test.purchased
    03-01 15:55:01.599 I/Prime31-Proxy( 7924): unhandled exception while attempting to purchase item: null
    03-01 15:55:01.599 I/Prime31-Proxy( 7924): going to end the async operation with null data to clear out the queue
    03-01 15:55:01.599 D/AndroidRuntime( 7924): Shutting down VM
    03-01 15:55:01.599 W/dalvikvm( 7924): threadid=1: thread exiting with uncaught exception (group=0x40adf210)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): FATAL EXCEPTION: main
    03-01 15:55:01.609 E/AndroidRuntime( 7924): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.foo.foo/com.prime31.GoogleIABProxyActivity}: java.lang.NullPointerException
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1967)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at android.app.ActivityThread.access$600(ActivityThread.java:127)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at android.os.Handler.dispatchMessage(Handler.java:99)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at android.os.Looper.loop(Looper.java:137)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at android.app.ActivityThread.main(ActivityThread.java:4441)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at java.lang.reflect.Method.invokeNative(Native Method)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at java.lang.reflect.Method.invoke(Method.java:511)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:823)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at dalvik.system.NativeStart.main(Native Method)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): Caused by: java.lang.NullPointerException
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at com.prime31.GoogleIABProxyActivity.onCreate(GoogleIABProxyActivity.java:40)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at android.app.Activity.performCreate(Activity.java:4465)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1931)
    03-01 15:55:01.609 E/AndroidRuntime( 7924): ... 11 more
    03-01 15:55:01.609 W/ActivityManager( 337): Force finishing activity com.foo.foo/com.prime31.GoogleIABProxyActivity


    NOTES:
    most android devices work fine
     
  43. kouroutaiz

    kouroutaiz

    Joined:
    Mar 7, 2013
    Posts:
    3
    Hi Prime31,

    I got a Temple run application with prime31 inside.

    But it crash on some phone, not crash on any phone. Do you know the root caue? Thanks!

    I/Prime31 ( 7058): billing service active? false
    I/Prime31 ( 7058): persisting message due to service not being active
    I/Prime31-BS( 7058): BillingService constructor
    I/Prime31-BS( 7058): billing service bound in onBind
    I/Prime31 ( 7058): service onServiceConnected
    E/Prime31-BS( 7058): Could not bind to service.
    I/Prime31 ( 7058): billing service active? false
    I/Prime31 ( 7058): persisting message due to service not being active
    D/AudioStreamOutAlsa( 137): generateSilence: on alsa device(0x0) in mode(0x0)
    I/Prime31 ( 7058): error in unpersist: pad block corrupted
    W/ActivityManager( 383): Unable to start service Intent { act=com.android.vending.billing.MarketBillingServi ce.BIND } U=0: not found
    I/Prime31 ( 7058): persisted 1 transactions
    I/Prime31 ( 7058): error attempting to persist transaction: Value 5CE9181E8B1CF48D217E44AFEA640678659091AE7C591DEB19 3692CD8925E9EBA5776900233F45E381D5D5D1BA75EA51E101 EBCAD76676C3BD6AFD98533CE56D39CB45CFAE109A6B616C3A F1C280F211EA095FAB6417E22F0784EC8A34A05CF39D174129 F15E029ABE1012AB55EC68E3634CA349792AB77CA6D7B8B11E 5A3F0C0928EE6D5336A77660FF56B15D19E995 of type java.lang.String cannot be converted to JSONArray
    I/Unity ( 7058): PANEL HIDE ALL: VC GUI Root
    I/Unity ( 7058):
    I/Unity ( 7058): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)
    I/Unity ( 7058):
    D/AndroidRuntime( 7058): Shutting down VM
    W/dalvikvm( 7058): threadid=1: thread exiting with uncaught exception (group=0x41ac7e10)
    E/AndroidRuntime( 7058): FATAL EXCEPTION: main
    E/AndroidRuntime( 7058): java.lang.NullPointerException
    E/AndroidRuntime( 7058): at com.prime31.IABPlugin.persistTransaction(IABPlugin .java:306)
    E/AndroidRuntime( 7058): at com.prime31.IABPlugin.UnitySendMessage(IABPlugin.j ava:109)
    E/AndroidRuntime( 7058): at com.prime31.IABPlugin.access$1(IABPlugin.java:103)
    E/AndroidRuntime( 7058): at com.prime31.IABPlugin$2.run(IABPlugin.java:204)
    E/AndroidRuntime( 7058): at android.app.Activity.runOnUiThread(Activity.java:4 644)
    E/AndroidRuntime( 7058): at com.prime31.IABPlugin.startCheckBillingAvailableRe quest(IABPlugin.java:199)
    E/AndroidRuntime( 7058): at com.prime31.IABPlugin$1$1.onServiceConnected(IABPl ugin.java:163)
    E/AndroidRuntime( 7058): at android.app.LoadedApk$ServiceDispatcher.doConnecte d(LoadedApk.java:1101)
    E/AndroidRuntime( 7058): at android.app.LoadedApk$ServiceDispatcher$RunConnect ion.run(LoadedApk.java:1118)
    E/AndroidRuntime( 7058): at android.os.Handler.handleCallback(Handler.java:725 )
    E/AndroidRuntime( 7058): at android.os.Handler.dispatchMessage(Handler.java:92 )
    E/AndroidRuntime( 7058): at android.os.Looper.loop(Looper.java:150)
    E/AndroidRuntime( 7058): at android.app.ActivityThread.main(ActivityThread.jav a:5125)
    E/AndroidRuntime( 7058): at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime( 7058): at java.lang.reflect.Method.invoke(Method.java:511)
    E/AndroidRuntime( 7058): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:793)
    E/AndroidRuntime( 7058): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:560)
    E/AndroidRuntime( 7058): at dalvik.system.NativeStart.main(Native Method)
     
  44. IanFGOL

    IanFGOL

    Joined:
    Feb 11, 2013
    Posts:
    3
    UPDATE - We have eliminated a bug. billingSupportedEvent it seems can be called again during purchase flow (i.e. not just on initialisation), causing us to issue a queryInventory command which resulted in a number of problems with async operations overlapping and multiple consumeProduct calls. We now have a bool that ensures we only call queryInventory once. However we are still seeing this exception live in the market (not reproduced on our test devices):

    Code (csharp):
    1.  
    2. java.lang.NullPointerException
    3. at com.prime31.util.IabHelper.queryPurchases(IabHelper.java:883)
    4. at com.prime31.util.IabHelper.queryInventory(IabHelper.java:545)
    5. at com.prime31.util.IabHelper$2.run(IabHelper.java:616)
    6. at java.lang.Thread.run(Thread.java:856)
    7.  
    We are also bizarrely seeing 75% of our GoogleIAB.consmeProduct() requests failing with BILLING_RESPONSE_RESULT_DEVELOPER_ERROR, with the message "my.iap.name: Error consuming sku my.iap.name (response: 5: Developer Error)". As we have successfully made a purchase, we know that "com.android.vending.BILLING" is present in our manifest, and the app is correctly signed for release. The in-app name is also correct, which is the only parameter to GoogleIAB.consmeProduct(). We get the same error when we attempt to consume the items in the next session from queryInventory. We're a bit stumped on this one!

    Anyone got any ideas why we might be having issues consuming purchases 75% of the time?

     
  45. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,740
    Hi there,
    I have a question about the android social plugin. I'm using it to log into facebook, the problem is that I believe the session expired or doesn't detect a change so it gets stuck. These are my steps to make it fail:
    1) Install the app, login with facebook. It works perfectly fine.
    2) Remove the app from your android phone.
    3) Install the app, login with Facebook. It won't even popup again asking for log in.

    My guess is that the system or Facebook somehow remembers that it logged before and it won't ask again, but there is no success or fail event called. Here is my code:

    Code (csharp):
    1.  
    2.         if (!initiated) {
    3.             Debug.Log("fb init");
    4.             FacebookAccess.init();
    5.             initiated=true;
    6.         }
    7.         bool isSessionValid = FacebookAccess.isSessionValid();
    8.         Debug.Log("fbsession valid:"+isSessionValid+" accesstoken:"+FacebookAccess.getAccessToken());
    9.         List<object> permissions=FacebookAccess.getSessionPermissions();
    10.         Debug.Log("permissions:"+permissions);
    11.         if (permissions!=null) {
    12.             Debug.Log("permissions length:"+permissions.Count);
    13.             foreach (object permission in permissions)
    14.                 Debug.Log(" permissions:"+FacebookAccess.getSessionPermissions());
    15.         }
    16.         if (!isSessionValid) {
    17.             FacebookManager.sessionOpenedEvent+= facebookLogin;
    18.             FacebookManager.loginFailedEvent+= facebookLoginFailed;
    19. #if UNITY_IPHONE
    20.             FacebookAccess.setSessionLoginBehavior(FacebookSessionLoginBehavior.UseSystemAccountIfPresent);
    21. #endif
    22.         //  FacebookAccess.reauthorizeWithReadPermissions( new string[] { "email", "user_birthday", "user_about_me", "read_friendlists" } );
    23.             FacebookAccess.loginWithReadPermissions( new string[] { "email", "user_birthday", "user_about_me", "read_friendlists" } );
    24.             Debug.Log("fb login");
    25.         } else {
    26.             SmartFoxManager.fbToken = FacebookAccess.getAccessToken();
    27.             Debug.Log("token:"+SmartFoxManager.fbToken);
    28.             this.getMyInfo();
    29.             //this.gameObject.SetActiveRecursively(false);
    30.             //this.siguiente.SetActiveRecursively(true);
    31.         }
    32.  
    And this is what the logcat gets.

    I/Unity (26839): fb init
    I/Unity (26839):
    I/Unity (26839): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 54)
    I/Unity (26839):
    I/Prime31 (26839): session state: CREATED
    I/Unity (26839): fbsession valid:False accesstoken:
    I/Unity (26839):
    I/Unity (26839): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 54)
    I/Unity (26839):
    I/Unity (26839): permissions:System.Collections.Generic.List`1[System.Object]
    I/Unity (26839):
    I/Unity (26839): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 54)
    I/Unity (26839):
    I/Unity (26839): permissions length:0
    I/Unity (26839):
    I/Unity (26839): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 54)
    I/Unity (26839):
    I/Unity (26839): fb login


    as you can see "fb login" is at the end, meaning it went through the code. But the "successful" login is never called. I never get this printed out
    void facebookLogin()
    {
    Debug.Log( "Successfully logged in to Facebook" );
    FacebookManager.sessionOpenedEvent-= facebookLogin;
    FacebookManager.loginFailedEvent-= facebookLoginFailed;
    this.getMyInfo();
    }

    so... my question is, anything i'm doing wrong?
    should i use FacebookAccess.reauthorizeWithReadPermissions instead of login?
    if so, how do i know whether i need to use login or reauthorize? or this is not that problem at all?

    Regards
    Joaquin
     
  46. Walnut

    Walnut

    Joined:
    Dec 13, 2012
    Posts:
    1
    Hello everybody,

    I'm integrating Facebook by using Prime31 SocialNetwork Plugin. The demo works fine on my phone. However, when I integrated it into my own project, I got a problem. I use following code to login Facebook:
    if ( !FacebookAndroid.isSessionValid() )
    {
    FacebookAndroid.init();
    FacebookAndroid.loginWithPublishPermissions( new string[] { "publish_actions" } );
    IsLoging = true;
    }

    But when I installed the app and click the button to login Facebook, I got an error like below:

    03-09 13:02:33.012: E/AndroidRuntime(9668): FATAL EXCEPTION: main
    03-09 13:02:33.012: E/AndroidRuntime(9668): java.lang.RuntimeException: Unable to pause activity {com.walnut.striveGooglePlayRojo/com.facebook.LoginActivity}: java.lang.NullPointerException
    03-09 13:02:33.012: E/AndroidRuntime(9668): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2753)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2704)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:2682)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at android.app.ActivityThread.access$800(ActivityThread.java:123)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1155)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at android.os.Handler.dispatchMessage(Handler.java:99)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at android.os.Looper.loop(Looper.java:137)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at android.app.ActivityThread.main(ActivityThread.java:4521)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at java.lang.reflect.Method.invokeNative(Native Method)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at java.lang.reflect.Method.invoke(Method.java:511)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:762)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:529)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at dalvik.system.NativeStart.main(Native Method)
    03-09 13:02:33.012: E/AndroidRuntime(9668): Caused by: java.lang.NullPointerException
    03-09 13:02:33.012: E/AndroidRuntime(9668): at com.facebook.LoginActivity.onPause(LoginActivity.java:121)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at android.app.Activity.performPause(Activity.java:4563)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1195)
    03-09 13:02:33.012: E/AndroidRuntime(9668): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2735)
    03-09 13:02:33.012: E/AndroidRuntime(9668): ... 12 more
    03-09 13:02:33.449: W/ActivityManager(1814): Activity pause timeout for ActivityRecord{416acc88 com.walnut.striveGooglePlayRojo/com.facebook.LoginActivity}


    It seems like a plugin error. I cannot figure it out. Can someone help me this? Many thanks.
     
    Last edited: Mar 9, 2013
  47. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,740
    Getting tons of these reports with the admod plugin. I mean literally tons of them. I don't know whether you need to update the admob plugin jar files because on my system they show with a date from July even after removing and hitting the update option.

    DALVIK THREADS:
    (mutexes: tll=0 tsl=0 tscl=0 ghl=0 hwl=0 hwll=0)
    "main" prio=5 tid=1 VMWAIT
    | group="main" sCount=1 dsCount=0 obj=0x4017e5c8 self=0x12690
    | sysTid=4670 nice=0 sched=0/0 cgrp=default handle=-1342909336
    | schedstat=( 1181767441 325163350 1795 ) utm=94 stm=23 core=0
    at dalvik.system.DexFile.openDexFile(Native Method)
    at dalvik.system.DexFile.<init>(DexFile.java:105)
    at dalvik.system.DexFile.loadDex(DexFile.java:145)
    at dalvik.system.DexClassLoader.<init>(DexClassLoader.java:126)
    at com.google.ads.ak.f(SourceFile:341)
    at com.google.ads.ak.b(SourceFile:95)
    at com.google.ads.ak.a(SourceFile:69)
    at com.google.ads.n.<init>(SourceFile:158)
    at com.google.ads.internal.d.<init>(SourceFile:266)
    at com.google.ads.AdView.a(SourceFile:508)
    at com.google.ads.AdView.<init>(SourceFile:94)
    at com.prime31.AdMobPlugin$1.run(AdMobPlugin.java:215)
    at android.os.Handler.handleCallback(Handler.java:587)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:132)
    at android.app.ActivityThread.main(ActivityThread.java:4123)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:491)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
    at dalvik.system.NativeStart.main(Native Method)

    "Binder Thread #3" prio=5 tid=13 NATIVE
    | group="main" sCount=1 dsCount=0 obj=0x40b99238 self=0x1263a88
    | sysTid=5176 nice=0 sched=0/0 cgrp=default handle=13565296
    | schedstat=( 31991711 29778964 47 ) utm=2 stm=0 core=0
    at dalvik.system.NativeStart.run(Native Method)

    "AudioTrackThread" prio=10 tid=12 NATIVE
    | group="main" sCount=1 dsCount=0 obj=0x40814178 self=0x3608a8
    | sysTid=4697 nice=-16 sched=0/0 cgrp=default handle=3541000
    | schedstat=( 3918569681 1700741488 47712 ) utm=110 stm=281 core=0
    at dalvik.system.NativeStart.run(Native Method)

    "FMODAudioDevice" prio=10 tid=11 NATIVE
    | group="main" sCount=1 dsCount=0 obj=0x40808e80 self=0x1b4378
    | sysTid=4688 nice=-8 sched=0/0 cgrp=default handle=1786360
    | schedstat=( 4695112829 3350392148 20995 ) utm=351 stm=118 core=1
    at android.media.AudioTrack.native_write_byte(Native Method)
    at android.media.AudioTrack.write(AudioTrack.java:912)
    at org.fmod.FMODAudioDevice.run((null):-1)
    at java.lang.Thread.run(Thread.java:1020)

    "android.hardware.SensorManager$SensorThread" prio=5 tid=10 SUSPENDED
    | group="main" sCount=1 dsCount=0 obj=0x40808450 self=0x1b3490
    | sysTid=4687 nice=-8 sched=0/0 cgrp=default handle=1762280
    | schedstat=( 123454361591 13207780236 58899 ) utm=12190 stm=155 core=0
    at android.os.Handler.sendMessageAtTime(Handler.java:~464)
    at android.os.Handler.sendMessageDelayed(Handler.java:430)
    at android.os.Handler.sendMessage(Handler.java:367)
    at android.hardware.SensorManager$ListenerDelegate.onSensorChangedLocked(SensorManager.java:697)
    at android.hardware.SensorManager$SensorThread$SensorThreadRunnable.run(SensorManager.java:553)
    at java.lang.Thread.run(Thread.java:1020)

    "GLThread 11" prio=5 tid=9 SUSPENDED
    | group="main" sCount=1 dsCount=0 obj=0x40805f80 self=0x1ad970
    | sysTid=4686 nice=0 sched=0/0 cgrp=default handle=1759888
    | schedstat=( 205536442626 57323676308 302858 ) utm=19703 stm=850 core=0
    at com.google.android.gles_jni.EGLImpl.eglSwapBuffers(Native Method)
    at android.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1082)
    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1440)
    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1185)

    "Thread-10" prio=5 tid=8 NATIVE
    | group="main" sCount=1 dsCount=0 obj=0x407fbbe0 self=0x1a46d8
    | sysTid=4683 nice=0 sched=0/0 cgrp=default handle=1721864
    | schedstat=( 22180785 54808127 475 ) utm=1 stm=0 core=0
    at dalvik.system.NativeStart.run(Native Method)

    "Binder Thread #2" prio=5 tid=7 NATIVE
    | group="main" sCount=1 dsCount=0 obj=0x407bb5c8 self=0x15ddc8
    | sysTid=4676 nice=0 sched=0/0 cgrp=default handle=1466640
    | schedstat=( 44766958 57656636 62 ) utm=3 stm=0 core=1
    at dalvik.system.NativeStart.run(Native Method)

    "Binder Thread #1" prio=5 tid=6 NATIVE
    | group="main" sCount=1 dsCount=0 obj=0x407b1b28 self=0x15da10
    | sysTid=4675 nice=0 sched=0/0 cgrp=default handle=799760
    | schedstat=( 58076012 54006667 65 ) utm=5 stm=0 core=1
    at dalvik.system.NativeStart.run(Native Method)

    "Compiler" daemon prio=5 tid=5 VMWAIT
    | group="system" sCount=1 dsCount=0 obj=0x407b0498 self=0x15dfc8
    | sysTid=4674 nice=0 sched=0/0 cgrp=default handle=1429768
    | schedstat=( 221256521 148768113 715 ) utm=15 stm=7 core=1
    at dalvik.system.NativeStart.run(Native Method)

    "Signal Catcher" daemon prio=5 tid=4 RUNNABLE
    | group="system" sCount=0 dsCount=0 obj=0x407b03b8 self=0xbe448
    | sysTid=4673 nice=0 sched=0/0 cgrp=default handle=1474896
    | schedstat=( 6708499 34049714 18 ) utm=0 stm=0 core=1
    at dalvik.system.NativeStart.run(Native Method)

    "GC" daemon prio=5 tid=3 VMWAIT
    | group="system" sCount=1 dsCount=0 obj=0x407b02f0 self=0x168ad8
    | sysTid=4672 nice=0 sched=0/0 cgrp=default handle=1430224
    | schedstat=( 544315389 369622888 706 ) utm=49 stm=4 core=1
    at dalvik.system.NativeStart.run(Native Method)

    "HeapWorker" daemon prio=5 tid=2 VMWAIT
    | group="system" sCount=1 dsCount=0 obj=0x407b0218 self=0x15cf60
    | sysTid=4671 nice=0 sched=0/0 cgrp=default handle=782608
    | schedstat=( 305700434 143182491 350 ) utm=29 stm=1 core=0
    at dalvik.system.NativeStart.run(Native Method)
     
  48. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @creat, that is coming from internal classes in the AdMob SDK. Contact Google for more information.
     
  49. EF_ICYou

    EF_ICYou

    Joined:
    Jan 2, 2013
    Posts:
    18
    Hi prime31!

    I've found a strange error in the SocialNetworking plugin for android.

    When viewing the window to let the user share something to his/her feed, if the user presses cancel the window disappears without problem. However, if the user presses the 'X' the entire app crashes (hard crash). Attached is the log around the crash, from sending up the share window to 'everything dies a fiery death'.

    Is this something you can fix, or is it up to facebook's developers to sort this one out?

    Thanks
    ____________
    Elias Forslind
    ICYOU AB (publ)

    EDIT: Attachment seems to have failed horribly(a gif? what?), pasting instead

    Code (csharp):
    1. 03-11 11:59:13.736: I/Prime31(12811): session state: OPENED
    2. 03-11 11:59:13.736: I/Unity(12811): ZOMG share something
    3. 03-11 11:59:13.736: I/Unity(12811):  
    4. 03-11 11:59:13.736: I/Unity(12811): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)
    5. 03-11 11:59:13.771: I/webclipboard(12811): clipservice: android.sec.clipboard.ClipboardExManager@41b420d0
    6. 03-11 11:59:13.806: D/WML_SISO(12811): InitPasteboardJni
    7. 03-11 11:59:13.856: I/SurfaceFlinger(1691): id=2036(13) createSurface 0x3056c (1x1),1 flag=0, UnityPlayerNativeActivity
    8. 03-11 11:59:13.881: I/ClipboardServiceEx(1849): mCBPickerDialog enter case. MSG_DISMISS_DIALOG
    9. 03-11 11:59:13.891: I/SurfaceFlinger(1691): id=2037(14) createSurface 0x3fa2c (1x1),1 flag=0, UnityPlayerNativeActivity
    10. 03-11 11:59:13.936: E/DataRouter(1689): usb connection is true
    11. 03-11 11:59:13.936: E/DataRouter(1689): DSR is ON. Don't send DTR ON.
    12. 03-11 11:59:13.976: D/STATUSBAR-NetworkController(1972): onSignalStrengthsChanged signalStrength=SignalStrength: 99 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 gsm|lte 3 level=3
    13. 03-11 11:59:14.826: I/GATE(12811): <GATE-M>DEV_ACTION_COMPLETED</GATE-M>
    14. 03-11 11:59:14.961: W/InputManagerService(1849): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41ec2818
    15. 03-11 11:59:15.076: I/SurfaceFlinger(1691): id=2037 Removed UnityPlayerNativeActivity idx=6 Map Size=6
    16. 03-11 11:59:15.076: I/SurfaceFlinger(1691): id=2037 Removed UnityPlayerNativeActivity idx=-2 Map Size=6
    17. 03-11 11:59:15.811: I/InputReader(1849): Touch event's action is 0x0 (deviceType=0) [pCnt=1, pending(waiting finished signal)=0, s=0.2873 ]
    18. 03-11 11:59:15.811: I/InputDispatcher(1849): Delivering touch to current input target: action: 0x0
    19. 03-11 11:59:15.811: I/InputDispatcher(1849): Delivering touch to current input target: action: 0x0
    20. 03-11 11:59:15.811: I/InputDispatcher(1849): Delivering touch to current input target: action: 0x0
    21. 03-11 11:59:15.816: W/SIP(2058): IInputMethodWrapper. mCaller.executeOrSendMessage(MSG_UPDATE_WACOM_STATE)
    22. 03-11 11:59:15.816: W/SIP(2058): IInputMethodWrapper.  inputMethod.updateWacomState(msg.arg1). arg1 =0
    23. 03-11 11:59:15.906: I/InputReader(1849): Touch event's action is 0x1 (deviceType=0) [pCnt=1, pending(waiting finished signal)=0, s=]
    24. 03-11 11:59:15.906: I/InputDispatcher(1849): Delivering touch to current input target: action: 0x1
    25. 03-11 11:59:15.906: I/InputDispatcher(1849): Delivering touch to current input target: action: 0x1
    26. 03-11 11:59:15.906: I/InputDispatcher(1849): Delivering touch to current input target: action: 0x1
    27. 03-11 11:59:15.911: W/SIP(2058): IInputMethodWrapper. mCaller.executeOrSendMessage(MSG_UPDATE_WACOM_STATE)
    28. 03-11 11:59:15.911: W/SIP(2058): IInputMethodWrapper.  inputMethod.updateWacomState(msg.arg1). arg1 =0
    29. 03-11 11:59:15.911: A/libc(12811): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)
    30. 03-11 11:59:15.936: E/DataRouter(1689): usb connection is true
    31. 03-11 11:59:15.936: E/DataRouter(1689): DSR is ON. Don't send DTR ON.
    32. 03-11 11:59:16.421: I/DEBUG(12079): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    33. 03-11 11:59:16.421: I/DEBUG(12079): Build fingerprint: 'samsung/GT-N7000/GT-N7000:4.0.4/IMM76D/XXLRI:user/release-keys'
    34. 03-11 11:59:16.421: I/DEBUG(12079): pid: 12811, tid: 12811  >>> com.icyou.drul <<<
    35. 03-11 11:59:16.421: I/DEBUG(12079): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
    36. 03-11 11:59:16.426: I/DEBUG(12079):  r0 00000000  r1 80808080  r2 00000000  r3 00000000
    37. 03-11 11:59:16.426: I/DEBUG(12079):  r4 00000000  r5 a6b0001d  r6 00000000  r7 00979220
    38. 03-11 11:59:16.426: I/DEBUG(12079):  r8 fdf00021  r9 00979220  10 00a6e920  fp beca65fc
    39. 03-11 11:59:16.431: I/DEBUG(12079):  ip 5c6ea250  sp beca6550  lr 5c2df36c  pc 4010c840  cpsr 60000010
    40. 03-11 11:59:16.431: I/DEBUG(12079):  d0  0000000080000000  d1  403aa8f580000000
    41. 03-11 11:59:16.441: I/DEBUG(12079):  d2  401e1c30f69715fb  d3  3fed4dc680000000
    42. 03-11 11:59:16.441: I/DEBUG(12079):  d4  6d6d6d6d6d6d6d6d  d5  6d006d006d006d00
    43. 03-11 11:59:16.441: I/DEBUG(12079):  d6  0000000056565656  d7  0000000000000000
    44. 03-11 11:59:16.441: I/DEBUG(12079):  d8  437951a900000000  d9  bffee870c2dd5cae
    45. 03-11 11:59:16.441: I/DEBUG(12079):  d10 400921fb54442d18  d11 c05bab95c4e25e12
    46. 03-11 11:59:16.441: I/DEBUG(12079):  d12 3fd8afad60000000  d13 3dd0a0b03ec57d6b
    47. 03-11 11:59:16.441: I/DEBUG(12079):  d14 be114b263f4ec832  d15 4023a2103f127c1d
    48. 03-11 11:59:16.441: I/DEBUG(12079):  d16 5b7c310841b05558  d17 0000000000000000
    49. 03-11 11:59:16.441: I/DEBUG(12079):  d18 3f9d113a965536e9  d19 3fd56647a4b2cf64
    50. 03-11 11:59:16.441: I/DEBUG(12079):  d20 bfc9b3f8cf15ef53  d21 3fc25eb9e1d3f97d
    51. 03-11 11:59:16.441: I/DEBUG(12079):  d22 bfbc964eb463ecde  d23 3fb7656f7e115ee3
    52. 03-11 11:59:16.441: I/DEBUG(12079):  d24 bfb3cca0314b9d04  d25 3fb124f69f13b561
    53. 03-11 11:59:16.441: I/DEBUG(12079):  d26 bfae00afc45ea96f  d27 3fa98aad8c53bc90
    54. 03-11 11:59:16.441: I/DEBUG(12079):  d28 bfa2b4442c6a6c2f  d29 3ff0000000000000
    55. 03-11 11:59:16.441: I/DEBUG(12079):  d30 0000000000000000  d31 3ff0000000000000
    56. 03-11 11:59:16.441: I/DEBUG(12079):  scr 88000010
    57. 03-11 11:59:16.541: D/STATUSBAR-NetworkController(1972): onSignalStrengthsChanged signalStrength=SignalStrength: 99 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 gsm|lte 4 level=4
    58. 03-11 11:59:16.671: I/DEBUG(12079):          #00  pc 00016840  /system/lib/libc.so (strlen)
    59. 03-11 11:59:16.671: I/DEBUG(12079):          #01  pc 5c2df368  
    60. 03-11 11:59:16.676: I/DEBUG(12079):          #02  pc 5c2e8a98  
    61. 03-11 11:59:16.676: I/DEBUG(12079):          #03  pc 0001edb0  /system/lib/libdvm.so (dvmPlatformInvoke)
    62. 03-11 11:59:16.676: I/DEBUG(12079):          #04  pc 00059168  /system/lib/libdvm.so (_Z16dvmCallJNIMethodPKjP6JValuePK6MethodP6Thread)
    63. 03-11 11:59:16.676: I/DEBUG(12079): code around pc:
    64. 03-11 11:59:16.676: I/DEBUG(12079): 4010c820 e58d3004 e59d0004 e2822001 e3100003  .0....... ......
    65. 03-11 11:59:16.676: I/DEBUG(12079): 4010c830 1afffff7 e1a00003 e3081080 e3481080  ..............H.
    66. 03-11 11:59:16.676: I/DEBUG(12079): 4010c840 e4903004 e0422000 f5d0f040 e043c3a1  .0... B.@.....C.
    67. 03-11 11:59:16.676: I/DEBUG(12079): 4010c850 e00cc001 e1dcc003 04903004 1a000022  .........0.."...
    68. 03-11 11:59:16.676: I/DEBUG(12079): 4010c860 e043c3a1 e00cc001 e1dcc003 04903004  ..C..........0..
    69. 03-11 11:59:16.676: I/DEBUG(12079): code around lr:
    70. 03-11 11:59:16.676: I/DEBUG(12079): 5c2df34c 0041ae34 e92d47f0 e1a0a000 e24dd048  4.A..G-.....H.M.
    71. 03-11 11:59:16.676: I/DEBUG(12079): 5c2df35c e1a00002 e1a04002 e1a09001 ebf37ae1  .....@.......z..
    72. 03-11 11:59:16.676: I/DEBUG(12079): 5c2df36c e28d602c e286500c e1a01004 e3a03004  ,`...P.......0..
    73. 03-11 11:59:16.676: I/DEBUG(12079): 5c2df37c eddf7a35 e58d302c edcd7a0d e2866014  5z..,0...z...`..
    74. 03-11 11:59:16.676: I/DEBUG(12079): 5c2df38c e3e07000 e58d7030 e28d8008 e1a0400d  .p..0p.......@..
    75. 03-11 11:59:16.676: I/DEBUG(12079): stack:
    76. 03-11 11:59:16.676: I/DEBUG(12079):     beca6510  00000063  
    77. 03-11 11:59:16.676: I/DEBUG(12079):     beca6514  5bb3e420  /data/dalvik-cache/data@app@com.icyou.drul-1.apk@classes.dex
    78. 03-11 11:59:16.676: I/DEBUG(12079):     beca6518  418e4150  /dev/ashmem/dalvik-heap (deleted)
    79. 03-11 11:59:16.676: I/DEBUG(12079):     beca651c  409a8b17  /system/lib/libdvm.so
    80. 03-11 11:59:16.676: I/DEBUG(12079):     beca6520  40950f40  /system/lib/libdvm.so
    81. 03-11 11:59:16.681: I/DEBUG(12079):     beca6524  00000006  
    82. 03-11 11:59:16.681: I/DEBUG(12079):     beca6528  00978868  [heap]
    83. 03-11 11:59:16.681: I/DEBUG(12079):     beca652c  4013f558  
    84. 03-11 11:59:16.681: I/DEBUG(12079):     beca6530  00979220  [heap]
    85. 03-11 11:59:16.681: I/DEBUG(12079):     beca6534  00979238  [heap]
    86. 03-11 11:59:16.681: I/DEBUG(12079):     beca6538  fdf00021  
    87. 03-11 11:59:16.681: I/DEBUG(12079):     beca653c  4013f538  
    88. 03-11 11:59:16.681: I/DEBUG(12079):     beca6540  00a6e920  [heap]
    89. 03-11 11:59:16.681: I/DEBUG(12079):     beca6544  4010acb5  /system/lib/libc.so
    90. 03-11 11:59:16.681: I/DEBUG(12079):     beca6548  e3a070ad  
    91. 03-11 11:59:16.681: I/DEBUG(12079):     beca654c  ef9000ad  
    92. 03-11 11:59:16.681: I/DEBUG(12079): #00 beca6550  00000008  
    93. 03-11 11:59:16.681: I/DEBUG(12079):     beca6554  00000000  
    94. 03-11 11:59:16.681: I/DEBUG(12079): #01 beca6558  0000000c  
    95. 03-11 11:59:16.681: I/DEBUG(12079):     beca655c  4098bb07  /system/lib/libdvm.so
    96. 03-11 11:59:16.681: I/DEBUG(12079):     beca6560  418e4150  /dev/ashmem/dalvik-heap (deleted)
    97. 03-11 11:59:16.681: I/DEBUG(12079):     beca6564  000007ff  
    98. 03-11 11:59:16.681: I/DEBUG(12079):     beca6568  00000015  
    99. 03-11 11:59:16.681: I/DEBUG(12079):     beca656c  41b34de8  /dev/ashmem/dalvik-heap (deleted)
    100. 03-11 11:59:16.681: I/DEBUG(12079):     beca6570  00000071  
    101. 03-11 11:59:16.681: I/DEBUG(12079):     beca6574  fdf00021  
    102. 03-11 11:59:16.681: I/DEBUG(12079):     beca6578  00000000  
    103. 03-11 11:59:16.681: I/DEBUG(12079):     beca657c  00979220  [heap]
    104. 03-11 11:59:16.681: I/DEBUG(12079):     beca6580  beca65ac  [stack]
    105. 03-11 11:59:16.681: I/DEBUG(12079):     beca6584  00000000  
    106. 03-11 11:59:16.681: I/DEBUG(12079):     beca6588  00000000  
    107. 03-11 11:59:16.681: I/DEBUG(12079):     beca658c  40986281  /system/lib/libdvm.so
    108. 03-11 11:59:16.681: I/DEBUG(12079):     beca6590  beca65ac  [stack]
    109. 03-11 11:59:16.681: I/DEBUG(12079):     beca6594  0000f3b0  [heap]
    110. 03-11 11:59:16.681: I/DEBUG(12079):     beca6598  00000000  
    111. 03-11 11:59:16.681: I/DEBUG(12079):     beca659c  00000000  
    112. 03-11 11:59:16.681: I/DEBUG(12079):     beca65a0  0000f3b0  [heap]
    113. 03-11 11:59:16.681: I/DEBUG(12079):     beca65a4  a6b0001d  
    114. 03-11 11:59:16.681: I/DEBUG(12079):     beca65a8  00000000  
    115. 03-11 11:59:16.686: I/DEBUG(12079):     beca65ac  00979220  [heap]
    116. 03-11 11:59:16.686: I/DEBUG(12079):     beca65b0  fdf00021  
    117. 03-11 11:59:16.686: I/DEBUG(12079):     beca65b4  00000000  
    118. 03-11 11:59:16.686: I/DEBUG(12079):     beca65b8  00a6e920  [heap]
    119. 03-11 11:59:16.686: I/DEBUG(12079):     beca65bc  5c2e8a9c  
     

    Attached Files:

    Last edited: Mar 11, 2013
  50. prime31

    prime31

    Joined:
    Oct 9, 2008
    Posts:
    6,426
    @EF, can you repro with the demo scene? I am seeing the dialogFailedEvent when pressing the "x", cancel button or back button with no crash. Is it possible you have something behind the "x" that is getting the touch event?

    The part of that log that looks odd is "Removed UnityPlayerNativeActivity". That could be Android OS killing the Activity due to low memory.