[GH-ISSUE #5402] In the background, it OutOfMemoryError'd after the device resumed from being idle. #50347

Open
opened 2026-05-01 12:37:41 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @RokeJulianLockhart on GitHub (Jun 22, 2025).
Original GitHub issue: https://github.com/bitwarden/android/issues/5402

Steps To Reproduce

All I did was unlock my device. Evidently, BW was active in the background.

Expected Result

It shouldn't have crashed.

Actual Result

FATAL EXCEPTION: DefaultDispatcher-worker-1
Process: com.x8bit.bitwarden, PID: 5541
java.lang.OutOfMemoryError: Failed to allocate a 32 byte allocation with 8 free bytes and 8B until OOM, target footprint 268435456, growth limit 268435456
	at java.util.HashMap$EntrySet.iterator(HashMap.java:1107)
	at java.time.format.Parsed.resolveFields(Parsed.java:281)
	at java.time.format.Parsed.resolve(Parsed.java:259)
	at java.time.format.DateTimeParseContext.toResolved(DateTimeParseContext.java:331)
	at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2056)
	at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1952)
	at java.time.ZonedDateTime.parse(ZonedDateTime.java:593)
	at com.bitwarden.core.data.serializer.ZonedDateTimeSerializer.deserialize(SourceFile:3)
	at com.bitwarden.core.data.serializer.ZonedDateTimeSerializer.deserialize(SourceFile:1)
	at nd.s.p(Unknown Source:282)
	at hd.a.deserialize(Unknown Source:140)
	at nd.s.p(Unknown Source:282)
	at ic.i.q(Unknown Source:29)
	at com.bitwarden.network.model.SyncResponseJson$Cipher$Login$$serializer.deserialize(SourceFile:1)
	at com.bitwarden.network.model.SyncResponseJson$Cipher$Login$$serializer.deserialize(SourceFile:2)
	at nd.s.p(Unknown Source:282)
	at ic.i.q(Unknown Source:29)
	at com.bitwarden.network.model.SyncResponseJson$Cipher$$serializer.deserialize(SourceFile:1)
	at com.bitwarden.network.model.SyncResponseJson$Cipher$$serializer.deserialize(SourceFile:2)
	at nd.s.p(Unknown Source:282)
	at md.c.a(Unknown Source:28)
	at m8.k.invokeSuspend(Unknown Source:27)
	at yc.a.resumeWith(Unknown Source:7)
	at Wc.L.run(Unknown Source:114)
	at dd.b.run(Unknown Source:126)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [v0{Cancelling}@4afc5cc, Dispatchers.Unconfined]

Additional Context

I wasn't doing anything that should cause this. The device was previously idle.

Build Version

versionName=2025.5.0
versionCode=20269

What server are you connecting to?

US

Environment Details

  1. #!/system/bin/sh
    getprop | grep ro.build
    
  2. [ro.product.brand]: [Fairphone]
    [ro.build.product]: [FP5]
    [ro.build.version.release]: [14]
    [ro.build.display.id]: [FP5.UT2P.B.122.20250422​​]
    

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
Originally created by @RokeJulianLockhart on GitHub (Jun 22, 2025). Original GitHub issue: https://github.com/bitwarden/android/issues/5402 ### Steps To Reproduce All I did was unlock my device. Evidently, BW was active in the background. ### Expected Result It shouldn't have crashed. ### Actual Result <blockquote> ~~~YAML FATAL EXCEPTION: DefaultDispatcher-worker-1 Process: com.x8bit.bitwarden, PID: 5541 java.lang.OutOfMemoryError: Failed to allocate a 32 byte allocation with 8 free bytes and 8B until OOM, target footprint 268435456, growth limit 268435456 at java.util.HashMap$EntrySet.iterator(HashMap.java:1107) at java.time.format.Parsed.resolveFields(Parsed.java:281) at java.time.format.Parsed.resolve(Parsed.java:259) at java.time.format.DateTimeParseContext.toResolved(DateTimeParseContext.java:331) at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2056) at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1952) at java.time.ZonedDateTime.parse(ZonedDateTime.java:593) at com.bitwarden.core.data.serializer.ZonedDateTimeSerializer.deserialize(SourceFile:3) at com.bitwarden.core.data.serializer.ZonedDateTimeSerializer.deserialize(SourceFile:1) at nd.s.p(Unknown Source:282) at hd.a.deserialize(Unknown Source:140) at nd.s.p(Unknown Source:282) at ic.i.q(Unknown Source:29) at com.bitwarden.network.model.SyncResponseJson$Cipher$Login$$serializer.deserialize(SourceFile:1) at com.bitwarden.network.model.SyncResponseJson$Cipher$Login$$serializer.deserialize(SourceFile:2) at nd.s.p(Unknown Source:282) at ic.i.q(Unknown Source:29) at com.bitwarden.network.model.SyncResponseJson$Cipher$$serializer.deserialize(SourceFile:1) at com.bitwarden.network.model.SyncResponseJson$Cipher$$serializer.deserialize(SourceFile:2) at nd.s.p(Unknown Source:282) at md.c.a(Unknown Source:28) at m8.k.invokeSuspend(Unknown Source:27) at yc.a.resumeWith(Unknown Source:7) at Wc.L.run(Unknown Source:114) at dd.b.run(Unknown Source:126) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [v0{Cancelling}@4afc5cc, Dispatchers.Unconfined] ~~~ </blockquote> ### Additional Context I wasn't doing anything that should cause this. The device was previously idle. ### Build Version <blockquote> ~~~ini versionName=2025.5.0 versionCode=20269 ~~~ </blockquote> ### What server are you connecting to? US ### Environment Details 1. ~~~sh #!/system/bin/sh getprop | grep ro.build ~~~ 1. > ~~~YAML > [ro.product.brand]: [Fairphone] > [ro.build.product]: [FP5] > [ro.build.version.release]: [14] > [ro.build.display.id]: [FP5.UT2P.B.122.20250422​​] > ~~~ ### Issue Tracking Info - [x] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
GiteaMirror added the bugapp:password-manager labels 2026-05-01 12:37:41 -05:00
Author
Owner

