may have been in progress in another thread when fork() was called.

简介: may have been in progress in another thread when fork() was called.

运行Python代码报错,之前好好的,今天很突然

may have been in progress in another thread when fork() was called.

解决方法:添加环境变量:

OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

环境变量.png

参考

“+[SomeClass initialize] may have been in progress in another thread when fork() was called”

相关文章
|
Python
may have been in progress in another thread when fork() was called.
may have been in progress in another thread when fork() was called.
152 0
may have been in progress in another thread when fork() was called.
已解决 RuntimeError: There is no current event loop in thread ‘Thread-1‘.
Jetson Xavier NX 报错 RuntimeError: There is no current event loop in thread 'Thread-1'.异常错误,已解决
681 0
已解决 RuntimeError: There is no current event loop in thread ‘Thread-1‘.
|
前端开发
The following tasks did not complete: first Did you forget to signal async completion?
The following tasks did not complete: first Did you forget to signal async completion?
|
Java 程序员 调度
Thread State 详解
前言 文本已收录至我的GitHub仓库,欢迎Star:github.com/bin39232820… 种一棵树最好的时间是十年前,其次是现在
181 0
|
Linux
lvm[12446]: Another thread is handling an event. Waiting
在检查一Linux服务器时,发现日志里面有大量“lvm[12446]: Another thread is handling an event. Waiting...” Jul  4 00:01:42 localhost lvm[12446]: Another thread is handling an event.
1044 0
Can't create handler inside thread that has not called Looper.prepare()
版权声明:本文为博主原创文章,转载请标明出处。 https://blog.csdn.net/chaoyu168/article/details/52163029 最近做项目时出现个问题。
1213 0
|
调度 C++
Thread.sleep(0) vs Thread.sleep(1) vs Thread.yield() vs Object.wait()
Thread.sleep(0) vs Thread.sleep(1) vs Thread.yield() vs Object.wait()
|
.NET Windows 开发框架
Thread.sleep() 和 Thread.yield() 区别
Thread.sleep() 和 Thread.yield() 区别 thread Thread.yield() api中解释: 暂停当前正在执行的线程对象,并执行其他线程。
1290 0

热门文章

最新文章