Skip to content

App crash on editing custom base URL #640

Description

@Judeisbad

Steps to reproduce

  1. Open extension settings
  2. Edit custom base URL (I changed the number suffix)

Expected behavior

The base URL should successfully change without crashing.

Actual behavior

The app crashes after saving the new custom base URL

Crash logs

App version: 1.10.0-b3 (standard, 17879ddc5a, 158, 2025-06-02T07:14:10Z)
Android version: 16 (SDK 36)
Android build ID: CPH2663_16.0.5.702(EX01)
Device brand: OnePlus
Device manufacturer: OnePlus
Device name: OP5E93L1
Device model: CPH2663
Device product name: CPH2663



java.lang.Throwable: java.lang.ClassCastException: eu.kanade.tachiyomi.widget.preference.EditTextResetPreference cannot be cast to androidx.preference.EditTextPreference
	at e.h(r8-map-id-816fe7bbb0dea225eb0259e056937b77aaa649c9c6ad1e289770e1885be92684:12)
	at e.c(r8-map-id-816fe7bbb0dea225eb0259e056937b77aaa649c9c6ad1e289770e1885be92684:1)
	at b.onPreferenceChange(r8-map-id-816fe7bbb0dea225eb0259e056937b77aaa649c9c6ad1e289770e1885be92684:5)
	at androidx.preference.Preference.callChangeListener(SourceFile:5)
	at eu.kanade.tachiyomi.ui.manga.chapter.ChaptersSortBottomSheet$$ExternalSyntheticLambda7.onClick(SourceFile:22)
	at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(SourceFile:172)
	at android.os.Handler.dispatchMessage(Handler.java:115)
	at android.os.Looper.loopOnce(Looper.java:302)
	at android.os.Looper.loop(Looper.java:412)
	at android.app.ActivityThread.main(ActivityThread.java:9998)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:613)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1074)


