Skip to content

16.4.2-spmc

This reverts commit eb55eb2e466e689b1a5cf7ccafa5161eb976319e.

Shield is crashing (see logcat) below. Probable race between doing audioManager.getDevices and HDMI being reset due to refresh rate change.

08-13 21:13:31.088  1322  1322 F art     : art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: negative array length: -2080078848
08-13 21:13:31.088  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]     in call to NewPrimitiveArray
08-13 21:13:31.088  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]     from int android.media.AudioSystem.listAudioPorts(java.util.ArrayList, int[])
08-13 21:13:31.088  1322  1322 F art     : art/runtime/java_vm_ext.cc:410] "main" prio=5 tid=1 Runnable
08-13 21:13:31.088  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   | group="main" sCount=0 dsCount=0 obj=0x74bb3fa0 self=0x42c4a500
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   | sysTid=1322 nice=0 cgrp=default sched=0/0 handle=0x40551b5c
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   | state=R schedstat=( 58361090530 15899081778 811787 ) utm=3474 stm=2362 core=1 HZ=100
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   | stack=0xff31a000-0xff31c000 stackSize=8MB
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   | held mutexes= "mutator lock"(shared held)
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   native: #00 pc 00370aa9  /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_9ArtMethodEPv+160)
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   native: #01 pc 003503b7  /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+150)
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   native: #02 pc 0025a6fd  /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+740)
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   native: #03 pc 0025ae53  /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortFEPKcS2_z+74)
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   native: #04 pc 002a0a99  /system/lib/libart.so (_ZN3art3JNI11NewIntArrayEP7_JNIEnvi+456)
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   native: #05 pc 0009be8f  /system/lib/libandroid_runtime.so (???)
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   native: #06 pc 0021f8c5  /system/framework/arm/boot.oat (Java_android_media_AudioSystem_listAudioPorts__Ljava_util_ArrayList_2_3I+112)
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   at android.media.AudioSystem.listAudioPorts(Native method)
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   at android.media.AudioManager.updateAudioPortCache(AudioManager.java:3612)
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   - locked <0x037ede83> (a java.lang.Integer)
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   at android.media.AudioPortEventHandler$1.handleMessage(AudioPortEventHandler.java:87)
08-13 21:13:31.089  1322  1322 F art     : art/runtime/java_vm_ext.cc:410]   at android.os.Handler.dispatchMessage(Handler.java:104)
Assets 2
Loading