WilliamKarolDiCioccio / open_local_ui

OpenLocalUI: Native desktop app for Windows, MacOS and Linux. Easily run Large Language Models locally, no complex setups required. Inspired by OpenWebUI's simplicity for LLM use.
MIT License
16 stars 2 forks source link

Random error in console while scrolling the chat message list #33

Closed Rossi1337 closed 3 weeks ago

Rossi1337 commented 3 weeks ago

Randomly happens when a chat message is disposed.

════════ Exception caught by widgets library ═══════════════════════════════════ The following assertion was thrown while finalizing the widget tree: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 5018 pos 12: '_lifecycleState != _ElementLifecycle.defunct': is not true.

When the exception was thrown, this was the stack:

2 Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:5018:12)

framework.dart:5018

3 State.setState (package:flutter/src/widgets/framework.dart:1223:15)

framework.dart:1223

4 _ChatMessageWidgetState._cancelEditingMessage (package:open_local_ui/widgets/chat_message.dart:121:5)

chat_message.dart:121

5 _ChatMessageWidgetState.dispose (package:open_local_ui/widgets/chat_message.dart:33:5)