Skip to content

[Bug] Memory页面点击文档节点导致崩溃 (Constraints Overflow) #1399

Open

Description

@xinruan0617

提交前确认 / 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

  1. 打开 Operit 的 Memory(记忆库)页面。
  2. 在图谱中点击“文档”类型的节点。
  3. 等待弹出的“文档查看/编辑”对话框渲染。
  4. 对话框弹出时,应用立刻闪退崩溃

复现频率 / Reproducibility

Always / 每次发生

相关配置 / Related context

不适用

截图或录屏 / Screenshot or recording

Image

日志或错误信息 / 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

  1. yoruuuchan commented on Oct 23, 2026

    @yoruuuchan
    Contributor

    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.

  2. yoruuuchan commented on Oct 23, 2026

    @yoruuuchan
    Contributor

    已在 fork 提交修复并向上游 dev 发起 PR:#1407 #1407

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions