Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/365.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何防止mach_ports_register()在OSX上的Java中失败_Java_Macos_Selenium - Fatal编程技术网

如何防止mach_ports_register()在OSX上的Java中失败

如何防止mach_ports_register()在OSX上的Java中失败,java,macos,selenium,Java,Macos,Selenium,我有一个程序,使用java和selenium每20-30秒随机登录一个网页,并在该网站上发表文章。大约一个半小时后,我开始看到以下情况: mach_ports_register() failed! XPC will not work in the child process: 0x10004002: (ipc/rcv) invalid name mach_ports_register() failed! XPC will not work in the child process: 0x1000

我有一个程序,使用java和selenium每20-30秒随机登录一个网页,并在该网站上发表文章。大约一个半小时后,我开始看到以下情况:

mach_ports_register() failed! XPC will not work in the child process: 0x10004002: (ipc/rcv) invalid name
mach_ports_register() failed! XPC will not work in the child process: 0x10004002: (ipc/rcv) invalid name
如何防止这种情况发生?我必须释放我的端口、内存或其他东西吗? 我正试图让它运行至少10天没有任何问题