--------- beginning of crash
07-16 09:35:41.958  2823  2823 E AndroidRuntime: FATAL EXCEPTION: main
07-16 09:35:41.958  2823  2823 E AndroidRuntime: Process: eu.kanade.tachiyomi.yokai, PID: 2823
07-16 09:35:41.958  2823  2823 E AndroidRuntime: java.lang.ClassCastException: eu.kanade.tachiyomi.widget.preference.EditTextResetPreference cannot be cast to androidx.preference.EditTextPreference
07-16 09:35:41.958  2823  2823 E AndroidRuntime: 	at e.h(r8-map-id-5363516ff8859fdb5717eedf7c3629962c94a914cd4b850390a97dd23d9a70e3:12)
07-16 09:35:41.958  2823  2823 E AndroidRuntime: 	at e.c(r8-map-id-5363516ff8859fdb5717eedf7c3629962c94a914cd4b850390a97dd23d9a70e3:1)
07-16 09:35:41.958  2823  2823 E AndroidRuntime: 	at b.onPreferenceChange(r8-map-id-5363516ff8859fdb5717eedf7c3629962c94a914cd4b850390a97dd23d9a70e3:5)
07-16 09:35:41.958  2823  2823 E AndroidRuntime: 	at androidx.preference.Preference.callChangeListener(SourceFile:5)
07-16 09:35:41.958  2823  2823 E AndroidRuntime: 	at eu.kanade.tachiyomi.ui.manga.chapter.ChaptersSortBottomSheet$$ExternalSyntheticLambda7.onClick(SourceFile:22)
07-16 09:35:41.958  2823  2823 E AndroidRuntime: 	at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(SourceFile:172)
07-16 09:35:41.958  2823  2823 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:115)
07-16 09:35:41.958  2823  2823 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:302)
07-16 09:35:41.958  2823  2823 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:412)
07-16 09:35:41.958  2823  2823 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:9998)
07-16 09:35:41.958  2823  2823 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
07-16 09:35:41.958  2823  2823 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:613)
07-16 09:35:41.958  2823  2823 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1074)
07-16 09:35:53.930 18856 18856 E AndroidRuntime: FATAL EXCEPTION: main
07-16 09:35:53.930 18856 18856 E AndroidRuntime: Process: eu.kanade.tachiyomi.yokai, PID: 18856
07-16 09:35:53.930 18856 18856 E AndroidRuntime: java.lang.ClassCastException: eu.kanade.tachiyomi.widget.preference.EditTextResetPreference cannot be cast to androidx.preference.EditTextPreference
07-16 09:35:53.930 18856 18856 E AndroidRuntime: 	at e.h(r8-map-id-5363516ff8859fdb5717eedf7c3629962c94a914cd4b850390a97dd23d9a70e3:12)
07-16 09:35:53.930 18856 18856 E AndroidRuntime: 	at e.c(r8-map-id-5363516ff8859fdb5717eedf7c3629962c94a914cd4b850390a97dd23d9a70e3:1)
07-16 09:35:53.930 18856 18856 E AndroidRuntime: 	at b.onPreferenceChange(r8-map-id-5363516ff8859fdb5717eedf7c3629962c94a914cd4b850390a97dd23d9a70e3:5)
07-16 09:35:53.930 18856 18856 E AndroidRuntime: 	at androidx.preference.Preference.callChangeListener(SourceFile:5)
07-16 09:35:53.930 18856 18856 E AndroidRuntime: 	at eu.kanade.tachiyomi.ui.manga.chapter.ChaptersSortBottomSheet$$ExternalSyntheticLambda7.onClick(SourceFile:22)
07-16 09:35:53.930 18856 18856 E AndroidRuntime: 	at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(SourceFile:172)
07-16 09:35:53.930 18856 18856 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:115)
07-16 09:35:53.930 18856 18856 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:302)
07-16 09:35:53.930 18856 18856 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:412)
07-16 09:35:53.930 18856 18856 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:9998)
07-16 09:35:53.930 18856 18856 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
07-16 09:35:53.930 18856 18856 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:613)
07-16 09:35:53.930 18856 18856 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1074)
07-16 09:36:17.091 19215 19215 E AndroidRuntime: FATAL EXCEPTION: main
07-16 09:36:17.091 19215 19215 E AndroidRuntime: Process: eu.kanade.tachiyomi.yokai, PID: 19215
07-16 09:36:17.091 19215 19215 E AndroidRuntime: java.lang.ClassCastException: eu.kanade.tachiyomi.widget.preference.EditTextResetPreference cannot be cast to androidx.preference.EditTextPreference
07-16 09:36:17.091 19215 19215 E AndroidRuntime: 	at e.h(r8-map-id-5363516ff8859fdb5717eedf7c3629962c94a914cd4b850390a97dd23d9a70e3:12)
07-16 09:36:17.091 19215 19215 E AndroidRuntime: 	at e.c(r8-map-id-5363516ff8859fdb5717eedf7c3629962c94a914cd4b850390a97dd23d9a70e3:1)
07-16 09:36:17.091 19215 19215 E AndroidRuntime: 	at b.onPreferenceChange(r8-map-id-5363516ff8859fdb5717eedf7c3629962c94a914cd4b850390a97dd23d9a70e3:5)
07-16 09:36:17.091 19215 19215 E AndroidRuntime: 	at androidx.preference.Preference.callChangeListener(SourceFile:5)
07-16 09:36:17.091 19215 19215 E AndroidRuntime: 	at androidx.preference.ListPreferenceDialogController$$ExternalSyntheticLambda0.onClick(SourceFile:189)
07-16 09:36:17.091 19215 19215 E AndroidRuntime: 	at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(SourceFile:172)
07-16 09:36:17.091 19215 19215 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:115)
07-16 09:36:17.091 19215 19215 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:302)
07-16 09:36:17.091 19215 19215 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:412)
07-16 09:36:17.091 19215 19215 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:9998)
07-16 09:36:17.091 19215 19215 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
07-16 09:36:17.091 19215 19215 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:613)
07-16 09:36:17.091 19215 19215 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1074)
07-16 09:41:18.642 19905 19905 E AndroidRuntime: FATAL EXCEPTION: main
07-16 09:41:18.642 19905 19905 E AndroidRuntime: Process: eu.kanade.tachiyomi.yokai, PID: 19905
07-16 09:41:18.642 19905 19905 E AndroidRuntime: java.lang.ClassCastException: eu.kanade.tachiyomi.widget.preference.EditTextResetPreference cannot be cast to androidx.preference.EditTextPreference
07-16 09:41:18.642 19905 19905 E AndroidRuntime: 	at e.h(r8-map-id-816fe7bbb0dea225eb0259e056937b77aaa649c9c6ad1e289770e1885be92684:12)
07-16 09:41:18.642 19905 19905 E AndroidRuntime: 	at e.c(r8-map-id-816fe7bbb0dea225eb0259e056937b77aaa649c9c6ad1e289770e1885be92684:1)
07-16 09:41:18.642 19905 19905 E AndroidRuntime: 	at b.onPreferenceChange(r8-map-id-816fe7bbb0dea225eb0259e056937b77aaa649c9c6ad1e289770e1885be92684:5)
07-16 09:41:18.642 19905 19905 E AndroidRuntime: 	at androidx.preference.Preference.callChangeListener(SourceFile:5)
07-16 09:41:18.642 19905 19905 E AndroidRuntime: 	at eu.kanade.tachiyomi.ui.manga.chapter.ChaptersSortBottomSheet$$ExternalSyntheticLambda7.onClick(SourceFile:22)
07-16 09:41:18.642 19905 19905 E AndroidRuntime: 	at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(SourceFile:172)
07-16 09:41:18.642 19905 19905 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:115)
07-16 09:41:18.642 19905 19905 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:302)
07-16 09:41:18.642 19905 19905 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:412)
07-16 09:41:18.642 19905 19905 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:9998)
07-16 09:41:18.642 19905 19905 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
07-16 09:41:18.642 19905 19905 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:613)
07-16 09:41:18.642 19905 19905 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1074)
07-16 09:43:01.008 30601 30601 E AndroidRuntime: FATAL EXCEPTION: main
07-16 09:43:01.008 30601 30601 E AndroidRuntime: Process: eu.kanade.tachiyomi.yokai, PID: 30601
07-16 09:43:01.008 30601 30601 E AndroidRuntime: java.lang.ClassCastException: eu.kanade.tachiyomi.widget.preference.EditTextResetPreference cannot be cast to androidx.preference.EditTextPreference
07-16 09:43:01.008 30601 30601 E AndroidRuntime: 	at e.h(r8-map-id-816fe7bbb0dea225eb0259e056937b77aaa649c9c6ad1e289770e1885be92684:12)
07-16 09:43:01.008 30601 30601 E AndroidRuntime: 	at e.c(r8-map-id-816fe7bbb0dea225eb0259e056937b77aaa649c9c6ad1e289770e1885be92684:1)
07-16 09:43:01.008 30601 30601 E AndroidRuntime: 	at b.onPreferenceChange(r8-map-id-816fe7bbb0dea225eb0259e056937b77aaa649c9c6ad1e289770e1885be92684:5)
07-16 09:43:01.008 30601 30601 E AndroidRuntime: 	at androidx.preference.Preference.callChangeListener(SourceFile:5)
07-16 09:43:01.008 30601 30601 E AndroidRuntime: 	at eu.kanade.tachiyomi.ui.manga.chapter.ChaptersSortBottomSheet$$ExternalSyntheticLambda7.onClick(SourceFile:22)
07-16 09:43:01.008 30601 30601 E AndroidRuntime: 	at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(SourceFile:172)
07-16 09:43:01.008 30601 30601 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:115)
07-16 09:43:01.008 30601 30601 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:302)
07-16 09:43:01.008 30601 30601 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:412)
07-16 09:43:01.008 30601 30601 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:9998)
07-16 09:43:01.008 30601 30601 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
07-16 09:43:01.008 30601 30601 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:613)
07-16 09:43:01.008 30601 30601 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1074)
--------- beginning of main
07-16 09:44:34.048 31120 31120 E IJankManager: slideSceneEnd unknown scene 1000 mScene:-1

Yōkai version

1.10.0-b3

Android version

Android 16

Device

Oneplus Nord 4

Other details

No response

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • If this is an issue with an extension, or a request for an extension, I should be contacting the extensions repository's maintainer/support for help (Browse → Extensions → Find the extension → Settings → Tap the [<>] icon, it should redirect you to the maintainer).
  • I am reporting an issue exclusive to this fork. I have also checked that is not an issue on the main version of Mihon.
  • I have tried the troubleshooting guide.
  • I have updated the app to version 1.9.7.5.
  • I have updated all installed extensions.
  • I have filled out all of the requested information in this form.

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions