-
-
Notifications
You must be signed in to change notification settings - Fork 921
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
[Bug]: package_info_plus not working in Windows release build when run from network location #1483
Comments
I have the same issue, any news? |
I found the problem: final info = _FileVersionInfo(Platform.resolvedExecutable); The Platform.resolvedExecutable if the path is a network location that should return for example:
Instead it returns:
Replacing "UNC" to "\" will solve the issue, but someone with better knowledge should look into it! |
I think this is a bug in the Dart SDK. I believe this is intended to convert Looks like @bkonyi and @aam last touched this code on the Dart VM side. Edit: changed example from |
Not sure where |
@aam I filed dart-lang/sdk#52309 to try and add a little more detail.
|
Platform
Windows 10
Plugin
package_info_plus
Version
3.0.2
Flutter SDK
3.7.0
Steps to reproduce
plus_plugins\packages\package_info_plus\package_info_plus\example
withflutter build windows --release
build\windows\runner\Release
to a local drive (e.g.C:\test
) -> works finebuild\windows\runner\Release
to a network drive (e.g.\\COMPANY-PROFILE\Dekstop
) -> does not workThe following screenshot shows the actual result. The left app was run from the
![https://i.imgur.com/YGnJDUN.png](https://camo.githubusercontent.com/a8818c172d36b25b55308349e7c1bc788a1f7652e28d954a00c24a5f36b11c51/68747470733a2f2f692e696d6775722e636f6d2f59476e4a44554e2e706e67)
C:\
drive and the right one was run from a network location. Both use the same files from the same build.When adding the plugin to my own app, I originally did not wrap the calls in try/catch, which yielded me the following exception when running from a network drive:
Error 0x8007007a: Der an einen Systemaufruf übergebene Datenbereich ist zu klein.
I can't change the language of the network drive but googling it and changing the language on the Microsoft page gives me "The data area passed to a system call is too small", which sounds about right.Code Sample
No response
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: