質問編集履歴

1

ログの追加

2017/09/26 07:40

投稿

fm311_engineer
fm311_engineer

スコア7

test CHANGED
File without changes
test CHANGED
@@ -29,3 +29,149 @@
29
29
  ```
30
30
 
31
31
  で受け取っているのですが、できれば範囲を狭くといいますか…、細かく指定したいです。
32
+
33
+
34
+
35
+ ログを追記します。
36
+
37
+ ```ログ(赤文字)
38
+
39
+ 09-26 16:21:39.588 21464-21728/com.sample.teratest E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
40
+
41
+ Process: com.sample.teratest, PID: 21464
42
+
43
+ java.lang.RuntimeException: An error occurred while executing doInBackground()
44
+
45
+ at android.os.AsyncTask$3.done(AsyncTask.java:309)
46
+
47
+ at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
48
+
49
+ at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
50
+
51
+ at java.util.concurrent.FutureTask.run(FutureTask.java:242)
52
+
53
+ at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
54
+
55
+ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
56
+
57
+ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
58
+
59
+ at java.lang.Thread.run(Thread.java:818)
60
+
61
+ Caused by: java.lang.OutOfMemoryError: Failed to allocate a 518412 byte allocation with 409320 free bytes and 399KB until OOM
62
+
63
+ at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
64
+
65
+ at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
66
+
67
+ at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:635)
68
+
69
+ at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:611)
70
+
71
+ at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:649)
72
+
73
+ at com.sample.teratest.AsyncTaskHttpRequest.doInBackground(AsyncTaskHttpRequest.java:44)
74
+
75
+ at com.sample.teratest.AsyncTaskHttpRequest.doInBackground(AsyncTaskHttpRequest.java:21)
76
+
77
+ at android.os.AsyncTask$2.call(AsyncTask.java:295)
78
+
79
+ at java.util.concurrent.FutureTask.run(FutureTask.java:237)
80
+
81
+ at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 
82
+
83
+ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
84
+
85
+ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
86
+
87
+ at java.lang.Thread.run(Thread.java:818) 
88
+
89
+ ```
90
+
91
+ ```ログ
92
+
93
+
94
+
95
+ 09-26 16:21:40.020 21464-21730/com.sample.teratest I/art: Alloc concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 0% free, 191MB/192MB, paused 563us total 48.241ms
96
+
97
+ 09-26 16:21:40.020 21464-21464/com.sample.teratest I/art: WaitForGcToComplete blocked for 43.241ms for cause Alloc
98
+
99
+ 09-26 16:21:40.020 21464-21464/com.sample.teratest I/art: Starting a blocking GC Alloc
100
+
101
+ 09-26 16:21:40.065 21464-21730/com.sample.teratest W/art: Suspending all threads took: 36.464ms
102
+
103
+ 09-26 16:21:40.067 21464-21464/com.sample.teratest I/art: Clamp target GC heap from 207MB to 192MB
104
+
105
+ 09-26 16:21:40.067 21464-21464/com.sample.teratest I/art: Alloc concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 0% free, 191MB/192MB, paused 500us total 45.333ms
106
+
107
+ 09-26 16:21:40.068 21464-21464/com.sample.teratest W/art: Throwing OutOfMemoryError "Failed to allocate a 518412 byte allocation with 386344 free bytes and 377KB until OOM"
108
+
109
+ 09-26 16:21:40.068 21464-21464/com.sample.teratest I/art: Starting a blocking GC Alloc
110
+
111
+ 09-26 16:21:40.069 21464-21464/com.sample.teratest I/art: Starting a blocking GC Alloc
112
+
113
+ 09-26 16:21:40.071 21464-21730/com.sample.teratest I/art: Forcing collection of SoftReferences for 506KB allocation
114
+
115
+ 09-26 16:21:40.071 21464-21730/com.sample.teratest I/art: Waiting for a blocking GC Alloc
116
+
117
+ 09-26 16:21:40.073 21464-21730/com.sample.teratest I/art: Starting a blocking GC Alloc
118
+
119
+ 09-26 16:21:40.076 21464-21464/com.sample.teratest I/art: Waiting for a blocking GC Alloc
120
+
121
+ 09-26 16:21:40.146 21464-21730/com.sample.teratest I/art: Clamp target GC heap from 207MB to 192MB
122
+
123
+ 09-26 16:21:40.146 21464-21730/com.sample.teratest I/art: Alloc concurrent mark sweep GC freed 4(128B) AllocSpace objects, 0(0B) LOS objects, 0% free, 191MB/192MB, paused 2.941ms total 72.499ms
124
+
125
+ 09-26 16:21:40.146 21464-21464/com.sample.teratest I/art: WaitForGcToComplete blocked for 70.111ms for cause Alloc
126
+
127
+ 09-26 16:21:40.146 21464-21464/com.sample.teratest I/art: Starting a blocking GC Alloc
128
+
129
+ 09-26 16:21:40.191 21464-21730/com.sample.teratest W/art: Suspending all threads took: 37.242ms
130
+
131
+ 09-26 16:21:40.196 21464-21464/com.sample.teratest I/art: Clamp target GC heap from 207MB to 192MB
132
+
133
+ 09-26 16:21:40.196 21464-21464/com.sample.teratest I/art: Alloc partial concurrent mark sweep GC freed 2(64B) AllocSpace objects, 0(0B) LOS objects, 0% free, 191MB/192MB, paused 561us total 44.993ms
134
+
135
+ 09-26 16:21:40.197 21464-21730/com.sample.teratest W/art: Throwing OutOfMemoryError "Failed to allocate a 518412 byte allocation with 386312 free bytes and 377KB until OOM"
136
+
137
+ 09-26 16:21:40.200 21464-21464/com.sample.teratest I/art: Starting a blocking GC Alloc
138
+
139
+ 09-26 16:21:40.202 21464-21730/com.sample.teratest I/art: Waiting for a blocking GC Alloc
140
+
141
+ 09-26 16:21:40.245 21464-21464/com.sample.teratest I/art: Clamp target GC heap from 207MB to 192MB
142
+
143
+ 09-26 16:21:40.245 21464-21464/com.sample.teratest I/art: Alloc concurrent mark sweep GC freed 3(96B) AllocSpace objects, 0(0B) LOS objects, 0% free, 191MB/192MB, paused 565us total 44.183ms
144
+
145
+ 09-26 16:21:40.246 21464-21730/com.sample.teratest I/art: WaitForGcToComplete blocked for 44.864ms for cause Alloc
146
+
147
+ 09-26 16:21:40.246 21464-21730/com.sample.teratest I/art: Starting a blocking GC Alloc
148
+
149
+ 09-26 16:21:40.247 21464-21730/com.sample.teratest I/art: Starting a blocking GC Alloc
150
+
151
+ 09-26 16:21:40.249 21464-21464/com.sample.teratest I/art: Forcing collection of SoftReferences for 506KB allocation
152
+
153
+ 09-26 16:21:40.249 21464-21464/com.sample.teratest I/art: Waiting for a blocking GC Alloc
154
+
155
+ 09-26 16:21:40.254 21464-21730/com.sample.teratest I/art: Alloc sticky concurrent mark sweep GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 0% free, 191MB/192MB, paused 619us total 7.366ms
156
+
157
+ 09-26 16:21:40.254 21464-21464/com.sample.teratest I/art: WaitForGcToComplete blocked for 5.086ms for cause Alloc
158
+
159
+ 09-26 16:21:40.254 21464-21464/com.sample.teratest I/art: Starting a blocking GC Alloc
160
+
161
+ 09-26 16:21:40.295 21464-21730/com.sample.teratest W/art: Suspending all threads took: 36.857ms
162
+
163
+ 09-26 16:21:40.299 21464-21464/com.sample.teratest I/art: Clamp target GC heap from 207MB to 192MB
164
+
165
+ 09-26 16:21:40.299 21464-21464/com.sample.teratest I/art: Alloc concurrent mark sweep GC freed 9(544B) AllocSpace objects, 0(0B) LOS objects, 0% free, 191MB/192MB, paused 3.201ms total 44.447ms
166
+
167
+ 09-26 16:21:40.299 21464-21730/com.sample.teratest I/art: Waiting for a blocking GC Alloc
168
+
169
+ 09-26 16:21:40.301 21464-21730/com.sample.teratest I/art: Starting a blocking GC Alloc
170
+
171
+ 09-26 16:21:40.302 21464-21464/com.sample.teratest W/art: Throwing OutOfMemoryError "Failed to allocate a 518412 byte allocation with 386536 free bytes and 377KB until OOM"
172
+
173
+ 09-26 16:21:40.303 21464-21464/com.sample.teratest D/AndroidRuntime: Shutting down VM
174
+
175
+ 09-26 16:21:40.303 21464-21464/com.sample.teratest I/Process: Sending signal. PID: 21464 SIG: 9
176
+
177
+ ```