2012-07-13 304 views
1

我注意到我的adobe air應用程序在嘗試關閉Netconnection時遇到了intermitent崩潰。該應用程序停止響應,並最終如果你不斷嘗試做一些事情崩潰。它發生在10次中的7次,這很奇怪!adobe air android Netconnection.close()

有沒有人遇到過這種情況,或者知道發生了什麼事?

這裏是一個完整的ANR跟蹤鏈接:http://pastebin.com/ut0eZRrU

感謝,任何幫助,將不勝感激。這個錯誤阻止了我釋放我的應用程序!

我已經看到一些討論,人們都在說他們遇到類似的問題,但他們也說它已經在空氣中排序3.3。我還沒有看到任何改善....

這裏是在logcat中得到什麼IM摘要:

D/dalvikvm(2019): GC_CONCURRENT freed 1943K, 21% free 24500K/30855K, paused 2ms+21ms 
D/dalvikvm(2019): GC_EXPLICIT freed 769K, 20% free 24737K/30855K, paused 2ms+20ms 
E/ActivityManager(2019): ANR in air.com.test.mobile.rbttest.debug (air.com.test.mobile.rbttest.debug/.AppEntry) 


E/ActivityManager(2019): Reason: keyDispatchingTimedOut 


E/ActivityManager(2019): Load: 0.59/0.72/0.59 
E/ActivityManager(2019): CPU usage from 18567ms to 3234ms ago: 


E/ActivityManager(2019): 80% 9424/air.com.test.mobile.rbttest.debug: 71% user + 8.7% kernel/faults: 1406 minor 


**could it be something to do with the line above? Is this line saying that my cpu has spiked up to 80%? Its weird if it is, because it works fine if I dont close the net connection!!** 


E/ActivityManager(2019): 2% 2019/system_server: 1.1% user + 0.8% kernel/faults: 39 minor 
E/ActivityManager(2019): 1.8% 2120/com.android.systemui: 1.5% user + 0.2% kernel/faults: 5 minor 
E/ActivityManager(2019): 1.5% 1885/mediaserver: 1.2% user + 0.3% kernel/faults: 4 minor 
E/ActivityManager(2019): 0.7% 1882/surfaceflinger: 0.3% user + 0.3% kernel 
E/ActivityManager(2019): 0.3% 9564/kworker/0:2: 0% user + 0.3% kernel 
E/ActivityManager(2019): 0.2% 2206/dhd_dpc: 0% user + 0.2% kernel 
E/ActivityManager(2019): 0.1% 1890/adbd: 0% user + 0.1% kernel 
E/ActivityManager(2019): 0.1% 8196/com.eolwral.osmonitor: 0% user + 0.1% kernel/faults: 20 minor 
E/ActivityManager(2019): 0.1% 8697/kworker/u:0: 0% user + 0.1% kernel 
E/ActivityManager(2019): 0.1% 965/irq/356-mxt224_: 0% user + 0.1% kernel 
E/ActivityManager(2019): 0.1% 7358/kworker/0:3: 0% user + 0.1% kernel 


E/ActivityManager(2019): 0% 3/ksoftirqd/0: 0% user + 0% kernel 


E/ActivityManager(2019): 0% 1055/mmcqd/0: 0% user + 0% kernel 


E/ActivityManager(2019): 0% 1830/jbd2/mmcblk0p10: 0% user + 0% kernel 


E/ActivityManager(2019): 0% 1881/rild: 0% user + 0% kernel 


E/ActivityManager(2019): 0% 2202/dhd_watchdog: 0% user + 0% kernel 


E/ActivityManager(2019): 0% 2781/kworker/u:23: 0% user + 0% kernel 


E/ActivityManager(2019): 0% 8708/kworker/u:1: 0% user + 0% kernel 


E/ActivityManager(2019): 0% 8756/com.android.settings: 0% user + 0% kernel/faults: 31 minor 


E/ActivityManager(2019): 0% 8860/com.google.android.gallery3d: 0% user + 0% kernel/faults: 8 minor 


E/ActivityManager(2019): 0% 27078/com.antivirus: 0% user + 0% kernel 


E/ActivityManager(2019): 49% TOTAL: 43% user + 6.4% kernel + 0.2% iowait + 0% softirq 


E/ActivityManager(2019): CPU usage from 707ms to 1226ms later: 


E/ActivityManager(2019): 10% 2019/system_server: 1.8% user + 9% kernel/faults: 3 minor 


E/ActivityManager(2019):  9% 2077/InputDispatcher: 0% user + 9% kernel 


E/ActivityManager(2019): 4.9% 2120/com.android.systemui: 3.9% user + 0.9% kernel/faults: 1 minor 


E/ActivityManager(2019):  3.9% 2120/ndroid.systemui: 3.9% user + 0% kernel 


E/ActivityManager(2019): 6.8% 9424/air.com.test.mobile.rbttest.debug: 0% user + 6.8% kernel 


E/ActivityManager(2019):  6.8% 9464/e.rbttest.debug: 1.7% user + 5.1% kernel 


E/ActivityManager(2019): 1.2% 7358/kworker/0:3: 0% user + 1.2% kernel 


E/ActivityManager(2019): 7.7% TOTAL: 1.9% user + 5.8% kernel 
W/ActivityManager(2019): Force finishing activity air.com.test.mobile.rbttest.debug/.AppEntry 
I/ActivityManager(2019): Killing ProcessRecord{416f3410 9424:air.com.test.mobile.rbttest.debug/10075}: user's request 
I/ActivityManager(2019): Process air.com.test.mobile.rbttest.debug (pid 9424) has died. 
I/WindowManager(2019): WIN DEATH: Window{420baca0 SurfaceView paused=false} 
I/WindowManager(2019): WIN DEATH: Window{41f93898 air.com.test.mobile.rbttest.debug/air.com.test.mobile.rbttest.debug.A ppEntry paused=true} 

更新: 我已經發現,如果的NetConnection則通過通過的FMS服務器關閉發行商然後導致android應用程序崩潰!

+0

哪個版本的Air?請注意圍繞關閉NetConnection顯示代碼?你在做什麼w/NetConnection:來自FMS的流媒體,播放本地文件等等。假設這隻發生在一個設備上,你是否能夠嘗試多種類型的設備? (我得到了更多,但我會停在這裏:) – 2012-07-13 16:45:18

+0

感謝您的快速答覆Sunil ...我已經嘗試使用空氣3.1,3.2和3.3無濟於事。它不適用於我的銀河s2運行ics 4.0.4。該移動應用程序基本上正在與基於桌面的空中應用程序進行互動。他們兩個都使用fms來處理視頻/音頻,同時也利用服務器端連接來處理其他信息等事情。如果我不關閉連接但是一旦我關閉它就會崩潰! – Bynho 2012-07-13 16:46:13

+0

關於代碼,我嘗試了很多不同的方法。只是在結束訂婚時做一個正常的netconn.close()。我也嘗試關閉它,當我結束了訂婚,改變了不同的看法,然後手動(通過按鈕)告訴它關閉。我還想補充一點,我已經在運行蜂巢的星系龍頭10上試過了,它也崩潰了。我已經嘗試運行在運行薑餅的galaxy標籤7上,並且它們中的所有這些似乎是最穩定的,更少的崩潰,但由於設備的硬件限制而沒有運行。 – Bynho 2012-07-13 16:50:52

回答

0

adobe air 3.4 beta的發佈似乎已經解決了這個問題。