Drewk02 / anymemo

Automatically exported from code.google.com/p/anymemo
GNU General Public License v2.0
0 stars 0 forks source link

Activity State Loss when grade a card #286

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
rWhat steps will reproduce the problem?
1.刚更新的版本70(带marked as 
learned的版本),在学习界面上,下拉任务栏,点击亮度设置�
��然后切换为自动亮度
2.再切换回anymemo,程度便跳出异常关闭对话框,然后关闭
3. android版本为4.4.2,omnirom 12月18日版本。

What is the expected output? What do you see instead?

What is the AnyMemo version (E.g 8.999.1, 9.0, 9.1.1)?

What is your Android phone model?

What is your Android version?

Original issue reported on code.google.com by zongb...@gmail.com on 19 Dec 2013 at 9:20

GoogleCodeExporter commented 8 years ago
实验了下,在Nexus 5 
4.4.2没问题,学习,改亮度,回去。你可以用crash后Take bug 
report发给我。bug report在Android设置,Developer option里

Original comment by mrlhwlib...@gmail.com on 19 Dec 2013 at 4:04

GoogleCodeExporter commented 8 years ago
这个bug 
report一般生成时间是多少?我点提交了都快10分钟了,什么反
应都没有,手机上也没执行任何操作。

Original comment by zongb...@gmail.com on 19 Dec 2013 at 4:21

GoogleCodeExporter commented 8 years ago
我的手机是半分钟左右会出提醒。如果不行,你可以用第三��
�的Catlog,不过要Root

Original comment by mrlhwlib...@gmail.com on 19 Dec 2013 at 4:25

GoogleCodeExporter commented 8 years ago
你可以用Bug report快捷键,两个音量和电源一起按。

Original comment by mrlhwlib...@gmail.com on 19 Dec 2013 at 4:28

GoogleCodeExporter commented 8 years ago
我root过了,等我试试catlog

Original comment by zongb...@gmail.com on 19 Dec 2013 at 4:30

GoogleCodeExporter commented 8 years ago
我在app市场上搜不到catlog,是不是叫catalog?能否推荐一个?

Original comment by zongb...@gmail.com on 19 Dec 2013 at 4:50

GoogleCodeExporter commented 8 years ago
https://play.google.com/store/apps/details?id=com.nolanlawson.logcat&hl=en

Original comment by mrlhwlib...@gmail.com on 19 Dec 2013 at 4:52

GoogleCodeExporter commented 8 years ago
搞定。已经发到anymemo@googlecode.com,查收。

Original comment by zongb...@gmail.com on 19 Dec 2013 at 5:04

GoogleCodeExporter commented 8 years ago
发到Liberty@anymemo.org, 我收不到Googlecode邮件

Original comment by mrlhwlib...@gmail.com on 19 Dec 2013 at 5:05

GoogleCodeExporter commented 8 years ago
搞定。我去睡了,如果没收到给我留言,明天再给你发一次��
�

Original comment by zongb...@gmail.com on 19 Dec 2013 at 5:08

GoogleCodeExporter commented 8 years ago
收到,这是Crash stack
-20 00:59:57.797 I/Elixir2-Widgets( 5993): Updating widgets: [APPWIDGET:8], 
all: true, updateLevel: 10
12-20 00:59:57.807 D/Elixir2-Widgets( 5993): WIDGET[APPWIDGET:8, 3x1]: not 
changed
12-20 00:59:57.822 D/Elixir2-Widgets( 5993): Refresh 9978 ms later, 
refreshNeeded: false
12-20 00:59:57.877 I/ActivityManager( 2420): Displayed 
com.painless.pc/.acts.BrightnessSlider: +101ms
12-20 00:59:58.942 W/linker  ( 8866): libsensorhubservice.so has text 
relocations. This is wasting memory and is a security risk. Please fix.
12-20 00:59:59.182 W/BackupManagerService( 2420): dataChanged but no 
participant pkg='com.android.providers.settings' uid=10066
12-20 00:59:59.187 E/Sensors ( 2420): Light old sensor_state 1, new 
sensor_state : 65 en : 1
12-20 01:00:00.112 D/BluetoothAdapter( 7125): 1099322744: getState() :  
mService = null. Returning STATE_OFF
12-20 01:00:00.202 D/AndroidRuntime( 7237): Shutting down VM
12-20 01:00:00.202 W/dalvikvm( 7237): threadid=1: thread exiting with uncaught 
exception (group=0x41514ba8)
12-20 01:00:00.207 E/AndroidRuntime( 7237): FATAL EXCEPTION: main
12-20 01:00:00.207 E/AndroidRuntime( 7237): Process: 
org.liberty.android.fantastischmemo, PID: 7237
12-20 01:00:00.207 E/AndroidRuntime( 7237): java.lang.IllegalStateException: 
Can not perform this action after onSaveInstanceState
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1
343)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:13
54)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:595)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:574)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
org.liberty.android.fantastischmemo.ui.QACardActivity.displayCard(QACardActivity
.java:361)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
org.liberty.android.fantastischmemo.ui.StudyActivity.onClickAnswerView(StudyActi
vity.java:437)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
org.liberty.android.fantastischmemo.ui.QACardActivity$5.onClick(QACardActivity.j
ava:703)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
android.view.View.performClick(View.java:4438)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
android.view.View$PerformClick.run(View.java:18422)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
android.os.Handler.handleCallback(Handler.java:733)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
android.os.Handler.dispatchMessage(Handler.java:95)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
android.os.Looper.loop(Looper.java:136)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
android.app.ActivityThread.main(ActivityThread.java:5017)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
java.lang.reflect.Method.invokeNative(Native Method)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
java.lang.reflect.Method.invoke(Method.java:515)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
12-20 01:00:00.207 E/AndroidRuntime( 7237):     at 
dalvik.system.NativeStart.main(Native Method)
12-20 01:00:00.227 W/linker  ( 8867): libddc.so has text relocations. This is 
wasting memory and is a security risk. Please fix.
12-20 01:00:00.227 W/linker  ( 8867): libedid.so has 

Original comment by mrlhwlib...@gmail.com on 19 Dec 2013 at 5:10

GoogleCodeExporter commented 8 years ago
Well, if this is a problem, it shouldn't be introduced recently. I haven't 
touch the code of study activity for a month or so.

Original comment by mrlhwlib...@gmail.com on 19 Dec 2013 at 6:46

GoogleCodeExporter commented 8 years ago
这个问题应该是9.0之后就有的。Google 
2013年8月写的个blog关于这个问题。 Lesson learned!

http://www.androiddesignpatterns.com/2013/08/fragment-transaction-commit-state-l
oss.html

今天的nightly build就应该没有这个问题了。

Original comment by mrlhwlib...@gmail.com on 19 Dec 2013 at 7:04