App crashed when trying to import a movie long duration.

in #utopian-io6 years ago

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

RECORDING BUG

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)```
Sort:  

Hello @dzami, Nice catch here, thank you for reporting the issue, you need to improve on your grammar constructions, your contribution is not formatted professional.

Anyways your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Hey @dzami
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!