2016-09-19 54 views
-3

我創建,將使用圖像的應用程序捕獲的照片。所以用戶會選擇或拍照。 我正在使用最新版本的CropImage庫。 我檢查了CropImage庫中的權限。但立即選擇照片或相機活動打開,我的應用程序關閉沒有任何錯誤。 這是我的機器人工作室的最後一句監控「d/OpenGLRenderer:終止EGL顯示(爲0x1)」從調試器。我的應用程序在棉花糖關閉,不顯示「不幸的是應用程序已經停止」當我試圖想象或CropImage圖書館

我該怎麼辦?

堆棧跟蹤:

09-19 21:35:19.142 30868-30958/com.ngs.example D/GraphicBuffer: unregister, handle(0x7f7f043ae0) (w:720 h:1280 s:720 f:0x1 u:0x000b00) 
09-19 21:35:19.143 30868-30958/com.ngs.example I/[MALI][Gralloc]: [-]r_hnd(0x7f7f043ae0), client(35), share_fd(48) 
09-19 21:35:19.143 30868-30958/com.ngs.example D/GraphicBuffer: unregister, handle(0x7f7f043a40) (w:720 h:1280 s:720 f:0x1 u:0x000b00) 
09-19 21:35:19.144 30868-30958/com.ngs.example I/[MALI][Gralloc]: [-]r_hnd(0x7f7f043a40), client(35), share_fd(49) 
09-19 21:35:19.146 30868-30958/com.ngs.example D/GraphicBuffer: unregister, handle(0x7f7f044080) (w:720 h:1280 s:720 f:0x1 u:0x000b00) 
09-19 21:35:19.146 30868-30958/com.ngs.example I/[MALI][Gralloc]: [-]r_hnd(0x7f7f044080), client(35), share_fd(44) 
09-19 21:35:19.148 30868-30958/com.ngs.example D/GraphicBuffer: unregister, handle(0x7f723cfe60) (w:720 h:1280 s:720 f:0x1 u:0x000b00) 
09-19 21:35:19.150 30868-30958/com.ngs.example I/[MALI][Gralloc]: [-]r_hnd(0x7f723cfe60), client(35), share_fd(47) 
09-19 21:35:19.150 30868-30958/com.ngs.example D/Surface: Surface::disconnect(this=0x7f87f5f000,api=1) 
09-19 21:35:19.156 30868-30958/com.ngs.example D/Surface: Surface::disconnect(this=0x7f71079000,api=1) 
09-19 21:35:19.157 30868-30958/com.ngs.example D/GraphicBuffer: unregister, handle(0x7f72386c20) (w:520 h:224 s:528 f:0x1 u:0x000b00) 
09-19 21:35:19.158 30868-30958/com.ngs.example I/[MALI][Gralloc]: [-]r_hnd(0x7f72386c20), client(35), share_fd(53) 
09-19 21:35:19.158 30868-30958/com.ngs.example D/GraphicBuffer: unregister, handle(0x7f723d0d60) (w:520 h:224 s:528 f:0x1 u:0x000b00) 
09-19 21:35:19.159 30868-30958/com.ngs.example I/[MALI][Gralloc]: [-]r_hnd(0x7f723d0d60), client(35), share_fd(46) 
09-19 21:35:19.159 30868-30958/com.ngs.example D/GraphicBuffer: unregister, handle(0x7f7f043c20) (w:520 h:224 s:528 f:0x1 u:0x000b00) 
09-19 21:35:19.160 30868-30958/com.ngs.example I/[MALI][Gralloc]: [-]r_hnd(0x7f7f043c20), client(35), share_fd(51) 
09-19 21:35:19.160 30868-30958/com.ngs.example D/GraphicBuffer: unregister, handle(0x7f72386d60) (w:520 h:224 s:528 f:0x1 u:0x000b00) 
09-19 21:35:19.161 30868-30958/com.ngs.example I/[MALI][Gralloc]: [-]r_hnd(0x7f72386d60), client(35), share_fd(50) 
09-19 21:35:19.161 30868-30958/com.ngs.example D/Surface: Surface::disconnect(this=0x7f71079000,api=1) 
09-19 21:35:19.162 30868-30958/com.ngs.example D/OpenGLRenderer: endAllStagingAnimators on 0x7f718fb000 (MenuPopupWindow$MenuDropDownListView @a3e5a62) with handle 0x7f717bf540 
09-19 21:35:19.167 30868-30868/com.ngs.example E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length 
09-19 21:35:19.167 30868-30868/com.ngs.example E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length 
09-19 21:35:19.339 30868-30868/com.ngs.example D/WindowClient: Remove from mViews: android.widget.PopupWindow$PopupDecorView{bb453dc V.E...... ......ID 0,0-392,96}, this = [email protected] 
09-19 21:35:19.489 30868-30958/com.ngs.example I/[MALI][Gralloc]: [+]r_hnd(0x7f7f043c20), client(35), share_fd(41) 
09-19 21:35:19.489 30868-30958/com.ngs.example D/GraphicBuffer: register, handle(0x7f7f043c20) (w:720 h:1280 s:720 f:0x1 u:0x000b00) 
09-19 21:35:19.508 30868-30868/com.ngs.example V/ActivityThread: Finishing stop of ActivityRecord{179011a [email protected] {com.ngs.example/com.ngs.example.MainActivity}}: show=false [email protected] 
09-19 21:35:19.510 30868-30868/com.ngs.example V/PhoneWindow: DecorView setVisiblity: visibility = 4 ,Parent =ViewRoot{1e13973 com.ngs.example/com.ngs.example.MainActivity,ident = 0}, this =com.android.internal.policy.PhoneWindow$DecorView{8904d4 I.E...... R......D 0,0-720,1280} 
09-19 21:35:19.510 30868-30868/com.ngs.example D/ActivityThread: ACT-STOP_ACTIVITY_HIDE handled : 0/[email protected] 
09-19 21:35:19.544 30868-30958/com.ngs.example I/[MALI][Gralloc]: [+]r_hnd(0x7f72386d60), client(35), share_fd(42) 
09-19 21:35:19.545 30868-30958/com.ngs.example D/GraphicBuffer: register, handle(0x7f72386d60) (w:720 h:1280 s:720 f:0x1 u:0x000b00) 
09-19 21:35:20.381 30868-30868/com.ngs.example D/SettingsInterface: from settings cache , name = sound_effects_enabled , value = 0 
09-19 21:35:20.411 30868-30868/com.ngs.example D/ActivityThread: ACT-AM_ON_PAUSE_CALLED ActivityRecord{c9afbd3 [email protected] {com.ngs.example/com.ngs.example.UserProfile}} 
09-19 21:35:20.425 30868-30868/com.ngs.example D/ActivityThread: ACT-PAUSE_ACTIVITY handled : 1/[email protected] 
09-19 21:35:21.333 30868-30868/com.ngs.example V/ActivityThread: Finishing stop of ActivityRecord{c9afbd3 [email protected] {com.ngs.example/com.ngs.example.UserProfile}}: show=true [email protected] 
09-19 21:35:21.334 30868-30868/com.ngs.example D/ActivityThread: ACT-STOP_ACTIVITY_SHOW handled : 0/[email protected] 
09-19 21:35:22.405 30868-30868/com.ngs.example V/PhoneWindow: DecorView setVisiblity: visibility = 4 ,Parent =ViewRoot{ad1ab94 com.ngs.example/com.ngs.example.UserProfile,ident = 3}, this =com.android.internal.policy.PhoneWindow$DecorView{8f822f I.E...... R......D 0,0-720,1280} 
09-19 21:35:22.406 30868-30868/com.ngs.example D/ActivityThread: ACT-HIDE_WINDOW handled : 0/[email protected] 
09-19 21:35:22.408 30868-30958/com.ngs.example D/Surface: Surface::disconnect(this=0x7f7107ac00,api=1) 
09-19 21:35:22.413 30868-30958/com.ngs.example D/GraphicBuffer: unregister, handle(0x7f7f043c20) (w:720 h:1280 s:720 f:0x1 u:0x000b00) 
09-19 21:35:22.415 30868-30958/com.ngs.example I/[MALI][Gralloc]: [-]r_hnd(0x7f7f043c20), client(35), share_fd(41) 
09-19 21:35:22.415 30868-30958/com.ngs.example D/GraphicBuffer: unregister, handle(0x7f72386d60) (w:720 h:1280 s:720 f:0x1 u:0x000b00) 
09-19 21:35:22.418 30868-30958/com.ngs.example I/[MALI][Gralloc]: [-]r_hnd(0x7f72386d60), client(35), share_fd(42) 
09-19 21:35:22.419 30868-30958/com.ngs.example D/GraphicBuffer: unregister, handle(0x7f72386400) (w:720 h:1280 s:720 f:0x1 u:0x000b00) 
09-19 21:35:22.421 30868-30958/com.ngs.example I/[MALI][Gralloc]: [-]r_hnd(0x7f72386400), client(35), share_fd(56) 
09-19 21:35:22.422 30868-30958/com.ngs.example D/GraphicBuffer: unregister, handle(0x7f7f044300) (w:720 h:1280 s:720 f:0x1 u:0x000b00) 
09-19 21:35:22.424 30868-30958/com.ngs.example I/[MALI][Gralloc]: [-]r_hnd(0x7f7f044300), client(35), share_fd(55) 
09-19 21:35:22.424 30868-30958/com.ngs.example D/Surface: Surface::disconnect(this=0x7f7107ac00,api=1) 
09-19 21:35:22.454 30868-30958/com.ngs.example D/OpenGLRenderer: Destroyed EGL context (0x7f82d85800) 
09-19 21:35:22.457 30868-30958/com.ngs.example D/OpenGLRenderer: Terminated EGL display (0x1) 

The CropImage lib example I used.

+0

請編輯您的問題提供了[MCVE。這將包括[與您的崩潰相關的完整的Java堆棧跟蹤](https://stackoverflow.com/questions/23353173/unwanted-myapp-has-stopped-how-can-i-solve-this)以及所有相關的源代碼綁定到發生崩潰的地方。 – CommonsWare

+0

當照相機意圖啓動或Gallery意圖啓動時,應用程序關閉 –

+0

然後顯示這些意圖的代碼。 – greenapps

回答

相關問題