I have Donut customers who get this crash, so it can still happen
there. T-Mobile G1 and T-Mobile myTouch 3G particularly. Also MB501
users, but that's Cupcake. Very frustrating because the stack traces
don't mention any of my own code, so I can't figure out what is
causing it or how to avoid it.

On Donut the stack traces I get look like this:
java.lang.IllegalArgumentException: parameter must be a descendant of
this view
        at
android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:
2513)
        at
android.view.ViewGroup.offsetDescendantRectToMyCoords(ViewGroup.java:
2450)
        at android.view.ViewRoot.scrollToRectOrFocus(ViewRoot.java:1432)
        at android.view.ViewRoot.draw(ViewRoot.java:1174)
        at android.view.ViewRoot.performTraversals(ViewRoot.java:1097)
        at android.view.ViewRoot.handleMessage(ViewRoot.java:1613)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:123)
        at android.app.ActivityThread.main(ActivityThread.java:4203)
        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:791)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
        at dalvik.system.NativeStart.main(Native Method)

On Cupcake they look like this:
java.lang.IllegalArgumentException: parameter must be a descendant of
this view
        at
android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:
2625)
        at
android.view.ViewGroup.offsetDescendantRectToMyCoords(ViewGroup.java:
2562)
        at android.view.ViewRoot.scrollToRectOrFocus(ViewRoot.java:1342)
        at android.view.ViewRoot.draw(ViewRoot.java:1131)
        at android.view.ViewRoot.performTraversals(ViewRoot.java:1054)
        at android.view.ViewRoot.handleMessage(ViewRoot.java:1523)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:123)
        at android.app.ActivityThread.main(ActivityThread.java:3999)
        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:782)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
        at dalvik.system.NativeStart.main(Native Method)

In case that helps anyone. I'm not calling the method directly myself.

On Jul 20, 1:18 am, mongd <[email protected]> wrote:
> Hi All, while I'm testing my app with Monkey test tool, I ran into the
> following exception:
> "IllegalArgumentException: parameter must be a descendant of this
> view"
>
> I don't really understand why this exception happens, so I did some
> research about this and found the following 
> post:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> According to the above post, the issue once was resolved in Donut
> release, but some ppl say it still happens.
> Is there anyone who knows anything about this issue?
> As far as I understood, this issue shouldn't occur unless you
> intendedly call the method ViewGroup.offsetDescendantRectToMyCoords to
> get an exception.
>
> BTW, my app is using Tab, which means it has a lot of views in it.
> (including view changes too.)
> I don't really call setContentView repeatedly in my app though.
> Someone in the above post said that calling setContentView several
> times can cause this issue, so I just wanted to make sure that my app
> is not the case. =D
>
> If there's anyone who knows how to resolve this issue, please let me
> know.
> Great thanks in advance!!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to