weimingtom / httpcontentparser

Automatically exported from code.google.com/p/httpcontentparser
3 stars 1 forks source link

BUG: Eyecare多次启动 #226

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
昨天晚上下载东西,白天发现几个问题。

1. 屏幕不停的闪烁,似乎是Eyecare启动后又自动退出了。
2. 有时候会启动两个Eyecare, 很奇怪

Original issue reported on code.google.com by ynkhpp@gmail.com on 4 May 2009 at 8:21

GoogleCodeExporter commented 8 years ago

Original comment by ynkhpp@gmail.com on 4 May 2009 at 8:21

GoogleCodeExporter commented 8 years ago

Original comment by ynkhpp@gmail.com on 29 May 2009 at 8:39

GoogleCodeExporter commented 8 years ago

Original comment by ynkhpp@gmail.com on 16 Jun 2009 at 4:34

GoogleCodeExporter commented 8 years ago
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC][Websnow Service] Save Configuration path 
d:\workspace\current\debug\nwist.dll
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : -9

Original comment by ynkhpp@gmail.com on 21 Jun 2009 at 3:33

GoogleCodeExporter commented 8 years ago
这是其中一段log, 
当用户在ENTERTAIN_MODEL还剩0秒的时候,进入父模式打开EYECARE界
面然后点击一个按钮并确
认,就会出现这种情况

Original comment by ynkhpp@gmail.com on 21 Jun 2009 at 3:35

GoogleCodeExporter commented 8 years ago
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0
[4960] [TRC]EyecareSettint state ENTERTAIN Left time : 0
[4960] [TRC]EyecareSettint state EYECARE  Left time : 0

Original comment by ynkhpp@gmail.com on 21 Jun 2009 at 3:36

GoogleCodeExporter commented 8 years ago
另外一种引起这种情况的log

Original comment by ynkhpp@gmail.com on 21 Jun 2009 at 3:37

GoogleCodeExporter commented 8 years ago
实际情况是这样, 
当你在entertain模式快要结束的时候进入parent mode, 而进入parent 
model之后同时进
入的eyecare model。 这时候eyecare无法启动, 你可以在log中看到
[TRC]EyecareSettint state ENTERTAIN Left time : 1(eyecare time : 10 enter time 
: 10)
[TRC]EyecareSettint state ENTERTAIN Left time : 0(eyecare time : 10 enter time 
: 10)
[TRC]EyecareSettint state ENTERTAIN Left time : 0(eyecare time : 10 enter time 
: 10)
[TRC]EyecareSettint state EYECARE  Left time : 9(eyecare time : 10 enter time : 
10)
[TRC]EyecareSettint state EYECARE  Left time : 9(eyecare time : 10 enter time : 
10)

然后当你切换回子模式的时候
[TRC]EyecareSettint state EYECARE  Left time : 7(eyecare time : 10 enter time : 
10)
[TRC]NULL == hwnd && functionEnabled(getAppStatus())
[TRC]EyecareSettint state EYECARE  Left time : 6(eyecare time : 10 enter time : 
10)
[TRC]NULL == hwnd && functionEnabled(getAppStatus())
[TRC]EyecareSettint state EYECARE  Left time : 5(eyecare time : 10 enter time : 
10)
[TRC]NULL == hwnd && functionEnabled(getAppStatus())
[TRC]EyecareSettint state ENTERTAIN Left time : 0(eyecare time : 10 enter time 
: 10)

Original comment by ynkhpp@gmail.com on 21 Jun 2009 at 4:17

GoogleCodeExporter commented 8 years ago
 before MultiCalculagraph::tryswitch, time left is 9, state is 1
