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

sqflite iOS can't save out of application directory #1085

Open
mrwill84 opened this issue Feb 18, 2024 · 1 comment
Open

sqflite iOS can't save out of application directory #1085

mrwill84 opened this issue Feb 18, 2024 · 1 comment

Comments

@mrwill84
Copy link

mrwill84 commented Feb 18, 2024

Hi Guys
this's the greatest sqlite lib I used in flutter . much appreciated for hard work.
I'm not sure and search all the possible on internal ,can't find the proper solution .
I'm perparing to do a database viewer in iOS, and I want to create a db file out of application . I tried to open db file ( in doc or out of doc ) it works likes charming .
but can't create in my real iOS phone ( simulation also work well )
any suggestion here ? any ideas I loves ?

Error stack :

[logging-persist] cannot open file at line 46922 of [6bf7a27121]
[logging-persist] os_unix.c:46922: (0) open(/private/var/mobile/Containers/Shared/AppGroup/1F81A1A0-68F8-4EEE-B25B-E621712F446C/File Provider Storage/test/sqlite1.db) - Undefined error: 0
error opening!: 14
Could not create database queue for path /private/var/mobile/Containers/Shared/AppGroup/1F81A1A0-68F8-4EEE-B25B-E621712F446C/File Provider Storage/test/sqlite1.db
Could not open db.
flutter: DatabaseException(open_failed /private/var/mobile/Containers/Shared/AppGroup/1F81A1A0-68F8-4EEE-B25B-E621712F446C/File Provider Storage/test/sqlite1.db)
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value
#0      DBHelper.getTbls (package:flutter_pandas/db/dbhelp.dart:77:14)
#1      Tables.build.<anonymous closure> (package:flutter_pandas/ui/Tables.dart:26:33)
#2      HomePage.build.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:flutter_pandas/ui/pages/Home.dart:136:58)
<asynchronous suspension>
@mrwill84 mrwill84 reopened this Feb 18, 2024
@alextekartik
Copy link
Contributor

You seem to have a null check error here (hard to say without seeing the code):

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value
#0      DBHelper.getTbls (package:flutter_pandas/db/dbhelp.dart:77:14)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants