Issue 38658: Python Program crashes when running in fore and back ground

Issue38658

Created on 2019-10-31 21:38 by ThePokestarFan, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
crash.txt ThePokestarFan, 2019-10-31 21:38 Crash log
Messages (3)
msg355769 - (view) Author: (ThePokestarFan) * Date: 2019-10-31 21:38
I have a Python process that should not die that is multiprocessed. I have a queue process that feeds the queue every so often, but my program should use up queue items faster than the queue adds them. I have four worker threads that make requests to an API and update an SQL table with the results. However, if I use nohup and run it, it crashes. Even if I directly run it, it crashes. It used to run forever when I loaded it in PyCharm, but even that crashes it.
msg355789 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2019-11-01 04:37
Thanks for the report.  This appears to be another instance of a long-standing unresolved problem when using networks functions in a thread application on macOS that invoke Python's _scproxy helper module to obtain possible network proxy configuration info from macOS. For more details see, for example, Issue13829. Assuming your application does not need to connect through a network proxy, suggest trying the workaround in https://bugs.python.org/issue30385#msg293958 which avoids the call to _scproxy by defining the no_proxy environment variable.
msg355806 - (view) Author: (ThePokestarFan) * Date: 2019-11-01 11:21
Thank you. Closing this issue.
History
Date User Action Args
2022-04-11 14:59:22adminsetgithub: 82839
2019-11-01 11:21:05ThePokestarFansetstatus: open -> closed
resolution: duplicate
messages: + msg355806

stage: resolved

2019-11-01 04:37:05ned.deilysetmessages: + msg355789
2019-10-31 21:38:53ThePokestarFancreate