Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on small number of android devices #44

Open
battlebottle opened this issue Oct 16, 2014 · 0 comments
Open

Crash on small number of android devices #44

battlebottle opened this issue Oct 16, 2014 · 0 comments

Comments

@battlebottle
Copy link

We've had reports of our app failing to launch on a small number of android devices and Google Play Crash reports suggests it's caused by this module. The two devices are a Galaxy Rugby running Android 4.1 and a Samsung Galaxy Stratosphere2 also running 4.1.

Here's the stack trace:

java.lang.RuntimeException: Unable to start activity ComponentInfo{net.teamworkpm.phone/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to android.text.Spannable
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2110)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
at android.app.ActivityThread.access$700(ActivityThread.java:143)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1241)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4967)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1011)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to android.text.Spannable
at android.widget.TextView.setEnabled(TextView.java:1430)
at org.appcelerator.titanium.view.TiUIView.registerForTouch(TiUIView.java:1499)
at org.appcelerator.titanium.view.TiUIView.registerForTouch(TiUIView.java:1313)
at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:492)
at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)
at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507)
at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491)
at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)
at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507)
at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491)
at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)
at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507)
at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491)
at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)
at com.tripvi.drawerlayout.Drawer.processProperties(Drawer.java:310)
at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1185)
at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:500)
at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491)
at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)
at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507)
at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491)
at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)
at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:670)
at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:564)
at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:232)
at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:32)
at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:442)
at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:524)
at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
at android.app.Activity.performCreate(Activity.java:5160)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)
... 11 more

The error seems to originate in the processProperties method and involves an attempt to cast a String as a android.text.Spannable

At the moment I can't reproduce this on a device I have access to so it's not easy to provide more info right now. Any thoughts on what could be causing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant