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.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed #643

Open
sedrubal opened this issue Nov 8, 2019 · 6 comments
Labels
bug 🐞 A functional defect or unexpected behavior. needs info ℹ️ More information needed,

Comments

@sedrubal
Copy link
Contributor

sedrubal commented Nov 8, 2019

Describe the bug
In VGN-Network there seem to be some "broken" stations. Every time you search for a route from or to such a station, you can see the error message below. I think more and more stations have this problem... Deleting the app data fixes the problem.

Error description
android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787 SQLITE_CONSTRAINT_FOREIGNKEY)
android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:832)
android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)

Moved from schildbach/public-transport-enabler#286

To Reproduce
Steps to reproduce the behavior:

  1. Go to Search-Route-View
  2. Enter a "broken" stop
  3. See error

Expected behavior
A route should be calculated.

Screenshots
Screenshot_20191108-170222_Transportr

Versions (please complete the following information):

  • Transportr Version: 2.0.6
  • Device: OnePlus 5
  • Android Version: 9 (LineageOS 16.0)
@ialokim
Copy link
Collaborator

ialokim commented Sep 6, 2020

This might be related to #207. Does this only happen with "favorite" stations (aka having the star icon)?

@ialokim ialokim added bug 🐞 A functional defect or unexpected behavior. needs info ℹ️ More information needed, labels Sep 6, 2020
@sedrubal
Copy link
Contributor Author

To be honest, I don't know. I can't reproduce it right now...

@Altonss
Copy link
Collaborator

Altonss commented Dec 6, 2023

I couldn't reproduce this issue either, so I'll close the issue. Feel free to reopen it if it happens again, so we can investigate the bug.

@Altonss Altonss closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2023
@erebion
Copy link

erebion commented Mar 26, 2024

This issue still seems to persist.

(Funnily enough, opening this issue crashes the GitHub client I use as well, for some reason.)

@Altonss Altonss reopened this Mar 26, 2024
@Altonss
Copy link
Collaborator

Altonss commented Mar 26, 2024

This issue still seems to persist.

Is it related to favorite stations?

@erebion
Copy link

erebion commented Apr 2, 2024

Is it related to favorite stations?

Does not seem to be, no stations in the relations have been previously searched for.

It only ever happened when with specific stations, I worked around that by searching to/from nearby places instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 A functional defect or unexpected behavior. needs info ℹ️ More information needed,
Projects
None yet
Development

No branches or pull requests

4 participants