调用start_child/2时错误元组消息的含义
调用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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?