TencentCloud / chat-uikit-flutter

A powerful Flutter chat UI component library and business logic for Tencent Cloud Chat, creating seamless in-app chat modules for delightful user experiences.
https://trtc.io/products/chat?utm_source=gfs&utm_medium=link&utm_campaign=%E6%B8%A0%E9%81%93&_channel_track_key=k6WgfCKn
BSD 3-Clause "New" or "Revised" License
144 stars 99 forks source link

RangeError (end): Invalid value: Only valid value is 0: -1 #43

Open yfming93 opened 2 months ago

yfming93 commented 2 months ago

I/imsdk (29858): TIM: |-im_engine_impl.cpp:2299 SetDraftMessage |conversation_key:c2c_2|edit_time:0|custom_info: I/System.out(29858): removeGroupListener current message listener size id2 I/System.out(29858): removeGroupListener current message listener size id2 E/gralloc4(29858): Empty SMPTE 2094-40 data

======== Exception caught by widgets library ======================================================= The following RangeError was thrown while finalizing the widget tree: RangeError (end): Invalid value: Only valid value is 0: -1

When the exception was thrown, this was the stack:

0 RangeError.checkValidRange (dart:core/errors.dart:365:9)

1 List.sublist (dart:core-patch/growable_array.dart:84:38)

2 TUIChatGlobalModel.clearCurrentConversation (package:tencent_cloud_chat_uikit/business_logic/view_models/tui_chat_global_model.dart:200:89)

3 TUIChatSeparateViewModel.dispose (package:tencent_cloud_chat_uikit/business_logic/separate_models/tui_chat_separate_view_model.dart:1578:17)

4 _TUIChatState.dispose (package:tencent_cloud_chat_uikit/ui/views/TIMUIKitChat/tim_uikit_chat.dart:259:11)

5 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:5696:11)

6 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:2077:13)

7 _InactiveElements._unmount. (package:flutter/src/widgets/framework.dart:2075:7)