系统日历的bug


#1

报告时请提供操作步骤当前版本,如果能附上屏幕截图录像错误日志将有利于我们的排查。

标准发帖格式:
问题描述: 系统自带日历的闪退bug,无法切换到“周”视图
当前版本: MK71.2-oneplus3-201712011155-NIGHTLY
复现步骤: 日历-点击左上角-点击“周”视图选项

如果您不能按照标准发帖格式提供基础信息,我们将会忽略删除您的报告。
因为信息不全很难定位并修复问题,甚至该问题可能是您自身操作不当导致的。

When posting a bug report, please mention the steps to replicate and affected version. Reports with screenshots, screen recordings or logcats will potentially be resolved faster.

Mandatory report format:
Bug description:
Affected version:
Steps to replicate:

If you do not follow the format above when posting a bug report, it will delete or automatically be ignored. Without sufficient information, it is impossible for us to debug. Most probably the issue could be caused by your own inappropiate usage.


#2

喵喵喵 :speak_no_evil:


#3

我试了一下,Jason也是不可以的。应该是一个bug@dianlujitao


#4

是指录像还是log?我不会日志来着


#5

你截图吧,要是可以的话。


#6

可能最近撸多了,看错了


#7

试了下还真的是报错了,一加五


#8

日志有了:

11457 11457 D AndroidRuntime: Shutting down VM
11457 11457 E AndroidRuntime: FATAL EXCEPTION: main
11457 11457 E AndroidRuntime: Process: com.android.calendar, PID: 11457
11457 11457 E AndroidRuntime: java.lang.NumberFormatException: For input string: "年"
11457 11457 E AndroidRuntime: 	at java.lang.Integer.parseInt(Integer.java:521)
11457 11457 E AndroidRuntime: 	at java.lang.Integer.parseInt(Integer.java:556)
11457 11457 E AndroidRuntime: 	at com.android.calendar.CalendarViewAdapter.buildLunarInfo(CalendarViewAdapter.java:432)
11457 11457 E AndroidRuntime: 	at com.android.calendar.CalendarViewAdapter.getView(CalendarViewAdapter.java:207)
11457 11457 E AndroidRuntime: 	at android.widget.AbsSpinner.onMeasure(AbsSpinner.java:194)
11457 11457 E AndroidRuntime: 	at android.widget.Spinner.onMeasure(Spinner.java:592)
11457 11457 E AndroidRuntime: 	at android.view.View.measure(View.java:19861)
11457 11457 E AndroidRuntime: 	at android.widget.Toolbar.measureChildCollapseMargins(Toolbar.java:1527)
11457 11457 E AndroidRuntime: 	at android.widget.Toolbar.onMeasure(Toolbar.java:1630)
11457 11457 E AndroidRuntime: 	at android.view.View.measure(View.java:19861)
11457 11457 E AndroidRuntime: 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6083)
11457 11457 E AndroidRuntime: 	at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
11457 11457 E AndroidRuntime: 	at com.android.internal.widget.ActionBarContainer.onMeasure(ActionBarContainer.java:291)
11457 11457 E AndroidRuntime: 	at android.view.View.measure(View.java:19861)
11457 11457 E AndroidRuntime: 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6083)
11457 11457 E AndroidRuntime: 	at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:373)
11457 11457 E AndroidRuntime: 	at android.view.View.measure(View.java:19861)
11457 11457 E AndroidRuntime: 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6083)
11457 11457 E AndroidRuntime: 	at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
11457 11457 E AndroidRuntime: 	at com.android.internal.policy.DecorView.onMeasure(DecorView.java:692)
11457 11457 E AndroidRuntime: 	at android.view.View.measure(View.java:19861)
11457 11457 E AndroidRuntime: 	at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2275)
11457 11457 E AndroidRuntime: 	at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1366)
11457 11457 E AndroidRuntime: 	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1619)
11457 11457 E AndroidRuntime: 	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)
11457 11457 E AndroidRuntime: 	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6344)
11457 11457 E AndroidRuntime: 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)
11457 11457 E AndroidRuntime: 	at android.view.Choreographer.doCallbacks(Choreographer.java:686)
11457 11457 E AndroidRuntime: 	at android.view.Choreographer.doFrame(Choreographer.java:621)
11457 11457 E AndroidRuntime: 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
11457 11457 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:751)
11457 11457 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:95)
11457 11457 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:154)
11457 11457 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6236)
11457 11457 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
11457 11457 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)
11457 11457 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)
 1397 11441 W ActivityManager:   Force finishing activity com.android.calendar/.AllInOneActivity
 1397 11441 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:877 com.android.server.am.AppErrors.crashApplicationInner:375 com.android.server.am.AppErrors.crashApplication:309 com.android.server.am.ActivityManagerService.handleApplicationCrashInner:13757 com.android.server.am.ActivityManagerService.handleApplicationCrash:13739 

#9

临时解决办法:打开日历设置里的“显示周数”,或者切换系统语言到英文。
貌似是显示周数这个功能在添加的时候对中文语言环境支持有点问题。


附debug得到的信息:

cal.set(Integer.parseInt(list.get(1)), Integer.parseInt(list.get(3)) - 1, Integer.parseInt(list.get(5)));

这个list啊,正常的时候和出问题的时候存的内容不一样,(date不一样):
calendar
calendar_2
上班了上班了。


#10

md我手贱打开显示周数,然后进入周试图后关闭显示周数,现在进不去日历了 :joy:


#11

清除数据



#12

今天的更新中 此问题猪大已修复
见 Project: packages/apps/Calendar martincz Calendar
: fix Week view ANR


#13

该主题在最后一个回复创建后30天后自动关闭。不再允许新的回复。