Search Unity

OBB Google Downloader crash

Discussion in 'Android' started by josephsaade, Jul 27, 2017.

  1. josephsaade

    josephsaade

    Joined:
    Apr 18, 2016
    Posts:
    46
    Hello, I was testing out this plugin in order to see if we can use it with our game.
    First I noticed the code and the plugin has not been updated since 2-3 years.
    OBB is a huge requirements for modern games (as far as I know) as not all games fit the 50MB google limit.

    I tried to use it in an empty project with assets > 80MB everything works fine and I am tester of the project but the plugin just crashes:

    Code (CSharp):
    1. AndroidRuntime: Caused by: java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c0000af:ASN.1 encoding routines:OPENSSL_internal:TOO_LONG
    2. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at com.unity3d.plugin.downloader.c.j.a(Unknown Source)
    3. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at com.unity3d.plugin.downloader.c.j.<init>(Unknown Source)
    4. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at com.unity3d.plugin.downloader.b.s.run(Unknown Source)
    5. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:751)
    6. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:95)
    7. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:154)
    8. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6692)
    9. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
    10. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
    11. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
    12. 07-27 10:33:37.618 27873 27873 E AndroidRuntime: Caused by: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c0000af:ASN.1 encoding routines:OPENSSL_internal:TOO_LONG
    13. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at com.android.org.conscrypt.OpenSSLKey.getPublicKey(OpenSSLKey.java:295)
    14. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at com.android.org.conscrypt.OpenSSLRSAKeyFactory.engineGeneratePublic(OpenSSLRSAKeyFactory.java:47)
    15. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at java.security.KeyFactory.generatePublic(KeyFactory.java:357)
    16. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        ... 10 more
    17. 07-27 10:33:37.618 27873 27873 E AndroidRuntime: Caused by: java.lang.RuntimeException: error:0c0000af:ASN.1 encoding routines:OPENSSL_internal:TOO_LONG
    18. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at com.android.org.conscrypt.NativeCrypto.d2i_PUBKEY(Native Method)
    19. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        at com.android.org.conscrypt.OpenSSLKey.getPublicKey(OpenSSLKey.java:293)
    20. 07-27 10:33:37.618 27873 27873 E AndroidRuntime:        ... 12 more
    21.  
     
  2. Shinzironine

    Shinzironine

    Joined:
    Nov 30, 2013
    Posts:
    32
    For someone stumbling upon this long forgotten tread in the future. In case of crash, check GooglePlayDownloader, whether you have a correct key set

     
    pahe and Yury-Habets like this.