[太陽花學運] 2014年3月18日 台灣人民佔領立法院行動 反對黑箱服貿

圖片
繼台灣公民記者JO1YNN在美國有線電視新聞網CNN的 iReport ( Taiwan Parliament Occupied by protesters 1st time in History )上。報導台灣「318人民佔領立法院行動」首次佔領立法院議場世界各大重要外電媒體紛紛加以報導。 Arys Chien's status update .: 【 為何學生要佔領立法院,反對黑箱服貿?】 我知道有的朋友平常沒 留意,現在一時看不太懂;我試著用另一種方式簡單說明看看。   會計偷偷抱著公司所有的資產,要去抵押借高利貸。 老闆發現了,趕緊說:「不行啊那是高利貸!」 會計:「我是為公司好!」 老闆:「那起碼告訴我,是哪家高利貸、多少錢、利息怎麼算?」 會計:「我先去借,你之後會慢慢感受到!」 老闆:「那也讓我們開個會討論吧!」 會計:「我趁你不在的時候發開會通知,你沒來,所以就算通過了。 」 老闆要攔會計、會計把自己座位鎖起來,老闆只好請人來包圍會計的 座位,並且設法強行進入;進入後亂翻會計抽屜,想找到公司資產。   以上。   會計 = 政府 老闆 = 台灣人民 高利貸 = 服貿 (沒錯,政府是人民雇用來辦事的職員,看薪水哪裡來的就很清楚了 ) (高利貸不是不能借,只是不能這樣搞啊......)  ( 來源: 我是台灣人粉絲團  )

How to trace ANR


How to trace ANR problem !

What Triggers ANR?

In Android, application responsiveness is monitored by the Activity Manager and Window Manager system services. Android will display the ANR dialog for a particular application when it detects one of the following conditions:
  • No response to an input event (e.g. key press, screen touch) within 5 seconds
  • BroadcastReceiver hasn't finished executing within 10 seconds



How to investigate an ANR 

http://stackoverflow.com/questions/704311/android-how-do-i-investigate-an-anr


An ANR happens when some long operation takes place in the "main" thread. This is the event loop thread, and if it is busy, Android cannot process any further GUI events in the application, and thus throws up an ANR dialog.
Now, in the trace you posted, the main thread seems to be doing fine, there is no problem. It is idling in the MessageQueue, waiting for another message to come in. In your case the ANR was likely a longer operation, rather than something that blocked the thread permanently, so the event thread recovered after the operation finished, and your trace went through after the ANR.
Detecting where ANRs happen is easy if it is a permanent block (deadlock acquiring some locks for instance), but harder if it's just a temporary delay. First, go over your code and look for vunerable spots and long running operations. Examples may include using sockets, locks, thread sleeps, and other blocking operations from within the event thread. You should make sure these all happen in separate threads. If nothing seems the problem, use DDMS and enable the thread view. This shows all the threads in your application similar to the trace you have. Reproduce the ANR, and refresh the main thread at the same time. That should show you precisely whats going on at the time of the ANR

--

中文相關討論

淺談ANR及如何解決分析ANR 1
淺談ANR及如何解決分析ANR 2
淺談ANR及如何解決分析ANR 3


留言

本月熱門文章

推薦韓劇 機智的醫生生活 充滿友情的五人組 Mido and Falasol

新北市線上都更說明會,一起來改善現在的居住環境

網路創業大不易 ? 真的要親自體會才知道!

模里西斯六日行程推薦 來規劃南半球海島行吧!!

Bonbons Studio 胖胖瑪德蓮 中秋禮盒開箱

來看一下2011年數位時代選的三十強官方網站

11/26 星期六早上八點就可以投票啦

OPC UA 學習筆記

20221018 詹智堯1000場出賽 賽後引退 將繼續以富邦悍將外野守備教練身分在中華職棒奮鬥

QNAP 以運算、網通及儲存方案創新者現身 CES 2019,一站式 AI 解決方案與邊緣運算 PoE 網路交換器新品競出