On Feb 2, 12:58 pm, RCP2278 <[email protected]> wrote:
> Ravi,
>
> I rebuilt openCore with ENABLE_PV_LOGGING=1 (using your suggestions,
> running the make command from the top level android directory) and re-
> did my steps again (although, not necessary since the pvlogger.txt is
> already in the /sdcard...I just basically restarted my eclipse and
> emulator).
>
> Unfortunately, I'm not seeing any logs that would look like it comes
> from the openCore engine...unless I'm not looking at the right place.
> What should the "tag" be in the logcat display to know that the log
> came from the openCore engine?  Or what should I expect if I have the
> logging on and I run the APIDemos sample code for playing back media
> in the emulator?
>
> In the Eclipse Debug Perspective, here is what I see in the logcat
> verbose output (I'm playing a local media file)
>
> 02-02 18:48:23.172: INFO/ActivityManager(54): Starting activity:
> Intent { comp={com.example.android.apis/
> com.example.android.apis.media.MediaPlayerDemo} }
> 02-02 18:48:24.052: INFO/ActivityManager(54): Displayed activity
> com.example.android.apis/.media.MediaPlayerDemo: 872 ms
> 02-02 18:48:30.232: INFO/ActivityManager(54): Starting activity:
> Intent { comp={com.example.android.apis/
> com.example.android.apis.media.MediaPlayerDemo_Video} (has extras) }
> 02-02 18:48:31.121: DEBUG/MediaPlayerDemo(201): surfaceCreated called
> 02-02 18:48:31.742: DEBUG/MediaPlayerDemo(201): surfaceChanged called
> 02-02 18:48:32.022: DEBUG/MediaPlayerDemo(201): onPrepared called
> 02-02 18:48:32.101: INFO/ActivityManager(54): Displayed activity
> com.example.android.apis/.media.MediaPlayerDemo_Video: 1870 ms
> 02-02 18:48:35.822: WARN/AudioFlinger(24): write blocked for 139 msecs
> 02-02 18:48:35.882: WARN/AudioFlinger(24): write blocked for 53 msecs
> 02-02 18:48:35.982: WARN/AudioFlinger(24): write blocked for 93 msecs
> 02-02 18:49:40.192: DEBUG/MediaPlayerDemo(201): onCompletion called
>
> ...on streaming, here is the log (I see a tag "VERBOSE/
> ProtocolEngine".  Could this be an openCore trace log?  Does that mean
> logging is working now?)
>
This VERBOSE/ProtocolEngine statement *was* a logcat statement in
OpenCORE 1.0. This statement has been removed in OpenCORE 2.0. This
shows that you are still exercising an older code. Please check. Hint:
When launching the emulator, try "-wipe-data".

> 02-02 18:52:55.652: INFO/ActivityManager(54): Starting activity:
> Intent { comp={com.example.android.apis/
> com.example.android.apis.media.MediaPlayerDemo_Video} (has extras) }
> 02-02 18:52:56.322: DEBUG/MediaPlayerDemo(201): surfaceCreated called
> 02-02 18:52:57.132: VERBOSE/ProtocolEngine(24): DownloadRate 104166
> bytes per sec. Downloaded Bytes 5643/34714
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201): error: Prepare
> failed.: status=0xFFFFFFFF
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201): java.io.IOException:
> Prepare failed.: status=0xFFFFFFFF
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.media.MediaPlayer.prepare(Native Method)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> com.example.android.apis.media.MediaPlayerDemo_Video.playVideo
> (MediaPlayerDemo_Video.java:112)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> com.example.android.apis.media.MediaPlayerDemo_Video.surfaceCreated
> (MediaPlayerDemo_Video.java:157)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.SurfaceView.updateWindow(SurfaceView.java:347)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.SurfaceView.dispatchDraw(SurfaceView.java:255)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1434)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1434)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.View.draw(View.java:5355)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.widget.FrameLayout.draw(FrameLayout.java:324)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1436)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1434)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.View.draw(View.java:5355)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.widget.FrameLayout.draw(FrameLayout.java:324)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> com.android.internal.policy.impl.PhoneWindow$DecorView.draw
> (PhoneWindow.java:1701)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.ViewRoot.draw(ViewRoot.java:980)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.ViewRoot.performTraversals(ViewRoot.java:829)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.view.ViewRoot.handleMessage(ViewRoot.java:1103)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.os.Handler.dispatchMessage(Handler.java:88)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.os.Looper.loop(Looper.java:123)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> android.app.ActivityThread.main(ActivityThread.java:3742)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> java.lang.reflect.Method.invoke(Method.java:515)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
> (ZygoteInit.java:739)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
> 02-02 18:52:57.402: ERROR/MediaPlayerDemo(201):     at
> dalvik.system.NativeStart.main(Native Method)
> 02-02 18:52:57.642: DEBUG/dalvikvm(201): GC freed 11544 objects /
> 718264 bytes in 123ms
> 02-02 18:52:57.832: DEBUG/MediaPlayerDemo(201): surfaceChanged called
> 02-02 18:52:57.962: INFO/ActivityManager(54): Displayed activity
> com.example.android.apis/.media.MediaPlayerDemo_Video: 2302 ms
>
> Thanks.
>
> R
>
> On Jan 30, 7:22 pm, rktb <[email protected]> wrote:
>
> > You need to build the OpenCORE code with the macro ENABLE_PV_LOGGING.
>
> > Try this ..
> > rm -rf out/target/product/generic/obj/include/libpv
> > make -j ENABLE_PV_LOGGING=1
>
> > And, then follow your steps 1 to 5.
>
> > -Ravi
>
> > On Jan 31, 7:12 am, RCP2278 <[email protected]> wrote:
>
> > > Hi,
>
> > > I'm trying to capture some log traces from openCore by running/playing
> > > the media player from the emulator.  I'm running OpenCore 2.0 and I
> > > followed the steps as instructed inside external/opencore/android/
> > > android_logger_config.h.  Below is what I did:
>
> > > 1) Create a file named pvlogger.txt which contains the following line:
> > > 8,PVPlayerEngine
>
> > > 2) Launch emulator through Eclipse (APIDemos project > Debug As),
> > > making sure that when the emulator is launched that I mounted the
> > > sdcard directory
>
> > > 2a) Open the Debug perspective so I can see the output through LogCat
>
> > > 3) adb push pvlogger.txt /sdcard
>
> > > 4) adb shell and cd to /sdcard just to make sure the pvlogger.txt is
> > > there
>
> > > 5) Launch the media player (play local file or play streaming video)
>
> > > NOTE: I've never been successful in playing the streaming video on the
> > > emulator, which is one of my motivations to run a trace and see what
> > > is going on in the framework.  I've googled around and it seems like
> > > everyone is having the same problem and could be an emulator
> > > problem....
>
> > > After Step (5) I don't see any traces that would appear to come from
> > > openCore.
>
> > > Do I need to attach to a separate process to see the logs generated
> > > from openCore?  If so, can I do that through Eclipse/DDMS (when I
> > > played the local playback, only 4 threads were running (1 main thread
> > > and 3 binder threads)  I highlighted each one and it doesn't appear
> > > that any openCore logs are showing.  Obviously I'm doing something
> > > wrong here.  I'm also new at Eclipse so can you please advice how and
> > > which process to attach to?
>
> > > Thanks.
>
> > > R- Hide quoted text -
>
> > - Show quoted text -
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to