Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

db.remove() issue #70

Open
mghase opened this issue Oct 14, 2021 · 8 comments
Open

db.remove() issue #70

mghase opened this issue Oct 14, 2021 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@mghase
Copy link

mghase commented Oct 14, 2021

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Dart Version [e.g. 22]

Additional context
Add any other context about the problem here.

E/flutter (16175): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: FormatException: Unterminated string (at character 43)
E/flutter (16175): {"q":{"id":458287},"c":{"id":293251,"ad-{}
E/flutter (16175): ^

@mghase mghase added the bug Something isn't working label Oct 14, 2021
@chihung93
Copy link

I have the same problem.

@winterdl
Copy link

winterdl commented Nov 2, 2021

Flutter 2.5.2 same error, after that my db could not insert, have to delete and recreate db file.

E/flutter (11443): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: FormatException: Unexpected character (at character 58)
E/flutter (11443): {"id":"2936","path":"/d-{"i

@chihung93
Copy link

Move to Hive -> it only one way to resolve this issues

@winterdl
Copy link

winterdl commented Nov 6, 2021

I switched to sembast, but I prefer objectdb, hope you could fix the issue with db.remove

@marioreggiori
Copy link
Owner

I'm sorry for the late response.
There was a similar issue (#67) recently but unfortunately I wasn't able to trigger this exception..
Quite busy at the moment. But if someone can give some further details (few lines of code), I'd like to fix it.

@winterdl
Copy link

dart pub get
dart run

Running test01..
1
DONE
Running test02..
{
  "title": {
    "$t": "Maria: or, The Wrongs of Woman"
  },
  ....
}
1
Unhandled exception:
FormatException: Missing expected digit (at character 56)
{"title":{"$t":"Maria: or, The Wrongs of Woman"},"id":-{}
                                                       ^

I dont know with test01, I deleted the database file and create new to ensure it will be new file, the test running okay, but with the test02, it will raise exception when calling remove.

objectdbtest.zip

@Djcharles26
Copy link

Any progress here, I love this package and I dont want to change it

@Hankyaku
Copy link

Exactly the same issue. First encountered when trying to do some good UT coverage. When executing sequential tests it just dies. When deleting the file in between them, all is okay. To make it even more weird, I minimized the DB operations, did 1-2 things in a test, then I ran the tests, all green. Second run, some started failing with a similar file-level corruption.

I also like this package a lot, but I cannot use it in this current condition - unfortunately time is pressing in my case, so I'm afraid I'll need to move on, like it or not. :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants