-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] app crash when using color highlighter #710
Comments
Can you send a video recording |
Record_2025-02-12-18-37-36.mp4 |
Pretty stage. Looks like as soon as you pasted it it crashed 🤔 |
Send me that command |
edit the player client to ios and -f string of this in ytdlnis terminal |
and press run command and cancel the command then repeat as said above |
@error-reporting can't for the life of me reproduce this. 😔 |
copy and paste this command |
closing the issue because low end android 8.1 device is needed to reproduce the crash and not all commands crash the app |
I'll try to reprod again |
copy and paste this command |
This could be related to the color highlighter, probably cant keep up with changes and crashes. It will be challenging to figure out how to solve it |
the app only crash like this on android 8 |
I see |
the url color highlighter In ytdlnis is bad on oppo android 8 and i think also android 7 |
What do you think of only adding color highlighter on Android 9 and up |
only adding terminal color highlighter on Android 10 and up |
I feel this is more related to phone memory. I should add a toggle to disable it |
Interesting. Well since highlighter doesn't crash in static environments i guess it's better if i made a toggle instead of completely removing it |
⠀
⠀
Describe the bug
ytdlnis crash once every two use of extractor args and download in Terminal
Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference
android.text.SpannableStringInternal.hashCode(SpannableStringInternal.java:488)
android.text.SpannedString.hashCode(Unknown Source:0)
java.util.Objects.hashCode(Objects.java:98)
android.view.inputmethod.CursorAnchorInfo.(CursorAnchorInfo.java:435)
android.view.inputmethod.CursorAnchorInfo.(Unknown Source:0)
android.view.inputmethod.CursorAnchorInfo$Builder.build(CursorAnchorInfo.java:391)
android.widget.Editor$CursorAnchorInfoNotifier.updatePosition(Editor.java:4277)
android.widget.Editor$PositionListener.onPreDraw(Editor.java:3135)
android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:977)
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2642)
android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1601)
android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7355)
android.view.Choreographer$CallbackRecord.run(Choreographer.java:1038)
android.view.Choreographer.doCallbacks(Choreographer.java:850)
android.view.Choreographer.doFrame(Choreographer.java:766)
android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1024)
android.os.Handler.handleCallback(Handler.java:790)
android.os.Handler.dispatchMessage(Handler.java:99)
android.os.Looper.loop(Looper.java:200)
android.app.ActivityThread.main(ActivityThread.java:6971)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Expected behavior
the app and terminal work without crashing
Steps to reproduce
copy and paste this command
--write-pages
press keyboard enter key
then copy and paste this command
"https://www.youtube.com/watch?v=4fk2prKnYnI"
wait then app crash
Device information
oppo cph1853
android 8.1 stock
Screenshots / Recordings
Additional context
it crash mid editing of yt-dlp extractor args
Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference
android.text.SpannableStringInternal.hashCode(SpannableStringInternal.java:488)
android.text.SpannedString.hashCode(Unknown Source:0)
java.util.Objects.hashCode(Objects.java:98)
android.view.inputmethod.CursorAnchorInfo.(CursorAnchorInfo.java:435)
android.view.inputmethod.CursorAnchorInfo.(Unknown Source:0)
android.view.inputmethod.CursorAnchorInfo$Builder.build(CursorAnchorInfo.java:391)
android.widget.Editor$CursorAnchorInfoNotifier.updatePosition(Editor.java:4277)
android.widget.Editor$PositionListener.onPreDraw(Editor.java:3135)
android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:977)
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2642)
android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1601)
android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7355)
android.view.Choreographer$CallbackRecord.run(Choreographer.java:1038)
android.view.Choreographer.doCallbacks(Choreographer.java:850)
android.view.Choreographer.doFrame(Choreographer.java:766)
android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1024)
android.os.Handler.handleCallback(Handler.java:790)
android.os.Handler.dispatchMessage(Handler.java:99)
android.os.Looper.loop(Looper.java:200)
android.app.ActivityThread.main(ActivityThread.java:6971)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
The text was updated successfully, but these errors were encountered: