-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
【windows】open database crash #720
Comments
Thanks for the report. I you can manage to show the message where it fails (and the sql statement executed); it would help a a lot in reproducing on my side |
@alextekartik Is there any progress on this issue |
I could not manage to reproduce. What could help to try on your side:
|
thanks a lot , |
We have found the cause of this problem because. Wal. SHM and. DB files are out of sync. Our usage scenario will dynamically replace dB. However, the two runtime intermediate files. Wal and. SHM are not replaced synchronously. |
The following error occurs occasionally when opening dB on windows. However, it can be accessed by changing the external SQLite tool of DB
══╡ EXCEPTION CAUGHT BY FLUTTER FRAMEWORK ╞══════════════════════
The following _CastError was thrown:
type 'Null' is not a subtype of type 'String' in type cast
When the exception was thrown, this was the stack:
#0 SqfliteIsolate.handle (package:sqflite_common_ffi/src/isolate.dart:41:33)
#1 FfiMethodCallHandler._isolateHandle (package:sqflite_common_ffi/src/database_factory_ffi.dart:95:12)
#2 FfiMethodCallHandler.handleInIsolate (package:sqflite_common_ffi/src/database_factory_ffi.dart:51:20)
#3 _SqfliteDatabaseFactoryImpl.invokeMethod (package:sqflite_common/src/mixin/factory.dart:20:8)
#4 SqfliteDatabaseMixin.openDatabase (package:sqflite_common/src/database_mixin.dart:556:9)
#5 SqfliteDatabaseMixin.doOpen (package:sqflite_common/src/database_mixin.dart:649:22)
#6 SqfliteDatabaseOpenHelper.openDatabase (package:sqflite_common/src/database.dart:44:7)
#7 SqfliteDatabaseFactoryMixin.openDatabase. (package:sqflite_common/src/factory_mixin.dart:111:18)
#8 ReentrantLock.synchronized. (package:synchronized/src/reentrant_lock.dart:37:18)
#9 BasicLock.synchronized (package:synchronized/src/basic_lock.dart:33:16)
#10 queryAllUser_labelid (package:wxwork_helper/demo/MainViewPage/Tool/MessageQueryDBTool.dart:247:19)
═════════════════════════════════════════════════════════════════
The text was updated successfully, but these errors were encountered: