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

Many hive errors in a loop #106

Closed
krille-chan opened this issue Jul 15, 2023 · 2 comments
Closed

Many hive errors in a loop #106

krille-chan opened this issue Jul 15, 2023 · 2 comments
Labels
stale The item is going to be closed soon because of inactivity

Comments

@krille-chan
Copy link
Owner

Description

After recovering from #480 and logging back in, some very hive specific errors are occuring.

To Reproduce

Not sure. Get a data migration bug and then log in again? not sure how reliable that is...

Additional information:

  • Device:
  • OS and OS version: arch linux 266-07-2021
  • Installed version of FluffyChat: 0.35

The errors are synced with "loading... please wait" in the purple bar on the left where the chats normally are.
This changes to "oops, something went wrong" every 2 seconds or so, and then this error is printed.

The logs state that there is an error in Hive, but I suspect the root cause is the first line.

I opened an issue for hive as well, but its pretty empty and useless. Maybe if someone figures it out they could provide more data there as well: isar/hive#739.

logs

The last error is just repeated in a loop because it retries every time.

flutter: # [WARNING] Unable to create "Map<Type,Type>" in event content for the key "m.identity_server"
flutter: [VRouter: INFO] Successfully navigated to "/login" using VRouter.to
flutter: # [INFO] Initialize client FluffyChat linux
flutter: # [INFO] Successfully connected as jaap with https://matrix.jaarts.dev
flutter: [VRouter: INFO] Successfully navigated to "/rooms" using VRouter.to
flutter: # [ERROR] Error during processing events - HiveError: This should not happen. Please open an issue on GitHub.
flutter: ## Stacktrace:
flutter: #0      BinaryReaderImpl.readFrame (package:hive/src/binary/binary_reader_impl.dart:250)
#1      StorageBackendVm.readValue.<anonymous closure> (package:hive/src/backend/vm/storage_backend_vm.dart:110)
<asynchronous suspension>
#2      LazyBoxImpl.get (package:hive/src/box/lazy_box_impl.dart:32)
<asynchronous suspension>
#3      FamedlySdkHiveDatabase.storeEventUpdate (package:matrix/src/database/hive_database.dart:807)
<asynchronous suspension>
#4      Client._handleEvent (package:matrix/src/client.dart:1412)
<asynchronous suspension>
#5      Client._handleRoomEvents (package:matrix/src/client.dart:1368)
<asynchronous suspension>
#6      Client._handleRooms (package:matrix/src/client.dart:1266)
<asynchronous suspension>
#7      Client.handleSync (package:matrix/src/client.dart:1152)
<asynchronous suspension>
#8      Client._innerSync.<anonymous closure> (package:matrix/src/client.dart:1093)
<asynchronous suspension>
#9      Client._innerSync (package:matrix/src/client.dart:1098)
<asynchronous suspension>
#10     Client.login (package:matrix/src/client.dart:487)
<asynchronous suspension>
#11     LoginController.login (package:fluffychat/pages/login.dart:67)
<asynchronous suspension>

flutter: # [WARNING] Something went wrong:  - Exception: HiveError: This should not happen. Please open an issue on GitHub.
flutter: # [ERROR] Error during processing events - HiveError: This should not happen. Please open an issue on GitHub.
flutter: ## Stacktrace:
flutter: #0      BinaryReaderImpl.readFrame (package:hive/src/binary/binary_reader_impl.dart:250)
#1      StorageBackendVm.readValue.<anonymous closure> (package:hive/src/backend/vm/storage_backend_vm.dart:110)
<asynchronous suspension>
#2      LazyBoxImpl.get (package:hive/src/box/lazy_box_impl.dart:32)
<asynchronous suspension>
#3      FamedlySdkHiveDatabase.storeEventUpdate (package:matrix/src/database/hive_database.dart:834)
<asynchronous suspension>
#4      Client._handleEvent (package:matrix/src/client.dart:1412)
<asynchronous suspension>
#5      Client._handleRoomEvents (package:matrix/src/client.dart:1368)
<asynchronous suspension>
#6      Client._handleRooms (package:matrix/src/client.dart:1260)
<asynchronous suspension>
#7      Client.handleSync (package:matrix/src/client.dart:1152)
<asynchronous suspension>
#8      Client._innerSync.<anonymous closure> (package:matrix/src/client.dart:1093)
<asynchronous suspension>
#9      Client._innerSync (package:matrix/src/client.dart:1098)
<asynchronous suspension>

/issue fluffy

Copy link

github-actions bot commented Mar 6, 2024

This issue is stale because it has been open for 120 days with no activity.

@github-actions github-actions bot added the stale The item is going to be closed soon because of inactivity label Mar 6, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale The item is going to be closed soon because of inactivity
Projects
None yet
Development

No branches or pull requests

1 participant