You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue contains only one bug. I will open one issue for every bug report I want to file.
Steps to reproduce the bug
Go to youtube.com/watch?v=g5ZgUIobSj0 in NewPipe
Actual behavior
After loading for a short period, an error report screen appears.
Expected behavior
The video page displays.
Logs
Exception
User Action: ui error
Request: ACRA report
Content Country: GB
Content Language: en
App Language: en_US
Service: none
Version: 0.21.9
OS: Linux Android 10 - 29
Crash log
java.lang.NumberFormatException: For input string: "61803398875"
at java.lang.Integer.parseInt(Integer.java:618)
at java.lang.Integer.parseInt(Integer.java:650)
at org.schabi.newpipe.info_list.holder.CommentsMiniInfoItemHolder$1.transformUrl(CommentsMiniInfoItemHolder.java:64)
at android.text.util.Linkify.makeUrl(Linkify.java:615)
at android.text.util.Linkify.addLinks(Linkify.java:593)
at android.text.util.Linkify.addLinks(Linkify.java:536)
at android.text.util.Linkify.addLinks(Linkify.java:469)
at android.text.util.Linkify.addLinks(Linkify.java:444)
at org.schabi.newpipe.info_list.holder.CommentsMiniInfoItemHolder.linkify(CommentsMiniInfoItemHolder.java:258)
at org.schabi.newpipe.info_list.holder.CommentsMiniInfoItemHolder.ellipsize(CommentsMiniInfoItemHolder.java:230)
at org.schabi.newpipe.info_list.holder.CommentsMiniInfoItemHolder.lambda$a9Jqshj_OD1wN932a-ym1V5C7tk(Unknown Source:0)
at org.schabi.newpipe.info_list.holder.-$$Lambda$CommentsMiniInfoItemHolder$a9Jqshj_OD1wN932a-ym1V5C7tk.run(Unknown Source:2)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:925)
The text was updated successfully, but these errors were encountered:
xxxxme
changed the title
"NumberFormatException" when loading certain YouTube videos
"NumberFormatException" when loading a certain YouTube video
Sep 6, 2021
The error is happening because the integer shown in the log is higher (much higher) than the maximum value of a Java integer (which is 2 ** 31 - 1 or 2,147,483,647). I imagine a possible fix would be using a long instead, but I haven't really seen the code.
Checklist
Steps to reproduce the bug
Actual behavior
After loading for a short period, an error report screen appears.
Expected behavior
The video page displays.
Logs
Exception
Crash log
The text was updated successfully, but these errors were encountered: