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

JNI Error on Scene Transition #831

Closed
roybrener opened this issue Jan 4, 2015 · 5 comments
Closed

JNI Error on Scene Transition #831

roybrener opened this issue Jan 4, 2015 · 5 comments

Comments

@roybrener
Copy link

I have 2 activities: ActivityA, ActivityB with associated frgments: FragmentA, FragmentB respectively. ImageView v is shared between those two fragments.

some Code: ActivityA

Intent intent = new Intent(this, ActivityB.class);
final ActivityOptionsCompat activityOptionsCompat = ActivityOptionsCompat.
                         makeSceneTransitionAnimation(this, imageView, "photo");   

ActivityCompat.startActivity(this, intent, activityOptionsCompat.toBundle());

ActivityB

FragmentB fragment = new FragmentB();
getFragmentManager()
            .beginTransaction()
            .replace(R.id.fragment_container, fragment,
                     TAG
            )
            .addToBackStack(TAG)
            .commit();

FragmentB

mView = (ImageView) view.findViewById(R.id.view);
ViewCompat.setTransitionName(mView, "photo);

4 out of 5 times it's working. but when it's not working i'm getting the Very informative error:

JNI DETECTED ERROR IN APPLICATION: JNI CallVoidMethodV called with pending exception 'java.lang.IllegalStateException' thrown in void android.os.MessageQueue.nativePollOnce(long, int):-2

With a very long and even less informative stack trace that i will attach on demand. but interesting part is with Picasso:

"Picasso-refQueue" prio=5 tid=27 Waiting
"Picasso-/rest/photos/53e489d8a1e6b3dc2c6212bb" prio=5 tid=29 Native
native: #02 pc 002706b9  /data/dalvik-cache/arm/system@[email protected] (Java_libcore_io_Posix_recvfromBytes__Ljava_io_FileDescriptor_2Ljava_lang_Object_2IIILjava_net_InetSocketAddress_2+176)
at okio.Okio$2.read(Okio.java:136)
at com.squareup.okhttp.internal.http.HttpConnection$ChunkedSource.read(HttpConnection.java:454)

Call to Picasso

Picasso.with(context).load(url).centerCrop().resize(width, height).noFade().into(mView);

Few things that can cause this:

  1. in FragmentB mView position is calculated dynamically using ViewTreeObserver.OnGlobalLayoutListener
  2. mView extends ImageView in order to create Oval effect in both of the Fragments.

one last thing: the Theme of both of the activities is a child of

<style name="Theme" parent="Theme.AppCompat.Light"
    <item name="android:windowContentTransitions">true</item>
    <item name="android:windowAllowEnterTransitionOverlap">true</item>
    <item name="android:windowAllowReturnTransitionOverlap">true</item>
    <item name="android:windowSharedElementEnterTransition">@android:transition/move</item>
    <item name="android:windowSharedElementExitTransition">@android:transition/move</item>
</style>

stacktrace:

    1-04 22:02:20.227  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284] "Picasso-refQueue" prio=5 tid=27 Waiting
01-04 22:02:20.227  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | group="" sCount=0 dsCount=0 obj=0x13062d60 self=0xac395c00
01-04 22:02:20.227  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | sysTid=19969 nice=10 cgrp=apps/bg_non_interactive sched=0/0 handle=0xaf25cf80
01-04 22:02:20.227  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | stack=0x9f286000-0x9f288000 stackSize=1036KB
01-04 22:02:20.227  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #00 pc 00012e98  /system/lib/libc.so (syscall+28)
01-04 22:02:20.227  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #01 pc 000aa023  /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+98)
01-04 22:02:20.227  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #02 pc 001f5759  /system/lib/libart.so (art::Monitor::Wait(art::Thread*, long long, int, bool, art::ThreadState)+1036)
01-04 22:02:20.227  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #04 pc 002042d9  /system/lib/libart.so (art::Object_waitJI(_JNIEnv*, _jobject*, long long, int)+44)
01-04 22:02:20.227  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #05 pc 000005f7  /data/dalvik-cache/arm/system@[email protected] (Java_java_lang_Object_wait__JI+102)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   - waiting on <0x3e1b1f26> (a java.lang.ref.ReferenceQueue)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.lang.Object.wait(Object.java:422)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   - locked <0x3e1b1f26> (a java.lang.ref.ReferenceQueue)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:72)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284] "Picasso-Idle" prio=5 tid=28 Waiting
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | group="" sCount=0 dsCount=0 obj=0x13091260 self=0xaf824400
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | sysTid=19970 nice=10 cgrp=apps/bg_non_interactive sched=0/0 handle=0xaf835080
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | state=S schedstat=( 249113656 193804523 322 ) utm=17 stm=7 core=0 HZ=100
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #00 pc 00012e98  /system/lib/libc.so (syscall+28)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #01 pc 000aa023  /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+98)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #03 pc 001f6e1d  /system/lib/libart.so (art::Monitor::Wait(art::Thread*, art::mirror::Object*, long long, int, bool, art::ThreadState)+136)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #04 pc 002042d9  /system/lib/libart.so (art::Object_waitJI(_JNIEnv*, _jobject*, long long, int)+44)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.lang.Object.wait!(Native method)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   - waiting on <0x326e0767> (a java.lang.Object)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   - locked <0x326e0767> (a java.lang.Object)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at sun.misc.Unsafe.park(Unsafe.java:299)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2016)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:510)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.lang.Thread.run(Thread.java:818)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284] "Picasso-/rest/photos/53e489d8a1e6b3dc2c6212bb" prio=5 tid=29 Native
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | sysTid=19971 nice=10 cgrp=apps/bg_non_interactive sched=0/0 handle=0xaf835300
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | state=S schedstat=( 184785474 236904315 555 ) utm=10 stm=8 core=0 HZ=100
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | held mutexes=
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #00 pc 0003a854  /system/lib/libc.so (recvfrom+20)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #02 pc 002706b9  /data/dalvik-cache/arm/system@[email protected] (Java_libcore_io_Posix_recvfromBytes__Ljava_io_FileDescriptor_2Ljava_lang_Object_2IIILjava_net_InetSocketAddress_2+176)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at libcore.io.IoBridge.recvfrom(IoBridge.java:553)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:37)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:237)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at okio.RealBufferedSource.read(RealBufferedSource.java:50)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at okio.RealBufferedSource.read(RealBufferedSource.java:50)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.okhttp.internal.http.HttpEngine$2.read(HttpEngine.java:829)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:175)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.io.BufferedInputStream.skip(BufferedInputStream.java:378)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.MarkableInputStream.skip(MarkableInputStream.java:146)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at android.graphics.BitmapFactory.nativeDecodeStream(Native method)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:635)
01-04 22:02:20.228  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:611)
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.NetworkRequestHandler.decodeStream(NetworkRequestHandler.java:115)
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:75)
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:153)
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:111)
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.lang.Thread.run(Thread.java:818)
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:408)
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284] "Okio Watchdog" prio=5 tid=30 TimedWaiting
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | group="" sCount=0 dsCount=0 obj=0x130b9800 self=0xa3147800
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | sysTid=19972 nice=10 cgrp=apps/bg_non_interactive sched=0/0 handle=0xa3196080
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | state=S schedstat=( 6495356 206135629 216 ) utm=0 stm=0 core=3 HZ=100
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | stack=0x9ef7a000-0x9ef7c000 stackSize=1036KB
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | held mutexes=
01-04 22:02:20.229  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.lang.Thread.run(Thread.java:818)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284] "Picasso-/rest/photos/53e489d8a1e6b3dc2c621331" prio=5 tid=32 Native
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | group="" sCount=0 dsCount=0 obj=0x12c0a0e0 self=0xaf824c00
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | sysTid=19974 nice=10 cgrp=apps/bg_non_interactive sched=0/0 handle=0xaf835580
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | state=S schedstat=( 280815053 226067235 576 ) utm=22 stm=6 core=2 HZ=100
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | stack=0x9e08e000-0x9e090000 stackSize=1036KB
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | held mutexes=
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #00 pc 0003a854  /system/lib/libc.so (recvfrom+20)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #01 pc 00020d19  /system/lib/libjavacore.so (???)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #02 pc 002706b9  /data/dalvik-cache/arm/system@[email protected] (Java_libcore_io_Posix_recvfromBytes__Ljava_io_FileDescriptor_2Ljava_lang_Object_2IIILjava_net_InetSocketAddress_2+176)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at libcore.io.Posix.recvfromBytes(Native method)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at libcore.io.Posix.recvfrom(Posix.java:161)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at libcore.io.IoBridge.recvfrom(IoBridge.java:553)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.net.PlainSocketImpl.read(PlainSocketImpl.java:485)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:37)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:237)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at okio.Okio$2.read(Okio.java:136)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at okio.RealBufferedSource.read(RealBufferedSource.java:50)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.okhttp.internal.http.HttpConnection$ChunkedSource.read(HttpConnection.java:454)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at okio.RealBufferedSource.read(RealBufferedSource.java:50)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.okhttp.internal.http.HttpEngine$2.read(HttpEngine.java:829)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at okio.RealBufferedSource$1.read(RealBufferedSource.java:298)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.io.InputStream.read(InputStream.java:162)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:149)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.io.BufferedInputStream.read(BufferedInputStream.java:295)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   - locked <0x33c9b303> (a java.io.BufferedInputStream)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.MarkableInputStream.read(MarkableInputStream.java:138)
01-04 22:02:20.230  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at android.graphics.BitmapFactory.nativeDecodeStream(Native method)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:635)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:611)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.NetworkRequestHandler.decodeStream(NetworkRequestHandler.java:120)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:75)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:153)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:111)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.lang.Thread.run(Thread.java:818)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:408)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284] "Picasso-/rest/photos/53e489d8a1e6b3dc2c6212db" prio=5 tid=33 Native
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | group="" sCount=0 dsCount=0 obj=0x12c0a140 self=0xaf825000
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | sysTid=19975 nice=10 cgrp=apps/bg_non_interactive sched=0/0 handle=0xaf835800
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | state=S schedstat=( 178702094 198749215 427 ) utm=9 stm=8 core=1 HZ=100
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | stack=0x9ddfe000-0x9de00000 stackSize=1036KB
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | held mutexes=
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #00 pc 0003a854  /system/lib/libc.so (recvfrom+20)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #01 pc 00020d19  /system/lib/libjavacore.so (???)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #02 pc 002706b9  /data/dalvik-cache/arm/system@[email protected] (Java_libcore_io_Posix_recvfromBytes__Ljava_io_FileDescriptor_2Ljava_lang_Object_2IIILjava_net_InetSocketAddress_2+176)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at libcore.io.Posix.recvfromBytes(Native method)
01-04 22:02:20.231  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at libcore.io.Posix.recvfrom(Posix.java:161)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at libcore.io.IoBridge.recvfrom(IoBridge.java:553)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.net.PlainSocketImpl.read(PlainSocketImpl.java:485)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:37)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:237)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at okio.Okio$2.read(Okio.java:136)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at okio.RealBufferedSource.read(RealBufferedSource.java:50)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.okhttp.internal.http.HttpConnection$ChunkedSource.read(HttpConnection.java:454)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at okio.RealBufferedSource.read(RealBufferedSource.java:50)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.okhttp.internal.http.HttpEngine$2.read(HttpEngine.java:829)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at okio.RealBufferedSource$1.read(RealBufferedSource.java:298)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:175)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.io.BufferedInputStream.read(BufferedInputStream.java:295)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   - locked <0x38be5280> (a java.io.BufferedInputStream)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.MarkableInputStream.read(MarkableInputStream.java:138)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at android.graphics.BitmapFactory.nativeDecodeStream(Native method)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:635)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:611)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.NetworkRequestHandler.decodeStream(NetworkRequestHandler.java:120)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.NetworkRequestHandler.load(NetworkRequestHandler.java:75)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:153)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:111)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
01-04 22:02:20.232  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at java.lang.Thread.run(Thread.java:818)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:408)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284] "hwuiTask2" prio=5 tid=34 Native
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | group="" sCount=0 dsCount=0 obj=0x12c243e0 self=0x9af01400
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | sysTid=20110 nice=-2 cgrp=apps sched=0/0 handle=0xb3cbe300
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | state=S schedstat=( 2787289 10392087 36 ) utm=0 stm=0 core=0 HZ=100
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | stack=0x9bde6000-0x9bde8000 stackSize=1012KB
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | held mutexes=
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #00 pc 00012e98  /system/lib/libc.so (syscall+28)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #01 pc 000161b5  /system/lib/libc.so (__pthread_cond_timedwait_relative(pthread_cond_t*, pthread_mutex_t*, timespec const*)+56)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #02 pc 00014d6d  /system/lib/libhwui.so (???)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #03 pc 000104d5  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #04 pc 0005df4d  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+72)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #05 pc 00010045  /system/lib/libutils.so (???)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #06 pc 000162e3  /system/lib/libc.so (__pthread_start(void*)+30)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #07 pc 000142d3  /system/lib/libc.so (__start_thread+6)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   (no managed stack frames)
01-04 22:02:20.233  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284] "Binder_3" prio=5 tid=21 Native
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | group="" sCount=0 dsCount=0 obj=0x12f0e9a0 self=0xb3f1e400
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | sysTid=20348 nice=0 cgrp=apps sched=0/0 handle=0xa4226800
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | state=S schedstat=( 4763335 13885618 70 ) utm=0 stm=0 core=1 HZ=100
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | stack=0xa1576000-0xa1578000 stackSize=1012KB
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   | held mutexes=
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #00 pc 0003ac04  /system/lib/libc.so (__ioctl+8)
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #01 pc 00051775  /system/lib/libc.so (ioctl+14)
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #02 pc 0001f39b  /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+138)
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #03 pc 0001f88b  /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6)
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #04 pc 0001f8ed  /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48)
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #05 pc 00023a5b  /system/lib/libbinder.so (???)
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #06 pc 000104d5  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #07 pc 0005df4d  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+72)
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #08 pc 00010045  /system/lib/libutils.so (???)
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #09 pc 000162e3  /system/lib/libc.so (__pthread_start(void*)+30)
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   native: #10 pc 000142d3  /system/lib/libc.so (__start_thread+6)
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]   (no managed stack frames)
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]
01-04 22:02:20.234  19920-19920/"" A/art﹕ art/runtime/runtime.cc:284]
01-04 22:02:20.235  19920-19920/"" A/libc﹕ Fatal signal 6 (SIGABRT), code -6 in tid 19920 ("")
@JakeWharton
Copy link
Collaborator

This is also posted on StackOverflow: http://stackoverflow.com/q/27769408/132047

@roybrener
Copy link
Author

That is true, after posting in stackoverflow i went over the entire stacktrace to find something interesting things, and found That the error involves picasso. should i delete the question from there or from here?

@JakeWharton
Copy link
Collaborator

It's fine that it is in both places. I'm just trying to avoid a split-brain problem.

@iverc
Copy link

iverc commented Jul 12, 2015

I had similar issue with sharedElementTransition from Fragment A in Activity A to Activity B, some of transitions (like 25%) were failing with similar error.

I think the problem is in excessive overdraw (you have a pretty long fragment that is being re-drawed with every transition).

Layer exceeds max. dimensions supported by the GPU (1080x10739, max=4096x4096)

@JakeWharton
Copy link
Collaborator

Seems like this was answered on the SO question and we plan on preventing you from exceeding the max texture size with #754

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

No branches or pull requests

3 participants