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
394 stars 42 forks source link

2fast freezes after creating .2fa file #71

Closed jdieStrama closed 3 months ago

jdieStrama commented 1 year ago

Describe the bug

After installing the app it freezes after creating a new .2fa file. The file itself does exist afterwards but opening the app again results in freezing.

Only a reboot of the PC fixes this issue.

The App was installed manually with these steps:

Steps to Reproduce

Steps to reproduce the behavior:

  1. Given the following environment
  2. Install the App manually (not via MS Store; it is blocked at the company)
  3. Create a new File
  4. App freezes

Expected behavior

It should not freeze after creating a new file :)

Environment

App Version(s): 1.2.6

Windows 10 Build Number:

jp-weber commented 1 year ago

Which destination did you choose for the new data file?

The application cannot, for example, access C:/ and the individual Windows directories. I have introduced a dialog for error handling in this case in 1.2.7.

jdieStrama commented 1 year ago

I've always saved the file in the user folder or in a subdirectory of it (Desktop or OneDrive for example). In some rare cases the app unfreezes. But most times it closes itself after a bit of time.

jdieStrama commented 1 year ago

Any ideas?

jp-weber commented 1 year ago

I cannot reproduce your problem. Can you install the installer from the MS Store? http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/521e8841-3aa1-48fd-9bf7-bd1e811d3fc8?P1=1687106487&P2=404&P3=2&P4=HQbD2eZ6pXQIl0A8ixpn0FgtbUvIBUOt2VAklVj3MNzqa5JzzGPfNHc7CLGiLM%2fb2QAv%2f5H9O32Ggv611NxQHw%3d%3d

jdieStrama commented 1 year ago

I cannot reproduce your problem. Can you install the installer from the MS Store? http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/521e8841-3aa1-48fd-9bf7-bd1e811d3fc8?P1=1687106487&P2=404&P3=2&P4=HQbD2eZ6pXQIl0A8ixpn0FgtbUvIBUOt2VAklVj3MNzqa5JzzGPfNHc7CLGiLM%2fb2QAv%2f5H9O32Ggv611NxQHw%3d%3d

Access Denied You don't have permission to access "http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/521e8841-3aa1-48fd-9bf7-bd1e811d3fc8?" on this server. Reference #18.8ca03717.1687159061.cedec51

jp-weber commented 1 year ago

The link is expired, I will upload the store msixpackage later because I have currently only my smartphone available.

jdieStrama commented 1 year ago

Ok. I'll fetch all files from the store via adguard und try these files with its dependencies and let you know if it works

jdieStrama commented 1 year ago

I've installed the .msixbundle file from the Store but no success. As soon as I press the button for saving the 2fa file it freezes.

jp-weber commented 1 year ago

Thank you for you feedback.

When the app crashes after the freeze, is there an error message with a description?

What I can do at this point is to create a debug version for you, which can write the error in a log, which you could then upload here.

jdieStrama commented 1 year ago

No error. The behaviour is hard to describe... The window elements (Settings, Close, minimize) still respond to your mouse but everthing else is frozen.

I've sent you an invite via Linkedin. Maybe we can exchange better there.

jp-weber commented 1 year ago

Could distribution via Intune using the Microsoft Store installation source be used as a workaround? If so, I would like to close the issue.

jdieStrama commented 1 year ago

No luck with Intune. Installation fails as well

jp-weber commented 1 year ago

I in my latest preview version I have changed the file system access query https://github.com/2fast-team/2fast/blob/master/Project2FA.Shared/Services/DataService.cs#L278.

I could imagine that this might solve the problem: https://github.com/2fast-team/2fast/releases/tag/v1.2.7-beta