Open selfisekai opened 2 months ago
what i do for now:
--- ./lib/utils/matrix_sdk_extensions/flutter_matrix_dart_sdk_database/builder.dart.orig
+++ ./lib/utils/matrix_sdk_extensions/flutter_matrix_dart_sdk_database/builder.dart
@@ -36,12 +36,14 @@
// Send error notification:
final l10n = lookupL10n(PlatformDispatcher.instance.locale);
+ final errorText = l10n.databaseBuildErrorBody(
+ AppConfig.newIssueUrl.toString(),
+ e.toString(),
+ );
+ print(errorText);
ClientManager.sendInitNotification(
l10n.initAppError,
- l10n.databaseBuildErrorBody(
- AppConfig.newIssueUrl.toString(),
- e.toString(),
- ),
+ errorText,
);
return FlutterHiveCollectionsDatabase.databaseBuilder(client);
Thank you so much, for reporting this. Hm I would for now try to handle this by wrapping the sendInitNotification and also the lookup into a try catch block with better logs. Also I added logs always when the database can't be constructed with a higher loglevel. Can you try again with the latest commit?
Bug Description
errors on constructing a database don't appear anywhere if a user dbus socket doesn't exist.
https://github.com/krille-chan/fluffychat/blob/3a554a43b42d735fe553b7780a52d8c17a33053c/lib/utils/matrix_sdk_extensions/flutter_matrix_dart_sdk_database/builder.dart#L39
Steps to Reproduce
Expected Behavior
fallback to an in-app dialog? stdout?
App Version
1.19.1
Additional Platform Information
Alpine Linux edge
Additional Context
problem with investigating the actual database error