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 when searching for "henchmen" #35

caarmen opened this issue Oct 29, 2016 · 0 comments


Copy link

commented Oct 29, 2016

Steps to reproduce:

  • In the settings, enable "Show all rhymes"
  • Search for "henchmen" or "me".
    • The app crashes

Reason: there is a huge number (12000+) of words matching "henchmen", and we try to do a single query trying to find out which ones have definitions or not.
Solution: split this single query into smaller queries and aggregate the results.

java.lang.RuntimeException: An error occurred while executing doInBackground()
    at java.util.concurrent.FutureTask.finishCompletion(
    at java.util.concurrent.FutureTask.setException(
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$
Caused by: android.database.sqlite.SQLiteException: too many SQL variables (code 1): , while compiling: SELECT word FROM word_variants WHERE word in (?,?,...?,?,?,?) AND has_definition=1
    at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
    at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(
    at android.database.sqlite.SQLiteConnection.prepare(
    at android.database.sqlite.SQLiteSession.prepare(
    at android.database.sqlite.SQLiteProgram.<init>(
    at android.database.sqlite.SQLiteQuery.<init>(
    at android.database.sqlite.SQLiteDirectCursorDriver.query(
    at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(
    at android.database.sqlite.SQLiteDatabase.queryWithFactory(
    at android.database.sqlite.SQLiteDatabase.query(
    at android.database.sqlite.SQLiteDatabase.query(

@caarmen caarmen added the bug label Oct 29, 2016

@caarmen caarmen self-assigned this Oct 29, 2016

caarmen added a commit that referenced this issue Oct 29, 2016

@caarmen caarmen closed this Oct 29, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.