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

Crash in Search: ClassCastException SwordDictionary as SwordBook #3189

Closed
tuomas2 opened this issue Feb 1, 2024 · 5 comments
Closed

Crash in Search: ClassCastException SwordDictionary as SwordBook #3189

tuomas2 opened this issue Feb 1, 2024 · 5 comments

Comments

@tuomas2
Copy link
Contributor

tuomas2 commented Feb 1, 2024

Trying to get Strongs numbers cross references within text.

https://support.andbible.org/scp/tickets.php?id=2632
https://support.andbible.org/scp/tickets.php?id=2432

Device info:
App id: net.bible.android.activity
Version: 5.0.794#c119a7cc9 googleplay standard release (built 18/01/24 19:15:48)
Android version: 14
Android SDK version: 34
Manufacturer: samsung
Model: SM-A336B
Storage Mb free: 51977
WebView version: 120.0.6099.231
SQLITE version: 3.42.0
Used heap memory in Mb: 57
Max heap memory in Mb: 256

Exception:
java.lang.RuntimeException: Unable to start activity ComponentInfo{net.bible.android.activity/net.bible.android.view.activity.search.Search}: java.lang.ClassCastException: org.crosswire.jsword.book.sword.SwordDictionary cannot be cast to org.crosswire.jsword.book.sword.SwordBook
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4164)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8893)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Caused by: java.lang.ClassCastException: org.crosswire.jsword.book.sword.SwordDictionary cannot be cast to org.crosswire.jsword.book.sword.SwordBook
at net.bible.android.view.activity.search.Search.getDocumentToSearch(Search.kt:67)
at net.bible.android.view.activity.search.Search.onCreate(Search.kt:112)
at android.app.Activity.performCreate(Activity.java:8944)
at android.app.Activity.performCreate(Activity.java:8913)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1456)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4146)
... 12 more

@tuomas2
Copy link
Contributor Author

tuomas2 commented Mar 16, 2024

@tuomas2
Copy link
Contributor Author

tuomas2 commented May 25, 2024

@tuomas2
Copy link
Contributor Author

tuomas2 commented Aug 29, 2024

@tuomas2
Copy link
Contributor Author

tuomas2 commented Aug 29, 2024

LinkControl (Searching strong:h03069 in ABP, i.e. "Search all occurrenses") (needIndex: no) -> SearchResults -> fetchSearchResults -> SearchIndex.

It comes this way to SearchIndex and indexes (or tries to) dictionary, which is not implemented (properly) and then searching crashes.

@tuomas2
Copy link
Contributor Author

tuomas2 commented Sep 5, 2024

If I remove module that was used earlier as bible in links document, it gives window "Create index for null?" - but it does not go there this way (it goes directly from LinkControl)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Closed
Development

No branches or pull requests

1 participant