Hello,
I have some weird error happening to me on Honeycomb 3.1 - i have an app
which works smoothly on gingerbread and it crashed on a given view so i
tried to reproduce it in the ApiDemos.. i broke it down to adding the
following method to com.example.android.apis.view.LabelView to android's
ApiDemos:
protected android.graphics.Matrix getInverseMatrix() {
Log.i("LabelView", "getInverseMatrix");
return null;
}
just adding the method, never calling it results in the following exception:
> 11-15 09:07:08.710: E/AndroidRuntime(21358): FATAL EXCEPTION: main
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): java.lang.VirtualMachineError
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> dalvik.system.DexFile.defineClass(Native Method)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> dalvik.system.DexFile.loadClassBinaryName(DexFile.java:207)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> dalvik.system.PathClassLoader.findClass(PathClassLoader.java:211)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> java.lang.ClassLoader.loadClass(ClassLoader.java:540)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> java.lang.ClassLoader.loadClass(ClassLoader.java:500)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.view.LayoutInflater.createView(LayoutInflater.java:542)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:671)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.view.LayoutInflater.rInflate(LayoutInflater.java:724)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.view.LayoutInflater.inflate(LayoutInflater.java:479)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.view.LayoutInflater.inflate(LayoutInflater.java:391)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.view.LayoutInflater.inflate(LayoutInflater.java:347)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:245)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.app.Activity.setContentView(Activity.java:1780)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> com.example.android.apis.view.CustomView1.onCreate(CustomView1.java:38)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1715)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1767)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.app.ActivityThread.access$1500(ActivityThread.java:122)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1005)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.os.Handler.dispatchMessage(Handler.java:99)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.os.Looper.loop(Looper.java:132)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> android.app.ActivityThread.main(ActivityThread.java:4028)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> java.lang.reflect.Method.invokeNative(Native Method)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> java.lang.reflect.Method.invoke(Method.java:491)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
>
> 11-15 09:07:08.710: E/AndroidRuntime(21358): at
>> dalvik.system.NativeStart.main(Native Method)
>
>
>
i have tried to search for a similar errors, the only similar errors happen
when someone added a breakpoint to the class definition - i don't have
that.. (it occurrs even when not connected to a debugger.. it first
happened in my app when installed from the market) ..
it even works when i change the return type of the method from Matrix to
Object - this is exactly what i did in my application - and it now works
smoothly! i use the Matrix object just as on gingerbread, but i had to
change the return type of the method from Matrix to Object and cast it..
has anyone an idea how that can happen? :) i saw that on honeycomb there is
also a Matrix class in android.opengl - maybe there is some conflict there?
any advice would be appreciated.. i can live with the workaround that i
have to define 'Object' as return type, but this is not really satisfying :)
thanks!
Herbert
--
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