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

Crash under windows #179

Open
vd3d opened this issue Dec 15, 2023 · 2 comments
Open

Crash under windows #179

vd3d opened this issue Dec 15, 2023 · 2 comments

Comments

@vd3d
Copy link

vd3d commented Dec 15, 2023

Hi,

Under windows, I got an application crash, just after "allowing" my app to acces my account.

Unfortunately, I have no idea about how I can fix or find the issue. If necessary, I can provides a repro-case if it help.

Does someone has already encounter the issue ?

@ralphkink
Copy link

I have the same issue: Crash in the (C++) Windows Platform code in windows/runner/....exe - an abort/ignore windows pops up but it's not giving any details.

Unfortunate, as this package seems to be the best option for Google account oauth2 authentication in a flutter Windows app...

@natebgurutech
Copy link

natebgurutech commented Feb 6, 2024

I was having a crash on Windows only, I did some debugging through the C++ code using Visual Studio's debugger and found that a bug was fixed in the flutter_secure_storage package. I was able to fix it by adding this to my pubspec.yaml file to force the application to use a newer version of flutter_secure_storage and it stopped breaking.

dependency_overrides:
  # The oauth2_client library uses an old version of flutter_secure_storage
  # and it crashes on Windows when not using a later version
  flutter_secure_storage: 9.0.0

Without this override the lock file says it installs version 8.1.0

This also may be solved with a more surgical override, this override to 9.0.0 changed my lock file from

flutter_secure_storage_windows:
  . . .
  version: "2.1.1"

to

flutter_secure_storage_windows:
  . . .
  version: "3.0.0"

but I have not tested with only that override

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

3 participants