beemdevelopment / Aegis

A free, secure and open source app for Android to manage your 2-step verification tokens.
https://getaegis.app
GNU General Public License v3.0
8.92k stars 375 forks source link

Login fails to open after correct password and sends user back to login page #1398

Closed Jujubash closed 2 months ago

Jujubash commented 3 months ago

Version

3.0.1

Source

F-Droid

Vault encryption

Yes

Device

Pixel 6a

Android version

Android 14

ROM

GrapheneOS

Steps to reproduce

Unlocking not working:

  1. Try to login with correct password
  2. Press the unlock button Empty menu problem:
  3. Get out of the app
  4. re-enter the app

What do you expect to happen?

Unlock to enter the main menu

What happens instead?

Either:

Log

type: crash
osVersion: google/bluejay/bluejay:14/AP2A.240605.024/2024061400:user/release-keys
package: com.beemdevelopment.aegis:65
process: com.beemdevelopment.aegis
processUptime: 21611 + 328 ms
installer: org.fdroid.fdroid

java.lang.OutOfMemoryError: Failed to allocate a 31447760 byte allocation with 3448448 free bytes and 3367KB until OOM, target footprint 268435456, growth limit 268435456
    at com.android.org.conscrypt.OpenSSLAeadCipher.reset(OpenSSLAeadCipher.java:140)
    at com.android.org.conscrypt.OpenSSLAeadCipher.doFinalInternal(OpenSSLAeadCipher.java:377)
    at com.android.org.conscrypt.OpenSSLCipher.engineDoFinal(OpenSSLCipher.java:374)
    at javax.crypto.Cipher.doFinal(Cipher.java:2074)
    at androidx.core.os.BundleKt.decrypt(SourceFile:18)
    at com.beemdevelopment.aegis.vault.VaultFileCredentials.decrypt(SourceFile:19)
    at com.beemdevelopment.aegis.vault.VaultFile.getContent(SourceFile:25)
    at com.beemdevelopment.aegis.vault.VaultManager.loadFrom(SourceFile:61)
    at com.beemdevelopment.aegis.ui.AuthActivity.access$200(SourceFile:12)
    at androidx.fragment.app.Fragment$7.onTaskFinished(SourceFile:73)
    at com.beemdevelopment.aegis.ui.tasks.PBKDFTask.onPostExecute(SourceFile:699)
    at android.os.AsyncTask.finish(AsyncTask.java:771)
    at android.os.AsyncTask.-$$Nest$mfinish(Unknown Source:0)
    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:232)
    at android.os.Looper.loop(Looper.java:317)
    at android.app.ActivityThread.main(ActivityThread.java:8623)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
    at com.android.internal.os.ExecInit.main(ExecInit.java:50)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:369)
chukfinley commented 3 months ago

I also had a black screen after unlock reboot fixed it

Jujubash commented 3 months ago

Before posting this bug, I've updated everything and afterwards rebooted my device 3 times. No, it's not about rebooting in my case.

alexbakker commented 3 months ago

This is probably a duplicate of #1298.

@Jujubash Does https://github.com/beemdevelopment/Aegis/issues/1298#issuecomment-1994359143 seem like a plausible description for you situation?

Jujubash commented 3 months ago

@alexbakker No, as I don't use encrypted backups.

alexbakker commented 3 months ago

@Jujubash I'm talking about my comment here specifically: https://github.com/beemdevelopment/Aegis/issues/1298#issuecomment-1994359143. This applies to all large vault files. How large is yours?

Jujubash commented 3 months ago

@alexbakker yes, that could be the case. I've used some pictures for each icon, some of them are probably bigegr than 512 x 512 pixels.

austinbutler commented 3 months ago

Having this issue, seemingly after the latest Play Store update which was today, and I have 61 entries and the backup is 148KB.

alexbakker commented 3 months ago

@austinbutler Are you sure this is the same issue? Could you share the stacktrace you're seeing?

austinbutler commented 3 months ago

I found if I let it sit for long enough it eventually loads. But it's a blank screen for at least 30 seconds.

alexbakker commented 2 months ago

Duplicate of #1298.