Skip to content

🐛 [firestore] "Windows cannot access the file for one of the following reasons" bug #12150

@P-ro-VL

Description

@P-ro-VL

Bug report

Describe the bug
I'm currently using flutterfire firestore to make an Windows app. I have successfully built my app and distributed to some users.
However, some of my users reported that the application didn't open up when they double-clicking on it. I dived in the crash log in Event Viewer and saw the following crash report:

Click To Expand
Windows cannot access the file  for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program SITDE PK because of this error.

Program: SITDE PK
File: 

The error value is listed in the Additional Data section.
User Action
1. Open the file again. This situation might be a temporary problem that corrects itself when the program runs again.
2. If the file still cannot be accessed and
	- It is on the network, your network administrator should verify that there is not a problem with the network and that the server can be contacted.
	- It is on a removable disk, for example, a floppy disk or CD-ROM, verify that the disk is fully inserted into the computer.
3. Check and repair the file system by running CHKDSK. To run CHKDSK, click Start, click Run, type CMD, and then click OK. At the command prompt, type CHKDSK /F, and then press ENTER.
4. If the problem persists, restore the file from a backup copy.
5. Determine whether other files on the same disk can be opened. If not, the disk might be damaged. If it is a hard disk, contact your administrator or computer hardware vendor for further assistance.

Additional Data
Error value: 00000000
Disk type: 0

I tried to delete "firestore" folder in AppData > Local directory, and re-opened the app, and it opened up normally. But when i closed the app and tried to open it again, it continued crashing with the same crash report.

Because flutterfire firestore is not yet support Windows platforms with flutterfire configure, so i use web platform configuration for FirebaseOptions parameter in Firebase.initializeApp. Is this the reason why the above bug appears? If not, what causes it?

Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
[√] Flutter (Channel master, 3.16.0-20.0.pre.8, on Microsoft Windows [Version 10.0.22631.2861], locale en-150)
    • Flutter version 3.16.0-20.0.pre.8 on channel master at D:\Flutter SDK\flutter
    • Upstream repository [https://github.com/flutter/flutter.git](https://l.facebook.com/l.php?u=https%3A%2F%2Fgithub.com%2Fflutter%2Fflutter.git%3Ffbclid%3DIwAR3EJQCn2iEPoQdTQoeW6sFxhNQ4zavQpdJlxobdBHoC0PoQMWujZusuMo0&h=AT3W6zFxnm21bVvWkp3Mrvv6cwgydwpBne1izgneJ1uFPGG3FxmdHXwEwiJDmCsp-eBz35oTmxOcHHuDlB6VQlwrce02ecaxCx0U4PqslVrxPGXqmCpHLXhteCt_sEzME66VCBPEF2zwdDFWflKwYmkaqy4)
    • Framework revision deeb6a2dfe (2 months ago), 2023-10-30 23:04:25 -0400
    • Engine revision 17eff7ab62
    • Dart version 3.3.0 (build 3.3.0-79.0.dev)
    • DevTools version 2.28.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at C:\Users\FPTSHOP\AppData\Local\Android\Sdk
    • Platform android-33, build-tools 33.0.1
    • ANDROID_HOME = C:\Users\FPTSHOP\AppData\Local\Android\Sdk
    • Java binary at: D:\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)     
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.5.3)
    • Visual Studio at D:\Visual Studio\Studio
    • Visual Studio Community 2022 version 17.5.33516.290
    • Windows 10 SDK version 10.0.22000.0

[√] Android Studio (version 2022.3)
    • Android Studio at D:\Android Studio
    • Flutter plugin can be installed from:
       [https://plugins.jetbrains.com/plugin/9212-flutter](https://plugins.jetbrains.com/plugin/9212-flutter?fbclid=IwAR36RSo9q9JOO5MrpF3ALerZcrkZWDNatXjUsqGlsK6w8vmjAHCYY5o-GS0)
    • Dart plugin can be installed from:
       [https://plugins.jetbrains.com/plugin/6351-dart](https://l.facebook.com/l.php?u=https%3A%2F%2Fplugins.jetbrains.com%2Fplugin%2F6351-dart%3Ffbclid%3DIwAR1kxAZk_qp1o2X62tLAmMQJmiay8I26tKmEdRTrX2GdQL4jChDfo6AGr68&h=AT3W6zFxnm21bVvWkp3Mrvv6cwgydwpBne1izgneJ1uFPGG3FxmdHXwEwiJDmCsp-eBz35oTmxOcHHuDlB6VQlwrce02ecaxCx0U4PqslVrxPGXqmCpHLXhteCt_sEzME66VCBPEF2zwdDFWflKwYmkaqy4)
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] IntelliJ IDEA Community Edition (version 2023.1)
    • IntelliJ at D:\IntelliJ 2.0\IntelliJ IDEA Community Edition 2023.1
    • Flutter plugin can be installed from:
       [https://plugins.jetbrains.com/plugin/9212-flutter](https://plugins.jetbrains.com/plugin/9212-flutter?fbclid=IwAR2ufZ6edO1VvqbC7aX8jZBjr9FgioSU9eBmvftgCb9hUf6D1HUgGnOtppw)
    • Dart plugin can be installed from:
       [https://plugins.jetbrains.com/plugin/6351-dart](https://plugins.jetbrains.com/plugin/6351-dart?fbclid=IwAR0BXT0U2GubZ1NpbSEOrHJB4G1xn1aT-sY9wrdAqttfX0yAzlb4VahhAKk)

[√] IntelliJ IDEA Ultimate Edition (version 2023.2)
    • IntelliJ at D:\IntelliJ Pro\IntelliJ IDEA 2023.2.2
    • Flutter plugin version 75.1.4
    • Dart plugin version 232.9559.10

[√] Connected device (2 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.2861]
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 120.0.2210.121

[√] Network resources
    • All expected network resources are available.

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand
Dart SDK 3.2.3
Flutter SDK 3.16.5
sitde_pk 4.0.5

dependencies:
- carousel_slider 4.2.1 [flutter]
- cloud_firestore 4.12.1 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- cupertino_icons 1.0.6
- dio 5.3.3 [async http_parser meta path]
- firebase_auth 4.12.0 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 2.20.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math web sky_engine]
- flutter_highlighter 0.1.1 [flutter highlighter]
- flutter_switch 0.3.2 [flutter]
- gradient_borders 1.0.0 [flutter]
- intl 0.18.1 [clock meta path]
- package_info_plus 4.2.0 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface win32]
- updat 1.3.1 [flutter path path_provider pub_semver url_launcher http flutter_markdown window_manager archive universal_io]
- url_launcher 6.2.1 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- window_manager 0.3.7 [flutter path screen_retriever]
- yaml 3.1.2 [collection source_span string_scanner]

dev dependencies:
- flutter_lints 3.0.0 [lints]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math async boolean_selector characters collection material_color_utilities meta source_span stream_channel string_scanner term_glyph web]

transitive dependencies:
- _flutterfire_internals 1.3.10 [collection firebase_core firebase_core_platform_interface flutter meta]
- archive 3.4.6 [crypto path pointycastle]
- args 2.4.2
- async 2.11.0 [collection meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- characters 1.3.0
- clock 1.1.1
- cloud_firestore_platform_interface 6.0.2 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 3.8.2 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
- collection 1.18.0
- convert 3.1.1 [typed_data]
- crypto 3.0.3 [typed_data]
- fake_async 1.3.1 [clock collection]
- ffi 2.1.0
- firebase_auth_platform_interface 7.0.2 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 5.8.5 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser js meta]
- firebase_core_platform_interface 5.0.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.8.1 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- flutter_markdown 0.6.18 [flutter markdown meta path]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math web]
- highlighter 0.1.1 [collection]
- http 1.1.0 [async http_parser meta]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- js 0.6.7 [meta]
- lints 3.0.0
- markdown 7.1.1 [args meta]
- matcher 0.12.16 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.5.0 [collection]
- meta 1.10.0
- package_info_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- path 1.8.3
- path_provider 2.1.1 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows]
- path_provider_android 2.2.1 [flutter path_provider_platform_interface]
- path_provider_foundation 2.3.1 [flutter path_provider_platform_interface]
- path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_platform_interface 2.1.1 [flutter platform plugin_platform_interface]
- path_provider_windows 2.2.1 [ffi flutter path path_provider_platform_interface win32]
- platform 3.1.3
- plugin_platform_interface 2.1.6 [meta]
- pointycastle 3.7.3 [collection convert js]
- pub_semver 2.1.4 [collection meta]
- screen_retriever 0.1.9 [flutter]
- sky_engine 0.0.99
- source_span 1.10.0 [collection path term_glyph]
- stack_trace 1.11.1 [path]
- stream_channel 2.1.2 [async]
- string_scanner 1.2.0 [source_span]
- term_glyph 1.2.1
- test_api 0.6.1 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- typed_data 1.3.2 [collection]
- universal_io 2.2.2 [collection meta typed_data]
- url_launcher_android 6.2.0 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.2.0 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.1.0 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.1.0 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.2.0 [flutter plugin_platform_interface]
- url_launcher_web 2.2.0 [flutter flutter_web_plugins url_launcher_platform_interface]
- url_launcher_windows 3.1.0 [flutter url_launcher_platform_interface]
- vector_math 2.1.4
- web 0.3.0
- win32 5.0.9 [ffi]
- xdg_directories 1.0.3 [meta path]

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleIssue with no recent activityblocked: customer-responseWaiting for customer response, e.g. more information was requested.closed-by-botresolution: needs-reproThis issue could not be reproduced or needs an up to date reproduction on latest FlutterFire plugin.triageIssue is currently being triaged.type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions