that line in 2.2 of ViewGroup.java is

if ((child.mViewFlags & VISIBILITY_MASK) == VISIBLE ||
child.getAnimation() != null)

so it would imply that one of the child views in the ViewGroup is
null.  Are you doing stuff with dynamically adding/deleting any views?
 I'm not sure why it would not know about one getting removed in the
first place... SurfaceView is cranking away in its own thread, too, so
not sure if something happened because of some weird interaction going
on (I was learning first hand about that this past weekend).  I think
you might be getting a warning/error in logcat if you were doing this,
though.

On Tue, May 17, 2011 at 5:50 PM, snpe <snp...@gmail.com> wrote:
> You could attach the source code to your android.jar (see
> http://code.google.com/p/adt-addons/, chapter Android Sources)
> and set a conditional breakpoint to the ViewGroup.dispatchDraw method.
> Review different SDK versions because it could be a bug in some SDK.
>
> Regards,
> Peco
>
> On May 3, 8:55 pm, vatsee <vat...@gmail.com> wrote:
>> Hi gurus,
>>
>> I am working on an app that supports bidirectional audio-video
>> communication. As part of that, the video GUI screen uses
>> MediaRecorder for recording outgoing video & uses two surfaceView
>> subclasses to display preview & incoming video.
>>
>> During the video call, I am seeing a (random) NPE. This trace (listed
>> below) does not show any of my app code.
>> I am not sure how to debug this issue.
>>
>> Has anybody seen anything similar to this? Appreciate if I can get
>> some pointers on how to debug this issue.
>>
>> java.lang.NullPointerException
>>         at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1366)
>>         at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
>>         at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
>>         at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
>>         at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
>>         at android.view.View.draw(View.java:6743)
>>         at android.widget.FrameLayout.draw(FrameLayout.java:352)
>>         at com.android.internal.policy.impl.PhoneWindow
>> $DecorView.draw(PhoneWindow.java:2058)
>>         at android.view.ViewRoot.draw(ViewRoot.java:1432)
>>         at android.view.ViewRoot.performTraversals(ViewRoot.java:1174)
>>         at android.view.ViewRoot.handleMessage(ViewRoot.java:1752)
>>         at android.os.Handler.dispatchMessage(Handler.java:99)
>>         at android.os.Looper.loop(Looper.java:123)
>>         at android.app.ActivityThread.main(ActivityThread.java:4627)
>>         at java.lang.reflect.Method.invokeNative(Native Method)
>>         at java.lang.reflect.Method.invoke(Method.java:521)
>>         at com.android.internal.os.ZygoteInit
>> $MethodAndArgsCaller.run(ZygoteInit.java:858)
>>         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
>>         at dalvik.system.NativeStart.main(Native Method)
>>
>> Many thanks!
>
> --
> 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
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to