Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
novandikp opened this issue Jul 8, 2024 · 6 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@novandikp
Copy link

novandikp commented Jul 8, 2024

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

  • I have specified the problem in the issue title
  • I have provided a verbose description of the problem
@novandikp novandikp added the bug Something isn't working label Jul 8, 2024
@GleammerRay
Copy link
Collaborator

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
Copy link
Author

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

@GleammerRay
Copy link
Collaborator

GleammerRay commented Jul 8, 2024

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
Copy link
Author

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

@GleammerRay
Copy link
Collaborator

GleammerRay commented Jul 9, 2024

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
Copy link

Moa-Kikuchi commented Jul 16, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants