1

I am using picasso framework for displaying images. I have used facebook and dropbox as social network to download images.

If i hit dropbox and show images and and within displaying images i hit facebook it crashed with single logcat issue fatal signal 11 (sigsegv) at 0x00000000 (code=1), thread 15224 (asynctask #1)

I have read and got to conclusion 1. there is no out of memory. 2. some this is causing to using some space which is unavailable

On seaching for okHTTp it hits services in secured soket in Trasport layer. If the same time some one use trasport layer out side this socket this crashed with fatal signal 11 see link here

My appication uses images and I want to use Piccaso.because UIL through OOMs so much

Any help to solve

What to solve: OKhttp or picasso with facebook or dropboxapi

Thanks.

4

2 回答 2

1

这很可能是由于在这个 okhttp github 问题上探讨的 SSL 上下文问题。

修复非常简单(从问题复制/粘贴):

  OkHttpClient okHttpClient = new OkHttpClient();
  SSLContext sslContext;
  try {
    sslContext = SSLContext.getInstance("TLS");
    sslContext.init(null, null, null);
  } catch (GeneralSecurityException e) {
    throw new AssertionError(); // The system has no TLS. Just give up.
  }
  okHttpClient.setSslSocketFactory(sslContext.getSocketFactory());
于 2014-02-22T17:13:47.453 回答
1

通过以下官方解决方法,我能够解决我的 Facebook 交互崩溃问题:

URL.setURLStreamHandlerFactory(new OkHttpClient());

于 2014-02-23T10:28:02.553 回答