Skip to content

[bug反馈]: 更新索引失败 #42

Open
@ZUDAMVS

Description

@ZUDAMVS

版本号

latest (最新的)

操作系统

Windows 10

如何复现

在已有200万张图片的基础上再添加索引100万图片,在完成的时弹出
"Exception of type'System.OutofMemoryException' was thrown"
运行的时候内存占用在百分之80
Image

预期结果

应该如何解决这种问题,之前我少量多次添加索引是累计到了400多万张就加不了了
这种一次性添加大量索引,是内存的关系吗?

实际结果

200万索引再添加100万索引,在完成的时候弹出"Exception of type'System.OutofMemoryException' was thrown"

异常信息

是这个吗
2025/4/9 19:18:25 [1] ERROR System.Private.CoreLib Exception of type 'System.OutOfMemoryException' was thrown.
at System.String.CreateStringFromEncoding(Byte* bytes, Int32 byteLength, Encoding encoding)
at System.Text.Encoding.GetString(ReadOnlySpan1 bytes) at System.Text.Json.JsonReaderHelper.TranscodeHelper(ReadOnlySpan1 utf8Unescaped)
at System.Text.Json.JsonSerializer.WriteString[TValue](TValue& value, JsonTypeInfo`1 jsonTypeInfo)
at System.Text.Json.JsonSerializer.Serialize[TValue](TValue value, JsonSerializerOptions options)
at 以图搜图.Form1.<>c__DisplayClass13_0.<btnIndex_Click>b__3()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at 以图搜图.Form1.btnIndex_Click(Object sender, EventArgs e)
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

截图或视频

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions