PS C:\Users\journey\powersync\powersync.dart\demos\supabase-todolist> flutter run Downloading Web SDK... 6.2s Downloading windows-x64-debug/windows-x64-flutter tools... 6.1s Downloading windows-x64/flutter-cpp-client-wrapper tools... 82ms Downloading windows-x64-profile/windows-x64-flutter tools... 4.6s Downloading windows-x64-release/windows-x64-flutter tools... 5.8s Connected devices: Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.3958] Chrome (web) • chrome • web-javascript • Google Chrome 127.0.6533.73 Edge (web) • edge • web-javascript • Microsoft Edge 127.0.2651.74 [1]: Windows (windows) [2]: Chrome (chrome) [3]: Edge (edge) Please choose one (or "q" to quit): 1 Launching lib\main.dart on Windows in debug mode... windows/runner/flutter_window.cpp does not ensure the show window callback is called, updating. windows/flutter/CMakeLists.txt does not use FLUTTER_TARGET_PLATFORM, updating. Building Windows application... 57.8s √ Built build\windows\x64\runner\Debug\powersync_flutter_demo.exe flutter: ***** Supabase init completed Instance of 'Supabase' flutter: ***** SupabaseDeepLinkingMixin startAuthObserver flutter: **** onAuthStateChange: AuthChangeEvent.initialSession Syncing files to device Windows... 198ms Flutter run key commands. r Hot reload. R Hot restart. h List all available interactive commands. d Detach (terminate "flutter run" but leave application running). c Clear the screen q Quit (terminate the application on the device). A Dart VM Service on Windows is available at: http://127.0.0.1:51366/dpMCfgKVUK0=/ The Flutter DevTools debugger and profiler on Windows is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:51366/dpMCfgKVUK0=/ flutter: **** onAuthStateChange: AuthChangeEvent.signedIn flutter: {"access_token":"eyJhbGciOiJIUzI1NiIsImtpZCI6IjdhbTVqbi8xQVNUcEZNb0giLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL2pqcXF3ZHFpZ3VodmlvdnNibGVrLnN1cGFiYXNlLmNvL2F1dGgvdjEiLCJzdWIiOiI2N2ViNTE2YS0yZDRhLTQ5MmEtYmE3ZS0yZjc0Y2JiYzgyYTAiLCJhdWQiOiJhdXRoZW50aWNhdGVkIiwiZXhwIjoxNzIyMzY2ODc4LCJpYXQiOjE3MjIzNjMyNzgsImVtYWlsIjoia29iaWVAcG93ZXJzeW5jLmNvbSIsInBob25lIjoiIiwiYXBwX21ldGFkYXRhIjp7InByb3ZpZGVyIjoiZW1haWwiLCJwcm92aWRlcnMiOlsiZW1haWwiXX0sInVzZXJfbWV0YWRhdGEiOnt9LCJyb2xlIjoiYXV0aGVudGljYXRlZCIsImFhbCI6ImFhbDEiLCJhbXIiOlt7Im1ldGhvZCI6InBhc3N3b3JkIiwidGltZXN0YW1wIjoxNzIyMzYzMjc4fV0sInNlc3Npb25faWQiOiJkYzY2NTk0ZC1iMWIzLTQ5ODAtOGQ5NC01ZWY4Nzc5NWVkODUiLCJpc19hbm9ueW1vdXMiOmZhbHNlfQ.ytO3kLIF4tVfzfv9K2Vm65ZQmSUpETWUlLSEKjzlq8k","expires_in":3600,"expires_at":1722366878,"refresh_token":"w7yRArU7oLnzIjVDXK8aSQ","token_type":"bearer","provider_token":null,"provider_refresh_token":null,"user":{"id":"67eb516a-2d4a-492a-ba7e-2f74cbbc82a0","app_metadata":{"provider":"email","providers":["email"]},"user_metadata":{},"aud":"authenticated","confirmation_sent_at":null,"recovery_sent_at":null,"email_change_sent_at":null,"new_email":null,"invited_at":null,"action_link":null,"email":"kobie@powersync.com","phone":"","created_at":"2024-05-01T18:24:07.936959Z","confirmed_at":"2024-05-01T18:24:07.947787Z","email_confirmed_at":"2024-05-01T18:24:07.947787Z","phone_confirmed_at":null,"last_sign_in_at":"2024-07-30T18:14:38.074185483Z","role":"authenticated","updated_at":"2024-07-30T18:14:38.09959Z","identities":[{"id":"67eb516a-2d4a-492a-ba7e-2f74cbbc82a0","user_id":"67eb516a-2d4a-492a-ba7e-2f74cbbc82a0","identity_data":{"email":"kobie@powersync.com","email_verified":false,"phone_verified":false,"sub":"67eb516a-2d4a-492a-ba7e-2f74cbbc82a0"},"identity_id":"86f3980a-371d-4a97-915b-437829e4d224","provider":"email","created_at":"2024-05-01T18:24:07.943041Z","last_sign_in_at":"2024-05-01T18:24:07.942987Z","updated_at":"2024-05-01T18:24:07.943041Z"}],"factors":null,"is_anonymous":false}} flutter: **** onAuthStateChange: AuthChangeEvent.signedOut Lost connection to device. --------------------------------------------------------------------------------------------------------- Now turned off laptop's wifi --------------------------------------------------------------------------------------------------------- PS C:\Users\journey\powersync\powersync.dart\demos\supabase-todolist> flutter run Connected devices: Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.3958] Chrome (web) • chrome • web-javascript • Google Chrome 127.0.6533.73 Edge (web) • edge • web-javascript • Microsoft Edge 127.0.2651.74 [1]: Windows (windows) [2]: Chrome (chrome) [3]: Edge (edge) Please choose one (or "q" to quit): 1 Launching lib\main.dart on Windows in debug mode... Building Windows application... | - 12.8s √ Built build\windows\x64\runner\Debug\powersync_flutter_demo.exe [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'powersync.dll': %1 is not a valid Win32 application. (error code: 193) #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12) #2 PowerSyncOpenFactory._getDynamicLibraryForPlatform (package:powersync/src/open_factory/native/native_open_factory.dart:39:26) #3 PowerSyncOpenFactory.enableExtension (package:powersync/src/open_factory/native/native_open_factory.dart:26:24) #4 PowerSyncOpenFactory.open (package:powersync/src/open_factory/native/native_open_factory.dart:69:5) #5 _sqliteConnectionIsolate (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:267:33) #6 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:300:17) #7 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12) [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'powersync.dll': %1 is not a valid Win32 application. (error code: 193) #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12) #2 PowerSyncOpenFactory._getDynamicLibraryForPlatform (package:powersync/src/open_factory/native/native_open_factory.dart:39:26) #3 PowerSyncOpenFactory.enableExtension (package:powersync/src/open_factory/native/native_open_factory.dart:26:24) #4 PowerSyncOpenFactory.open (package:powersync/src/open_factory/native/native_open_factory.dart:69:5) #5 _sqliteConnectionIsolate (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:267:33) #6 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:300:17) #7 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12) [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'powersync.dll': %1 is not a valid Win32 application. (error code: 193) #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12) #2 PowerSyncOpenFactory._getDynamicLibraryForPlatform (package:powersync/src/open_factory/native/native_open_factory.dart:39:26) #3 PowerSyncOpenFactory.enableExtension (package:powersync/src/open_factory/native/native_open_factory.dart:26:24) #4 PowerSyncOpenFactory.open (package:powersync/src/open_factory/native/native_open_factory.dart:69:5) #5 _sqliteConnectionIsolate (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:267:33) #6 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:300:17) #7 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12) [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: IsolateError in sqlite-writer: Invalid argument(s): Failed to load dynamic library 'powersync.dll': %1 is not a valid Win32 application. (error code: 193) #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12) #2 PowerSyncOpenFactory._getDynamicLibraryForPlatform (package:powersync/src/open_factory/native/native_open_factory.dart:39:26) #3 PowerSyncOpenFactory.enableExtension (package:powersync/src/open_factory/native/native_open_factory.dart:26:24) #4 PowerSyncOpenFactory.open (package:powersync/src/open_factory/native/native_open_factory.dart:69:5) #5 _sqliteConnectionIsolate (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:267:33) #6 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:300:17) #7 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12) [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: IsolateError in sqlite-writer: Invalid argument(s): Failed to load dynamic library 'powersync.dll': %1 is not a valid Win32 application. (error code: 193) #0 ParentPortClient.post (package:sqlite_async/src/common/port_channel.dart:91:7) #1 _TransactionContext.close (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:239:21) #2 SqliteConnectionImpl.writeLock.. (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:150:21) #3 SimpleMutex.lock. (package:sqlite_async/src/native/native_isolate_mutex.dart:65:16) #4 SqliteConnectionImpl.writeLock. (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:145:14) #5 SimpleMutex.lock. (package:sqlite_async/src/native/native_isolate_mutex.dart:65:16) #6 SqliteConnectionImpl.writeLock (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:138:12) #7 PowerSyncDatabaseMixin.baseInit (package:powersync/src/database/powersync_db_mixin.dart:81:5) #8 openDatabase (package:powersync_flutter_demo/powersync.dart:162:3) #9 main (package:powersync_flutter_demo/main.dart:33:3) Syncing files to device Windows... 128ms Flutter run key commands. r Hot reload. R Hot restart. h List all available interactive commands. d Detach (terminate "flutter run" but leave application running). c Clear the screen q Quit (terminate the application on the device). A Dart VM Service on Windows is available at: http://127.0.0.1:51445/_AL6eYtCFlY=/ The Flutter DevTools debugger and profiler on Windows is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:51445/_AL6eYtCFlY=/ Performing hot reload... Reloaded 0 libraries in 177ms (compile: 21 ms, reload: 0 ms, reassemble: 35 ms). ------------------------------------------------------------------------------------------------------------------------------ Now restored wifi, note app stays in borked state ------------------------------------------------------------------------------------------------------------------------------ Performing hot restart... Restarted application in 669ms. [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'powersync.dll': %1 is not a valid Win32 application. (error code: 193) #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12) #2 PowerSyncOpenFactory._getDynamicLibraryForPlatform (package:powersync/src/open_factory/native/native_open_factory.dart:39:26) #3 PowerSyncOpenFactory.enableExtension (package:powersync/src/open_factory/native/native_open_factory.dart:26:24) #4 PowerSyncOpenFactory.open (package:powersync/src/open_factory/native/native_open_factory.dart:69:5) #5 _sqliteConnectionIsolate (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:267:33) #6 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:300:17) #7 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12) [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'powersync.dll': %1 is not a valid Win32 application. (error code: 193) #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12) #2 PowerSyncOpenFactory._getDynamicLibraryForPlatform (package:powersync/src/open_factory/native/native_open_factory.dart:39:26) #3 PowerSyncOpenFactory.enableExtension (package:powersync/src/open_factory/native/native_open_factory.dart:26:24) #4 PowerSyncOpenFactory.open (package:powersync/src/open_factory/native/native_open_factory.dart:69:5) #5 _sqliteConnectionIsolate (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:267:33) #6 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:300:17) #7 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12) [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'powersync.dll': %1 is not a valid Win32 application. (error code: 193) #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12) #2 PowerSyncOpenFactory._getDynamicLibraryForPlatform (package:powersync/src/open_factory/native/native_open_factory.dart:39:26) #3 PowerSyncOpenFactory.enableExtension (package:powersync/src/open_factory/native/native_open_factory.dart:26:24) #4 PowerSyncOpenFactory.open (package:powersync/src/open_factory/native/native_open_factory.dart:69:5) #5 _sqliteConnectionIsolate (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:267:33) #6 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:300:17) #7 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12) [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: IsolateError in sqlite-writer: Invalid argument(s): Failed to load dynamic library 'powersync.dll': %1 is not a valid Win32 application. (error code: 193) #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12) #2 PowerSyncOpenFactory._getDynamicLibraryForPlatform (package:powersync/src/open_factory/native/native_open_factory.dart:39:26) #3 PowerSyncOpenFactory.enableExtension (package:powersync/src/open_factory/native/native_open_factory.dart:26:24) #4 PowerSyncOpenFactory.open (package:powersync/src/open_factory/native/native_open_factory.dart:69:5) #5 _sqliteConnectionIsolate (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:267:33) #6 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:300:17) #7 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12) [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: IsolateError in sqlite-writer: Invalid argument(s): Failed to load dynamic library 'powersync.dll': %1 is not a valid Win32 application. (error code: 193) #0 ParentPortClient.post (package:sqlite_async/src/common/port_channel.dart:91:7) #1 _TransactionContext.close (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:239:21) #2 SqliteConnectionImpl.writeLock.. (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:150:21) #3 SimpleMutex.lock. (package:sqlite_async/src/native/native_isolate_mutex.dart:65:16) #4 SqliteConnectionImpl.writeLock. (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:145:14) #5 SimpleMutex.lock. (package:sqlite_async/src/native/native_isolate_mutex.dart:65:16) #6 SqliteConnectionImpl.writeLock (package:sqlite_async/src/native/database/native_sqlite_connection_impl.dart:138:12) #7 PowerSyncDatabaseMixin.baseInit (package:powersync/src/database/powersync_db_mixin.dart:81:5) #8 openDatabase (package:powersync_flutter_demo/powersync.dart:162:3) #9 main (package:powersync_flutter_demo/main.dart:33:3)