#11
Hi Kev.

That seems to be working OK.

Thanks.
#12
Just got the app update via google play. And the App crashes on my tablet (andorid 6) on NZBGet History view directly after loading the History.

Code: Select all

[09-07 20:45:37.238 10001:10046 E/AndroidRuntime]
FATAL EXCEPTION: AsyncTask #2
Process: com.kevinforeman.nzb360, PID: 10001
Theme: themes:{}
java.lang.RuntimeException: An error occurred while executing doInBackground()
	at android.os.AsyncTask$3.done(AsyncTask.java:309)
	at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
	at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
	at java.util.concurrent.FutureTask.run(FutureTask.java:242)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
	at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.OutOfMemoryError: Failed to allocate a 44446128 byte allocation with 16777216 free bytes and 26MB until OOM
	at java.lang.StringFactory.newStringFromChars(Native Method)
	at java.lang.StringFactory.newStringFromChars(StringFactory.java:218)
	at java.lang.StringFactory.newStringFromBytes(StringFactory.java:203)
	at java.lang.StringFactory.newStringFromBytes(StringFactory.java:207)
	at okio.Buffer.readString(Buffer.kt:669)
	at okio.Buffer.readString(Buffer.kt:658)
	at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:264)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
	at okhttp3.RealCall.execute(RealCall.kt:66)
	at retrofit2.OkHttpCall.execute(OkHttpCall.java:186)
	at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall.execute(ExecutorCallAdapterFactory.java:92)
	at com.kevinforeman.nzb360.nzbgetapi.NZBGetAPINew.listgroups(NZBGetAPINew.java:288)
	at com.kevinforeman.nzb360.NZBgetView$41.doInBackground(NZBgetView.java:2837)
	at com.kevinforeman.nzb360.NZBgetView$41.doInBackground(NZBgetView.java:2825)
	at android.os.AsyncTask$2.call(AsyncTask.java:295)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	... 3 more
#13
PP23, try the very latest update.
#14
Installed new update. It doesn't crash right away anymore. But when i switch from History to Queue View it regularly (not always) crashes.
#15
Hmm, I will take a look.
#16
Can you get me the stacktrace for this new crash?
#17
That's what i'm getting:

Code: Select all

[09-07 22:03:40.934 14651:14705 E/AndroidRuntime]
FATAL EXCEPTION: AsyncTask #5
Process: com.kevinforeman.nzb360, PID: 14651
Theme: themes:{}
java.lang.RuntimeException: An error occurred while executing doInBackground()
	at android.os.AsyncTask$3.done(AsyncTask.java:309)
	at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
	at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
	at java.util.concurrent.FutureTask.run(FutureTask.java:242)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
	at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.OutOfMemoryError: Failed to allocate a 44465684 byte allocation with 16777216 free bytes and 21MB until OOM
	at java.lang.StringFactory.newStringFromChars(Native Method)
	at java.lang.StringFactory.newStringFromChars(StringFactory.java:218)
	at java.lang.StringFactory.newStringFromBytes(StringFactory.java:203)
	at java.lang.StringFactory.newStringFromBytes(StringFactory.java:207)
	at okio.Buffer.readString(Buffer.kt:669)
	at okio.Buffer.readString(Buffer.kt:658)
	at okhttp3.ResponseBody.string(ResponseBody.kt:172)
	at com.kevinforeman.nzb360.nzbgetapi.NZBGetAPINew.listgroups(NZBGetAPINew.java:290)
	at com.kevinforeman.nzb360.NZBgetView$41.doInBackground(NZBgetView.java:2838)
	at com.kevinforeman.nzb360.NZBgetView$41.doInBackground(NZBgetView.java:2826)
	at android.os.AsyncTask$2.call(AsyncTask.java:295)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	... 3 more
#18
How big is your queue?
#19
Very big. 2578 items.
#20
@Kev I am unable to connect to nzbget with the latest playstore version at all. As mentioned by another user, I am able to connect via web using the "view nzbget on web" without issue. If I open settings and press "test connection" the app just returns to home page. This is occurring on Pixel 4 running android 11.