[Nook Color Android Development] bytte:
I installed and booted from a wiped SDcard from 6 Jan nightly but the problem persists. I don't know enough about Android to diagnose. What I have determined is:

ANR gives the following hung thread stack trace:

----- pid 2569 at 2013-01-10 18:20:43 -----

Cmd line: air.uk.co.bbc.android.mediaplayer

DALVIK THREADS:

(mutexes: tll=0 tsl=0 tscl=0 ghl=0)

"main" prio=5 tid=1 NATIVE

| group="main" sCount=1 dsCount=0 obj=0x41101568 self=0x410f1a28

| sysTid=2569 nice=0 sched=0/0 cgrp=apps handle=1074999088

| schedstat=( 0 0 0 ) utm=853 stm=913 core=0

#00 pc 0000cb94 /system/lib/libc.so (__ioctl+12)

#01 pc 00027d11 /system/lib/libc.so (ioctl+16)

#02 pc 00016c05 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+132)

#03 pc 00017109 /system/lib/libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*)+44)

#04 pc 00017323 /system/lib/libbinder.so (android::IPCThreadState::transact(int, unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+114)

#05 pc 00014aa3 /system/lib/libbinder.so (android::BpBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+34)

#06 pc 00047f99 /system/lib/libmedia.so

#07 pc 000706cd /system/lib/libstagefright.so (android::QueryCodec(android::sp<android::IOMX> const&, char const*, char const*, bool, android::CodecCapabilities*)+280)

#08 pc 000707f9 /system/lib/libstagefright.so (android::QueryCodecs(android::sp<android::IOMX> const&, char const*, bool, bool, android::Vector<android::CodecCapabilities>*)+144)

Adding logging to QueryCodecs gives:

D/OMXCodec( 2569): QueryCodec OMX.TI.Video.Decoder

D/TIOMX_CORE( 1266): Found component OMX.TI.Video.Decoder with refCount 0 pHandle (0x4123cb00)

D/OMX_VideoDecoder( 1266): OMX_ComponentInit():323 TI Video Decoder

D/TIOMX_CORE( 1266): Found matching pHandle(0x4123cb00) at index 2 with refCount 1

D/OMXCodec( 2569): QueryCodec OMX.TI.Video.Decoder status 0x0

D/OMXCodec( 2569): QueryCodec OMX.TI.Video.Decoder

D/TIOMX_CORE( 1266): Found component OMX.TI.Video.Decoder with refCount 0 pHandle (0x40bb9160)

D/OMX_VideoDecoder( 1266): OMX_ComponentInit():323 TI Video Decoder

D/TIOMX_CORE( 1266): Found matching pHandle(0x40bb9160) at index 2 with refCount 1

D/OMXCodec( 2569): QueryCodec OMX.TI.Video.Decoder status 0x0

D/OMXCodec( 2569): QueryCodec OMX.TI.720P.Decoder

D/TIOMX_CORE( 1266): Found component OMX.TI.720P.Decoder with refCount 0 pHandle (0x40f64d20)

D/720p_OMX_VideoDecoder( 1266): 326 ::: In OMX_ComponentInit ***

D/720p_OMX_VideoDecoder( 1266): 720p VIDDEC OMX Component Version : DEC_3630_06_11_2012

The call to QueryCodec did not return, libOMX.TI.720P.Decoder.so seems to be implicated, which is what I suspected (remove it and it doesn't hang - but no video).

The threads for process 1266 are:

media 1266 1 32596 6084 ffffffff 40112b94 D /system/bin/mediaserver

media 1426 1266 32596 6084 c009f98c 40113c9c S AudioCommand

media 1427 1266 32596 6084 c009f98c 40113c9c S ApmCommand

media 1460 1266 32596 6084 c0410f9c 40112b94 S AudioOut_2

media 1462 1266 32596 6084 c03e1c58 40112b94 S Binder_1

media 2629 1266 32596 6084 c03e1c58 40112b94 S Binder_2

media 2632 1266 32596 6084 c03e1c58 40112b94 S Binder_3

media 3372 1266 32596 6084 c011fba8 40112cb8 S Binder_2

media 3373 1266 32596 6084 c009f98c 40113c9c S OMXCallbackDisp

maps shows:

40106000-40149000 r-xp 00000000 b3:32 68643 /system/lib/libc.so

4131b000-41392000 r-xp 00000000 b3:32 68594 /system/lib/libOMX.TI.720P.Decoder.so

41392000-41395000 rw-p 00077000 b3:32 68594 /system/lib/libOMX.TI.720P.Decoder.so

So all of the thread PCs are in libc which is from the nightly so I don't have symbols (but I could build it).

Any suggestions on how best to proceed.

Thanks

Nigel

---------- Post added at 11:50 PM ---------- Previous post was at 11:35 PM ----------

on Ubuntu 11.04

root@nigel-ThinkPad-Edge-E420s:/tmp# dpkg --search /usr/bin/xmllint

libxml2-utils: /usr/bin/xmllint

so try apt-get install libxml2-utils