PROJECT INFO
https://github.com/marcelgross90/Cineaste
EXPECTED BEHAVIOR
The users should be able to import a movie long duration into this app without any mess.
ACTUAL BEHAVIOR
When the users trying to import a movie long duration about an hours,then the app has stopped and getting crashed.
HOW TO REPRODUCE
●Install cineaste on playstore
●open the app and log to import button
●choose a movie with long duration
●then when processing the app getting crashed
Browser:cineaste V:2.4.0
Device: android 7.0
PROOF OF WORK DONE
https://github.com/marcelgross90/Cineaste/issues/26
Github.com/dzami
LOGCAT
Process: de.cineaste.android, PID: 29228
java.lang.OutOfMemoryError: Failed to allocate a 31500312 byte allocation with 16777216 free bytes and 27MB until OOM
at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:95)
at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:146)
at java.lang.StringBuilder.append(StringBuilder.java:216)
at de.cineaste.android.database.ImportService.readJsonFromUri(Unknown Source)
at de.cineaste.android.database.ImportService.importFiles(Unknown Source)
at de.cineaste.android.MainActivity$importMovies$1.doResume(Unknown Source)
at a.c.a.b.a.a.resume(Unknown Source)
at b.a.a.u.run(Unknown Source)
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1392)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:257)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:852)
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1681)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1636)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)```