Skip to content
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

android.runtime.JavaProxyThrowable: [System.ArgumentOutOfRangeException] on android #478

Open
Coloryr opened this issue Dec 23, 2024 · 0 comments

Comments

@Coloryr
Copy link

Coloryr commented Dec 23, 2024

18:48:03.122  I  UNHANDLED EXCEPTION:
18:48:03.126  I  Android.Runtime.JavaProxyThrowable: Exception of type 'Android.Runtime.JavaProxyThrowable' was thrown.
18:48:03.126  I  
18:48:03.126  I    --- End of managed Android.Runtime.JavaProxyThrowable stack trace ---
18:48:03.126  I  android.runtime.JavaProxyThrowable: [System.ArgumentOutOfRangeException]: Index and length must refer to a location within the string. (Parameter 'length')
18:48:03.126  I  	at System.String.ThrowSubstringArgumentOutOfRange(Unknown Source:0)
18:48:03.126  I  	at System.String.Substring(Unknown Source:0)
18:48:03.126  I  	at Avalonia.Android.Platform.Input.AvaloniaInputConnection.GetTextBeforeCursorFormatted(Unknown Source:0)
18:48:03.126  I  	at Android.Views.InputMethods.IInputConnectionInvoker.n_GetTextBeforeCursor_II(Unknown Source:0)
18:48:03.126  I  	at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPII_L(Unknown Source:0)
18:48:03.126  I  	at crc643ec2256bd5ff4bdb.AvaloniaInputConnection.n_getTextBeforeCursor(Native Method)
18:48:03.126  I  	at crc643ec2256bd5ff4bdb.AvaloniaInputConnection.getTextBeforeCursor(AvaloniaInputConnection.java:196)
18:48:03.126  I  	at com.android.internal.inputmethod.RemoteInputConnectionImpl.lambda$getTextBeforeCursor$6$com-android-internal-inputmethod-RemoteInputConnectionImpl(RemoteInputConnectionImpl.java:468)
18:48:03.126  I  	at com.android.internal.inputmethod.RemoteInputConnectionImpl$$ExternalSyntheticLambda27.get(Unknown Source:8)
18:48:03.126  I  	at com.android.internal.inputmethod.RemoteInputConnectionImpl.lambda$dispatchWithTracing$43$com-android-internal-inputmethod-RemoteInputConnectionImpl(RemoteInputConnectionImpl.java:1268)
18:48:03.126  I  	at com.android.internal.inputmethod.RemoteInputConnectionImpl$$ExternalSyntheticLambda2.run(Unknown Source:10)
18:48:03.126  I  	at android.os.Handler.handleCallback(Handler.java:942)
18:48:03.126  I  	at android.os.Handler.dispatchMessage(Handler.java:99)
18:48:03.126  I  	at android.os.Looper.loopOnce(Looper.java:210)
18:48:03.126  I  	at android.os.Looper.loop(Looper.java:299)
18:48:03.126  I  	at android.app.ActivityThread.main(ActivityThread.java:8240)
18:48:03.126  I  	at java.lang.reflect.Method.invoke(Native Method)
18:48:03.126  I  	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
18:48:03.126  I  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
18:48:03.126  I  
18:48:03.126  I    --- End of managed Android.Runtime.JavaProxyThrowable stack trace ---
18:48:03.126  I  android.runtime.JavaProxyThrowable: [System.ArgumentOutOfRangeException]: Index and length must refer to a location within the string. (Parameter 'length')
18:48:03.126  I  	at System.String.ThrowSubstringArgumentOutOfRange(Unknown Source:0)
18:48:03.126  I  	at System.String.Substring(Unknown Source:0)
18:48:03.126  I  	at Avalonia.Android.Platform.Input.AvaloniaInputConnection.GetTextBeforeCursorFormatted(Unknown Source:0)
18:48:03.126  I  	at Android.Views.InputMethods.IInputConnectionInvoker.n_GetTextBeforeCursor_II(Unknown Source:0)
18:48:03.126  I  	at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPII_L(Unknown Source:0)
18:48:03.126  I  	at crc643ec2256bd5ff4bdb.AvaloniaInputConnection.n_getTextBeforeCursor(Native Method)
18:48:03.126  I  	at crc643ec2256bd5ff4bdb.AvaloniaInputConnection.getTextBeforeCursor(AvaloniaInputConnection.java:196)
18:48:03.126  I  	at com.android.internal.inputmethod.RemoteInputConnectionImpl.lambda$getTextBeforeCursor$6$com-android-internal-inputmethod-RemoteInputConnectionImpl(RemoteInputConnectionImpl.java:468)
18:48:03.126  I  	at com.android.internal.inputmethod.RemoteInputConnectionImpl$$ExternalSyntheticLambda27.get(Unknown Source:8)
18:48:03.126  I  	at com.android.internal.inputmethod.RemoteInputConnectionImpl.lambda$dispatchWithTracing$43$com-android-internal-inputmethod-RemoteInputConnectionImpl(RemoteInputConnectionImpl.java:1268)
18:48:03.126  I  	at com.android.internal.inputmethod.RemoteInputConnectionImpl$$ExternalSyntheticLambda2.run(Unknown Source:10)
18:48:03.126  I  	at android.os.Handler.handleCallback(Handler.java:942)
18:48:03.126  I  	at android.os.Handler.dispatchMessage(Handler.java:99)
18:48:03.126  I  	at android.os.Looper.loopOnce(Looper.java:210)
18:48:03.126  I  	at android.os.Looper.loop(Looper.java:299)
18:48:03.126  I  	at android.app.ActivityThread.main(ActivityThread.java:8240)
18:48:03.126  I  	at java.lang.reflect.Method.invoke(Native Method)
18:48:03.126  I  	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
18:48:03.126  I  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
18:48:03.126  I  
18:48:03.141  I  Process is going to kill itself!
                 java.lang.Exception
                 	at android.os.Process.killProcess(Process.java:1344)
                 	at com.android.internal.os.RuntimeInit$KillApplicationHandler.uncaughtException(RuntimeInit.java:181)
                 	at mono.android.XamarinUncaughtExceptionHandler.uncaughtException(Runtime.java:54)
                 	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1073)
                 	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
                 	at java.lang.Thread.dispatchUncaughtException(Thread.java:2306)
18:48:03.141  I  Sending signal. PID: 970 SIG: 9

When click the control

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant