async-storage: [Android] Cannot perform this operation because there is no current transaction
What happened?
Error reporting shows the following message:
Cannot perform this operation because there is no current transaction
Version
1.17.3
What platforms are you seeing this issue on?
- Android
- iOS
- macOS
- Windows
- web
System Information
System:
OS: macOS 12.1
CPU: (10) arm64 Apple M1 Pro
Memory: 614.19 MB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.14.0 - /var/folders/cg/cnx9y_d15jq3tw07562by7zw0000gn/T/yarn--1651482100494-0.5048468084106195/node
Yarn: 1.22.17 - /var/folders/cg/cnx9y_d15jq3tw07562by7zw0000gn/T/yarn--1651482100494-0.5048468084106195/yarn
npm: 8.4.0 - ~/development/PlayerData/app/node_modules/.bin/npm
Watchman: 2022.03.14.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/hayden/.gem/ruby/3.0.2/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8309675
Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild
Languages:
Java: 11.0.15 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: ^18.0.0 => 18.0.0
react-native: 0.66.4 => 0.66.4
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Steps to Reproduce
Unable to reproduce.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 2
- Comments: 27 (9 by maintainers)
Facing this issue as well, when this error occurs my token gets wiped out from async storage and app logs out, anyone facing this issue?
@MarySnopok Seems like you run into linkage error. From a small research I conducted just now, class ProcessLock was added in version 2.3.0 of
sqlite-framework
. Thesqlite-framework
used by Room 2.4.3 (default to AsyncStorage as for now) is at 2.2.0.You can confirm that by running
./gradlew app:dependencies
inside yourandroid
dir (standard RN project). Look forsqlite-framework
dependency.You can try to bump Room version, as described in docs here., to 2.5.0, which includes
sqlite-framework
as of 2.3.0. I haven’t tested that version yet, so no guarantees.I haven’t been able to try
next
storage @krizzu - sorry. It is on our backlog.Yeah - that sounds sensible. I’ll see if I can get a reproduction together.