调用start_child/2时错误元组消息的含义

发布于 2024-10-07 23:46:19 字数 668 浏览 0 评论 0原文

调用 start_child/2 时,我收到以下错误元组

{error,
{{[],[]},
    {child,undefined,"i.file_man",
        {sg_file_mgr,start_link,
            ["i.file",
            [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
            7,568,569,570,571,572,573,574,
            575,576,577,578,579,580,581,582,583,584,
            585,586,587,588,589,590],
            [{"129.16.165.241",6881},
            {"68.189.244.138",55109},
            {"68.10.136.204",51422},
            {"68.10.136.204",51416},
            {"67.174.189.28",6881}],
            <0.400.0>]},
        permanent,2000,worker,
        [sg_file_mgr]}}}

如果消息和未定义的内容,第一个元组中的那两个空列表是什么?

I get the following error tuple back when calling start_child/2

{error,
{{[],[]},
    {child,undefined,"i.file_man",
        {sg_file_mgr,start_link,
            ["i.file",
            [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
            7,568,569,570,571,572,573,574,
            575,576,577,578,579,580,581,582,583,584,
            585,586,587,588,589,590],
            [{"129.16.165.241",6881},
            {"68.189.244.138",55109},
            {"68.10.136.204",51422},
            {"68.10.136.204",51416},
            {"67.174.189.28",6881}],
            <0.400.0>]},
        permanent,2000,worker,
        [sg_file_mgr]}}}

What are those two empty lists in the first tuple if the message and what's undefined?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灼痛 2024-10-14 23:46:19

undefined 是因为子进程还没有启动并插入到supervisor中。 {[], []} 可能是来自底层进程的术语。您是否可以手动start_link sg_file_mgr?

运行 erl -boot start_sasl 并检查 SASL 是否有有趣的错误报告。

sg_file_mgr 的 init/1 函数是什么样的?

undefined is because the child is not yet started and inserted into the supervisor. {[], []} is probably a term from the underlying process. Can you manually start_link sg_file_mgr or not?

run erl -boot start_sasl and check if SASL has an interesting error report for you.

What does the init/1 function of sg_file_mgr look like?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文