[Bug] Memory页面点击文档节点导致崩溃 (Constraints Overflow) #1399
Description
提交前确认 / Before submitting
- 我已经搜索过现有 Issue,确认这不是重复问题。
- 我已经移除日志、截图和配置中的密钥及隐私信息。
Operit 版本 / Operit version
1.12.2
运行形态 / Distribution
Release APK
设备与运行环境 / Environment
iQOOz11
问题领域 / Area
Chat / 对话与消息
主要问题描述 / Main problem description
在 Memory(记忆库)页面,点击图谱中的“文档”类型节点,弹出的“文档查看/编辑”对话框会导致应用直接闪退。
java.lang.IllegalArgumentException: Can't represent a width of 952 and height of 523922 in Constraints
复现步骤 / Steps to reproduce
- 打开 Operit 的 Memory(记忆库)页面。
- 在图谱中点击“文档”类型的节点。
- 等待弹出的“文档查看/编辑”对话框渲染。
- 对话框弹出时,应用立刻闪退崩溃
复现频率 / Reproducibility
Always / 每次发生
相关配置 / Related context
不适用
截图或录屏 / Screenshot or recording
日志或错误信息 / Logs or error output
java.lang.IllegalArgumentException: Can't represent a width of 952 and height of 523922 in Constraints
at androidx.compose.ui.unit.ConstraintsKt.throwInvalidConstraintException(Constraints.kt:401)
at androidx.compose.ui.unit.ConstraintsKt.createConstraints(Constraints.kt:425)
at androidx.compose.ui.unit.ConstraintsKt.Constraints(Constraints.kt:496)
at androidx.compose.material3.OutlinedTextFieldMeasurePolicy.measure-3p2s80s(OutlinedTextField.kt:976)
at androidx.compose.ui.node.InnerNodeCoordinator.measure-BRTryo0(InnerNodeCoordinator.kt:128)
at androidx.compose.ui.node.MeasurePassDelegate$performMeasureBlock$1.invoke(MeasurePassDelegate.kt:173)
at androidx.compose.runtime.snapshots.SnapshotStateObserver.observeReads(SnapshotStateObserver.kt:699)
at androidx.compose.ui.node.MeasurePassDelegate.measure-BRTryo0(MeasurePassDelegate.kt:470)
at androidx.compose.foundation.layout.BoxMeasurePolicy.measure-3p2s80s(Box.kt:145)
at androidx.compose.foundation.lazy.layout.LazyLayoutMeasuredItemProvider.getPlaceables-3p2s80s(LazyLayoutMeasuredItem.kt:61)
... 93 more frames
Activity
yoruuuchan commentedon Oct 23, 2026
Thanks for the report. I'm taking this issue and will prepare a fix against the latest dev, including a targeted test for long-document editing in the memory graph dialog.
yoruuuchan commentedon Oct 23, 2026
已在 fork 提交修复并向上游 dev 发起 PR:#1407 #1407