Are you accessing the MediaPlayer object from two threads? There isn't
a lot of code on the application side and it seems suspicious that it
would be crashing there. We did try to make it thread-safe, but it's
possible we missed an edge case.

On Dec 6, 3:31 pm, Jason Proctor <[EMAIL PROTECTED]> wrote:
> logged as bug 1464.
>
> i replaced the VideoView with a combination of SurfaceView and
> manually installed MediaPlayer. this combination has worked for me in
> other applications, but in this particular instance, calling
> MediaPlayer.prepare() causes a VM crash --
>
> 12-06 15:30:09.837: INFO/DEBUG(826): *** *** *** *** *** *** *** ***
> *** *** *** *** *** *** *** *** 12-06 15:30:09.837: INFO/DEBUG(826):
> Build fingerprint:
> 'tmobile/kila/dream/trout:1.0/TC4-RC30/116143:user/ota-rel-keys,release-keys'
> 12-06 15:30:09.837: INFO/DEBUG(826): pid: 882, tid: 882  >>>
> com.particlebrand.uooo.android <<< 12-06 15:30:09.837:
> INFO/DEBUG(826): signal 11 (SIGSEGV), fault addr 0000000c 12-06
> 15:30:09.837: INFO/DEBUG(826):  r0 bef9d5dc  r1 00000001  r2 0000a6d8
> r3 00000000 12-06 15:30:09.837: INFO/DEBUG(826):  r4 0000000c  r5
> bef9d5d8  r6 bef9d5a8  r7 bef9d578 12-06 15:30:09.837:
> INFO/DEBUG(826):  r8 bef9d630  r9 4104dd6c  10 4104dd58  fp 00000000
> 12-06 15:30:09.837: INFO/DEBUG(826):  ip a9d45784  sp bef9d568  lr
> a9d25303  pc ab218752  cpsr 80000030 12-06 15:30:09.907:
> INFO/DEBUG(826):          #00  pc ab218752  /system/lib/libmedia.so
> 12-06 15:30:09.907: INFO/DEBUG(826):          #01  pc ab215abe
> /system/lib/libmedia.so 12-06 15:30:09.917: INFO/DEBUG(826):
> #02  pc ab302ea8  /system/lib/libmedia_jni.so 12-06 15:30:09.917:
> INFO/DEBUG(826):          #03  pc ad00d9f4  /system/lib/libdvm.so
> i'm starting to think that having both camera preview and video in
> the same tab activity is just destined for failure. i really hope not.
>
> tx
> j
>
> >The black screen is probably the result of the 2D engine trying to
> >composite from an empty camera preview frame buffer.
>
> >The video push buffer surfaces were a late addition to SurfaceFlinger
> >to facilitate the use of video hardware pipelines. I'm not surprised
> >there are some rough edges because it didn't get any testing outside
> >of the basic use cases.
>
> >I suggest you log a bug. If you have a code snippet that demonstrates
> >the problem, that would be even better.
>
> >On Dec 3, 7:04 pm, Jason Proctor <[EMAIL PROTECTED]> wrote:
> >>  another quite alarming detail is that if i initially remove the video
> >>  view from its tab in my activity's onCreate(), then that results in a
> >>  black screen where the camera preview should be. if i leave the video
> >>  view installed, then the preview works fine.
>
> >>  this is somewhat baffling!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to