-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Force close on GB base when slide right after press menu key #487
Comments
Doesn't seem related to ABS. You're sure this library is triggering the bug? |
I run into this problem and duplicated on my Nexus One Gingerbread. It only happens only in Landscape mode, but this is a real problem when you have icons shown/hidden problematically. Modified ActionModes.java is below. Steps to reproduce:
In my "real app" I get the crash right after step 3 -- not exactly sure what's the difference. public class ActionModes extends SherlockActivity
} |
This does NOT happen on native ICS, I just tested it. |
I fixed this in my project by backporting the ICS PopupWindow class. It's a fairly trivial exercise (4 anims, 2 interpolators, 2 integers, couple of styles copied), but I don't really want to submit a diff as double checking my work would probably take as long as doing it in the first place. Unless you want me to.... |
I'm getting market reports of this exception with Action Bar Sherlock v4.1.0 and the Android Support Library v4 revision 9. It seems to be affecting more than a few users out there. |
The problem appears to be this line for me: View anchor = mAnchor.get(); on ICS it's this: View anchor = mAnchor != null ? mAnchor.get() : null; I'll try @androidmoney 's idea and see if I still get those crashes in the market. |
@androidmoney Could you share what you did too? I just want to compare to see if I did things the right way. Thanks! |
I still get some reports of this exception, but am not comfortable enough with porting over all of the styles etc... (i.e. not sure that what I'm doing would not be breaking something else). If anyone knows how to fix, would be greatly appreciated. :) |
I can reproduce same issue on old Samsung device running Android 2.2.1 I have A way to reproduce is to click overflow menu then try to swipe ViewPager, then click overflow menu item again. 08-30 00:35:26.316: E/AndroidRuntime(28708): FATAL EXCEPTION: main |
Yeah, apparently this was fixed in Honeycomb. Would be nice if this was fixed in ABS so pre-Honeycomb wouldn't experience this crash. |
Not sure where to hook the code. But you can certainly fix it via reflection when possible. if(Build.VERSION.SDK_INT<Build.VERSION_CODES.ICE_CREAM_SANDWICH){ |
I am trying to integrate Sherlock action bar library into my application on GB based.
I am using ViewPager together with Sherlock action bar to support sliding between tabs.
While I met force close by following bellow steps:
Result: force close occurs.
Logs:
05-21 17:02:27.736: E/AndroidRuntime(25836): FATAL EXCEPTION: main
05-21 17:02:27.736: E/AndroidRuntime(25836): java.lang.NullPointerException
05-21 17:02:27.736: E/AndroidRuntime(25836): at android.widget.PopupWindow$1.onScrollChanged(PopupWindow.java:132)
05-21 17:02:27.736: E/AndroidRuntime(25836): at android.view.ViewTreeObserver.dispatchOnScrollChanged(ViewTreeObserver.java:607)
05-21 17:02:27.736: E/AndroidRuntime(25836): at android.view.ViewRoot.draw(ViewRoot.java:1369)
05-21 17:02:27.736: E/AndroidRuntime(25836): at android.view.ViewRoot.performTraversals(ViewRoot.java:1266)
05-21 17:02:27.736: E/AndroidRuntime(25836): at android.view.ViewRoot.handleMessage(ViewRoot.java:1867)
05-21 17:02:27.736: E/AndroidRuntime(25836): at android.os.Handler.dispatchMessage(Handler.java:99)
05-21 17:02:27.736: E/AndroidRuntime(25836): at android.os.Looper.loop(Looper.java:130)
05-21 17:02:27.736: E/AndroidRuntime(25836): at android.app.ActivityThread.main(ActivityThread.java:3806)
05-21 17:02:27.736: E/AndroidRuntime(25836): at java.lang.reflect.Method.invokeNative(Native Method)
05-21 17:02:27.736: E/AndroidRuntime(25836): at java.lang.reflect.Method.invoke(Method.java:507)
05-21 17:02:27.736: E/AndroidRuntime(25836): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
05-21 17:02:27.736: E/AndroidRuntime(25836): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
05-21 17:02:27.736: E/AndroidRuntime(25836): at dalvik.system.NativeStart.main(Native Method)
Could your team take a look at this issue?
The text was updated successfully, but these errors were encountered: