Comments (2)
I assume this is the cause of the following error that just showed up after updating to Flutter version 2.3.0-24.1.pre?
I/flutter (14196): INFO 11:47:23.001:CryptoBloc.emit/168:CryptoState(status:CryptoStatus.error, error=Exception: Assertion failed: "package:webcrypto failed to attached finalizer", keyPair=no) #0 _attachFinalizerEVP_PKEY (package:webcrypto/src/impl_ffi/impl_ffi.utils.dart:39:5)
I/flutter (14196): #1 _createEVP_PKEYwithFinalizer (package:webcrypto/src/impl_ffi/impl_ffi.utils.dart:49:3)
I/flutter (14196): #2 _generateRsaKeyPair (package:webcrypto/src/impl_ffi/impl_ffi.rsa_common.dart:287:21)
I/flutter (14196): #3 rsaOaepPrivateKey_generateKey (package:webcrypto/src/impl_ffi/impl_ffi.rsaoaep.dart:68:16)
I/flutter (14196): #4 RsaOaepPrivateKey.generateKey (package:webcrypto/src/webcrypto/webcrypto.rsaoaep.dart:50:12)
I/flutter (14196): #5 _generateRSAKeyRaw (package:common/bloc/crypto/crypto_bloc.dart:52:28)
I/flutter (14196): #6 _generateRSAKey (package:common/bloc/crypto/crypto_bloc.dart:58:24)
I/flutter (14196): #7 _IsolateConfiguration.apply (package:flutter/src/foundation/_isolates_io.dart:81:34)
I/flutter (14196): #8 _spawn.<anonymous closure> (package:flutter/src/foundation/_isolates_io.dart:88:65)
I/flutter (14196): #9 _spawn.<anonymous clos
E/flutter (14196): [ERROR:flutter/lib/ui/ui_dart_state.cc(213)] Unhandled Exception: Exception: Assertion failed: "package:webcrypto failed to attached finalizer"
E/flutter (14196): #0 _attachFinalizerEVP_PKEY (package:webcrypto/src/impl_ffi/impl_ffi.utils.dart:39:5)
E/flutter (14196): #1 _createEVP_PKEYwithFinalizer (package:webcrypto/src/impl_ffi/impl_ffi.utils.dart:49:3)
E/flutter (14196): #2 _generateRsaKeyPair (package:webcrypto/src/impl_ffi/impl_ffi.rsa_common.dart:287:21)
E/flutter (14196): #3 rsaOaepPrivateKey_generateKey (package:webcrypto/src/impl_ffi/impl_ffi.rsaoaep.dart:68:16)
E/flutter (14196): #4 RsaOaepPrivateKey.generateKey (package:webcrypto/src/webcrypto/webcrypto.rsaoaep.dart:50:12)
E/flutter (14196): #5 _generateRSAKeyRaw (package:common/bloc/crypto/crypto_bloc.dart:52:28)
E/flutter (14196): #6 _generateRSAKey (package:common/bloc/crypto/crypto_bloc.dart:58:24)
E/flutter (14196): #7 _IsolateConfiguration.apply (package:flutter/src/foundation/_isolates_io.dart:81:34)
E/flutter (14196): #8 _spawn.<anonymous closure> (package:flutter/src/foundation/_isolates_io.dart:88:65)
E/flutter (14196): #9 _spawn.<anonymous closure> (package:flutter/src/foundation/_isolates_io.dart:87:5)
E/flutter (14196): #10 Timeline.timeSync (dart:developer/timeline.dart:163:22)
E/flutter (14196): #11 _spawn (package:flutter/src/foundation/_isolates_io.dart:85:35)
E/flutter (14196): #12 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:286:17)
E/flutter (14196): #13 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
E/flutter (14196): ```
from webcrypto.dart.
I can confirm it works when using the code from git, when will it be available in a release ??
from webcrypto.dart.
Related Issues (20)
- Ques: How to generate public/private Key RSA-OAEP ? HOT 1
- Explore wrap/unwrap/derive-key and capabilities
- Consider adopting test vectors from chromium
- Extend TestRunner with support for exception and error cases
- Refactor test case generation
- Run tests under valgrind HOT 1
- Reject JWK keys that have conflicting "use" and "key_ops"
- Bespoke test cases for import JWK with conflicting "use" and "key_ops"
- Ensure CBS is empty after importing keys
- Consider augmenting _Scope to ensure we clear errors after each operation HOT 1
- Write documentation for all public members
- Ensure correct handling of errors from thread-local storage
- AesGcmSecretKey.importRawKey on Chrome - Expected a value of type 'CryptoKey' (in null), but got one of type 'CryptoKey' HOT 1
- ECDSA Key Generation Fails on Mobile Web Browser HOT 1
- Bug Report: Error while calling importJsonWebKey HOT 7
- Dart (server) apps support HOT 1
- Fix intermittents tests for macos desktop HOT 5
- 0.5.4 Exception after upload to Google Play HOT 4
- Migrate lib/src/crypto_subtle.dart to use `dart:js_interop`
- Support for Gradle 8 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webcrypto.dart.