GlitterWare / Passy

Offline password manager with cross-platform synchronization
https://glitterware.github.io/Passy/
GNU General Public License v3.0
144 stars 22 forks source link

[Bug]: [DArgon2ErrorCode.ARGON2_MEMORY_TOO_LITTLE] Memory cost is too small #113

Open novandikp opened 4 months ago

novandikp commented 4 months ago

Bug description

[DArgon2ErrorCode.ARGON2_MEMORY_TOO_LITTLE] Memory cost is too small
#0      DArgon2Native.hashPasswordBytesSync (package:dargon2_core/src/native/dargon2_native.dart:74)
#1      DArgon2Native.hashPasswordBytes (package:dargon2_core/src/native/dargon2_native.dart:131)
#2      DArgon2Desktop.hashPasswordBytes (package:dargon2_flutter_desktop/src/argon2.dart:34)
#3      DArgon2.hashPasswordString (package:dargon2_interface/src/argon2.dart:56)
#4      argon2ifyString (package:passy/passy_data/common.dart:160)
#5      PassyData.createAccount (package:passy/passy_data/passy_data.dart:245)
#6      _AddAccountScreen._addAccount (package:passy/screens/add_account_screen.dart:74)
#7      _InkResponseState.handleTap (package:flutter/src/material/ink_well.dart:1183)
#8      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:315)
#9      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:652)
#10     BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:309)
#11     BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:242)
#12     PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:670)
#13     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98)
#14     PointerRouter._dispatchEventToRoutes.<anonymous closure> (package:flutter/src/gestures/pointer_router.dart:143)
#15     _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633)
#16     PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)
#17     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)
#18     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:495)
#19     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:475)
#20     RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:430)
#21     GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:420)
#22     GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:383)
#23     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:330)
#24     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:299)
#25     _invoke1 (dart:ui/hooks.dart:328)
#26     PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:429)
#27     _dispatchPointerDataPacket (dart:ui/hooks.dart:262)

Expected outcome

No response

Steps to reproduce

No response

Error log

No response

App version

None

Submission checklist

GleammerRay commented 4 months ago

Hello @novandikp !

This is a master-key generation error, originating from the Argon2 library, indicating that your system does not have enough memory to generate an Argon2 key.

Please ensure that your system has at least 64 megabytes of free memory when creating an account. Cheers!

novandikp commented 4 months ago

how to check memory free? is ram or what ? it's in windows

GleammerRay commented 4 months ago

On Windows, you may check memory usage via the task manager.

  1. To open the task manager, right-click the Windows button on your task bar and select "Task Manager": win11_taskmanager_right-click_start.jpg

  2. Navigate to the performance tab and select "Memory". RAM-in-Windows-11-Task-Manager.png

This section will display the memory in use, as well as free memory.

novandikp commented 4 months ago

Tidak berjudul Still i has 3 gb free ram but still issue

GleammerRay commented 4 months ago

Thanks a lot for the detailed report!

Unfortunately I can not promise a fix as I still haven't managed to replicate this error on my end. My guess so far is that Flutter's memory measuring library might be failing on your end. I will attempt to implement an automatic panic retry function using the default memory parameters to mitigate this error.

Apologies for the inconvenience and I hope that you're here to stay until the next release! 😊

(next release will most probably be out later this month)

Moa-Kikuchi commented 4 months ago

Having this issue as well...

Currently using a Surface Pro tablet, 11th Gen. 9.2 GBs of ram available out of 15.4 GB. On the newest version of Windows 11.

If it's helpful, here is the full log.

[DArgon2ErrorCode.ARGON2_MEMORY_TOO_LITTLE] Memory cost is too small

0 DArgon2Native.hashPasswordBytesSync (package:dargon2_core/src/native/dargon2_native.dart:74)

1 DArgon2Native.hashPasswordBytes (package:dargon2_core/src/native/dargon2_native.dart:131)

2 DArgon2Desktop.hashPasswordBytes (package:dargon2_flutter_desktop/src/argon2.dart:34)

3 DArgon2.hashPasswordString (package:dargon2_interface/src/argon2.dart:56)

4 argon2ifyString (package:passy/passy_data/common.dart:160)

5 PassyData.createAccount (package:passy/passy_data/passy_data.dart:245)

6 _AddAccountScreen._addAccount (package:passy/screens/add_account_screen.dart:74)

7 _InkResponseState.handleTap (package:flutter/src/material/ink_well.dart:1183)

8 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:315)

9 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:652)

10 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:309)

11 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:242)

12 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:670)

13 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98)

14 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:143)

15 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633)

16 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)

17 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)

18 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:495)

19 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:475)

20 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:430)

21 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:420)

22 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:383)

23 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:330)

24 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:299)

25 _invoke1 (dart:ui/hooks.dart:328)

26 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:429)

27 _dispatchPointerDataPacket (dart:ui/hooks.dart:262)