@bitwarden-bot commented on GitHub (Jun 22, 2025):

Thank you for your report! We've added this to our internal board for review.
ID: PM-22905

<!-- gh-comment-id:2994362606 --> @bitwarden-bot commented on GitHub (Jun 22, 2025): Thank you for your report! We've added this to our internal board for review. ID: PM-22905
Author
Owner

@rmcdowell-bitwarden commented on GitHub (Jun 23, 2025):

Hi there,

I am unable to reproduce this issue, it has been escalated for further investigation. If you would be able to provide the version of Android and your device model, it would be greatly appreciated. Additionally, if you have more information that can help us, please add it below.

Thanks!

<!-- gh-comment-id:2994772492 --> @rmcdowell-bitwarden commented on GitHub (Jun 23, 2025): Hi there, I am unable to reproduce this issue, it has been escalated for further investigation. If you would be able to provide the version of Android and your device model, it would be greatly appreciated. Additionally, if you have more information that can help us, please add it below. Thanks!
Author
Owner

@RokeJulianLockhart commented on GitHub (Jun 23, 2025):

If you would be able to provide the version of Android and your device model, it would be greatly appreciated.

@rmcdowell-bitwarden, a Fairphone 5. The AOSP version number, and the distribution's build identifier, are already included in the environment section.

Additionally, if you have more information that can help us, please add it below.

In retrospect, it might be related to issues/5412.

<!-- gh-comment-id:2998077769 --> @RokeJulianLockhart commented on GitHub (Jun 23, 2025): > If you would be able to provide the version of Android and your device model, it would be greatly appreciated. @rmcdowell-bitwarden, a [Fairphone 5][1]. The AOSP version number, and the distribution's build identifier, are already included in the environment section. > Additionally, if you have more information that can help us, please add it below. In retrospect, it *might* be related to [`issues/5412`](https://github.com/bitwarden/android/issues/5412#issue-3169569962). [1]: https://www.wikidata.org/w/index.php?title=Q122070914&oldid=2362479558#firstHeading:~:text=Random%20Lexeme-,Fairphone%205,-5G%20(Q122070914)
Author
Owner

@closebot-bw commented on GitHub (Feb 11, 2026):

⚠️ Stale Issue Notice

This issue has been automatically marked as stale due to inactivity. It will be closed in 2 weeks (February 25, 2026) if no further activity occurs.

If this issue is still relevant and you would like to keep it open, please:

  • Comment on this issue to show continued interest
  • Provide any additional information or updates
  • Confirm that the issue still exists in the latest version

Thank you for your contribution to this project! 🙏

<!-- gh-comment-id:3886590816 --> @closebot-bw commented on GitHub (Feb 11, 2026): ⚠️ **Stale Issue Notice** This issue has been automatically marked as stale due to inactivity. It will be closed in **2 weeks** (February 25, 2026) if no further activity occurs. If this issue is still relevant and you would like to keep it open, please: - Comment on this issue to show continued interest - Provide any additional information or updates - Confirm that the issue still exists in the latest version Thank you for your contribution to this project! 🙏
Author
Owner

@RokeJulianLockhart commented on GitHub (Feb 11, 2026):

@closebot-bw, that's inassistive.

<!-- gh-comment-id:3887096936 --> @RokeJulianLockhart commented on GitHub (Feb 11, 2026): @closebot-bw, that's inassistive.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#50347