2fast-team / 2fast

Two-Factor Authenticator Supporting TOTP (Windows 10 & Android, iOS, Linux and macOS App)
https://2fast-app.de
GNU General Public License v3.0
393 stars 42 forks source link

App suddenly useless #130

Open tniedermaier opened 5 months ago

tniedermaier commented 5 months ago

Describe the bug

App doesn't open anymore even if correct password is entered.

Steps to Reproduce

I installed the app around a week ago and have around 10 2FAs set up there. It worked nicely until just now. When I open the app now, and I enter the password, I receive the following error message:

Value does not fall within the expected range.

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17 at Project2FA.Services.DataService.d__70.MoveNext() + 0xb56

Then I have two options: restart app or close app. After restarting, the same happens again. Which means that effectively, I cannot use the app anymore.

App Version:

Additional context

jp-weber commented 5 months ago

If you start the file with a double click and enter the corresponding password, does this work?

For more detailed information you could post the log file AppLog.log here: C:\Users\YourUsername\AppData\Local\Packages\38343JanPhilippWeber.2fastTwoFactorAuthenticatorSu_nxr4mypqfqb9c\LocalState

tniedermaier commented 5 months ago

Hi,

Thanks for the reply. It works again now. I didn't do anything. Maybe rebooting the computer did the trick, I don't know. Anyway, I attached the log file, hope it helps to fix the bug!

Kind regards!


Von: Jan Philipp Weber @.> Gesendet: Montag, 15. April 2024 19:10 An: 2fast-team/2fast @.> Cc: tniedermaier @.>; Author @.> Betreff: Re: [2fast-team/2fast] App suddenly useless (Issue #130)

If you start the file with a double click and enter the corresponding password, does this work?

For more detailed information you could post the log file AppLog.log here: C:\Users\AppData\Local\Packages\38343JanPhilippWeber.2fastTwoFactorAuthenticatorSu_nxr4mypqfqb9c\LocalState

— Reply to this email directly, view it on GitHubhttps://github.com/2fast-team/2fast/issues/130#issuecomment-2057421078, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWNXBCXGBACMRY3SXLBBLNTY5QCZTAVCNFSM6AAAAABGGJZ7C6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJXGQZDCMBXHA. You are receiving this because you authored the thread.Message ID: @.***>

jp-weber commented 5 months ago

Hey, that's good to hear that the problem no longer exists! I suspect that it's due to a Microsoft library and the corresponding API. Could you post the contents of the log file as a comment, unfortunately the attachment didn't come with it.

Best regards

tniedermaier commented 5 months ago

Hey,

thanks for the fast reply. Here is the content of the log file:

2024-04-14 22:26:30 - - Value does not fall within the expected range. 2024-04-14 22:26:48 - - Value does not fall within the expected range. 2024-04-14 22:28:32 - - Value does not fall within the expected range. 2024-04-14 22:32:47 - - Value does not fall within the expected range. 2024-04-14 22:34:23 - - Value does not fall within the expected range. 2024-04-14 22:37:05 - - Value does not fall within the expected range. 2024-04-14 22:42:18 - - Value does not fall within the expected range.

Best regards


Von: Jan Philipp Weber @.> Gesendet: Montag, 15. April 2024 19:31 An: 2fast-team/2fast @.> Cc: tniedermaier @.>; Author @.> Betreff: Re: [2fast-team/2fast] App suddenly useless (Issue #130)

Hey, that's good to hear that the problem no longer exists! I suspect that it's due to a Microsoft library and the corresponding API. Could you post the contents of the log file as a comment, unfortunately the attachment didn't come with it.

Best regards

— Reply to this email directly, view it on GitHubhttps://github.com/2fast-team/2fast/issues/130#issuecomment-2057458045, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWNXBCVADMNC7JQRA5DIZITY5QFIZAVCNFSM6AAAAABGGJZ7C6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJXGQ2TQMBUGU. You are receiving this because you authored the thread.Message ID: @.***>

idiaz-at-luminate commented 4 months ago

Happened the same to me,

I think the app problem is it's heavy reliance into UWP or Edge caching. I'm not a developer but this is how to replicate the problem:

Hope it helps,

PS: Your app is awesome, just some hiccups you've been fixing each release.

tniedermaier commented 4 months ago

Thanks for the explanation and the info on how to solve the problem! I was not aware of that. It is quite likely that I ran Wise Disk Cleaner or CCleaner in the meantime I hope it is possible to overcome the reliance on UWP or Edge caching.


Von: idiaz-at-luminate @.> Gesendet: Montag, 29. April 2024 16:44 An: 2fast-team/2fast @.> Cc: tniedermaier @.>; Author @.> Betreff: Re: [2fast-team/2fast] App suddenly useless (Issue #130)

Happened the same to me,

I think the app problem is it's heavy reliance into UWP or Edge caching. I'm not a developer but this is how to replicate the problem:

Hope it helps,

— Reply to this email directly, view it on GitHubhttps://github.com/2fast-team/2fast/issues/130#issuecomment-2082936074, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWNXBCUSHSPV5SWRARUDKNDY7ZMDJAVCNFSM6AAAAABGGJZ7C6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBSHEZTMMBXGQ. You are receiving this because you authored the thread.Message ID: @.***>

jp-weber commented 4 months ago

Thanks for the information I will try to replicate this in a virtual machine so that I can maybe catch the error and fix it automatically.