[TRC]EyecareSettint state EYECARE  Left time : 8
before MultiCalculagraph::tryswitch, time left is 8, state is 1
NtCreateSection:D:\workspace\current\debug\Eyecare.exe
CreateProcess: D:\workspace\current\debug\Eyecare.exe
[TRC][Websnow Service] Launch Eyecare 
[TRC]EyecareSettint state EYECARE  Left time : 7
before MultiCalculagraph::tryswitch, time left is 7, state is 1
[TRC][Websnow Service] Launch Eyecare 
MultiCalculagraph::forceSwitch to 0, time left is 0
[TRC]EyecareSettint state ENTERTAIN Left time : 0 before 
MultiCalculagraph::tryswitch, time left is 0, state is 0
after MultiCalculagraph::tryswitch, time left is 10, state is 1
NtCreateSection:D:\workspace\current\debug\Eyecare.exe
CreateProcess: D:\workspace\current\debug\Eyecare.exe
[TRC][Websnow Service] Launch Eyecare 
[TRC]EyecareSettint state EYECARE  Left time : 9
before MultiCalculagraph::tryswitch, time left is 9, state is 1
[TRC][Websnow Service] Launch Eyecare 
[TRC]EyecareSettint state EYECARE  Left time : 8
before MultiCalculagraph::tryswitch, time left is 8, state is 1
[TRC][Websnow Service] Launch Eyecare 
MultiCalculagraph::forceSwitch to 0, time left is 0
[TRC]EyecareSettint state ENTERTAIN Left time : 0
before MultiCalculagraph::tryswitch, time left is 0, state is 0
after MultiCalculagraph::tryswitch, time left is 10, state is 1

Original comment by ynkhpp@gmail.com on 21 Jun 2009 at 5:17

GoogleCodeExporter commented 8 years ago
为什么调用forceSwitch后,其time left仍然是0, 
其中已经调用了reset了啊!!

Original comment by ynkhpp@gmail.com on 21 Jun 2009 at 5:17

GoogleCodeExporter commented 8 years ago

Original comment by ynkhpp@gmail.com on 22 Jun 2009 at 2:47

GoogleCodeExporter commented 8 years ago
[TRC][Websnow Service] Launch Eyecare 
[TRC]EyecareSettint state EYECARE  Left time : 8
before MultiCalculagraph::tryswitch, time left is 8, state is 1
[TRC][Websnow Service] Launch Eyecare 
[TRC]EyecareSettint state EYECARE  Left time : 7
before MultiCalculagraph::tryswitch, time left is 7, state is 1
[TRC][Websnow Service] Launch Eyecare 
MultiCalculagraph::forceSwitch to 0, time left is 10

从这里可以看出, 在不起当的时机, laucnEyecare(最后一个)

Original comment by ynkhpp@gmail.com on 22 Jun 2009 at 10:29

GoogleCodeExporter commented 8 years ago
终于知道原因了, 当用户设置状态的时候, 
并不是指定一个状态。而是直接进入下一个状态。因此当用��
�在计时马上结
束的时候,点击切换按钮, 
点击之后,这时已经在下一个状态了, 
而点击造成的后果是,状态再一次切换。因此也就造
成了,上面的现象。

Original comment by ynkhpp@gmail.com on 22 Jun 2009 at 1:02

GoogleCodeExporter commented 8 years ago
又错了我

Original comment by ynkhpp@gmail.com on 22 Jun 2009 at 1:24

GoogleCodeExporter commented 8 years ago
终于找到真相了
其实是由于一个暂停的时候用于记录时间的变量引起的。 
当用户切换到父状态的时候,计时器就暂停了。 
这时候如果再
计算就会出错, 
因此留了一个变量用于保存剩余的时间值。当用户重新开始��
�时器的时候,在将此数的值设置进去。

当用户在剩余时间为负值的时候暂停,然后再进入“孩子模��
�"的时候,这个复制就被设进了当前的计时器。 也就是说充
值算法其实没有起作用, 它被另外一个值覆盖了。

解决办法就是在充值的时候连同那个值一起充值。

Original comment by ynkhpp@gmail.com on 22 Jun 2009 at 3:24

GoogleCodeExporter commented 8 years ago
at revision 1427

Original comment by ynkhpp@gmail.com on 22 Jun 2009 at 3:28

GoogleCodeExporter commented 8 years ago

Original comment by ynkhpp@gmail.com on 3 Jul 2009 at 5:53