[GH-ISSUE #7390] [Bug] AppFlowy crashed when opening database row #3289

Closed
opened 2026-03-23 21:29:01 +00:00 by mirror · 1 comment
Owner

Originally created by @khorshuheng on GitHub (Feb 17, 2025).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7390

Bug Description

When opening a database row on AppleM4, AppFlowy will sometimes crash. There's also exception being triggered when trying to change theme.

How to Reproduce

We have not found a consistent way to reproduce this at the moment.

Expected Behavior

AppFlowy should not crash.

Operating System

Apple M4

AppFlowy Version(s)

0.8.x

Screenshots

Exception caught during crash:

{"msg":"[Flutter]: Uncaught platform error\nStackTrace:\n#0      _Directory._fillWithDirectoryListing (dart:io-patch/directory_patch.dart:42)\n#1      _Directory.listSync (dart:io/directory_impl.dart:228)\n#2      FlowyPluginService._targets (package:flowy_infra/plugins/service/plugin_service.dart:26)\n<asynchronous suspension>\n#3      FlowyPluginService.plugins (package:flowy_infra/plugins/service/plugin_service.dart:33)\n<asynchronous suspension>\n#4      DynamicPluginBloc.onLoadRequested (package:flowy_infra/plugins/bloc/dynamic_plugin_bloc.dart:29)\n<asynchronous suspension>\n#5      DynamicPluginBloc.dispatch (package:flowy_infra/plugins/bloc/dynamic_plugin_bloc.dart:19)\n<asynchronous suspension>\n#6      Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:229)\n<asynchronous suspension>\n","time":"02-15 14:01:58","target":"dart_ffi"}
{"msg":"[Flutter]: Uncaught platform error\nStackTrace:\n#0      _Directory._fillWithDirectoryListing (dart:io-patch/directory_patch.dart:42)\n#1      _Directory.listSync (dart:io/directory_impl.dart:228)\n#2      FlowyPluginService._targets (package:flowy_infra/plugins/service/plugin_service.dart:26)\n<asynchronous suspension>\n#3      FlowyPluginService.plugins (package:flowy_infra/plugins/service/plugin_service.dart:33)\n<asynchronous suspension>\n#4      DynamicPluginBloc.onLoadRequested (package:flowy_infra/plugins/bloc/dynamic_plugin_bloc.dart:29)\n<asynchronous suspension>\n#5      DynamicPluginBloc.dispatch (package:flowy_infra/plugins/bloc/dynamic_plugin_bloc.dart:19)\n<asynchronous suspension>\n#6      Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:229)\n<asynchronous suspension>\n","time":"02-15 14:01:58","target":"dart_ffi"}

Exception caught when trying to set theme:

{"msg":"[GET_WORKSPACE_MEMBERS - EVENT] request_id: \"be7ce0ba03ad313c8c043720c3171529\"","time":"02-16 01:57:53","target":"client_api::http"}
{"msg":"[GET_WORKSPACE_MEMBERS - END]","time":"02-16 01:57:53","target":"client_api::http_member"}
  2025-02-16 01:57:55 ERROR dart_ffi: [Flutter]: Uncaught platform error
StackTrace:
#0      _Directory._fillWithDirectoryListing (dart:io-patch/directory_patch.dart:42)
#1      _Directory.listSync (dart:io/directory_impl.dart:228)
#2      FlowyPluginService._targets (package:flowy_infra/plugins/service/plugin_service.dart:26)
<asynchronous suspension>
#3      FlowyPluginService.plugins (package:flowy_infra/plugins/service/plugin_service.dart:33)
<asynchronous suspension>
#4      AppTheme._plugins (package:flowy_infra/theme.dart:35)
<asynchronous suspension>
#5      AppTheme.themes (package:flowy_infra/theme.dart:53)
<asynchronous suspension>
#6      AppTheme.fromName (package:flowy_infra/theme.dart:61)
<asynchronous suspension>
#7      AppearanceSettingsCubit.setTheme (package:appflowy/workspace/application/settings/appearance/appearance_cubit.dart:100)
<asynchronous suspension>

Additional Context

No response

Originally created by @khorshuheng on GitHub (Feb 17, 2025). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7390 ### Bug Description When opening a database row on AppleM4, AppFlowy will sometimes crash. There's also exception being triggered when trying to change theme. ### How to Reproduce We have not found a consistent way to reproduce this at the moment. ### Expected Behavior AppFlowy should not crash. ### Operating System Apple M4 ### AppFlowy Version(s) 0.8.x ### Screenshots Exception caught during crash: ``` {"msg":"[Flutter]: Uncaught platform error\nStackTrace:\n#0 _Directory._fillWithDirectoryListing (dart:io-patch/directory_patch.dart:42)\n#1 _Directory.listSync (dart:io/directory_impl.dart:228)\n#2 FlowyPluginService._targets (package:flowy_infra/plugins/service/plugin_service.dart:26)\n<asynchronous suspension>\n#3 FlowyPluginService.plugins (package:flowy_infra/plugins/service/plugin_service.dart:33)\n<asynchronous suspension>\n#4 DynamicPluginBloc.onLoadRequested (package:flowy_infra/plugins/bloc/dynamic_plugin_bloc.dart:29)\n<asynchronous suspension>\n#5 DynamicPluginBloc.dispatch (package:flowy_infra/plugins/bloc/dynamic_plugin_bloc.dart:19)\n<asynchronous suspension>\n#6 Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:229)\n<asynchronous suspension>\n","time":"02-15 14:01:58","target":"dart_ffi"} {"msg":"[Flutter]: Uncaught platform error\nStackTrace:\n#0 _Directory._fillWithDirectoryListing (dart:io-patch/directory_patch.dart:42)\n#1 _Directory.listSync (dart:io/directory_impl.dart:228)\n#2 FlowyPluginService._targets (package:flowy_infra/plugins/service/plugin_service.dart:26)\n<asynchronous suspension>\n#3 FlowyPluginService.plugins (package:flowy_infra/plugins/service/plugin_service.dart:33)\n<asynchronous suspension>\n#4 DynamicPluginBloc.onLoadRequested (package:flowy_infra/plugins/bloc/dynamic_plugin_bloc.dart:29)\n<asynchronous suspension>\n#5 DynamicPluginBloc.dispatch (package:flowy_infra/plugins/bloc/dynamic_plugin_bloc.dart:19)\n<asynchronous suspension>\n#6 Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:229)\n<asynchronous suspension>\n","time":"02-15 14:01:58","target":"dart_ffi"} ``` Exception caught when trying to set theme: ``` {"msg":"[GET_WORKSPACE_MEMBERS - EVENT] request_id: \"be7ce0ba03ad313c8c043720c3171529\"","time":"02-16 01:57:53","target":"client_api::http"} {"msg":"[GET_WORKSPACE_MEMBERS - END]","time":"02-16 01:57:53","target":"client_api::http_member"} 2025-02-16 01:57:55 ERROR dart_ffi: [Flutter]: Uncaught platform error StackTrace: #0 _Directory._fillWithDirectoryListing (dart:io-patch/directory_patch.dart:42) #1 _Directory.listSync (dart:io/directory_impl.dart:228) #2 FlowyPluginService._targets (package:flowy_infra/plugins/service/plugin_service.dart:26) <asynchronous suspension> #3 FlowyPluginService.plugins (package:flowy_infra/plugins/service/plugin_service.dart:33) <asynchronous suspension> #4 AppTheme._plugins (package:flowy_infra/theme.dart:35) <asynchronous suspension> #5 AppTheme.themes (package:flowy_infra/theme.dart:53) <asynchronous suspension> #6 AppTheme.fromName (package:flowy_infra/theme.dart:61) <asynchronous suspension> #7 AppearanceSettingsCubit.setTheme (package:appflowy/workspace/application/settings/appearance/appearance_cubit.dart:100) <asynchronous suspension> ``` ### Additional Context _No response_
mirror 2026-03-23 21:29:01 +00:00
Author
Owner

@appflowy commented on GitHub (Dec 9, 2025):

This issue has already been fixed and will be included in the upcoming release (0.10.7). I’m closing this issue.

<!-- gh-comment-id:3630066219 --> @appflowy commented on GitHub (Dec 9, 2025): This issue has already been fixed and will be included in the upcoming release (0.10.7). I’m closing this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#3289
No description provided.