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

{java.lang.RuntimeException}error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded #1510

Closed
Chunyulo opened this issue Oct 10, 2016 · 5 comments

Comments

@Chunyulo
Copy link

Chunyulo commented Oct 10, 2016

Recently this issue occurs when use glide, detail info as follows:

Glide Version:glide:3.7.0

Integration libraries:NO

Device/Android Version:SM-G355M 4.4.2 /itel it1701 4.4.2

Issue details / Repro steps / Use case background:

Glide load line / GlideModule (if any) / list Adapter code (if any):

Glide.with...

Layout XML:

<FrameLayout xmlns:android="...

Stack trace / LogCat:

at com.android.org.conscrypt.NativeCrypto.RAND_bytes(Native Method)
at com.android.org.conscrypt.OpenSSLRandom.engineNextBytes(OpenSSLRandom.java:32)
at java.security.SecureRandom.nextBytes(SecureRandom.java:270)
at java.util.UUID.randomUUID(UUID.java:130)
at com.bumptech.glide.load.resource.d.f$d.(GifFrameLoader.java:192)
at com.bumptech.glide.load.resource.d.f.e(GifFrameLoader.java:103)
at com.bumptech.glide.load.resource.d.f.a(GifFrameLoader.java:124)
at com.bumptech.glide.load.resource.d.f$c.handleMessage(GifFrameLoader.java:135)

some ref in

  1. https://www.openssl.org/docs/faq.html#USER1
  2. http://android-developers.blogspot.com/2013/08/some-securerandom-thoughts.html
    but cannot solve it
@TWiStErRob
Copy link
Collaborator

Glide is using the standard Java API. Does this only happen on those devices?
What about ProGuard? Maybe it messed with something.

@Chunyulo
Copy link
Author

Yes,this happened on some Samsung devices of OS version 4.4.2 & 4.4.4, and one itel it phone. ref glide through gradle and ProGuard keeps glide.

@TWiStErRob
Copy link
Collaborator

TWiStErRob commented Oct 12, 2016

I've look into this a little and looks like self-seeding was added in https://android.googlesource.com/platform/external/conscrypt/+/49336618a762eff280621cf7474021e06e8521fa%5E%21/#F0. I'm not sure what version of android is this because there are no tags pre-Lollipop in this repo. Not sure though that this is the problem.

Can you reproduce this issue?

@paour
Copy link
Contributor

paour commented Jan 9, 2017

I'm getting about 10 crashes per week with this issues, on the following devices, all on 4.4.4:

  • GT-I9060M
  • SM-G360H
  • GT-I9060I

@tasneembohra
Copy link

I am also getting this exception on device
GT-I9060I - 4.4.4

Fatal Exception: java.lang.RuntimeException: error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded at com.android.org.conscrypt.NativeCrypto.RAND_bytes(NativeCrypto.java) at com.android.org.conscrypt.OpenSSLRandom.engineNextBytes(OpenSSLRandom.java:32) at java.security.SecureRandom.nextBytes(SecureRandom.java:270) at java.util.UUID.randomUUID(UUID.java:130) at com.bumptech.glide.load.resource.gif.GifFrameLoader$FrameSignature.(GifFrameLoader.java) at com.bumptech.glide.load.resource.gif.GifFrameLoader.loadNextFrame(GifFrameLoader.java:103) at com.bumptech.glide.load.resource.gif.GifFrameLoader.onFrameReady(GifFrameLoader.java:124) at com.bumptech.glide.load.resource.gif.GifFrameLoader$FrameLoaderCallback.handleMessage(GifFrameLoader.java:135) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5584) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084) at dalvik.system.NativeStart.main(NativeStart.java)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants