I've narrowed down a bit the place where the failure happens. It's within frameworks/av/media/libstagefright/AwesomePlayer.cpp:
struct AwesomeNativeWindowRenderer : public AwesomeRenderer { AwesomeNativeWindowRenderer( const sp<ANativeWindow> &nativeWindow, int32_t rotationDegrees) : mNativeWindow(nativeWindow) { applyRotation(rotationDegrees); } virtual void render(MediaBuffer *buffer) { int64_t timeUs; CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); native_window_set_buffers_timestamp(mNativeWindow.get(), timeUs * 1000); status_t err = mNativeWindow->queueBuffer( mNativeWindow.get(), buffer->graphicBuffer().get()); queueBuffer() is crashing here, but I'm in trouble in understanding where to add more debug statements, to narrow the crash even further. Any suggestion? BTW - is there a debugger available for Android, which can communicate over ADB? thanks Fabio On Friday, 8 March 2013 16:56:35 UTC+1, ffxx68 wrote: > > Seeking video integration expert's help. > > Porting OMX HW codecs to JB for our platform: > > > https://groups.google.com/forum/#!topic/renesas-emev-osp/NpJj163nEQ8[1-25-false] > > I get the error below, on video playback. When a video it's started from > from the "Gallery" app, screen gets black and a message tells "Can't play > this video". These are some relevant parts from logcat: > > http://pastebin.com/wWkA1YiG > > The issue is a crash in getSlotFromBufferLocked, which I really can't > understand the origin: > > I/DEBUG ( 73): backtrace: > I/DEBUG ( 73): #00 pc 00020bc4 /system/lib/libgui.so > (android::SurfaceTextureClient::getSlotFromBufferLocked(ANativeWindowBuffer*) > const+35) > I/DEBUG ( 73): #01 pc 00020c3b /system/lib/libgui.so > (android::SurfaceTextureClient::queueBuffer(ANativeWindowBuffer*)+82) > I/DEBUG ( 73): #02 pc 0002053d /system/lib/libgui.so > (android::SurfaceTextureClient::hook_queueBuffer(ANativeWindow*, > ANativeWindowBuffer*)+10) > I/DEBUG ( 73): #03 pc 000518d3 /system/lib/libstagefright.so > I/DEBUG ( 73): #04 pc 000529d5 /system/lib/libstagefright.so > (android::AwesomePlayer::onVideoEvent()+1252) > I/DEBUG ( 73): #05 pc 0005040b /system/lib/libstagefright.so > I/DEBUG ( 73): #06 pc 00079863 /system/lib/libstagefright.so > (android::TimedEventQueue::threadEntry()+354) > I/DEBUG ( 73): #07 pc 000798a9 /system/lib/libstagefright.so > (android::TimedEventQueue::ThreadWrapper(void*)+16) > I/DEBUG ( 73): #08 pc 00012bb0 /system/lib/libc.so > (__thread_entry+48) > I/DEBUG ( 73): #09 pc 00012308 /system/lib/libc.so > (pthread_create+172) > > What could it be? > What should i put under debug? > > Note how the same HW libs have been succesfully used for ICS integration. > > Thanks in advance > Fabio > -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.