fatal error: concurrent map iteration and map write #21

Closed
opened 2026-02-16 00:19:05 -05:00 by yindo · 0 comments
Owner

Originally created by @qkzsky on GitHub (Mar 4, 2025).

The service terminated abnormally with the following error:

fatal error: concurrent map iteration and map write

goroutine 162 [running]:
github.com/langgenius/dify-plugin-daemon/internal/core/plugin_manager/local_runtime.(*stdioHolder).StartStdout.func1({0xc000886540, 0x24}, {0xc001074000, 0xca67, 0xe000})
/app/internal/core/plugin_manager/local_runtime/stdio_handle.go:100 +0x111
github.com/langgenius/dify-plugin-daemon/pkg/entities/plugin_entities.ParsePluginUniversalEvent({0xc00172db96, 0xcab6, 0x2c687?}, {0x0, 0x0}, 0xc000d77d38, 0xc000d77d20, 0xc000d77d10, 0xc000d77d00)
/app/pkg/entities/plugin_entities/event.go:54 +0x515
github.com/langgenius/dify-plugin-daemon/internal/core/plugin_manager/local_runtime.(*stdioHolder).StartStdout(0xc00049cf70, 0x16713f8)
/app/internal/core/plugin_manager/local_runtime/stdio_handle.go:93 +0x273
github.com/langgenius/dify-plugin-daemon/internal/core/plugin_manager/local_runtime.(*LocalPluginRuntime).StartPlugin.func3()
/app/internal/core/plugin_manager/local_runtime/run.go:160 +0x57
github.com/langgenius/dify-plugin-daemon/internal/utils/routine.Submit.func1.1({0x1820270?, 0xc000d980f0?})
/app/internal/utils/routine/pool.go:58 +0x34
runtime/pprof.Do({0x18200c0?, 0x22c9d60?}, {{0xc0001d0080?, 0x1617908?, 0x138dbc0?}}, 0xc000b02f00)
/usr/local/go/src/runtime/pprof/runtime.go:51 +0x9d
github.com/langgenius/dify-plugin-daemon/internal/utils/routine.Submit.func1()
/app/internal/utils/routine/pool.go:56 +0x394
github.com/panjf2000/ants.(*goWorker).run.func1()
/go/pkg/mod/github.com/panjf2000/ants@v1.3.0/worker.go:71 +0x8d
created by github.com/panjf2000/ants.(*goWorker).run in goroutine 161
/go/pkg/mod/github.com/panjf2000/ants@v1.3.0/worker.go:49 +0x5c

Originally created by @qkzsky on GitHub (Mar 4, 2025). The service terminated abnormally with the following error: fatal error: concurrent map iteration and map write goroutine 162 [running]: github.com/langgenius/dify-plugin-daemon/internal/core/plugin_manager/local_runtime.(*stdioHolder).StartStdout.func1({0xc000886540, 0x24}, {0xc001074000, 0xca67, 0xe000}) /app/internal/core/plugin_manager/local_runtime/stdio_handle.go:100 +0x111 github.com/langgenius/dify-plugin-daemon/pkg/entities/plugin_entities.ParsePluginUniversalEvent({0xc00172db96, 0xcab6, 0x2c687?}, {0x0, 0x0}, 0xc000d77d38, 0xc000d77d20, 0xc000d77d10, 0xc000d77d00) /app/pkg/entities/plugin_entities/event.go:54 +0x515 github.com/langgenius/dify-plugin-daemon/internal/core/plugin_manager/local_runtime.(*stdioHolder).StartStdout(0xc00049cf70, 0x16713f8) /app/internal/core/plugin_manager/local_runtime/stdio_handle.go:93 +0x273 github.com/langgenius/dify-plugin-daemon/internal/core/plugin_manager/local_runtime.(*LocalPluginRuntime).StartPlugin.func3() /app/internal/core/plugin_manager/local_runtime/run.go:160 +0x57 github.com/langgenius/dify-plugin-daemon/internal/utils/routine.Submit.func1.1({0x1820270?, 0xc000d980f0?}) /app/internal/utils/routine/pool.go:58 +0x34 runtime/pprof.Do({0x18200c0?, 0x22c9d60?}, {{0xc0001d0080?, 0x1617908?, 0x138dbc0?}}, 0xc000b02f00) /usr/local/go/src/runtime/pprof/runtime.go:51 +0x9d github.com/langgenius/dify-plugin-daemon/internal/utils/routine.Submit.func1() /app/internal/utils/routine/pool.go:56 +0x394 github.com/panjf2000/ants.(*goWorker).run.func1() /go/pkg/mod/github.com/panjf2000/ants@v1.3.0/worker.go:71 +0x8d created by github.com/panjf2000/ants.(*goWorker).run in goroutine 161 /go/pkg/mod/github.com/panjf2000/ants@v1.3.0/worker.go:49 +0x5c
yindo closed this issue 2026-02-16 00:19:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#21